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 JAVAH
 885 JAVAC
 886 JAVA
 887 BOOT_JDK
 888 JAVA_CHECK
 889 JAVAC_CHECK
 890 VENDOR_VERSION_STRING
 891 VERSION_DATE
 892 VERSION_IS_GA
 893 VERSION_SHORT
 894 VERSION_STRING
 895 VERSION_NUMBER_FOUR_POSITIONS
 896 VERSION_NUMBER
 897 VERSION_OPT
 898 VERSION_BUILD
 899 VERSION_PRE
 900 VERSION_PATCH
 901 VERSION_UPDATE
 902 VERSION_INTERIM
 903 VERSION_FEATURE
 904 MACOSX_BUNDLE_ID_BASE
 905 MACOSX_BUNDLE_NAME_BASE
 906 HOTSPOT_VM_DISTRO
 907 COMPANY_NAME
 908 JDK_RC_PLATFORM_NAME
 909 PRODUCT_SUFFIX
 910 PRODUCT_NAME
 911 LAUNCHER_NAME
 912 JLINK_KEEP_PACKAGED_MODULES
 913 COPYRIGHT_YEAR
 914 COMPRESS_JARS
 915 INCLUDE_SA
 916 UNLIMITED_CRYPTO
 917 CACERTS_FILE
 918 ENABLE_FULL_DOCS
 919 ENABLE_HEADLESS_ONLY
 920 DEFAULT_MAKE_TARGET
 921 OS_VERSION_MICRO
 922 OS_VERSION_MINOR
 923 OS_VERSION_MAJOR
 924 PKG_CONFIG
 925 BASH_ARGS
 926 SETFILE
 927 CODESIGN
 928 XATTR
 929 DSYMUTIL
 930 IS_GNU_TIME
 931 PATCH
 932 DTRACE
 933 FLOCK
 934 TIME
 935 STAT
 936 HG
 937 DOT
 938 READELF
 939 LDD
 940 ZIPEXE
 941 UNZIP
 942 TAR_SUPPORTS_TRANSFORM
 943 TAR_INCLUDE_PARAM
 944 TAR_CREATE_EXTRA_PARAM
 945 TAR_TYPE
 946 FIND_DELETE
 947 OUTPUT_SYNC
 948 OUTPUT_SYNC_SUPPORTED
 949 CHECK_TOOLSDIR_MAKE
 950 CHECK_TOOLSDIR_GMAKE
 951 CHECK_MAKE
 952 CHECK_GMAKE
 953 MAKE
 954 PKGHANDLER
 955 CONFIGURESUPPORT_OUTPUTDIR
 956 OUTPUTDIR
 957 CONF_NAME
 958 SPEC
 959 SDKROOT
 960 XCODEBUILD
 961 DEVKIT_LIB_DIR
 962 JVM_VARIANT_MAIN
 963 VALID_JVM_VARIANTS
 964 JVM_VARIANTS
 965 DEBUG_LEVEL
 966 HOTSPOT_DEBUG_LEVEL
 967 JDK_VARIANT
 968 USERNAME
 969 TOPDIR
 970 PATH_SEP
 971 HOTSPOT_BUILD_CPU_DEFINE
 972 HOTSPOT_BUILD_CPU_ARCH
 973 HOTSPOT_BUILD_CPU
 974 HOTSPOT_BUILD_OS_TYPE
 975 HOTSPOT_BUILD_OS
 976 OPENJDK_BUILD_BUNDLE_PLATFORM
 977 OPENJDK_BUILD_CPU_OSARCH
 978 OPENJDK_BUILD_CPU_ISADIR
 979 OPENJDK_BUILD_CPU_LEGACY_LIB
 980 OPENJDK_BUILD_CPU_LEGACY
 981 HOTSPOT_TARGET_CPU_DEFINE
 982 HOTSPOT_TARGET_CPU_ARCH
 983 HOTSPOT_TARGET_CPU
 984 HOTSPOT_TARGET_OS_TYPE
 985 HOTSPOT_TARGET_OS
 986 DEFINE_CROSS_COMPILE_ARCH
 987 OPENJDK_TARGET_BUNDLE_PLATFORM
 988 OPENJDK_TARGET_CPU_OSARCH
 989 OPENJDK_TARGET_CPU_ISADIR
 990 OPENJDK_TARGET_CPU_LEGACY_LIB
 991 OPENJDK_TARGET_CPU_LEGACY
 992 RELEASE_FILE_OS_ARCH
 993 RELEASE_FILE_OS_NAME
 994 OPENJDK_MODULE_TARGET_PLATFORM
 995 COMPILE_TYPE
 996 OPENJDK_TARGET_CPU_ENDIAN
 997 OPENJDK_TARGET_CPU_BITS
 998 OPENJDK_TARGET_CPU_ARCH
 999 OPENJDK_TARGET_CPU
1000 OPENJDK_TARGET_OS_ENV
1001 OPENJDK_TARGET_OS_TYPE
1002 OPENJDK_TARGET_OS
1003 OPENJDK_BUILD_CPU_ENDIAN
1004 OPENJDK_BUILD_CPU_BITS
1005 OPENJDK_BUILD_CPU_ARCH
1006 OPENJDK_BUILD_CPU
1007 OPENJDK_BUILD_OS_ENV
1008 OPENJDK_BUILD_OS_TYPE
1009 OPENJDK_BUILD_OS
1010 OPENJDK_BUILD_AUTOCONF_NAME
1011 OPENJDK_TARGET_AUTOCONF_NAME
1012 target_os
1013 target_vendor
1014 target_cpu
1015 target
1016 host_os
1017 host_vendor
1018 host_cpu
1019 host
1020 build_os
1021 build_vendor
1022 build_cpu
1023 build
1024 PANDOC
1025 NICE
1026 CPIO
1027 DF
1028 READLINK
1029 CYGPATH
1030 SED
1031 FGREP
1032 EGREP
1033 GREP
1034 AWK
1035 XARGS
1036 WHICH
1037 WC
1038 UNIQ
1039 UNAME
1040 TR
1041 TOUCH
1042 TEE
1043 TAR
1044 TAIL
1045 SORT
1046 SH
1047 RMDIR
1048 RM
1049 PRINTF
1050 NAWK
1051 MV
1052 MKTEMP
1053 MKDIR
1054 LS
1055 LN
1056 GZIP
1057 GUNZIP
1058 HEAD
1059 FIND
1060 FILE
1061 EXPR
1062 ECHO
1063 DIRNAME
1064 DIFF
1065 DATE
1066 CUT
1067 CP
1068 COMM
1069 CMP
1070 CHMOD
1071 CAT
1072 BASH
1073 BASENAME
1074 DATE_WHEN_CONFIGURED
1075 ORIGINAL_PATH
1076 CONFIGURE_COMMAND_LINE
1077 target_alias
1078 host_alias
1079 build_alias
1080 LIBS
1081 ECHO_T
1082 ECHO_N
1083 ECHO_C
1084 DEFS
1085 mandir
1086 localedir
1087 libdir
1088 psdir
1089 pdfdir
1090 dvidir
1091 htmldir
1092 infodir
1093 docdir
1094 oldincludedir
1095 includedir
1096 runstatedir
1097 localstatedir
1098 sharedstatedir
1099 sysconfdir
1100 datadir
1101 datarootdir
1102 libexecdir
1103 sbindir
1104 bindir
1105 program_transform_name
1106 prefix
1107 exec_prefix
1108 PACKAGE_URL
1109 PACKAGE_BUGREPORT
1110 PACKAGE_STRING
1111 PACKAGE_VERSION
1112 PACKAGE_TARNAME
1113 PACKAGE_NAME
1114 PATH_SEPARATOR
1115 SHELL'
1116 ac_subst_files=''
1117 ac_user_opts='
1118 enable_option_checking
1119 with_target_bits
1120 enable_openjdk_only
1121 with_custom_make_dir
1122 with_jdk_variant
1123 enable_debug
1124 with_debug_level
1125 with_jvm_variants
1126 with_cpu_port
1127 with_devkit
1128 with_sys_root
1129 with_sysroot
1130 with_tools_dir
1131 with_toolchain_path
1132 with_extra_path
1133 with_sdk_name
1134 with_conf_name
1135 with_output_sync
1136 with_default_make_target
1137 enable_headless_only
1138 enable_full_docs
1139 with_cacerts_file
1140 enable_unlimited_crypto
1141 with_copyright_year
1142 enable_keep_packaged_modules
1143 with_milestone
1144 with_update_version
1145 with_user_release_suffix
1146 with_build_number
1147 with_version_major
1148 with_version_minor
1149 with_version_security
1150 with_version_string
1151 with_version_pre
1152 with_version_opt
1153 with_version_build
1154 with_version_feature
1155 with_version_interim
1156 with_version_update
1157 with_version_patch
1158 with_version_date
1159 with_vendor_version_string
1160 with_boot_jdk
1161 with_build_jdk
1162 with_import_modules
1163 enable_static_build
1164 with_toolchain_type
1165 with_extra_cflags
1166 with_extra_cxxflags
1167 with_extra_ldflags
1168 with_toolchain_version
1169 with_build_devkit
1170 with_jtreg
1171 with_jib
1172 with_abi_profile
1173 with_macosx_version_max
1174 enable_warnings_as_errors
1175 with_native_debug_symbols
1176 enable_debug_symbols
1177 enable_zip_debug_info
1178 enable_native_coverage
1179 enable_asan
1180 enable_dtrace
1181 enable_aot
1182 enable_cds
1183 enable_hotspot_gtest
1184 with_stdc__lib
1185 with_msvcr_dll
1186 with_msvcp_dll
1187 with_x
1188 with_cups
1189 with_cups_include
1190 with_fontconfig
1191 with_fontconfig_include
1192 with_freetype
1193 with_freetype_include
1194 with_freetype_lib
1195 with_freetype_src
1196 enable_freetype_bundling
1197 with_freetype_license
1198 with_alsa
1199 with_alsa_include
1200 with_alsa_lib
1201 with_libffi
1202 with_libffi_include
1203 with_libffi_lib
1204 enable_libffi_bundling
1205 with_libjpeg
1206 with_giflib
1207 with_libpng
1208 with_zlib
1209 with_lcms
1210 with_dxsdk
1211 with_dxsdk_lib
1212 with_dxsdk_include
1213 with_jvm_features
1214 with_jvm_interpreter
1215 enable_jtreg_failure_handler
1216 enable_generate_classlist
1217 with_num_cores
1218 with_memory_size
1219 with_jobs
1220 with_test_jobs
1221 with_boot_jdk_jvmargs
1222 with_sjavac_server_java
1223 enable_sjavac
1224 enable_javac_server
1225 enable_icecc
1226 enable_precompiled_headers
1227 enable_ccache
1228 with_ccache_dir
1229 '
1230       ac_precious_vars='build_alias
1231 host_alias
1232 target_alias
1233 BASENAME
1234 BASH
1235 CAT
1236 CHMOD
1237 CMP
1238 COMM
1239 CP
1240 CUT
1241 DATE
1242 DIFF
1243 DIRNAME
1244 ECHO
1245 EXPR
1246 FILE
1247 FIND
1248 HEAD
1249 GUNZIP
1250 GZIP
1251 LN
1252 LS
1253 MKDIR
1254 MKTEMP
1255 MV
1256 NAWK
1257 PRINTF
1258 RM
1259 RMDIR
1260 SH
1261 SORT
1262 TAIL
1263 TAR
1264 TEE
1265 TOUCH
1266 TR
1267 UNAME
1268 UNIQ
1269 WC
1270 WHICH
1271 XARGS
1272 AWK
1273 GREP
1274 EGREP
1275 FGREP
1276 SED
1277 CYGPATH
1278 READLINK
1279 DF
1280 CPIO
1281 NICE
1282 PANDOC
1283 MAKE
1284 UNZIP
1285 ZIPEXE
1286 LDD
1287 READELF
1288 DOT
1289 HG
1290 STAT
1291 TIME
1292 FLOCK
1293 DTRACE
1294 PATCH
1295 DSYMUTIL
1296 XATTR
1297 CODESIGN
1298 SETFILE
1299 PKG_CONFIG
1300 JAVA
1301 JAVAC
1302 JAVAH
1303 JAVADOC
1304 JAR
1305 JARSIGNER
1306 CC
1307 CFLAGS
1308 LDFLAGS
1309 LIBS
1310 CPPFLAGS
1311 CXX
1312 CXXFLAGS
1313 CCC
1314 CPP
1315 CXXCPP
1316 AS
1317 AR
1318 LIPO
1319 OTOOL
1320 INSTALL_NAME_TOOL
1321 STRIP
1322 NM
1323 GNM
1324 OBJCOPY
1325 OBJDUMP
1326 BUILD_CC
1327 BUILD_CXX
1328 BUILD_NM
1329 BUILD_AR
1330 BUILD_OBJCOPY
1331 BUILD_STRIP
1332 JTREGEXE
1333 XMKMF
1334 FREETYPE_CFLAGS
1335 FREETYPE_LIBS
1336 ALSA_CFLAGS
1337 ALSA_LIBS
1338 LIBFFI_CFLAGS
1339 LIBFFI_LIBS
1340 PNG_CFLAGS
1341 PNG_LIBS
1342 LCMS_CFLAGS
1343 LCMS_LIBS
1344 ICECC_CMD
1345 ICECC_CREATE_ENV
1346 ICECC_WRAPPER
1347 CCACHE'
1348 
1349 
1350 # Initialize some variables set by options.
1351 ac_init_help=
1352 ac_init_version=false
1353 ac_unrecognized_opts=
1354 ac_unrecognized_sep=
1355 # The variables have the same names as the options, with
1356 # dashes changed to underlines.
1357 cache_file=/dev/null
1358 exec_prefix=NONE
1359 no_create=
1360 no_recursion=
1361 prefix=NONE
1362 program_prefix=NONE
1363 program_suffix=NONE
1364 program_transform_name=s,x,x,
1365 silent=
1366 site=
1367 srcdir=
1368 verbose=
1369 x_includes=NONE
1370 x_libraries=NONE
1371 
1372 # Installation directory options.
1373 # These are left unexpanded so users can "make install exec_prefix=/foo"
1374 # and all the variables that are supposed to be based on exec_prefix
1375 # by default will actually change.
1376 # Use braces instead of parens because sh, perl, etc. also accept them.
1377 # (The list follows the same order as the GNU Coding Standards.)
1378 bindir='${exec_prefix}/bin'
1379 sbindir='${exec_prefix}/sbin'
1380 libexecdir='${exec_prefix}/libexec'
1381 datarootdir='${prefix}/share'
1382 datadir='${datarootdir}'
1383 sysconfdir='${prefix}/etc'
1384 sharedstatedir='${prefix}/com'
1385 localstatedir='${prefix}/var'
1386 runstatedir='${localstatedir}/run'
1387 includedir='${prefix}/include'
1388 oldincludedir='/usr/include'
1389 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1390 infodir='${datarootdir}/info'
1391 htmldir='${docdir}'
1392 dvidir='${docdir}'
1393 pdfdir='${docdir}'
1394 psdir='${docdir}'
1395 libdir='${exec_prefix}/lib'
1396 localedir='${datarootdir}/locale'
1397 mandir='${datarootdir}/man'
1398 
1399 ac_prev=
1400 ac_dashdash=
1401 for ac_option
1402 do
1403   # If the previous option needs an argument, assign it.
1404   if test -n "$ac_prev"; then
1405     eval $ac_prev=\$ac_option
1406     ac_prev=
1407     continue
1408   fi
1409 
1410   case $ac_option in
1411   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1412   *=)   ac_optarg= ;;
1413   *)    ac_optarg=yes ;;
1414   esac
1415 
1416   # Accept the important Cygnus configure options, so we can diagnose typos.
1417 
1418   case $ac_dashdash$ac_option in
1419   --)
1420     ac_dashdash=yes ;;
1421 
1422   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1423     ac_prev=bindir ;;
1424   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1425     bindir=$ac_optarg ;;
1426 
1427   -build | --build | --buil | --bui | --bu)
1428     ac_prev=build_alias ;;
1429   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1430     build_alias=$ac_optarg ;;
1431 
1432   -cache-file | --cache-file | --cache-fil | --cache-fi \
1433   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1434     ac_prev=cache_file ;;
1435   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1436   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1437     cache_file=$ac_optarg ;;
1438 
1439   --config-cache | -C)
1440     cache_file=config.cache ;;
1441 
1442   -datadir | --datadir | --datadi | --datad)
1443     ac_prev=datadir ;;
1444   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1445     datadir=$ac_optarg ;;
1446 
1447   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1448   | --dataroo | --dataro | --datar)
1449     ac_prev=datarootdir ;;
1450   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1451   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1452     datarootdir=$ac_optarg ;;
1453 
1454   -disable-* | --disable-*)
1455     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1456     # Reject names that are not valid shell variable names.
1457     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1458       as_fn_error $? "invalid feature name: $ac_useropt"
1459     ac_useropt_orig=$ac_useropt
1460     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1461     case $ac_user_opts in
1462       *"
1463 "enable_$ac_useropt"
1464 "*) ;;
1465       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1466          ac_unrecognized_sep=', ';;
1467     esac
1468     eval enable_$ac_useropt=no ;;
1469 
1470   -docdir | --docdir | --docdi | --doc | --do)
1471     ac_prev=docdir ;;
1472   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1473     docdir=$ac_optarg ;;
1474 
1475   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1476     ac_prev=dvidir ;;
1477   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1478     dvidir=$ac_optarg ;;
1479 
1480   -enable-* | --enable-*)
1481     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1482     # Reject names that are not valid shell variable names.
1483     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1484       as_fn_error $? "invalid feature name: $ac_useropt"
1485     ac_useropt_orig=$ac_useropt
1486     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1487     case $ac_user_opts in
1488       *"
1489 "enable_$ac_useropt"
1490 "*) ;;
1491       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1492          ac_unrecognized_sep=', ';;
1493     esac
1494     eval enable_$ac_useropt=\$ac_optarg ;;
1495 
1496   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1497   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1498   | --exec | --exe | --ex)
1499     ac_prev=exec_prefix ;;
1500   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1501   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1502   | --exec=* | --exe=* | --ex=*)
1503     exec_prefix=$ac_optarg ;;
1504 
1505   -gas | --gas | --ga | --g)
1506     # Obsolete; use --with-gas.
1507     with_gas=yes ;;
1508 
1509   -help | --help | --hel | --he | -h)
1510     ac_init_help=long ;;
1511   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1512     ac_init_help=recursive ;;
1513   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1514     ac_init_help=short ;;
1515 
1516   -host | --host | --hos | --ho)
1517     ac_prev=host_alias ;;
1518   -host=* | --host=* | --hos=* | --ho=*)
1519     host_alias=$ac_optarg ;;
1520 
1521   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1522     ac_prev=htmldir ;;
1523   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1524   | --ht=*)
1525     htmldir=$ac_optarg ;;
1526 
1527   -includedir | --includedir | --includedi | --included | --include \
1528   | --includ | --inclu | --incl | --inc)
1529     ac_prev=includedir ;;
1530   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1531   | --includ=* | --inclu=* | --incl=* | --inc=*)
1532     includedir=$ac_optarg ;;
1533 
1534   -infodir | --infodir | --infodi | --infod | --info | --inf)
1535     ac_prev=infodir ;;
1536   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1537     infodir=$ac_optarg ;;
1538 
1539   -libdir | --libdir | --libdi | --libd)
1540     ac_prev=libdir ;;
1541   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1542     libdir=$ac_optarg ;;
1543 
1544   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1545   | --libexe | --libex | --libe)
1546     ac_prev=libexecdir ;;
1547   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1548   | --libexe=* | --libex=* | --libe=*)
1549     libexecdir=$ac_optarg ;;
1550 
1551   -localedir | --localedir | --localedi | --localed | --locale)
1552     ac_prev=localedir ;;
1553   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1554     localedir=$ac_optarg ;;
1555 
1556   -localstatedir | --localstatedir | --localstatedi | --localstated \
1557   | --localstate | --localstat | --localsta | --localst | --locals)
1558     ac_prev=localstatedir ;;
1559   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1560   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1561     localstatedir=$ac_optarg ;;
1562 
1563   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1564     ac_prev=mandir ;;
1565   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1566     mandir=$ac_optarg ;;
1567 
1568   -nfp | --nfp | --nf)
1569     # Obsolete; use --without-fp.
1570     with_fp=no ;;
1571 
1572   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1573   | --no-cr | --no-c | -n)
1574     no_create=yes ;;
1575 
1576   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1577   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1578     no_recursion=yes ;;
1579 
1580   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1581   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1582   | --oldin | --oldi | --old | --ol | --o)
1583     ac_prev=oldincludedir ;;
1584   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1585   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1586   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1587     oldincludedir=$ac_optarg ;;
1588 
1589   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1590     ac_prev=prefix ;;
1591   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1592     prefix=$ac_optarg ;;
1593 
1594   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1595   | --program-pre | --program-pr | --program-p)
1596     ac_prev=program_prefix ;;
1597   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1598   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1599     program_prefix=$ac_optarg ;;
1600 
1601   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1602   | --program-suf | --program-su | --program-s)
1603     ac_prev=program_suffix ;;
1604   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1605   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1606     program_suffix=$ac_optarg ;;
1607 
1608   -program-transform-name | --program-transform-name \
1609   | --program-transform-nam | --program-transform-na \
1610   | --program-transform-n | --program-transform- \
1611   | --program-transform | --program-transfor \
1612   | --program-transfo | --program-transf \
1613   | --program-trans | --program-tran \
1614   | --progr-tra | --program-tr | --program-t)
1615     ac_prev=program_transform_name ;;
1616   -program-transform-name=* | --program-transform-name=* \
1617   | --program-transform-nam=* | --program-transform-na=* \
1618   | --program-transform-n=* | --program-transform-=* \
1619   | --program-transform=* | --program-transfor=* \
1620   | --program-transfo=* | --program-transf=* \
1621   | --program-trans=* | --program-tran=* \
1622   | --progr-tra=* | --program-tr=* | --program-t=*)
1623     program_transform_name=$ac_optarg ;;
1624 
1625   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1626     ac_prev=pdfdir ;;
1627   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1628     pdfdir=$ac_optarg ;;
1629 
1630   -psdir | --psdir | --psdi | --psd | --ps)
1631     ac_prev=psdir ;;
1632   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1633     psdir=$ac_optarg ;;
1634 
1635   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1636   | -silent | --silent | --silen | --sile | --sil)
1637     silent=yes ;;
1638 
1639   -runstatedir | --runstatedir | --runstatedi | --runstated \
1640   | --runstate | --runstat | --runsta | --runst | --runs \
1641   | --run | --ru | --r)
1642     ac_prev=runstatedir ;;
1643   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1644   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1645   | --run=* | --ru=* | --r=*)
1646     runstatedir=$ac_optarg ;;
1647 
1648   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1649     ac_prev=sbindir ;;
1650   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1651   | --sbi=* | --sb=*)
1652     sbindir=$ac_optarg ;;
1653 
1654   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1655   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1656   | --sharedst | --shareds | --shared | --share | --shar \
1657   | --sha | --sh)
1658     ac_prev=sharedstatedir ;;
1659   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1660   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1661   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1662   | --sha=* | --sh=*)
1663     sharedstatedir=$ac_optarg ;;
1664 
1665   -site | --site | --sit)
1666     ac_prev=site ;;
1667   -site=* | --site=* | --sit=*)
1668     site=$ac_optarg ;;
1669 
1670   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1671     ac_prev=srcdir ;;
1672   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1673     srcdir=$ac_optarg ;;
1674 
1675   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1676   | --syscon | --sysco | --sysc | --sys | --sy)
1677     ac_prev=sysconfdir ;;
1678   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1679   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1680     sysconfdir=$ac_optarg ;;
1681 
1682   -target | --target | --targe | --targ | --tar | --ta | --t)
1683     ac_prev=target_alias ;;
1684   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1685     target_alias=$ac_optarg ;;
1686 
1687   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1688     verbose=yes ;;
1689 
1690   -version | --version | --versio | --versi | --vers | -V)
1691     ac_init_version=: ;;
1692 
1693   -with-* | --with-*)
1694     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1695     # Reject names that are not valid shell variable names.
1696     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1697       as_fn_error $? "invalid package name: $ac_useropt"
1698     ac_useropt_orig=$ac_useropt
1699     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1700     case $ac_user_opts in
1701       *"
1702 "with_$ac_useropt"
1703 "*) ;;
1704       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1705          ac_unrecognized_sep=', ';;
1706     esac
1707     eval with_$ac_useropt=\$ac_optarg ;;
1708 
1709   -without-* | --without-*)
1710     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1711     # Reject names that are not valid shell variable names.
1712     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1713       as_fn_error $? "invalid package name: $ac_useropt"
1714     ac_useropt_orig=$ac_useropt
1715     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1716     case $ac_user_opts in
1717       *"
1718 "with_$ac_useropt"
1719 "*) ;;
1720       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1721          ac_unrecognized_sep=', ';;
1722     esac
1723     eval with_$ac_useropt=no ;;
1724 
1725   --x)
1726     # Obsolete; use --with-x.
1727     with_x=yes ;;
1728 
1729   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1730   | --x-incl | --x-inc | --x-in | --x-i)
1731     ac_prev=x_includes ;;
1732   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1733   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1734     x_includes=$ac_optarg ;;
1735 
1736   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1737   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1738     ac_prev=x_libraries ;;
1739   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1740   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1741     x_libraries=$ac_optarg ;;
1742 
1743   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1744 Try \`$0 --help' for more information"
1745     ;;
1746 
1747   *=*)
1748     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1749     # Reject names that are not valid shell variable names.
1750     case $ac_envvar in #(
1751       '' | [0-9]* | *[!_$as_cr_alnum]* )
1752       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1753     esac
1754     eval $ac_envvar=\$ac_optarg
1755     export $ac_envvar ;;
1756 
1757   *)
1758     # FIXME: should be removed in autoconf 3.0.
1759     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1760     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1761       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1762     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1763     ;;
1764 
1765   esac
1766 done
1767 
1768 if test -n "$ac_prev"; then
1769   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1770   as_fn_error $? "missing argument to $ac_option"
1771 fi
1772 
1773 if test -n "$ac_unrecognized_opts"; then
1774   case $enable_option_checking in
1775     no) ;;
1776     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1777     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1778   esac
1779 fi
1780 
1781 # Check all directory arguments for consistency.
1782 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1783                 datadir sysconfdir sharedstatedir localstatedir includedir \
1784                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1785                 libdir localedir mandir runstatedir
1786 do
1787   eval ac_val=\$$ac_var
1788   # Remove trailing slashes.
1789   case $ac_val in
1790     */ )
1791       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1792       eval $ac_var=\$ac_val;;
1793   esac
1794   # Be sure to have absolute directory names.
1795   case $ac_val in
1796     [\\/$]* | ?:[\\/]* )  continue;;
1797     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1798   esac
1799   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1800 done
1801 
1802 # There might be people who depend on the old broken behavior: `$host'
1803 # used to hold the argument of --host etc.
1804 # FIXME: To remove some day.
1805 build=$build_alias
1806 host=$host_alias
1807 target=$target_alias
1808 
1809 # FIXME: To remove some day.
1810 if test "x$host_alias" != x; then
1811   if test "x$build_alias" = x; then
1812     cross_compiling=maybe
1813   elif test "x$build_alias" != "x$host_alias"; then
1814     cross_compiling=yes
1815   fi
1816 fi
1817 
1818 ac_tool_prefix=
1819 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1820 
1821 test "$silent" = yes && exec 6>/dev/null
1822 
1823 
1824 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1825 ac_ls_di=`ls -di .` &&
1826 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1827   as_fn_error $? "working directory cannot be determined"
1828 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1829   as_fn_error $? "pwd does not report name of working directory"
1830 
1831 
1832 # Find the source files, if location was not specified.
1833 if test -z "$srcdir"; then
1834   ac_srcdir_defaulted=yes
1835   # Try the directory containing this script, then the parent directory.
1836   ac_confdir=`$as_dirname -- "$as_myself" ||
1837 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1838          X"$as_myself" : 'X\(//\)[^/]' \| \
1839          X"$as_myself" : 'X\(//\)$' \| \
1840          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1841 $as_echo X"$as_myself" |
1842     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1843             s//\1/
1844             q
1845           }
1846           /^X\(\/\/\)[^/].*/{
1847             s//\1/
1848             q
1849           }
1850           /^X\(\/\/\)$/{
1851             s//\1/
1852             q
1853           }
1854           /^X\(\/\).*/{
1855             s//\1/
1856             q
1857           }
1858           s/.*/./; q'`
1859   srcdir=$ac_confdir
1860   if test ! -r "$srcdir/$ac_unique_file"; then
1861     srcdir=..
1862   fi
1863 else
1864   ac_srcdir_defaulted=no
1865 fi
1866 if test ! -r "$srcdir/$ac_unique_file"; then
1867   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1868   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1869 fi
1870 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1871 ac_abs_confdir=`(
1872         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1873         pwd)`
1874 # When building in place, set srcdir=.
1875 if test "$ac_abs_confdir" = "$ac_pwd"; then
1876   srcdir=.
1877 fi
1878 # Remove unnecessary trailing slashes from srcdir.
1879 # Double slashes in file names in object file debugging info
1880 # mess up M-x gdb in Emacs.
1881 case $srcdir in
1882 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1883 esac
1884 for ac_var in $ac_precious_vars; do
1885   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1886   eval ac_env_${ac_var}_value=\$${ac_var}
1887   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1888   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1889 done
1890 
1891 #
1892 # Report the --help message.
1893 #
1894 if test "$ac_init_help" = "long"; then
1895   # Omit some internal or obsolete options to make the list less imposing.
1896   # This message is too long to be a string in the A/UX 3.1 sh.
1897   cat <<_ACEOF
1898 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1899 
1900 Usage: $0 [OPTION]... [VAR=VALUE]...
1901 
1902 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1903 VAR=VALUE.  See below for descriptions of some of the useful variables.
1904 
1905 Defaults for the options are specified in brackets.
1906 
1907 Configuration:
1908   -h, --help              display this help and exit
1909       --help=short        display options specific to this package
1910       --help=recursive    display the short help of all the included packages
1911   -V, --version           display version information and exit
1912   -q, --quiet, --silent   do not print \`checking ...' messages
1913       --cache-file=FILE   cache test results in FILE [disabled]
1914   -C, --config-cache      alias for \`--cache-file=config.cache'
1915   -n, --no-create         do not create output files
1916       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1917 
1918 Installation directories:
1919   --prefix=PREFIX         install architecture-independent files in PREFIX
1920                           [$ac_default_prefix]
1921   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1922                           [PREFIX]
1923 
1924 By default, \`make install' will install all the files in
1925 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1926 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1927 for instance \`--prefix=\$HOME'.
1928 
1929 For better control, use the options below.
1930 
1931 Fine tuning of the installation directories:
1932   --bindir=DIR            user executables [EPREFIX/bin]
1933   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1934   --libexecdir=DIR        program executables [EPREFIX/libexec]
1935   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1936   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1937   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1938   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1939   --libdir=DIR            object code libraries [EPREFIX/lib]
1940   --includedir=DIR        C header files [PREFIX/include]
1941   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1942   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1943   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1944   --infodir=DIR           info documentation [DATAROOTDIR/info]
1945   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1946   --mandir=DIR            man documentation [DATAROOTDIR/man]
1947   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1948   --htmldir=DIR           html documentation [DOCDIR]
1949   --dvidir=DIR            dvi documentation [DOCDIR]
1950   --pdfdir=DIR            pdf documentation [DOCDIR]
1951   --psdir=DIR             ps documentation [DOCDIR]
1952 _ACEOF
1953 
1954   cat <<\_ACEOF
1955 
1956 X features:
1957   --x-includes=DIR    X include files are in DIR
1958   --x-libraries=DIR   X library files are in DIR
1959 
1960 System types:
1961   --build=BUILD     configure for building on BUILD [guessed]
1962   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1963   --target=TARGET   configure for building compilers for TARGET [HOST]
1964 _ACEOF
1965 fi
1966 
1967 if test -n "$ac_init_help"; then
1968   case $ac_init_help in
1969      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1970    esac
1971   cat <<\_ACEOF
1972 
1973 Optional Features:
1974   --disable-option-checking  ignore unrecognized --enable/--with options
1975   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1976   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1977   --enable-openjdk-only   suppress building custom source even if present
1978                           [disabled]
1979   --enable-debug          set the debug level to fastdebug (shorthand for
1980                           --with-debug-level=fastdebug) [disabled]
1981   --enable-headless-only  only build headless (no GUI) support [disabled]
1982   --enable-full-docs      build complete documentation [enabled if all tools
1983                           found]
1984   --disable-unlimited-crypto
1985                           Disable unlimited crypto policy [enabled]
1986   --disable-keep-packaged-modules
1987                           Do not keep packaged modules in jdk image [enable]
1988   --enable-static-build   enable static library build [disabled]
1989   --disable-warnings-as-errors
1990                           do not consider native warnings to be an error
1991                           [enabled]
1992   --enable-debug-symbols  Deprecated. Option is kept for backwards
1993                           compatibility and is ignored
1994   --enable-zip-debug-info Deprecated. Option is kept for backwards
1995                           compatibility and is ignored
1996   --enable-native-coverage
1997                           enable native compilation with code coverage
1998                           data[disabled]
1999   --enable-asan           enable AddressSanitizer if possible [disabled]
2000   --enable-dtrace[=yes/no/auto]
2001                           enable dtrace. Default is auto, where dtrace is
2002                           enabled if all dependencies are present.
2003   --enable-aot[=yes/no/auto]
2004                           enable ahead of time compilation feature. Default is
2005                           auto, where aot is enabled if all dependencies are
2006                           present.
2007   --enable-cds[=yes/no]   enable class data sharing feature in non-minimal VM.
2008                           Default is yes.
2009   --disable-hotspot-gtest Disables building of the Hotspot unit tests
2010                           [enabled]
2011   --disable-freetype-bundling
2012                           disable bundling of the freetype library with the
2013                           build result [enabled on Windows or when using
2014                           --with-freetype, disabled otherwise]
2015   --enable-libffi-bundling
2016                           enable bundling of libffi.so to make the built JDK
2017                           runnable on more systems
2018   --enable-jtreg-failure-handler
2019                           forces build of the jtreg failure handler to be
2020                           enabled, missing dependencies become fatal errors.
2021                           Default is auto, where the failure handler is built
2022                           if all dependencies are present and otherwise just
2023                           disabled.
2024   --disable-generate-classlist
2025                           forces enabling or disabling of the generation of a
2026                           CDS classlist at build time. Default is to generate
2027                           it when either the server or client JVMs are built
2028                           and enable-cds is true.
2029   --enable-sjavac         use sjavac to do fast incremental compiles
2030                           [disabled]
2031   --disable-javac-server  disable javac server [enabled]
2032   --enable-icecc          enable distribted compilation of native code using
2033                           icecc/icecream [disabled]
2034   --disable-precompiled-headers
2035                           disable using precompiled headers when compiling C++
2036                           [enabled]
2037   --enable-ccache         enable using ccache to speed up recompilations
2038                           [disabled]
2039 
2040 Optional Packages:
2041   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2042   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2043   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
2044                           support it), e.g. --with-target-bits=32 [guessed]
2045   --with-custom-make-dir  Deprecated. Option is kept for backwards
2046                           compatibility and is ignored
2047   --with-jdk-variant      JDK variant to build (normal) [normal]
2048   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2049                           optimized) [release]
2050   --with-jvm-variants     JVM variants (separated by commas) to build
2051                           (server,client,minimal,core,zero,custom) [server]
2052   --with-cpu-port         specify sources to use for Hotspot 64-bit ARM port
2053                           (arm64,aarch64) [aarch64]
2054   --with-devkit           use this devkit for compilers, tools and resources
2055   --with-sys-root         alias for --with-sysroot for backwards compatability
2056   --with-sysroot          use this directory as sysroot
2057   --with-tools-dir        alias for --with-toolchain-path for backwards
2058                           compatibility
2059   --with-toolchain-path   prepend these directories when searching for
2060                           toolchain binaries (compilers etc)
2061   --with-extra-path       prepend these directories to the default path
2062   --with-sdk-name         use the platform SDK of the given name. [macosx]
2063   --with-conf-name        use this as the name of the configuration [generated
2064                           from important configuration options]
2065   --with-output-sync      set make output sync type if supported by make.
2066                           [recurse]
2067   --with-default-make-target
2068                           set the default make target [exploded-image]
2069   --with-cacerts-file     specify alternative cacerts file
2070   --with-copyright-year   Set copyright year value for build [current year]
2071   --with-milestone        Deprecated. Option is kept for backwards
2072                           compatibility and is ignored
2073   --with-update-version   Deprecated. Option is kept for backwards
2074                           compatibility and is ignored
2075   --with-user-release-suffix
2076                           Deprecated. Option is kept for backwards
2077                           compatibility and is ignored
2078   --with-build-number     Deprecated. Option is kept for backwards
2079                           compatibility and is ignored
2080   --with-version-major    Deprecated. Option is kept for backwards
2081                           compatibility and is ignored
2082   --with-version-minor    Deprecated. Option is kept for backwards
2083                           compatibility and is ignored
2084   --with-version-security Deprecated. Option is kept for backwards
2085                           compatibility and is ignored
2086   --with-version-string   Set version string [calculated]
2087   --with-version-pre      Set the base part of the version 'PRE' field
2088                           (pre-release identifier) ['internal']
2089   --with-version-opt      Set version 'OPT' field (build metadata)
2090                           [<timestamp>.<user>.<dirname>]
2091   --with-version-build    Set version 'BUILD' field (build number) [not
2092                           specified]
2093   --with-version-feature  Set version 'FEATURE' field (first number) [current
2094                           source value]
2095   --with-version-interim  Set version 'INTERIM' field (second number) [current
2096                           source value]
2097   --with-version-update   Set version 'UPDATE' field (third number) [current
2098                           source value]
2099   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2100                           specified]
2101   --with-version-date     Set version date [current source value]
2102   --with-vendor-version-string
2103                           Set vendor version string [not specified]
2104   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2105   --with-build-jdk        path to JDK of same version as is being built[the
2106                           newly built JDK]
2107   --with-import-modules   import a set of prebuilt modules either as a zip
2108                           file or an exploded directory
2109   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2110                           to show possible values [platform dependent]
2111   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2112   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2113   --with-extra-ldflags    extra flags to be used when linking jdk
2114   --with-toolchain-version
2115                           the version of the toolchain to look for, use
2116                           '--help' to show possible values [platform
2117                           dependent]
2118   --with-build-devkit     Devkit to use for the build platform toolchain
2119   --with-jtreg            Regression Test Harness [probed]
2120   --with-jib              Jib dependency management tool [not used]
2121   --with-abi-profile      specify ABI profile for ARM builds
2122                           (arm-vfp-sflt,arm-vfp-hflt,arm-sflt,
2123                           armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64)
2124                           [toolchain dependent]
2125   --with-macosx-version-max
2126                           error on use of newer functionality. [macosx]
2127   --with-native-debug-symbols
2128                           set the native debug symbol configuration (none,
2129                           internal, external, zipped) [varying]
2130   --with-stdc++lib=<static>,<dynamic>,<default>
2131                           force linking of the C++ runtime on Linux to either
2132                           static or dynamic, default is static with dynamic as
2133                           fallback
2134   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2135                           (Windows only) [probed]
2136   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2137                           (Windows only) [probed]
2138   --with-x                use the X Window System
2139   --with-cups             specify prefix directory for the cups package
2140                           (expecting the headers under PATH/include)
2141   --with-cups-include     specify directory for the cups include files
2142   --with-fontconfig       specify prefix directory for the fontconfig package
2143                           (expecting the headers under PATH/include)
2144   --with-fontconfig-include
2145                           specify directory for the fontconfig include files
2146   --with-freetype         specify prefix directory for the freetype package
2147                           (expecting the libraries under PATH/lib and the
2148                           headers under PATH/include)
2149   --with-freetype-include specify directory for the freetype include files
2150   --with-freetype-lib     specify directory for the freetype library
2151   --with-freetype-src     specify directory with freetype sources to
2152                           automatically build the library (experimental,
2153                           Windows-only)
2154   --with-freetype-license if bundling freetype, also bundle this license file
2155   --with-alsa             specify prefix directory for the alsa package
2156                           (expecting the libraries under PATH/lib and the
2157                           headers under PATH/include)
2158   --with-alsa-include     specify directory for the alsa include files
2159   --with-alsa-lib         specify directory for the alsa library
2160   --with-libffi           specify prefix directory for the libffi package
2161                           (expecting the libraries under PATH/lib and the
2162                           headers under PATH/include)
2163   --with-libffi-include   specify directory for the libffi include files
2164   --with-libffi-lib       specify directory for the libffi library
2165   --with-libjpeg          use libjpeg from build system or OpenJDK source
2166                           (system, bundled) [bundled]
2167   --with-giflib           use giflib from build system or OpenJDK source
2168                           (system, bundled) [bundled]
2169   --with-libpng           use libpng from build system or OpenJDK source
2170                           (system, bundled) [bundled]
2171   --with-zlib             use zlib from build system or OpenJDK source
2172                           (system, bundled) [bundled]
2173   --with-lcms             use lcms2 from build system or OpenJDK source
2174                           (system, bundled) [bundled]
2175   --with-dxsdk            Deprecated. Option is kept for backwards
2176                           compatibility and is ignored
2177   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2178                           compatibility and is ignored
2179   --with-dxsdk-include    Deprecated. Option is kept for backwards
2180                           compatibility and is ignored
2181   --with-jvm-features     additional JVM features to enable (separated by
2182                           comma), use '--help' to show possible values [none]
2183   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2184                           compatibility and is ignored
2185   --with-num-cores        number of cores in the build system, e.g.
2186                           --with-num-cores=8 [probed]
2187   --with-memory-size      memory (in MB) available in the build system, e.g.
2188                           --with-memory-size=1024 [probed]
2189   --with-jobs             number of parallel jobs to let make run [calculated
2190                           based on cores and memory]
2191   --with-test-jobs        number of parallel tests jobs to run [based on build
2192                           jobs]
2193   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2194                           invocations of boot JDK, overriding the default
2195                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2196                           -enableassertions"
2197   --with-sjavac-server-java
2198                           use this java binary for running the sjavac
2199                           background server [Boot JDK java]
2200   --with-ccache-dir       where to store ccache files [~/.ccache]
2201 
2202 Some influential environment variables:
2203   BASENAME    Override default value for BASENAME
2204   BASH        Override default value for BASH
2205   CAT         Override default value for CAT
2206   CHMOD       Override default value for CHMOD
2207   CMP         Override default value for CMP
2208   COMM        Override default value for COMM
2209   CP          Override default value for CP
2210   CUT         Override default value for CUT
2211   DATE        Override default value for DATE
2212   DIFF        Override default value for DIFF
2213   DIRNAME     Override default value for DIRNAME
2214   ECHO        Override default value for ECHO
2215   EXPR        Override default value for EXPR
2216   FILE        Override default value for FILE
2217   FIND        Override default value for FIND
2218   HEAD        Override default value for HEAD
2219   GUNZIP      Override default value for GUNZIP
2220   GZIP        Override default value for GZIP
2221   LN          Override default value for LN
2222   LS          Override default value for LS
2223   MKDIR       Override default value for MKDIR
2224   MKTEMP      Override default value for MKTEMP
2225   MV          Override default value for MV
2226   NAWK        Override default value for NAWK
2227   PRINTF      Override default value for PRINTF
2228   RM          Override default value for RM
2229   RMDIR       Override default value for RMDIR
2230   SH          Override default value for SH
2231   SORT        Override default value for SORT
2232   TAIL        Override default value for TAIL
2233   TAR         Override default value for TAR
2234   TEE         Override default value for TEE
2235   TOUCH       Override default value for TOUCH
2236   TR          Override default value for TR
2237   UNAME       Override default value for UNAME
2238   UNIQ        Override default value for UNIQ
2239   WC          Override default value for WC
2240   WHICH       Override default value for WHICH
2241   XARGS       Override default value for XARGS
2242   AWK         Override default value for AWK
2243   GREP        Override default value for GREP
2244   EGREP       Override default value for EGREP
2245   FGREP       Override default value for FGREP
2246   SED         Override default value for SED
2247   CYGPATH     Override default value for CYGPATH
2248   READLINK    Override default value for READLINK
2249   DF          Override default value for DF
2250   CPIO        Override default value for CPIO
2251   NICE        Override default value for NICE
2252   PANDOC      Override default value for PANDOC
2253   MAKE        Override default value for MAKE
2254   UNZIP       Override default value for UNZIP
2255   ZIPEXE      Override default value for ZIPEXE
2256   LDD         Override default value for LDD
2257   READELF     Override default value for READELF
2258   DOT         Override default value for DOT
2259   HG          Override default value for HG
2260   STAT        Override default value for STAT
2261   TIME        Override default value for TIME
2262   FLOCK       Override default value for FLOCK
2263   DTRACE      Override default value for DTRACE
2264   PATCH       Override default value for PATCH
2265   DSYMUTIL    Override default value for DSYMUTIL
2266   XATTR       Override default value for XATTR
2267   CODESIGN    Override default value for CODESIGN
2268   SETFILE     Override default value for SETFILE
2269   PKG_CONFIG  path to pkg-config utility
2270   JAVA        Override default value for JAVA
2271   JAVAC       Override default value for JAVAC
2272   JAVAH       Override default value for JAVAH
2273   JAVADOC     Override default value for JAVADOC
2274   JAR         Override default value for JAR
2275   JARSIGNER   Override default value for JARSIGNER
2276   CC          C compiler command
2277   CFLAGS      C compiler flags
2278   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2279               nonstandard directory <lib dir>
2280   LIBS        libraries to pass to the linker, e.g. -l<library>
2281   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2282               you have headers in a nonstandard directory <include dir>
2283   CXX         C++ compiler command
2284   CXXFLAGS    C++ compiler flags
2285   CPP         C preprocessor
2286   CXXCPP      C++ preprocessor
2287   AS          Override default value for AS
2288   AR          Override default value for AR
2289   LIPO        Override default value for LIPO
2290   OTOOL       Override default value for OTOOL
2291   INSTALL_NAME_TOOL
2292               Override default value for INSTALL_NAME_TOOL
2293   STRIP       Override default value for STRIP
2294   NM          Override default value for NM
2295   GNM         Override default value for GNM
2296   OBJCOPY     Override default value for OBJCOPY
2297   OBJDUMP     Override default value for OBJDUMP
2298   BUILD_CC    Override default value for BUILD_CC
2299   BUILD_CXX   Override default value for BUILD_CXX
2300   BUILD_NM    Override default value for BUILD_NM
2301   BUILD_AR    Override default value for BUILD_AR
2302   BUILD_OBJCOPY
2303               Override default value for BUILD_OBJCOPY
2304   BUILD_STRIP Override default value for BUILD_STRIP
2305   JTREGEXE    Override default value for JTREGEXE
2306   XMKMF       Path to xmkmf, Makefile generator for X Window System
2307   FREETYPE_CFLAGS
2308               C compiler flags for FREETYPE, overriding pkg-config
2309   FREETYPE_LIBS
2310               linker flags for FREETYPE, overriding pkg-config
2311   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2312   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2313   LIBFFI_CFLAGS
2314               C compiler flags for LIBFFI, overriding pkg-config
2315   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2316   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2317   PNG_LIBS    linker flags for PNG, overriding pkg-config
2318   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2319   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2320   ICECC_CMD   Override default value for ICECC_CMD
2321   ICECC_CREATE_ENV
2322               Override default value for ICECC_CREATE_ENV
2323   ICECC_WRAPPER
2324               Override default value for ICECC_WRAPPER
2325   CCACHE      Override default value for CCACHE
2326 
2327 Use these variables to override the choices made by `configure' or to help
2328 it to find libraries and programs with nonstandard names/locations.
2329 
2330 Report bugs to <build-dev@openjdk.java.net>.
2331 OpenJDK home page: <http://openjdk.java.net>.
2332 _ACEOF
2333 ac_status=$?
2334 fi
2335 
2336 if test "$ac_init_help" = "recursive"; then
2337   # If there are subdirs, report their specific --help.
2338   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2339     test -d "$ac_dir" ||
2340       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2341       continue
2342     ac_builddir=.
2343 
2344 case "$ac_dir" in
2345 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2346 *)
2347   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2348   # A ".." for each directory in $ac_dir_suffix.
2349   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2350   case $ac_top_builddir_sub in
2351   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2352   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2353   esac ;;
2354 esac
2355 ac_abs_top_builddir=$ac_pwd
2356 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2357 # for backward compatibility:
2358 ac_top_builddir=$ac_top_build_prefix
2359 
2360 case $srcdir in
2361   .)  # We are building in place.
2362     ac_srcdir=.
2363     ac_top_srcdir=$ac_top_builddir_sub
2364     ac_abs_top_srcdir=$ac_pwd ;;
2365   [\\/]* | ?:[\\/]* )  # Absolute name.
2366     ac_srcdir=$srcdir$ac_dir_suffix;
2367     ac_top_srcdir=$srcdir
2368     ac_abs_top_srcdir=$srcdir ;;
2369   *) # Relative name.
2370     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2371     ac_top_srcdir=$ac_top_build_prefix$srcdir
2372     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2373 esac
2374 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2375 
2376     cd "$ac_dir" || { ac_status=$?; continue; }
2377     # Check for guested configure.
2378     if test -f "$ac_srcdir/configure.gnu"; then
2379       echo &&
2380       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2381     elif test -f "$ac_srcdir/configure"; then
2382       echo &&
2383       $SHELL "$ac_srcdir/configure" --help=recursive
2384     else
2385       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2386     fi || ac_status=$?
2387     cd "$ac_pwd" || { ac_status=$?; break; }
2388   done
2389 fi
2390 
2391 test -n "$ac_init_help" && exit $ac_status
2392 if $ac_init_version; then
2393   cat <<\_ACEOF
2394 OpenJDK configure jdk9
2395 generated by GNU Autoconf 2.69
2396 
2397 Copyright (C) 2012 Free Software Foundation, Inc.
2398 This configure script is free software; the Free Software Foundation
2399 gives unlimited permission to copy, distribute and modify it.
2400 _ACEOF
2401   exit
2402 fi
2403 
2404 ## ------------------------ ##
2405 ## Autoconf initialization. ##
2406 ## ------------------------ ##
2407 
2408 # ac_fn_c_try_compile LINENO
2409 # --------------------------
2410 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2411 ac_fn_c_try_compile ()
2412 {
2413   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414   rm -f conftest.$ac_objext
2415   if { { ac_try="$ac_compile"
2416 case "(($ac_try" in
2417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418   *) ac_try_echo=$ac_try;;
2419 esac
2420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2421 $as_echo "$ac_try_echo"; } >&5
2422   (eval "$ac_compile") 2>conftest.err
2423   ac_status=$?
2424   if test -s conftest.err; then
2425     grep -v '^ *+' conftest.err >conftest.er1
2426     cat conftest.er1 >&5
2427     mv -f conftest.er1 conftest.err
2428   fi
2429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2430   test $ac_status = 0; } && {
2431          test -z "$ac_c_werror_flag" ||
2432          test ! -s conftest.err
2433        } && test -s conftest.$ac_objext; then :
2434   ac_retval=0
2435 else
2436   $as_echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2438 
2439         ac_retval=1
2440 fi
2441   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2442   as_fn_set_status $ac_retval
2443 
2444 } # ac_fn_c_try_compile
2445 
2446 # ac_fn_cxx_try_compile LINENO
2447 # ----------------------------
2448 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2449 ac_fn_cxx_try_compile ()
2450 {
2451   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452   rm -f conftest.$ac_objext
2453   if { { ac_try="$ac_compile"
2454 case "(($ac_try" in
2455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456   *) ac_try_echo=$ac_try;;
2457 esac
2458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2459 $as_echo "$ac_try_echo"; } >&5
2460   (eval "$ac_compile") 2>conftest.err
2461   ac_status=$?
2462   if test -s conftest.err; then
2463     grep -v '^ *+' conftest.err >conftest.er1
2464     cat conftest.er1 >&5
2465     mv -f conftest.er1 conftest.err
2466   fi
2467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2468   test $ac_status = 0; } && {
2469          test -z "$ac_cxx_werror_flag" ||
2470          test ! -s conftest.err
2471        } && test -s conftest.$ac_objext; then :
2472   ac_retval=0
2473 else
2474   $as_echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2476 
2477         ac_retval=1
2478 fi
2479   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2480   as_fn_set_status $ac_retval
2481 
2482 } # ac_fn_cxx_try_compile
2483 
2484 # ac_fn_c_try_cpp LINENO
2485 # ----------------------
2486 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2487 ac_fn_c_try_cpp ()
2488 {
2489   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2490   if { { ac_try="$ac_cpp conftest.$ac_ext"
2491 case "(($ac_try" in
2492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493   *) ac_try_echo=$ac_try;;
2494 esac
2495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2496 $as_echo "$ac_try_echo"; } >&5
2497   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2498   ac_status=$?
2499   if test -s conftest.err; then
2500     grep -v '^ *+' conftest.err >conftest.er1
2501     cat conftest.er1 >&5
2502     mv -f conftest.er1 conftest.err
2503   fi
2504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2505   test $ac_status = 0; } > conftest.i && {
2506          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2507          test ! -s conftest.err
2508        }; then :
2509   ac_retval=0
2510 else
2511   $as_echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2513 
2514     ac_retval=1
2515 fi
2516   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2517   as_fn_set_status $ac_retval
2518 
2519 } # ac_fn_c_try_cpp
2520 
2521 # ac_fn_cxx_try_cpp LINENO
2522 # ------------------------
2523 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2524 ac_fn_cxx_try_cpp ()
2525 {
2526   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2527   if { { ac_try="$ac_cpp conftest.$ac_ext"
2528 case "(($ac_try" in
2529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530   *) ac_try_echo=$ac_try;;
2531 esac
2532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2533 $as_echo "$ac_try_echo"; } >&5
2534   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2535   ac_status=$?
2536   if test -s conftest.err; then
2537     grep -v '^ *+' conftest.err >conftest.er1
2538     cat conftest.er1 >&5
2539     mv -f conftest.er1 conftest.err
2540   fi
2541   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2542   test $ac_status = 0; } > conftest.i && {
2543          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2544          test ! -s conftest.err
2545        }; then :
2546   ac_retval=0
2547 else
2548   $as_echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550 
2551     ac_retval=1
2552 fi
2553   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2554   as_fn_set_status $ac_retval
2555 
2556 } # ac_fn_cxx_try_cpp
2557 
2558 # ac_fn_c_try_link LINENO
2559 # -----------------------
2560 # Try to link conftest.$ac_ext, and return whether this succeeded.
2561 ac_fn_c_try_link ()
2562 {
2563   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2564   rm -f conftest.$ac_objext conftest$ac_exeext
2565   if { { ac_try="$ac_link"
2566 case "(($ac_try" in
2567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568   *) ac_try_echo=$ac_try;;
2569 esac
2570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2571 $as_echo "$ac_try_echo"; } >&5
2572   (eval "$ac_link") 2>conftest.err
2573   ac_status=$?
2574   if test -s conftest.err; then
2575     grep -v '^ *+' conftest.err >conftest.er1
2576     cat conftest.er1 >&5
2577     mv -f conftest.er1 conftest.err
2578   fi
2579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2580   test $ac_status = 0; } && {
2581          test -z "$ac_c_werror_flag" ||
2582          test ! -s conftest.err
2583        } && test -s conftest$ac_exeext && {
2584          test "$cross_compiling" = yes ||
2585          test -x conftest$ac_exeext
2586        }; then :
2587   ac_retval=0
2588 else
2589   $as_echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591 
2592         ac_retval=1
2593 fi
2594   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2595   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2596   # interfere with the next link command; also delete a directory that is
2597   # left behind by Apple's compiler.  We do this before executing the actions.
2598   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2599   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2600   as_fn_set_status $ac_retval
2601 
2602 } # ac_fn_c_try_link
2603 
2604 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2605 # ---------------------------------------------------------
2606 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2607 # the include files in INCLUDES and setting the cache variable VAR
2608 # accordingly.
2609 ac_fn_cxx_check_header_mongrel ()
2610 {
2611   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2612   if eval \${$3+:} false; then :
2613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2614 $as_echo_n "checking for $2... " >&6; }
2615 if eval \${$3+:} false; then :
2616   $as_echo_n "(cached) " >&6
2617 fi
2618 eval ac_res=\$$3
2619                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2620 $as_echo "$ac_res" >&6; }
2621 else
2622   # Is the header compilable?
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2624 $as_echo_n "checking $2 usability... " >&6; }
2625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626 /* end confdefs.h.  */
2627 $4
2628 #include <$2>
2629 _ACEOF
2630 if ac_fn_cxx_try_compile "$LINENO"; then :
2631   ac_header_compiler=yes
2632 else
2633   ac_header_compiler=no
2634 fi
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2637 $as_echo "$ac_header_compiler" >&6; }
2638 
2639 # Is the header present?
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2641 $as_echo_n "checking $2 presence... " >&6; }
2642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2643 /* end confdefs.h.  */
2644 #include <$2>
2645 _ACEOF
2646 if ac_fn_cxx_try_cpp "$LINENO"; then :
2647   ac_header_preproc=yes
2648 else
2649   ac_header_preproc=no
2650 fi
2651 rm -f conftest.err conftest.i conftest.$ac_ext
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2653 $as_echo "$ac_header_preproc" >&6; }
2654 
2655 # So?  What about this header?
2656 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2657   yes:no: )
2658     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2659 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2660     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2661 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2662     ;;
2663   no:yes:* )
2664     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2665 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2666     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2667 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2668     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2669 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2670     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2671 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2672     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2674 ( $as_echo "## ----------------------------------------- ##
2675 ## Report this to build-dev@openjdk.java.net ##
2676 ## ----------------------------------------- ##"
2677      ) | sed "s/^/$as_me: WARNING:     /" >&2
2678     ;;
2679 esac
2680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2681 $as_echo_n "checking for $2... " >&6; }
2682 if eval \${$3+:} false; then :
2683   $as_echo_n "(cached) " >&6
2684 else
2685   eval "$3=\$ac_header_compiler"
2686 fi
2687 eval ac_res=\$$3
2688                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2689 $as_echo "$ac_res" >&6; }
2690 fi
2691   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2692 
2693 } # ac_fn_cxx_check_header_mongrel
2694 
2695 # ac_fn_cxx_try_run LINENO
2696 # ------------------------
2697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2698 # that executables *can* be run.
2699 ac_fn_cxx_try_run ()
2700 {
2701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2702   if { { ac_try="$ac_link"
2703 case "(($ac_try" in
2704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705   *) ac_try_echo=$ac_try;;
2706 esac
2707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2708 $as_echo "$ac_try_echo"; } >&5
2709   (eval "$ac_link") 2>&5
2710   ac_status=$?
2711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2712   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2713   { { case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2718 $as_echo "$ac_try_echo"; } >&5
2719   (eval "$ac_try") 2>&5
2720   ac_status=$?
2721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2722   test $ac_status = 0; }; }; then :
2723   ac_retval=0
2724 else
2725   $as_echo "$as_me: program exited with status $ac_status" >&5
2726        $as_echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2728 
2729        ac_retval=$ac_status
2730 fi
2731   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2732   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2733   as_fn_set_status $ac_retval
2734 
2735 } # ac_fn_cxx_try_run
2736 
2737 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2738 # ---------------------------------------------------------
2739 # Tests whether HEADER exists and can be compiled using the include files in
2740 # INCLUDES, setting the cache variable VAR accordingly.
2741 ac_fn_cxx_check_header_compile ()
2742 {
2743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2745 $as_echo_n "checking for $2... " >&6; }
2746 if eval \${$3+:} false; then :
2747   $as_echo_n "(cached) " >&6
2748 else
2749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h.  */
2751 $4
2752 #include <$2>
2753 _ACEOF
2754 if ac_fn_cxx_try_compile "$LINENO"; then :
2755   eval "$3=yes"
2756 else
2757   eval "$3=no"
2758 fi
2759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760 fi
2761 eval ac_res=\$$3
2762                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2763 $as_echo "$ac_res" >&6; }
2764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2765 
2766 } # ac_fn_cxx_check_header_compile
2767 
2768 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2769 # ----------------------------------------------
2770 # Tries to find the compile-time value of EXPR in a program that includes
2771 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2772 # computed
2773 ac_fn_cxx_compute_int ()
2774 {
2775   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2776   if test "$cross_compiling" = yes; then
2777     # Depending upon the size, compute the lo and hi bounds.
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h.  */
2780 $4
2781 int
2782 main ()
2783 {
2784 static int test_array [1 - 2 * !(($2) >= 0)];
2785 test_array [0] = 0;
2786 return test_array [0];
2787 
2788   ;
2789   return 0;
2790 }
2791 _ACEOF
2792 if ac_fn_cxx_try_compile "$LINENO"; then :
2793   ac_lo=0 ac_mid=0
2794   while :; do
2795     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796 /* end confdefs.h.  */
2797 $4
2798 int
2799 main ()
2800 {
2801 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2802 test_array [0] = 0;
2803 return test_array [0];
2804 
2805   ;
2806   return 0;
2807 }
2808 _ACEOF
2809 if ac_fn_cxx_try_compile "$LINENO"; then :
2810   ac_hi=$ac_mid; break
2811 else
2812   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2813                         if test $ac_lo -le $ac_mid; then
2814                           ac_lo= ac_hi=
2815                           break
2816                         fi
2817                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2818 fi
2819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2820   done
2821 else
2822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823 /* end confdefs.h.  */
2824 $4
2825 int
2826 main ()
2827 {
2828 static int test_array [1 - 2 * !(($2) < 0)];
2829 test_array [0] = 0;
2830 return test_array [0];
2831 
2832   ;
2833   return 0;
2834 }
2835 _ACEOF
2836 if ac_fn_cxx_try_compile "$LINENO"; then :
2837   ac_hi=-1 ac_mid=-1
2838   while :; do
2839     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2840 /* end confdefs.h.  */
2841 $4
2842 int
2843 main ()
2844 {
2845 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2846 test_array [0] = 0;
2847 return test_array [0];
2848 
2849   ;
2850   return 0;
2851 }
2852 _ACEOF
2853 if ac_fn_cxx_try_compile "$LINENO"; then :
2854   ac_lo=$ac_mid; break
2855 else
2856   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2857                         if test $ac_mid -le $ac_hi; then
2858                           ac_lo= ac_hi=
2859                           break
2860                         fi
2861                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2862 fi
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864   done
2865 else
2866   ac_lo= ac_hi=
2867 fi
2868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869 fi
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871 # Binary search between lo and hi bounds.
2872 while test "x$ac_lo" != "x$ac_hi"; do
2873   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h.  */
2876 $4
2877 int
2878 main ()
2879 {
2880 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2881 test_array [0] = 0;
2882 return test_array [0];
2883 
2884   ;
2885   return 0;
2886 }
2887 _ACEOF
2888 if ac_fn_cxx_try_compile "$LINENO"; then :
2889   ac_hi=$ac_mid
2890 else
2891   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2892 fi
2893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2894 done
2895 case $ac_lo in #((
2896 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2897 '') ac_retval=1 ;;
2898 esac
2899   else
2900     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h.  */
2902 $4
2903 static long int longval () { return $2; }
2904 static unsigned long int ulongval () { return $2; }
2905 #include <stdio.h>
2906 #include <stdlib.h>
2907 int
2908 main ()
2909 {
2910 
2911   FILE *f = fopen ("conftest.val", "w");
2912   if (! f)
2913     return 1;
2914   if (($2) < 0)
2915     {
2916       long int i = longval ();
2917       if (i != ($2))
2918         return 1;
2919       fprintf (f, "%ld", i);
2920     }
2921   else
2922     {
2923       unsigned long int i = ulongval ();
2924       if (i != ($2))
2925         return 1;
2926       fprintf (f, "%lu", i);
2927     }
2928   /* Do not output a trailing newline, as this causes \r\n confusion
2929      on some platforms.  */
2930   return ferror (f) || fclose (f) != 0;
2931 
2932   ;
2933   return 0;
2934 }
2935 _ACEOF
2936 if ac_fn_cxx_try_run "$LINENO"; then :
2937   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2938 else
2939   ac_retval=1
2940 fi
2941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2942   conftest.$ac_objext conftest.beam conftest.$ac_ext
2943 rm -f conftest.val
2944 
2945   fi
2946   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2947   as_fn_set_status $ac_retval
2948 
2949 } # ac_fn_cxx_compute_int
2950 
2951 # ac_fn_cxx_try_link LINENO
2952 # -------------------------
2953 # Try to link conftest.$ac_ext, and return whether this succeeded.
2954 ac_fn_cxx_try_link ()
2955 {
2956   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2957   rm -f conftest.$ac_objext conftest$ac_exeext
2958   if { { ac_try="$ac_link"
2959 case "(($ac_try" in
2960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961   *) ac_try_echo=$ac_try;;
2962 esac
2963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2964 $as_echo "$ac_try_echo"; } >&5
2965   (eval "$ac_link") 2>conftest.err
2966   ac_status=$?
2967   if test -s conftest.err; then
2968     grep -v '^ *+' conftest.err >conftest.er1
2969     cat conftest.er1 >&5
2970     mv -f conftest.er1 conftest.err
2971   fi
2972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973   test $ac_status = 0; } && {
2974          test -z "$ac_cxx_werror_flag" ||
2975          test ! -s conftest.err
2976        } && test -s conftest$ac_exeext && {
2977          test "$cross_compiling" = yes ||
2978          test -x conftest$ac_exeext
2979        }; then :
2980   ac_retval=0
2981 else
2982   $as_echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2984 
2985         ac_retval=1
2986 fi
2987   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2988   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2989   # interfere with the next link command; also delete a directory that is
2990   # left behind by Apple's compiler.  We do this before executing the actions.
2991   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2992   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2993   as_fn_set_status $ac_retval
2994 
2995 } # ac_fn_cxx_try_link
2996 
2997 # ac_fn_cxx_check_func LINENO FUNC VAR
2998 # ------------------------------------
2999 # Tests whether FUNC exists, setting the cache variable VAR accordingly
3000 ac_fn_cxx_check_func ()
3001 {
3002   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3004 $as_echo_n "checking for $2... " >&6; }
3005 if eval \${$3+:} false; then :
3006   $as_echo_n "(cached) " >&6
3007 else
3008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009 /* end confdefs.h.  */
3010 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3012 #define $2 innocuous_$2
3013 
3014 /* System header to define __stub macros and hopefully few prototypes,
3015     which can conflict with char $2 (); below.
3016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3017     <limits.h> exists even on freestanding compilers.  */
3018 
3019 #ifdef __STDC__
3020 # include <limits.h>
3021 #else
3022 # include <assert.h>
3023 #endif
3024 
3025 #undef $2
3026 
3027 /* Override any GCC internal prototype to avoid an error.
3028    Use char because int might match the return type of a GCC
3029    builtin and then its argument prototype would still apply.  */
3030 #ifdef __cplusplus
3031 extern "C"
3032 #endif
3033 char $2 ();
3034 /* The GNU C library defines this for functions which it implements
3035     to always fail with ENOSYS.  Some functions are actually named
3036     something starting with __ and the normal name is an alias.  */
3037 #if defined __stub_$2 || defined __stub___$2
3038 choke me
3039 #endif
3040 
3041 int
3042 main ()
3043 {
3044 return $2 ();
3045   ;
3046   return 0;
3047 }
3048 _ACEOF
3049 if ac_fn_cxx_try_link "$LINENO"; then :
3050   eval "$3=yes"
3051 else
3052   eval "$3=no"
3053 fi
3054 rm -f core conftest.err conftest.$ac_objext \
3055     conftest$ac_exeext conftest.$ac_ext
3056 fi
3057 eval ac_res=\$$3
3058                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3059 $as_echo "$ac_res" >&6; }
3060   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3061 
3062 } # ac_fn_cxx_check_func
3063 
3064 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3065 # -------------------------------------------------------
3066 # Tests whether HEADER exists and can be compiled using the include files in
3067 # INCLUDES, setting the cache variable VAR accordingly.
3068 ac_fn_c_check_header_compile ()
3069 {
3070   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3072 $as_echo_n "checking for $2... " >&6; }
3073 if eval \${$3+:} false; then :
3074   $as_echo_n "(cached) " >&6
3075 else
3076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077 /* end confdefs.h.  */
3078 $4
3079 #include <$2>
3080 _ACEOF
3081 if ac_fn_c_try_compile "$LINENO"; then :
3082   eval "$3=yes"
3083 else
3084   eval "$3=no"
3085 fi
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 fi
3088 eval ac_res=\$$3
3089                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3090 $as_echo "$ac_res" >&6; }
3091   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3092 
3093 } # ac_fn_c_check_header_compile
3094 cat >config.log <<_ACEOF
3095 This file contains any messages produced by compilers while
3096 running configure, to aid debugging if configure makes a mistake.
3097 
3098 It was created by OpenJDK $as_me jdk9, which was
3099 generated by GNU Autoconf 2.69.  Invocation command line was
3100 
3101   $ $0 $@
3102 
3103 _ACEOF
3104 exec 5>>config.log
3105 {
3106 cat <<_ASUNAME
3107 ## --------- ##
3108 ## Platform. ##
3109 ## --------- ##
3110 
3111 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3112 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3113 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3114 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3115 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3116 
3117 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3118 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3119 
3120 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3121 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3122 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3123 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3124 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3125 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3126 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3127 
3128 _ASUNAME
3129 
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133   IFS=$as_save_IFS
3134   test -z "$as_dir" && as_dir=.
3135     $as_echo "PATH: $as_dir"
3136   done
3137 IFS=$as_save_IFS
3138 
3139 } >&5
3140 
3141 cat >&5 <<_ACEOF
3142 
3143 
3144 ## ----------- ##
3145 ## Core tests. ##
3146 ## ----------- ##
3147 
3148 _ACEOF
3149 
3150 
3151 # Keep a trace of the command line.
3152 # Strip out --no-create and --no-recursion so they do not pile up.
3153 # Strip out --silent because we don't want to record it for future runs.
3154 # Also quote any args containing shell meta-characters.
3155 # Make two passes to allow for proper duplicate-argument suppression.
3156 ac_configure_args=
3157 ac_configure_args0=
3158 ac_configure_args1=
3159 ac_must_keep_next=false
3160 for ac_pass in 1 2
3161 do
3162   for ac_arg
3163   do
3164     case $ac_arg in
3165     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3166     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3167     | -silent | --silent | --silen | --sile | --sil)
3168       continue ;;
3169     *\'*)
3170       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3171     esac
3172     case $ac_pass in
3173     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3174     2)
3175       as_fn_append ac_configure_args1 " '$ac_arg'"
3176       if test $ac_must_keep_next = true; then
3177         ac_must_keep_next=false # Got value, back to normal.
3178       else
3179         case $ac_arg in
3180           *=* | --config-cache | -C | -disable-* | --disable-* \
3181           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3182           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3183           | -with-* | --with-* | -without-* | --without-* | --x)
3184             case "$ac_configure_args0 " in
3185               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3186             esac
3187             ;;
3188           -* ) ac_must_keep_next=true ;;
3189         esac
3190       fi
3191       as_fn_append ac_configure_args " '$ac_arg'"
3192       ;;
3193     esac
3194   done
3195 done
3196 { ac_configure_args0=; unset ac_configure_args0;}
3197 { ac_configure_args1=; unset ac_configure_args1;}
3198 
3199 # When interrupted or exit'd, cleanup temporary files, and complete
3200 # config.log.  We remove comments because anyway the quotes in there
3201 # would cause problems or look ugly.
3202 # WARNING: Use '\'' to represent an apostrophe within the trap.
3203 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3204 trap 'exit_status=$?
3205   # Save into config.log some information that might help in debugging.
3206   {
3207     echo
3208 
3209     $as_echo "## ---------------- ##
3210 ## Cache variables. ##
3211 ## ---------------- ##"
3212     echo
3213     # The following way of writing the cache mishandles newlines in values,
3214 (
3215   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3216     eval ac_val=\$$ac_var
3217     case $ac_val in #(
3218     *${as_nl}*)
3219       case $ac_var in #(
3220       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3221 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3222       esac
3223       case $ac_var in #(
3224       _ | IFS | as_nl) ;; #(
3225       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3226       *) { eval $ac_var=; unset $ac_var;} ;;
3227       esac ;;
3228     esac
3229   done
3230   (set) 2>&1 |
3231     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3232     *${as_nl}ac_space=\ *)
3233       sed -n \
3234         "s/'\''/'\''\\\\'\'''\''/g;
3235           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3236       ;; #(
3237     *)
3238       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3239       ;;
3240     esac |
3241     sort
3242 )
3243     echo
3244 
3245     $as_echo "## ----------------- ##
3246 ## Output variables. ##
3247 ## ----------------- ##"
3248     echo
3249     for ac_var in $ac_subst_vars
3250     do
3251       eval ac_val=\$$ac_var
3252       case $ac_val in
3253       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3254       esac
3255       $as_echo "$ac_var='\''$ac_val'\''"
3256     done | sort
3257     echo
3258 
3259     if test -n "$ac_subst_files"; then
3260       $as_echo "## ------------------- ##
3261 ## File substitutions. ##
3262 ## ------------------- ##"
3263       echo
3264       for ac_var in $ac_subst_files
3265       do
3266         eval ac_val=\$$ac_var
3267         case $ac_val in
3268         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3269         esac
3270         $as_echo "$ac_var='\''$ac_val'\''"
3271       done | sort
3272       echo
3273     fi
3274 
3275     if test -s confdefs.h; then
3276       $as_echo "## ----------- ##
3277 ## confdefs.h. ##
3278 ## ----------- ##"
3279       echo
3280       cat confdefs.h
3281       echo
3282     fi
3283     test "$ac_signal" != 0 &&
3284       $as_echo "$as_me: caught signal $ac_signal"
3285     $as_echo "$as_me: exit $exit_status"
3286   } >&5
3287   rm -f core *.core core.conftest.* &&
3288     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3289     exit $exit_status
3290 ' 0
3291 for ac_signal in 1 2 13 15; do
3292   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3293 done
3294 ac_signal=0
3295 
3296 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3297 rm -f -r conftest* confdefs.h
3298 
3299 $as_echo "/* confdefs.h */" > confdefs.h
3300 
3301 # Predefined preprocessor variables.
3302 
3303 cat >>confdefs.h <<_ACEOF
3304 #define PACKAGE_NAME "$PACKAGE_NAME"
3305 _ACEOF
3306 
3307 cat >>confdefs.h <<_ACEOF
3308 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3309 _ACEOF
3310 
3311 cat >>confdefs.h <<_ACEOF
3312 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3313 _ACEOF
3314 
3315 cat >>confdefs.h <<_ACEOF
3316 #define PACKAGE_STRING "$PACKAGE_STRING"
3317 _ACEOF
3318 
3319 cat >>confdefs.h <<_ACEOF
3320 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3321 _ACEOF
3322 
3323 cat >>confdefs.h <<_ACEOF
3324 #define PACKAGE_URL "$PACKAGE_URL"
3325 _ACEOF
3326 
3327 
3328 # Let the site file select an alternate cache file if it wants to.
3329 # Prefer an explicitly selected file to automatically selected ones.
3330 ac_site_file1=NONE
3331 ac_site_file2=NONE
3332 if test -n "$CONFIG_SITE"; then
3333   # We do not want a PATH search for config.site.
3334   case $CONFIG_SITE in #((
3335     -*)  ac_site_file1=./$CONFIG_SITE;;
3336     */*) ac_site_file1=$CONFIG_SITE;;
3337     *)   ac_site_file1=./$CONFIG_SITE;;
3338   esac
3339 elif test "x$prefix" != xNONE; then
3340   ac_site_file1=$prefix/share/config.site
3341   ac_site_file2=$prefix/etc/config.site
3342 else
3343   ac_site_file1=$ac_default_prefix/share/config.site
3344   ac_site_file2=$ac_default_prefix/etc/config.site
3345 fi
3346 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3347 do
3348   test "x$ac_site_file" = xNONE && continue
3349   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3350     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3351 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3352     sed 's/^/| /' "$ac_site_file" >&5
3353     . "$ac_site_file" \
3354       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error $? "failed to load site script $ac_site_file
3357 See \`config.log' for more details" "$LINENO" 5; }
3358   fi
3359 done
3360 
3361 if test -r "$cache_file"; then
3362   # Some versions of bash will fail to source /dev/null (special files
3363   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3364   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3365     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3366 $as_echo "$as_me: loading cache $cache_file" >&6;}
3367     case $cache_file in
3368       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3369       *)                      . "./$cache_file";;
3370     esac
3371   fi
3372 else
3373   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3374 $as_echo "$as_me: creating cache $cache_file" >&6;}
3375   >$cache_file
3376 fi
3377 
3378 # Check that the precious variables saved in the cache have kept the same
3379 # value.
3380 ac_cache_corrupted=false
3381 for ac_var in $ac_precious_vars; do
3382   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3383   eval ac_new_set=\$ac_env_${ac_var}_set
3384   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3385   eval ac_new_val=\$ac_env_${ac_var}_value
3386   case $ac_old_set,$ac_new_set in
3387     set,)
3388       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3389 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3390       ac_cache_corrupted=: ;;
3391     ,set)
3392       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3393 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3394       ac_cache_corrupted=: ;;
3395     ,);;
3396     *)
3397       if test "x$ac_old_val" != "x$ac_new_val"; then
3398         # differences in whitespace do not lead to failure.
3399         ac_old_val_w=`echo x $ac_old_val`
3400         ac_new_val_w=`echo x $ac_new_val`
3401         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3402           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3403 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3404           ac_cache_corrupted=:
3405         else
3406           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3407 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3408           eval $ac_var=\$ac_old_val
3409         fi
3410         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3411 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3412         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3413 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3414       fi;;
3415   esac
3416   # Pass precious variables to config.status.
3417   if test "$ac_new_set" = set; then
3418     case $ac_new_val in
3419     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3420     *) ac_arg=$ac_var=$ac_new_val ;;
3421     esac
3422     case " $ac_configure_args " in
3423       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3424       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3425     esac
3426   fi
3427 done
3428 if $ac_cache_corrupted; then
3429   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3432 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3433   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3434 fi
3435 ## -------------------- ##
3436 ## Main body of script. ##
3437 ## -------------------- ##
3438 
3439 ac_ext=c
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444 
3445 
3446 
3447 ac_aux_dir=
3448 for ac_dir in $TOPDIR/make/autoconf/build-aux "$srcdir"/$TOPDIR/make/autoconf/build-aux; do
3449   if test -f "$ac_dir/install-sh"; then
3450     ac_aux_dir=$ac_dir
3451     ac_install_sh="$ac_aux_dir/install-sh -c"
3452     break
3453   elif test -f "$ac_dir/install.sh"; then
3454     ac_aux_dir=$ac_dir
3455     ac_install_sh="$ac_aux_dir/install.sh -c"
3456     break
3457   elif test -f "$ac_dir/shtool"; then
3458     ac_aux_dir=$ac_dir
3459     ac_install_sh="$ac_aux_dir/shtool install -c"
3460     break
3461   fi
3462 done
3463 if test -z "$ac_aux_dir"; then
3464   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
3465 fi
3466 
3467 # These three variables are undocumented and unsupported,
3468 # and are intended to be withdrawn in a future Autoconf release.
3469 # They can cause serious problems if a builder's source tree is in a directory
3470 # whose full name contains unusual characters.
3471 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3472 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3473 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3474 
3475 
3476 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3477 
3478 #
3479 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3480 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3481 #
3482 # This code is free software; you can redistribute it and/or modify it
3483 # under the terms of the GNU General Public License version 2 only, as
3484 # published by the Free Software Foundation.  Oracle designates this
3485 # particular file as subject to the "Classpath" exception as provided
3486 # by Oracle in the LICENSE file that accompanied this code.
3487 #
3488 # This code is distributed in the hope that it will be useful, but WITHOUT
3489 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3490 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3491 # version 2 for more details (a copy is included in the LICENSE file that
3492 # accompanied this code).
3493 #
3494 # You should have received a copy of the GNU General Public License version
3495 # 2 along with this work; if not, write to the Free Software Foundation,
3496 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3497 #
3498 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3499 # or visit www.oracle.com if you need additional information or have any
3500 # questions.
3501 #
3502 
3503 #
3504 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3505 #
3506 # This program is free software; you can redistribute it and/or modify
3507 # it under the terms of the GNU General Public License as published by
3508 # the Free Software Foundation; either version 2 of the License, or
3509 # (at your option) any later version.
3510 #
3511 # This program is distributed in the hope that it will be useful, but
3512 # WITHOUT ANY WARRANTY; without even the implied warranty of
3513 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3514 # General Public License for more details.
3515 #
3516 # You should have received a copy of the GNU General Public License
3517 # along with this program; if not, write to the Free Software
3518 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3519 #
3520 # As a special exception to the GNU General Public License, if you
3521 # distribute this file as part of a program that contains a
3522 # configuration script generated by Autoconf, you may include it under
3523 # the same distribution terms that you use for the rest of that program.
3524 
3525 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3526 # ----------------------------------
3527 # PKG_PROG_PKG_CONFIG
3528 
3529 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3530 #
3531 # Check to see whether a particular set of modules exists.  Similar
3532 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3533 #
3534 #
3535 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3536 # this or PKG_CHECK_MODULES is called, or make sure to call
3537 # PKG_CHECK_EXISTS manually
3538 # --------------------------------------------------------------
3539 
3540 
3541 
3542 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3543 # ---------------------------------------------
3544 # _PKG_CONFIG
3545 
3546 # _PKG_SHORT_ERRORS_SUPPORTED
3547 # -----------------------------
3548 # _PKG_SHORT_ERRORS_SUPPORTED
3549 
3550 
3551 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3552 # [ACTION-IF-NOT-FOUND])
3553 #
3554 #
3555 # Note that if there is a possibility the first call to
3556 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3557 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3558 #
3559 #
3560 # --------------------------------------------------------------
3561 # PKG_CHECK_MODULES
3562 
3563 
3564 # Include these first...
3565 #
3566 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3567 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3568 #
3569 # This code is free software; you can redistribute it and/or modify it
3570 # under the terms of the GNU General Public License version 2 only, as
3571 # published by the Free Software Foundation.  Oracle designates this
3572 # particular file as subject to the "Classpath" exception as provided
3573 # by Oracle in the LICENSE file that accompanied this code.
3574 #
3575 # This code is distributed in the hope that it will be useful, but WITHOUT
3576 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3577 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3578 # version 2 for more details (a copy is included in the LICENSE file that
3579 # accompanied this code).
3580 #
3581 # You should have received a copy of the GNU General Public License version
3582 # 2 along with this work; if not, write to the Free Software Foundation,
3583 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3584 #
3585 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3586 # or visit www.oracle.com if you need additional information or have any
3587 # questions.
3588 #
3589 
3590 # Create a function/macro that takes a series of named arguments. The call is
3591 # similar to AC_DEFUN, but the setup of the function looks like this:
3592 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3593 # ... do something
3594 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3595 # ])
3596 # A star (*) in front of a named argument means that it is required and it's
3597 # presence will be verified. To pass e.g. the first value as a normal indexed
3598 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3599 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3600 # "ARG_FOO".
3601 #
3602 # The generated function can be called like this:
3603 # MYFUNC(FOO: [foo-val],
3604 #     BAR: [
3605 #         $ECHO hello world
3606 #     ])
3607 # Note that the argument value must start on the same line as the argument name.
3608 #
3609 # Argument 1: Name of the function to define
3610 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3611 # Argument 3: Argument array to treat as named, typically $@
3612 # Argument 4: The main function body
3613 
3614 
3615 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3616 # If so, then append $1 to $2 \
3617 # Also set JVM_ARG_OK to true/false depending on outcome.
3618 
3619 
3620 # Appends a string to a path variable, only adding the : when needed.
3621 
3622 
3623 # Prepends a string to a path variable, only adding the : when needed.
3624 
3625 
3626 # This will make sure the given variable points to a full and proper
3627 # path. This means:
3628 # 1) There will be no spaces in the path. On unix platforms,
3629 #    spaces in the path will result in an error. On Windows,
3630 #    the path will be rewritten using short-style to be space-free.
3631 # 2) The path will be absolute, and it will be in unix-style (on
3632 #     cygwin).
3633 # $1: The name of the variable to fix
3634 
3635 
3636 # This will make sure the given variable points to a executable
3637 # with a full and proper path. This means:
3638 # 1) There will be no spaces in the path. On unix platforms,
3639 #    spaces in the path will result in an error. On Windows,
3640 #    the path will be rewritten using short-style to be space-free.
3641 # 2) The path will be absolute, and it will be in unix-style (on
3642 #     cygwin).
3643 # Any arguments given to the executable is preserved.
3644 # If the input variable does not have a directory specification, then
3645 # it need to be in the PATH.
3646 # $1: The name of the variable to fix
3647 
3648 
3649 
3650 
3651 # Register a --with argument but mark it as deprecated
3652 # $1: The name of the with argument to deprecate, not including --with-
3653 
3654 
3655 # Register a --enable argument but mark it as deprecated
3656 # $1: The name of the with argument to deprecate, not including --enable-
3657 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3658 # $3: Messages to user.
3659 
3660 
3661 
3662 
3663 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3664 # $1: variable to check
3665 
3666 
3667 # Check that there are no unprocessed overridden variables left.
3668 # If so, they are an incorrect argument and we will exit with an error.
3669 
3670 
3671 # Setup a tool for the given variable. If correctly specified by the user,
3672 # use that value, otherwise search for the tool using the supplied code snippet.
3673 # $1: variable to set
3674 # $2: code snippet to call to look for the tool
3675 # $3: code snippet to call if variable was used to find tool
3676 
3677 
3678 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3679 # $1: variable to set
3680 # $2: executable name (or list of names) to look for
3681 # $3: [path]
3682 
3683 
3684 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3685 # $1: variable to set
3686 # $2: executable name (or list of names) to look for
3687 
3688 
3689 # Like BASIC_PATH_PROGS but fails if no tool was found.
3690 # $1: variable to set
3691 # $2: executable name (or list of names) to look for
3692 # $3: [path]
3693 
3694 
3695 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3696 # $1: variable to set
3697 # $2: autoconf macro to call to look for the special tool
3698 
3699 
3700 # Setup the most fundamental tools that relies on not much else to set up,
3701 # but is used by much of the early bootstrap code.
3702 
3703 
3704 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3705 
3706 
3707 # Evaluates platform specific overrides for devkit variables.
3708 # $1: Name of variable
3709 
3710 
3711 
3712 
3713 
3714 
3715 #%%% Simple tools %%%
3716 
3717 # Check if we have found a usable version of make
3718 # $1: the path to a potential make binary (or empty)
3719 # $2: the description on how we found this
3720 
3721 
3722 
3723 
3724 # Goes looking for a usable version of GNU make.
3725 
3726 
3727 
3728 
3729 
3730 
3731 
3732 
3733 
3734 
3735 # Check if build directory is on local disk. If not possible to determine,
3736 # we prefer to claim it's local.
3737 # Argument 1: directory to test
3738 # Argument 2: what to do if it is on local disk
3739 # Argument 3: what to do otherwise (remote disk or failure)
3740 
3741 
3742 # Check that source files have basic read permissions set. This might
3743 # not be the case in cygwin in certain conditions.
3744 
3745 
3746 
3747 
3748 # Check for support for specific options in bash
3749 
3750 
3751 ################################################################################
3752 #
3753 # Default make target
3754 #
3755 
3756 
3757 # Code to run after AC_OUTPUT
3758 
3759 
3760 #
3761 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3762 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3763 #
3764 # This code is free software; you can redistribute it and/or modify it
3765 # under the terms of the GNU General Public License version 2 only, as
3766 # published by the Free Software Foundation.  Oracle designates this
3767 # particular file as subject to the "Classpath" exception as provided
3768 # by Oracle in the LICENSE file that accompanied this code.
3769 #
3770 # This code is distributed in the hope that it will be useful, but WITHOUT
3771 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3772 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3773 # version 2 for more details (a copy is included in the LICENSE file that
3774 # accompanied this code).
3775 #
3776 # You should have received a copy of the GNU General Public License version
3777 # 2 along with this work; if not, write to the Free Software Foundation,
3778 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3779 #
3780 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3781 # or visit www.oracle.com if you need additional information or have any
3782 # questions.
3783 #
3784 
3785 
3786 
3787 
3788 
3789 # Helper function which possibly converts a path using DOS-style short mode.
3790 # If so, the updated path is stored in $new_path.
3791 # $1: The path to check
3792 
3793 
3794 # Helper function which possibly converts a path using DOS-style short mode.
3795 # If so, the updated path is stored in $new_path.
3796 # $1: The path to check
3797 
3798 
3799 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3800 # and could probably be heavily simplified. However, all changes in this
3801 # area tend to need lot of testing in different scenarios, and in lack of
3802 # proper unit testing, cleaning this up has not been deemed worth the effort
3803 # at the moment.
3804 
3805 
3806 
3807 
3808 
3809 
3810 
3811 
3812 
3813 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3814 
3815 
3816 
3817 
3818 # ... then the rest
3819 #
3820 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3821 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3822 #
3823 # This code is free software; you can redistribute it and/or modify it
3824 # under the terms of the GNU General Public License version 2 only, as
3825 # published by the Free Software Foundation.  Oracle designates this
3826 # particular file as subject to the "Classpath" exception as provided
3827 # by Oracle in the LICENSE file that accompanied this code.
3828 #
3829 # This code is distributed in the hope that it will be useful, but WITHOUT
3830 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3831 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3832 # version 2 for more details (a copy is included in the LICENSE file that
3833 # accompanied this code).
3834 #
3835 # You should have received a copy of the GNU General Public License version
3836 # 2 along with this work; if not, write to the Free Software Foundation,
3837 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3838 #
3839 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3840 # or visit www.oracle.com if you need additional information or have any
3841 # questions.
3842 #
3843 
3844 ########################################################################
3845 # This file handles detection of the Boot JDK. The Boot JDK detection
3846 # process has been developed as a response to solve a complex real-world
3847 # problem. Initially, it was simple, but it has grown as platform after
3848 # platform, idiosyncracy after idiosyncracy has been supported.
3849 #
3850 # The basic idea is this:
3851 # 1) You need an acceptable *) JDK to use as a Boot JDK
3852 # 2) There are several ways to locate a JDK, that are mostly platform
3853 #    dependent **)
3854 # 3) You can have multiple JDKs installed
3855 # 4) If possible, configure should try to dig out an acceptable JDK
3856 #    automatically, without having to resort to command-line options
3857 #
3858 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3859 #     javac) and not a JRE, etc.
3860 #
3861 # **) On Windows we typically use a well-known path.
3862 #     On MacOSX we typically use the tool java_home.
3863 #     On Linux we typically find javac in the $PATH, and then follow a
3864 #     chain of symlinks that often ends up in a real JDK.
3865 #
3866 # This leads to the code where we check in different ways to locate a
3867 # JDK, and if one is found, check if it is acceptable. If not, we print
3868 # our reasons for rejecting it (useful when debugging non-working
3869 # configure situations) and continue checking the next one.
3870 ########################################################################
3871 
3872 # Execute the check given as argument, and verify the result
3873 # If the Boot JDK was previously found, do nothing
3874 # $1 A command line (typically autoconf macro) to execute
3875 
3876 
3877 # Test: Is bootjdk explicitly set by command line arguments?
3878 
3879 
3880 # Test: Is $JAVA_HOME set?
3881 
3882 
3883 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3884 
3885 
3886 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3887 # $1: Argument to the java_home binary (optional)
3888 
3889 
3890 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3891 
3892 
3893 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3894 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3895 # $1 = Path to directory containing jdk installations.
3896 # $2 = String to append to the found JDK directory to get the proper JDK home
3897 
3898 
3899 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3900 # environmental variable as base for where to look.
3901 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3902 
3903 
3904 # Test: Is there a JDK installed in default, well-known locations?
3905 
3906 
3907 # Check that a command-line tool in the Boot JDK is correct
3908 # $1 = name of variable to assign
3909 # $2 = name of binary
3910 
3911 
3912 ###############################################################################
3913 #
3914 # We need a Boot JDK to bootstrap the build.
3915 #
3916 
3917 
3918 
3919 
3920 
3921 # BUILD_JDK: the location of the latest JDK that can run
3922 #   on the host system and supports the target class file version
3923 #   generated in this JDK build.  This variable should only be
3924 #   used after the launchers are built.
3925 #
3926 
3927 # Execute the check given as argument, and verify the result.
3928 # If the JDK was previously found, do nothing.
3929 # $1 A command line (typically autoconf macro) to execute
3930 
3931 
3932 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3933 # is different than the host system doing the build (e.g. cross-compilation),
3934 # a special BUILD_JDK is built as part of the build process.  An external
3935 # prebuilt BUILD_JDK can also be supplied.
3936 
3937 
3938 #
3939 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3940 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3941 #
3942 # This code is free software; you can redistribute it and/or modify it
3943 # under the terms of the GNU General Public License version 2 only, as
3944 # published by the Free Software Foundation.  Oracle designates this
3945 # particular file as subject to the "Classpath" exception as provided
3946 # by Oracle in the LICENSE file that accompanied this code.
3947 #
3948 # This code is distributed in the hope that it will be useful, but WITHOUT
3949 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3950 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3951 # version 2 for more details (a copy is included in the LICENSE file that
3952 # accompanied this code).
3953 #
3954 # You should have received a copy of the GNU General Public License version
3955 # 2 along with this work; if not, write to the Free Software Foundation,
3956 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3957 #
3958 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3959 # or visit www.oracle.com if you need additional information or have any
3960 # questions.
3961 #
3962 
3963 
3964 
3965 
3966 
3967 
3968 
3969 
3970 
3971 
3972 
3973 
3974 
3975 
3976 
3977 
3978 
3979 ################################################################################
3980 #
3981 # Runs icecc-create-env once and prints the error if it fails
3982 #
3983 # $1: arguments to icecc-create-env
3984 # $2: log file
3985 #
3986 
3987 
3988 ################################################################################
3989 #
3990 # Optionally enable distributed compilation of native code using icecc/icecream
3991 #
3992 
3993 
3994 
3995 
3996 
3997 
3998 
3999 #
4000 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4001 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4002 #
4003 # This code is free software; you can redistribute it and/or modify it
4004 # under the terms of the GNU General Public License version 2 only, as
4005 # published by the Free Software Foundation.  Oracle designates this
4006 # particular file as subject to the "Classpath" exception as provided
4007 # by Oracle in the LICENSE file that accompanied this code.
4008 #
4009 # This code is distributed in the hope that it will be useful, but WITHOUT
4010 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4011 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4012 # version 2 for more details (a copy is included in the LICENSE file that
4013 # accompanied this code).
4014 #
4015 # You should have received a copy of the GNU General Public License version
4016 # 2 along with this work; if not, write to the Free Software Foundation,
4017 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4018 #
4019 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4020 # or visit www.oracle.com if you need additional information or have any
4021 # questions.
4022 #
4023 
4024 ################################################################################
4025 #
4026 # Setup ABI profile (for arm)
4027 #
4028 
4029 
4030 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
4031 # corresponding configure arguments instead
4032 
4033 
4034 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
4035 # that configure can use them while detecting compilers.
4036 # TOOLCHAIN_TYPE is available here.
4037 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
4038 
4039 
4040 
4041 
4042 
4043 
4044 # Documentation on common flags used for solstudio in HIGHEST.
4045 #
4046 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
4047 #          done with care, there are some assumptions below that need to
4048 #          be understood about the use of pointers, and IEEE behavior.
4049 #
4050 # -fns: Use non-standard floating point mode (not IEEE 754)
4051 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
4052 # -fsingle: Use single precision floating point with 'float'
4053 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
4054 #   (Source with excessing pointer casting and data access with mixed
4055 #    pointer types are not recommended)
4056 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
4057 #   (If you expect perfect errno behavior, do not use this)
4058 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
4059 # -xrestrict: Pointer parameters to functions do not overlap
4060 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
4061 #    If you pass in multiple pointers to the same data, do not use this)
4062 # -xlibmil: Inline some library routines
4063 #   (If you expect perfect errno behavior, do not use this)
4064 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
4065 #   (If you expect perfect errno behavior, do not use this)
4066 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
4067 
4068     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
4069     # Bug?
4070     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
4071     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
4072     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
4073     #fi
4074 
4075 
4076 
4077 
4078 
4079 
4080 ################################################################################
4081 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
4082 #      conditionals against.
4083 # $2 - Optional prefix for each variable defined.
4084 
4085 
4086 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4087 #                                  IF_FALSE: [RUN-IF-FALSE])
4088 # ------------------------------------------------------------
4089 # Check that the C compiler supports an argument
4090 
4091 
4092 
4093 
4094 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4095 #                                    IF_FALSE: [RUN-IF-FALSE])
4096 # ------------------------------------------------------------
4097 # Check that the C++ compiler supports an argument
4098 
4099 
4100 
4101 
4102 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4103 #                                IF_FALSE: [RUN-IF-FALSE])
4104 # ------------------------------------------------------------
4105 # Check that the C and C++ compilers support an argument
4106 
4107 
4108 
4109 
4110 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4111 #                                   IF_FALSE: [RUN-IF-FALSE])
4112 # ------------------------------------------------------------
4113 # Check that the linker support an argument
4114 
4115 
4116 
4117 
4118 
4119 
4120 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX])
4121 # Arguments:
4122 # $1 - Optional prefix for each variable defined.
4123 
4124 
4125 #
4126 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4127 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4128 #
4129 # This code is free software; you can redistribute it and/or modify it
4130 # under the terms of the GNU General Public License version 2 only, as
4131 # published by the Free Software Foundation.  Oracle designates this
4132 # particular file as subject to the "Classpath" exception as provided
4133 # by Oracle in the LICENSE file that accompanied this code.
4134 #
4135 # This code is distributed in the hope that it will be useful, but WITHOUT
4136 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4137 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4138 # version 2 for more details (a copy is included in the LICENSE file that
4139 # accompanied this code).
4140 #
4141 # You should have received a copy of the GNU General Public License version
4142 # 2 along with this work; if not, write to the Free Software Foundation,
4143 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4144 #
4145 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4146 # or visit www.oracle.com if you need additional information or have any
4147 # questions.
4148 #
4149 
4150 
4151 
4152 
4153 
4154 cygwin_help() {
4155   case $1 in
4156     unzip)
4157       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4158       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4159       ;;
4160     zip)
4161       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4162       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4163       ;;
4164     make)
4165       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4166       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4167       ;;
4168     freetype)
4169       HELP_MSG="
4170 The freetype library can now be build during the configure process.
4171 Download the freetype sources and unpack them into an arbitrary directory:
4172 
4173 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4174 tar -xzf freetype-2.5.3.tar.gz
4175 
4176 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4177 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4178 builds or into '<freetype_src>/lib32' for 32-bit builds.
4179 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4180 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4181 
4182 Alternatively you can unpack the sources like this to use the default directory:
4183 
4184 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4185       ;;
4186   esac
4187 }
4188 
4189 msys_help() {
4190   PKGHANDLER_COMMAND=""
4191 }
4192 
4193 apt_help() {
4194   case $1 in
4195     reduced)
4196       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4197     devkit)
4198       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4199     openjdk)
4200       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4201     alsa)
4202       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4203     cups)
4204       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4205     fontconfig)
4206       PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;;
4207     freetype)
4208       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4209     ffi)
4210       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4211     x11)
4212       PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4213     ccache)
4214       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4215     dtrace)
4216       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4217   esac
4218 }
4219 
4220 yum_help() {
4221   case $1 in
4222     devkit)
4223       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4224     openjdk)
4225       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4226     alsa)
4227       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4228     cups)
4229       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4230     fontconfig)
4231       PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;;
4232     freetype)
4233       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4234     x11)
4235       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4236     ccache)
4237       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4238   esac
4239 }
4240 
4241 brew_help() {
4242   case $1 in
4243     openjdk)
4244       PKGHANDLER_COMMAND="brew cask install java" ;;
4245     freetype)
4246       PKGHANDLER_COMMAND="brew install freetype" ;;
4247     ccache)
4248       PKGHANDLER_COMMAND="brew install ccache" ;;
4249   esac
4250 }
4251 
4252 port_help() {
4253   PKGHANDLER_COMMAND=""
4254 }
4255 
4256 pkgutil_help() {
4257   PKGHANDLER_COMMAND=""
4258 }
4259 
4260 pkgadd_help() {
4261   PKGHANDLER_COMMAND=""
4262 }
4263 
4264 # This function will check if we're called from the "configure" wrapper while
4265 # printing --help. If so, we will print out additional information that can
4266 # only be extracted within the autoconf script, and then exit. This must be
4267 # called at the very beginning in configure.ac.
4268 
4269 
4270 
4271 
4272 
4273 
4274 #
4275 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4276 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4277 #
4278 # This code is free software; you can redistribute it and/or modify it
4279 # under the terms of the GNU General Public License version 2 only, as
4280 # published by the Free Software Foundation.  Oracle designates this
4281 # particular file as subject to the "Classpath" exception as provided
4282 # by Oracle in the LICENSE file that accompanied this code.
4283 #
4284 # This code is distributed in the hope that it will be useful, but WITHOUT
4285 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4286 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4287 # version 2 for more details (a copy is included in the LICENSE file that
4288 # accompanied this code).
4289 #
4290 # You should have received a copy of the GNU General Public License version
4291 # 2 along with this work; if not, write to the Free Software Foundation,
4292 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4293 #
4294 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4295 # or visit www.oracle.com if you need additional information or have any
4296 # questions.
4297 #
4298 
4299 # All valid JVM features, regardless of platform
4300 VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \
4301     graal vm-structs jni-check services management all-gcs nmt cds \
4302     static-build link-time-opt aot"
4303 
4304 # All valid JVM variants
4305 VALID_JVM_VARIANTS="server client minimal core zero custom"
4306 
4307 ###############################################################################
4308 # Check if the specified JVM variant should be built. To be used in shell if
4309 # constructs, like this:
4310 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4311 #
4312 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4313 
4314 # Definition kept in one line to allow inlining in if statements.
4315 # Additional [] needed to keep m4 from mangling shell constructs.
4316 
4317 
4318 ###############################################################################
4319 # Check if the specified JVM features are explicitly enabled. To be used in
4320 # shell if constructs, like this:
4321 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4322 #
4323 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
4324 
4325 # Definition kept in one line to allow inlining in if statements.
4326 # Additional [] needed to keep m4 from mangling shell constructs.
4327 
4328 
4329 ###############################################################################
4330 # Check which variants of the JVM that we want to build. Available variants are:
4331 #   server: normal interpreter, and a tiered C1/C2 compiler
4332 #   client: normal interpreter, and C1 (no C2 compiler)
4333 #   minimal: reduced form of client with optional features stripped out
4334 #   core: normal interpreter only, no compiler
4335 #   zero: C++ based interpreter only, no compiler
4336 #   custom: baseline JVM with no default features
4337 #
4338 
4339 
4340 ###############################################################################
4341 # Check if dtrace should be enabled and has all prerequisites present.
4342 #
4343 
4344 
4345 ################################################################################
4346 # Check if AOT should be enabled
4347 #
4348 
4349 
4350 ################################################################################
4351 # Allow to disable CDS
4352 #
4353 
4354 
4355 ###############################################################################
4356 # Set up all JVM features for each JVM variant.
4357 #
4358 
4359 
4360 ###############################################################################
4361 # Validate JVM features once all setup is complete, including custom setup.
4362 #
4363 
4364 
4365 ################################################################################
4366 #
4367 # Specify which sources will be used to build the 64-bit ARM port
4368 #
4369 # --with-cpu-port=arm64   will use hotspot/src/cpu/arm
4370 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64
4371 #
4372 
4373 
4374 
4375 ################################################################################
4376 # Check if gtest should be built
4377 #
4378 
4379 
4380 #
4381 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4382 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4383 #
4384 # This code is free software; you can redistribute it and/or modify it
4385 # under the terms of the GNU General Public License version 2 only, as
4386 # published by the Free Software Foundation.  Oracle designates this
4387 # particular file as subject to the "Classpath" exception as provided
4388 # by Oracle in the LICENSE file that accompanied this code.
4389 #
4390 # This code is distributed in the hope that it will be useful, but WITHOUT
4391 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4392 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4393 # version 2 for more details (a copy is included in the LICENSE file that
4394 # accompanied this code).
4395 #
4396 # You should have received a copy of the GNU General Public License version
4397 # 2 along with this work; if not, write to the Free Software Foundation,
4398 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4399 #
4400 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4401 # or visit www.oracle.com if you need additional information or have any
4402 # questions.
4403 #
4404 
4405 ###############################################################################
4406 # Check which variant of the JDK that we want to build.
4407 # Currently we have:
4408 #    normal:   standard edition
4409 # but the custom make system may add other variants
4410 #
4411 # Effectively the JDK variant gives a name to a specific set of
4412 # modules to compile into the JDK.
4413 
4414 
4415 ###############################################################################
4416 # Set the debug level
4417 #    release: no debug information, all optimizations, no asserts.
4418 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4419 #    fastdebug: debug information (-g), all optimizations, all asserts
4420 #    slowdebug: debug information (-g), no optimizations, all asserts
4421 
4422 
4423 ###############################################################################
4424 #
4425 # Should we build only OpenJDK even if closed sources are present?
4426 #
4427 
4428 
4429 
4430 
4431 ###############################################################################
4432 #
4433 # Enable or disable the elliptic curve crypto implementation
4434 #
4435 
4436 
4437 
4438 
4439 ################################################################################
4440 #
4441 # Gcov coverage data for hotspot
4442 #
4443 
4444 
4445 ###############################################################################
4446 #
4447 # AddressSanitizer
4448 #
4449 
4450 
4451 ################################################################################
4452 #
4453 # Static build support.  When enabled will generate static
4454 # libraries instead of shared libraries for all JDK libs.
4455 #
4456 
4457 
4458 ################################################################################
4459 #
4460 # jlink options.
4461 # We always keep packaged modules in JDK image.
4462 #
4463 
4464 
4465 ################################################################################
4466 #
4467 # Check if building of the jtreg failure handler should be enabled.
4468 #
4469 
4470 
4471 ################################################################################
4472 #
4473 # Enable or disable generation of the classlist at build time
4474 #
4475 
4476 
4477 #
4478 # Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
4479 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4480 #
4481 # This code is free software; you can redistribute it and/or modify it
4482 # under the terms of the GNU General Public License version 2 only, as
4483 # published by the Free Software Foundation.  Oracle designates this
4484 # particular file as subject to the "Classpath" exception as provided
4485 # by Oracle in the LICENSE file that accompanied this code.
4486 #
4487 # This code is distributed in the hope that it will be useful, but WITHOUT
4488 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4489 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4490 # version 2 for more details (a copy is included in the LICENSE file that
4491 # accompanied this code).
4492 #
4493 # You should have received a copy of the GNU General Public License version
4494 # 2 along with this work; if not, write to the Free Software Foundation,
4495 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4496 #
4497 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4498 # or visit www.oracle.com if you need additional information or have any
4499 # questions.
4500 #
4501 
4502 ###############################################################################
4503 #
4504 # Setup version numbers
4505 #
4506 
4507 # Verify that a given string represents a valid version number, and assign it
4508 # to a variable.
4509 
4510 # Argument 1: the variable to assign to
4511 # Argument 2: the value given by the user
4512 
4513 
4514 
4515 
4516 #
4517 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4518 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4519 #
4520 # This code is free software; you can redistribute it and/or modify it
4521 # under the terms of the GNU General Public License version 2 only, as
4522 # published by the Free Software Foundation.  Oracle designates this
4523 # particular file as subject to the "Classpath" exception as provided
4524 # by Oracle in the LICENSE file that accompanied this code.
4525 #
4526 # This code is distributed in the hope that it will be useful, but WITHOUT
4527 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4528 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4529 # version 2 for more details (a copy is included in the LICENSE file that
4530 # accompanied this code).
4531 #
4532 # You should have received a copy of the GNU General Public License version
4533 # 2 along with this work; if not, write to the Free Software Foundation,
4534 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4535 #
4536 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4537 # or visit www.oracle.com if you need additional information or have any
4538 # questions.
4539 #
4540 
4541 # Major library component reside in separate files.
4542 #
4543 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4544 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4545 #
4546 # This code is free software; you can redistribute it and/or modify it
4547 # under the terms of the GNU General Public License version 2 only, as
4548 # published by the Free Software Foundation.  Oracle designates this
4549 # particular file as subject to the "Classpath" exception as provided
4550 # by Oracle in the LICENSE file that accompanied this code.
4551 #
4552 # This code is distributed in the hope that it will be useful, but WITHOUT
4553 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4554 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4555 # version 2 for more details (a copy is included in the LICENSE file that
4556 # accompanied this code).
4557 #
4558 # You should have received a copy of the GNU General Public License version
4559 # 2 along with this work; if not, write to the Free Software Foundation,
4560 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4561 #
4562 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4563 # or visit www.oracle.com if you need additional information or have any
4564 # questions.
4565 #
4566 
4567 ################################################################################
4568 # Setup alsa (Advanced Linux Sound Architecture)
4569 ################################################################################
4570 
4571 
4572 #
4573 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4574 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4575 #
4576 # This code is free software; you can redistribute it and/or modify it
4577 # under the terms of the GNU General Public License version 2 only, as
4578 # published by the Free Software Foundation.  Oracle designates this
4579 # particular file as subject to the "Classpath" exception as provided
4580 # by Oracle in the LICENSE file that accompanied this code.
4581 #
4582 # This code is distributed in the hope that it will be useful, but WITHOUT
4583 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4584 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4585 # version 2 for more details (a copy is included in the LICENSE file that
4586 # accompanied this code).
4587 #
4588 # You should have received a copy of the GNU General Public License version
4589 # 2 along with this work; if not, write to the Free Software Foundation,
4590 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4591 #
4592 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4593 # or visit www.oracle.com if you need additional information or have any
4594 # questions.
4595 #
4596 
4597 ################################################################################
4598 # Setup bundled libraries.
4599 #
4600 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4601 # OpenJDK repository. Default is to use these libraries as bundled, but they
4602 # might be replaced by en external version by the user.
4603 ################################################################################
4604 
4605 
4606 ################################################################################
4607 # Setup libjpeg
4608 ################################################################################
4609 
4610 
4611 ################################################################################
4612 # Setup giflib
4613 ################################################################################
4614 
4615 
4616 ################################################################################
4617 # Setup libpng
4618 ################################################################################
4619 
4620 
4621 ################################################################################
4622 # Setup zlib
4623 ################################################################################
4624 
4625 
4626 ################################################################################
4627 # Setup lcms (Little CMS)
4628 ################################################################################
4629 
4630 
4631 #
4632 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4633 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4634 #
4635 # This code is free software; you can redistribute it and/or modify it
4636 # under the terms of the GNU General Public License version 2 only, as
4637 # published by the Free Software Foundation.  Oracle designates this
4638 # particular file as subject to the "Classpath" exception as provided
4639 # by Oracle in the LICENSE file that accompanied this code.
4640 #
4641 # This code is distributed in the hope that it will be useful, but WITHOUT
4642 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4643 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4644 # version 2 for more details (a copy is included in the LICENSE file that
4645 # accompanied this code).
4646 #
4647 # You should have received a copy of the GNU General Public License version
4648 # 2 along with this work; if not, write to the Free Software Foundation,
4649 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4650 #
4651 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4652 # or visit www.oracle.com if you need additional information or have any
4653 # questions.
4654 #
4655 
4656 ################################################################################
4657 # Setup cups (Common Unix Printing System)
4658 ################################################################################
4659 
4660 
4661 #
4662 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4663 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4664 #
4665 # This code is free software; you can redistribute it and/or modify it
4666 # under the terms of the GNU General Public License version 2 only, as
4667 # published by the Free Software Foundation.  Oracle designates this
4668 # particular file as subject to the "Classpath" exception as provided
4669 # by Oracle in the LICENSE file that accompanied this code.
4670 #
4671 # This code is distributed in the hope that it will be useful, but WITHOUT
4672 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4673 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4674 # version 2 for more details (a copy is included in the LICENSE file that
4675 # accompanied this code).
4676 #
4677 # You should have received a copy of the GNU General Public License version
4678 # 2 along with this work; if not, write to the Free Software Foundation,
4679 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4680 #
4681 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4682 # or visit www.oracle.com if you need additional information or have any
4683 # questions.
4684 #
4685 
4686 ################################################################################
4687 # Setup libffi (Foreign Function Interface)
4688 ################################################################################
4689 
4690 
4691 #
4692 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4693 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4694 #
4695 # This code is free software; you can redistribute it and/or modify it
4696 # under the terms of the GNU General Public License version 2 only, as
4697 # published by the Free Software Foundation.  Oracle designates this
4698 # particular file as subject to the "Classpath" exception as provided
4699 # by Oracle in the LICENSE file that accompanied this code.
4700 #
4701 # This code is distributed in the hope that it will be useful, but WITHOUT
4702 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4703 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4704 # version 2 for more details (a copy is included in the LICENSE file that
4705 # accompanied this code).
4706 #
4707 # You should have received a copy of the GNU General Public License version
4708 # 2 along with this work; if not, write to the Free Software Foundation,
4709 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4710 #
4711 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4712 # or visit www.oracle.com if you need additional information or have any
4713 # questions.
4714 #
4715 
4716 ################################################################################
4717 # Build the freetype lib from source
4718 ################################################################################
4719 
4720 
4721 ################################################################################
4722 # Check if a potential freeype library match is correct and usable
4723 ################################################################################
4724 
4725 
4726 ################################################################################
4727 # Setup freetype (The FreeType2 font rendering library)
4728 ################################################################################
4729 
4730 
4731 #
4732 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4733 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4734 #
4735 # This code is free software; you can redistribute it and/or modify it
4736 # under the terms of the GNU General Public License version 2 only, as
4737 # published by the Free Software Foundation.  Oracle designates this
4738 # particular file as subject to the "Classpath" exception as provided
4739 # by Oracle in the LICENSE file that accompanied this code.
4740 #
4741 # This code is distributed in the hope that it will be useful, but WITHOUT
4742 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4743 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4744 # version 2 for more details (a copy is included in the LICENSE file that
4745 # accompanied this code).
4746 #
4747 # You should have received a copy of the GNU General Public License version
4748 # 2 along with this work; if not, write to the Free Software Foundation,
4749 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4750 #
4751 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4752 # or visit www.oracle.com if you need additional information or have any
4753 # questions.
4754 #
4755 
4756 ################################################################################
4757 # Setup the standard C/C++ runtime libraries.
4758 #
4759 # Most importantly, determine if stdc++ should be linked statically or
4760 # dynamically.
4761 ################################################################################
4762 
4763 
4764 #
4765 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4766 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4767 #
4768 # This code is free software; you can redistribute it and/or modify it
4769 # under the terms of the GNU General Public License version 2 only, as
4770 # published by the Free Software Foundation.  Oracle designates this
4771 # particular file as subject to the "Classpath" exception as provided
4772 # by Oracle in the LICENSE file that accompanied this code.
4773 #
4774 # This code is distributed in the hope that it will be useful, but WITHOUT
4775 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4776 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4777 # version 2 for more details (a copy is included in the LICENSE file that
4778 # accompanied this code).
4779 #
4780 # You should have received a copy of the GNU General Public License version
4781 # 2 along with this work; if not, write to the Free Software Foundation,
4782 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4783 #
4784 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4785 # or visit www.oracle.com if you need additional information or have any
4786 # questions.
4787 #
4788 
4789 ################################################################################
4790 # Setup X11 Windows system
4791 ################################################################################
4792 
4793 
4794 #
4795 # Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
4796 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4797 #
4798 # This code is free software; you can redistribute it and/or modify it
4799 # under the terms of the GNU General Public License version 2 only, as
4800 # published by the Free Software Foundation.  Oracle designates this
4801 # particular file as subject to the "Classpath" exception as provided
4802 # by Oracle in the LICENSE file that accompanied this code.
4803 #
4804 # This code is distributed in the hope that it will be useful, but WITHOUT
4805 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4806 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4807 # version 2 for more details (a copy is included in the LICENSE file that
4808 # accompanied this code).
4809 #
4810 # You should have received a copy of the GNU General Public License version
4811 # 2 along with this work; if not, write to the Free Software Foundation,
4812 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4813 #
4814 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4815 # or visit www.oracle.com if you need additional information or have any
4816 # questions.
4817 #
4818 
4819 ################################################################################
4820 # Setup fontconfig
4821 ################################################################################
4822 
4823 
4824 
4825 ################################################################################
4826 # Determine which libraries are needed for this configuration
4827 ################################################################################
4828 
4829 
4830 ################################################################################
4831 # Parse library options, and setup needed libraries
4832 ################################################################################
4833 
4834 
4835 ################################################################################
4836 # Setup various libraries, typically small system libraries
4837 ################################################################################
4838 
4839 
4840 ################################################################################
4841 # libstlport.so.1 is needed for running gtest on Solaris. Find it to
4842 # redistribute it in the test image.
4843 ################################################################################
4844 
4845 
4846 
4847 #
4848 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4849 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4850 #
4851 # This code is free software; you can redistribute it and/or modify it
4852 # under the terms of the GNU General Public License version 2 only, as
4853 # published by the Free Software Foundation.  Oracle designates this
4854 # particular file as subject to the "Classpath" exception as provided
4855 # by Oracle in the LICENSE file that accompanied this code.
4856 #
4857 # This code is distributed in the hope that it will be useful, but WITHOUT
4858 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4859 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4860 # version 2 for more details (a copy is included in the LICENSE file that
4861 # accompanied this code).
4862 #
4863 # You should have received a copy of the GNU General Public License version
4864 # 2 along with this work; if not, write to the Free Software Foundation,
4865 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4866 #
4867 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4868 # or visit www.oracle.com if you need additional information or have any
4869 # questions.
4870 #
4871 
4872 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4873 # Converts autoconf style CPU name to OpenJDK style, into
4874 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4875 
4876 
4877 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4878 # Converts autoconf style OS name to OpenJDK style, into
4879 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4880 
4881 
4882 # Expects $host_os $host_cpu $build_os and $build_cpu
4883 # and $with_target_bits to have been setup!
4884 #
4885 # Translate the standard triplet(quadruplet) definition
4886 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4887 # OPENJDK_BUILD_OS, etc.
4888 
4889 
4890 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4891 # accordingly. Must be done after setting up build and target system, but before
4892 # doing anything else with these values.
4893 
4894 
4895 # Setup the legacy variables, for controlling the old makefiles.
4896 #
4897 
4898 
4899 # $1 - Either TARGET or BUILD to setup the variables for.
4900 
4901 
4902 
4903 
4904 
4905 
4906 #%%% Build and target systems %%%
4907 
4908 
4909 
4910 
4911 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4912 # Add -mX to various FLAGS variables.
4913 
4914 
4915 
4916 
4917 
4918 
4919 #
4920 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4921 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4922 #
4923 # This code is free software; you can redistribute it and/or modify it
4924 # under the terms of the GNU General Public License version 2 only, as
4925 # published by the Free Software Foundation.  Oracle designates this
4926 # particular file as subject to the "Classpath" exception as provided
4927 # by Oracle in the LICENSE file that accompanied this code.
4928 #
4929 # This code is distributed in the hope that it will be useful, but WITHOUT
4930 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4931 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4932 # version 2 for more details (a copy is included in the LICENSE file that
4933 # accompanied this code).
4934 #
4935 # You should have received a copy of the GNU General Public License version
4936 # 2 along with this work; if not, write to the Free Software Foundation,
4937 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4938 #
4939 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4940 # or visit www.oracle.com if you need additional information or have any
4941 # questions.
4942 #
4943 
4944 
4945 
4946 ################################################################################
4947 # Define a mechanism for importing extra prebuilt modules
4948 #
4949 
4950 
4951 
4952 #
4953 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4954 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4955 #
4956 # This code is free software; you can redistribute it and/or modify it
4957 # under the terms of the GNU General Public License version 2 only, as
4958 # published by the Free Software Foundation.  Oracle designates this
4959 # particular file as subject to the "Classpath" exception as provided
4960 # by Oracle in the LICENSE file that accompanied this code.
4961 #
4962 # This code is distributed in the hope that it will be useful, but WITHOUT
4963 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4964 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4965 # version 2 for more details (a copy is included in the LICENSE file that
4966 # accompanied this code).
4967 #
4968 # You should have received a copy of the GNU General Public License version
4969 # 2 along with this work; if not, write to the Free Software Foundation,
4970 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4971 #
4972 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4973 # or visit www.oracle.com if you need additional information or have any
4974 # questions.
4975 #
4976 
4977 ########################################################################
4978 # This file is responsible for detecting, verifying and setting up the
4979 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4980 # proper paths to the binaries, but it will not setup any flags.
4981 #
4982 # The binaries used is determined by the toolchain type, which is the family of
4983 # compilers and related tools that are used.
4984 ########################################################################
4985 
4986 
4987 # All valid toolchains, regardless of platform (used by help.m4)
4988 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4989 
4990 # These toolchains are valid on different platforms
4991 VALID_TOOLCHAINS_linux="gcc clang"
4992 VALID_TOOLCHAINS_solaris="solstudio"
4993 VALID_TOOLCHAINS_macosx="gcc clang"
4994 VALID_TOOLCHAINS_aix="xlc"
4995 VALID_TOOLCHAINS_windows="microsoft"
4996 
4997 # Toolchain descriptions
4998 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4999 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
5000 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
5001 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
5002 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
5003 
5004 # Minimum supported versions, empty means unspecified
5005 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
5006 TOOLCHAIN_MINIMUM_VERSION_gcc="4.7"
5007 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010
5008 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13"
5009 TOOLCHAIN_MINIMUM_VERSION_xlc=""
5010 
5011 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
5012 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
5013 # $1 - optional variable prefix for compiler and version variables (BUILD_)
5014 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
5015 
5016 
5017 # Check if the configured compiler (C and C++) is of a specific version or
5018 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
5019 #
5020 # Arguments:
5021 #   VERSION:   The version string to check against the found version
5022 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
5023 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
5024 #   PREFIX:   Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_)
5025 
5026 
5027 
5028 
5029 # Setup a number of variables describing how native output files are
5030 # named on this platform/toolchain.
5031 
5032 
5033 # Determine which toolchain type to use, and make sure it is valid for this
5034 # platform. Setup various information about the selected toolchain.
5035 
5036 
5037 # Before we start detecting the toolchain executables, we might need some
5038 # special setup, e.g. additional paths etc.
5039 
5040 
5041 # Restore path, etc
5042 
5043 
5044 # Check if a compiler is of the toolchain type we expect, and save the version
5045 # information from it. If the compiler does not match the expected type,
5046 # this function will abort using AC_MSG_ERROR. If it matches, the version will
5047 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
5048 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
5049 #
5050 # $1 = compiler to test (CC or CXX)
5051 # $2 = human readable name of compiler (C or C++)
5052 
5053 
5054 # Try to locate the given C or C++ compiler in the path, or otherwise.
5055 #
5056 # $1 = compiler to test (CC or CXX)
5057 # $2 = human readable name of compiler (C or C++)
5058 # $3 = compiler name to search for
5059 
5060 
5061 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
5062 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
5063 # archiver (AR). Verify that the compilers are correct according to the
5064 # toolchain type.
5065 
5066 
5067 # Setup additional tools that is considered a part of the toolchain, but not the
5068 # core part. Many of these are highly platform-specific and do not exist,
5069 # and/or are not needed on all platforms.
5070 
5071 
5072 # Setup the build tools (i.e, the compiler and linker used to build programs
5073 # that should be run on the build platform, not the target platform, as a build
5074 # helper). Since the non-cross-compile case uses the normal, target compilers
5075 # for this, we can only do this after these have been setup.
5076 
5077 
5078 # Do some additional checks on the detected tools.
5079 
5080 
5081 # Setup the JTReg Regression Test Harness.
5082 
5083 
5084 # Setup the JIB dependency resolver
5085 
5086 
5087 #
5088 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5089 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5090 #
5091 # This code is free software; you can redistribute it and/or modify it
5092 # under the terms of the GNU General Public License version 2 only, as
5093 # published by the Free Software Foundation.  Oracle designates this
5094 # particular file as subject to the "Classpath" exception as provided
5095 # by Oracle in the LICENSE file that accompanied this code.
5096 #
5097 # This code is distributed in the hope that it will be useful, but WITHOUT
5098 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5099 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5100 # version 2 for more details (a copy is included in the LICENSE file that
5101 # accompanied this code).
5102 #
5103 # You should have received a copy of the GNU General Public License version
5104 # 2 along with this work; if not, write to the Free Software Foundation,
5105 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5106 #
5107 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5108 # or visit www.oracle.com if you need additional information or have any
5109 # questions.
5110 #
5111 
5112 ################################################################################
5113 # The order of these defines the priority by which we try to find them.
5114 VALID_VS_VERSIONS="2013 2012 2010"
5115 
5116 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
5117 VS_VERSION_INTERNAL_2010=100
5118 VS_MSVCR_2010=msvcr100.dll
5119 # We don't use msvcp on Visual Studio 2010
5120 #VS_MSVCP_2010=msvcp100.dll
5121 VS_ENVVAR_2010="VS100COMNTOOLS"
5122 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
5123 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
5124 VS_VS_PLATFORM_NAME_2010="v100"
5125 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
5126 
5127 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
5128 VS_VERSION_INTERNAL_2012=110
5129 VS_MSVCR_2012=msvcr110.dll
5130 VS_MSVCP_2012=msvcp110.dll
5131 VS_ENVVAR_2012="VS110COMNTOOLS"
5132 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
5133 VS_SDK_INSTALLDIR_2012=
5134 VS_VS_PLATFORM_NAME_2012="v110"
5135 VS_SDK_PLATFORM_NAME_2012=
5136 
5137 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
5138 VS_VERSION_INTERNAL_2013=120
5139 VS_MSVCR_2013=msvcr120.dll
5140 VS_MSVCP_2013=msvcp120.dll
5141 VS_ENVVAR_2013="VS120COMNTOOLS"
5142 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
5143 VS_SDK_INSTALLDIR_2013=
5144 VS_VS_PLATFORM_NAME_2013="v120"
5145 VS_SDK_PLATFORM_NAME_2013=
5146 
5147 ################################################################################
5148 
5149 
5150 
5151 ################################################################################
5152 
5153 
5154 
5155 ################################################################################
5156 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
5157 # build environment and assigns it to VS_ENV_CMD
5158 
5159 
5160 ################################################################################
5161 
5162 
5163 
5164 ################################################################################
5165 # Check if the VS env variables were setup prior to running configure.
5166 # If not, then find vcvarsall.bat and run it automatically, and integrate
5167 # the set env variables into the spec file.
5168 
5169 
5170 
5171 
5172 
5173 
5174 
5175 
5176 
5177 
5178 
5179 
5180 
5181 
5182 # This line needs to be here, verbatim, after all includes and the dummy hook
5183 # definitions. It is replaced with custom functionality when building
5184 # custom sources.
5185 #CUSTOM_AUTOCONF_INCLUDE
5186 
5187 # Do not change or remove the following line, it is needed for consistency checks:
5188 DATE_WHEN_GENERATED=1513206608
5189 
5190 ###############################################################################
5191 #
5192 # Initialization / Boot-strapping
5193 #
5194 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5195 # thus it jumps back and forth, each time gaining something needed later on.
5196 #
5197 ###############################################################################
5198 
5199 # If we are requested to print additional help, do that and then exit.
5200 # This must be the very first call.
5201 
5202   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5203 
5204     # Print available toolchains
5205     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5206     $PRINTF "Which are valid to use depends on the build platform.\n"
5207     for toolchain in $VALID_TOOLCHAINS_all; do
5208       # Use indirect variable referencing
5209       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5210       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
5211       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
5212     done
5213     $PRINTF "\n"
5214 
5215     # Print available jvm features
5216     $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n"
5217     $PRINTF "Which are valid to use depends on the target platform.\n  "
5218     $PRINTF "%s " $VALID_JVM_FEATURES
5219     $PRINTF "\n"
5220 
5221     # And now exit directly
5222     exit 0
5223   fi
5224 
5225 
5226 # Basic initialization that must happen first of all in the normal process.
5227 
5228   # Save the original command line. This is passed to us by the wrapper configure script.
5229 
5230   # Save the path variable before it gets changed
5231   ORIGINAL_PATH="$PATH"
5232 
5233   DATE_WHEN_CONFIGURED=`LANG=C date`
5234 
5235   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5236 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5238 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5239 
5240 
5241   # Start with tools that do not need have cross compilation support
5242   # and can be expected to be found in the default PATH. These tools are
5243   # used by configure.
5244 
5245   # First are all the simple required tools.
5246 
5247 
5248 
5249   # Publish this variable in the help.
5250 
5251 
5252   if [ -z "${BASENAME+x}" ]; then
5253     # The variable is not set by user, try to locate tool using the code snippet
5254     for ac_prog in basename
5255 do
5256   # Extract the first word of "$ac_prog", so it can be a program name with args.
5257 set dummy $ac_prog; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_path_BASENAME+:} false; then :
5261   $as_echo_n "(cached) " >&6
5262 else
5263   case $BASENAME in
5264   [\\/]* | ?:[\\/]*)
5265   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5266   ;;
5267   *)
5268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271   IFS=$as_save_IFS
5272   test -z "$as_dir" && as_dir=.
5273     for ac_exec_ext in '' $ac_executable_extensions; do
5274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277     break 2
5278   fi
5279 done
5280   done
5281 IFS=$as_save_IFS
5282 
5283   ;;
5284 esac
5285 fi
5286 BASENAME=$ac_cv_path_BASENAME
5287 if test -n "$BASENAME"; then
5288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5289 $as_echo "$BASENAME" >&6; }
5290 else
5291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 $as_echo "no" >&6; }
5293 fi
5294 
5295 
5296   test -n "$BASENAME" && break
5297 done
5298 
5299   else
5300     # The variable is set, but is it from the command line or the environment?
5301 
5302     # Try to remove the string !BASENAME! from our list.
5303     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5304     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5305       # If it failed, the variable was not from the command line. Ignore it,
5306       # but warn the user (except for BASH, which is always set by the calling BASH).
5307       if test "xBASENAME" != xBASH; then
5308         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5309 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5310       fi
5311       # Try to locate tool using the code snippet
5312       for ac_prog in basename
5313 do
5314   # Extract the first word of "$ac_prog", so it can be a program name with args.
5315 set dummy $ac_prog; ac_word=$2
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 $as_echo_n "checking for $ac_word... " >&6; }
5318 if ${ac_cv_path_BASENAME+:} false; then :
5319   $as_echo_n "(cached) " >&6
5320 else
5321   case $BASENAME in
5322   [\\/]* | ?:[\\/]*)
5323   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5324   ;;
5325   *)
5326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5328 do
5329   IFS=$as_save_IFS
5330   test -z "$as_dir" && as_dir=.
5331     for ac_exec_ext in '' $ac_executable_extensions; do
5332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335     break 2
5336   fi
5337 done
5338   done
5339 IFS=$as_save_IFS
5340 
5341   ;;
5342 esac
5343 fi
5344 BASENAME=$ac_cv_path_BASENAME
5345 if test -n "$BASENAME"; then
5346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5347 $as_echo "$BASENAME" >&6; }
5348 else
5349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5351 fi
5352 
5353 
5354   test -n "$BASENAME" && break
5355 done
5356 
5357     else
5358       # If it succeeded, then it was overridden by the user. We will use it
5359       # for the tool.
5360 
5361       # First remove it from the list of overridden variables, so we can test
5362       # for unknown variables in the end.
5363       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5364 
5365       # Check if we try to supply an empty value
5366       if test "x$BASENAME" = x; then
5367         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5368 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5369         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5370 $as_echo_n "checking for BASENAME... " >&6; }
5371         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5372 $as_echo "disabled" >&6; }
5373       else
5374         # Check if the provided tool contains a complete path.
5375         tool_specified="$BASENAME"
5376         tool_basename="${tool_specified##*/}"
5377         if test "x$tool_basename" = "x$tool_specified"; then
5378           # A command without a complete path is provided, search $PATH.
5379           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5380 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5381           # Extract the first word of "$tool_basename", so it can be a program name with args.
5382 set dummy $tool_basename; ac_word=$2
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if ${ac_cv_path_BASENAME+:} false; then :
5386   $as_echo_n "(cached) " >&6
5387 else
5388   case $BASENAME in
5389   [\\/]* | ?:[\\/]*)
5390   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5391   ;;
5392   *)
5393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5395 do
5396   IFS=$as_save_IFS
5397   test -z "$as_dir" && as_dir=.
5398     for ac_exec_ext in '' $ac_executable_extensions; do
5399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402     break 2
5403   fi
5404 done
5405   done
5406 IFS=$as_save_IFS
5407 
5408   ;;
5409 esac
5410 fi
5411 BASENAME=$ac_cv_path_BASENAME
5412 if test -n "$BASENAME"; then
5413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5414 $as_echo "$BASENAME" >&6; }
5415 else
5416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5418 fi
5419 
5420 
5421           if test "x$BASENAME" = x; then
5422             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5423           fi
5424         else
5425           # Otherwise we believe it is a complete path. Use it as it is.
5426           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5427 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5428           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5429 $as_echo_n "checking for BASENAME... " >&6; }
5430           if test ! -x "$tool_specified"; then
5431             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5432 $as_echo "not found" >&6; }
5433             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5434           fi
5435           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5436 $as_echo "$tool_specified" >&6; }
5437         fi
5438       fi
5439     fi
5440 
5441   fi
5442 
5443 
5444 
5445   if test "x$BASENAME" = x; then
5446     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5447   fi
5448 
5449 
5450 
5451 
5452 
5453   # Publish this variable in the help.
5454 
5455 
5456   if [ -z "${BASH+x}" ]; then
5457     # The variable is not set by user, try to locate tool using the code snippet
5458     for ac_prog in bash
5459 do
5460   # Extract the first word of "$ac_prog", so it can be a program name with args.
5461 set dummy $ac_prog; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_path_BASH+:} false; then :
5465   $as_echo_n "(cached) " >&6
5466 else
5467   case $BASH in
5468   [\\/]* | ?:[\\/]*)
5469   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5470   ;;
5471   *)
5472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5474 do
5475   IFS=$as_save_IFS
5476   test -z "$as_dir" && as_dir=.
5477     for ac_exec_ext in '' $ac_executable_extensions; do
5478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481     break 2
5482   fi
5483 done
5484   done
5485 IFS=$as_save_IFS
5486 
5487   ;;
5488 esac
5489 fi
5490 BASH=$ac_cv_path_BASH
5491 if test -n "$BASH"; then
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5493 $as_echo "$BASH" >&6; }
5494 else
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5497 fi
5498 
5499 
5500   test -n "$BASH" && break
5501 done
5502 
5503   else
5504     # The variable is set, but is it from the command line or the environment?
5505 
5506     # Try to remove the string !BASH! from our list.
5507     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5508     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5509       # If it failed, the variable was not from the command line. Ignore it,
5510       # but warn the user (except for BASH, which is always set by the calling BASH).
5511       if test "xBASH" != xBASH; then
5512         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5513 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5514       fi
5515       # Try to locate tool using the code snippet
5516       for ac_prog in bash
5517 do
5518   # Extract the first word of "$ac_prog", so it can be a program name with args.
5519 set dummy $ac_prog; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_path_BASH+:} false; then :
5523   $as_echo_n "(cached) " >&6
5524 else
5525   case $BASH in
5526   [\\/]* | ?:[\\/]*)
5527   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5528   ;;
5529   *)
5530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 for as_dir in $PATH
5532 do
5533   IFS=$as_save_IFS
5534   test -z "$as_dir" && as_dir=.
5535     for ac_exec_ext in '' $ac_executable_extensions; do
5536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5537     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539     break 2
5540   fi
5541 done
5542   done
5543 IFS=$as_save_IFS
5544 
5545   ;;
5546 esac
5547 fi
5548 BASH=$ac_cv_path_BASH
5549 if test -n "$BASH"; then
5550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5551 $as_echo "$BASH" >&6; }
5552 else
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5555 fi
5556 
5557 
5558   test -n "$BASH" && break
5559 done
5560 
5561     else
5562       # If it succeeded, then it was overridden by the user. We will use it
5563       # for the tool.
5564 
5565       # First remove it from the list of overridden variables, so we can test
5566       # for unknown variables in the end.
5567       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5568 
5569       # Check if we try to supply an empty value
5570       if test "x$BASH" = x; then
5571         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5572 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5573         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5574 $as_echo_n "checking for BASH... " >&6; }
5575         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5576 $as_echo "disabled" >&6; }
5577       else
5578         # Check if the provided tool contains a complete path.
5579         tool_specified="$BASH"
5580         tool_basename="${tool_specified##*/}"
5581         if test "x$tool_basename" = "x$tool_specified"; then
5582           # A command without a complete path is provided, search $PATH.
5583           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5584 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5585           # Extract the first word of "$tool_basename", so it can be a program name with args.
5586 set dummy $tool_basename; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if ${ac_cv_path_BASH+:} false; then :
5590   $as_echo_n "(cached) " >&6
5591 else
5592   case $BASH in
5593   [\\/]* | ?:[\\/]*)
5594   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5595   ;;
5596   *)
5597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 for as_dir in $PATH
5599 do
5600   IFS=$as_save_IFS
5601   test -z "$as_dir" && as_dir=.
5602     for ac_exec_ext in '' $ac_executable_extensions; do
5603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5604     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606     break 2
5607   fi
5608 done
5609   done
5610 IFS=$as_save_IFS
5611 
5612   ;;
5613 esac
5614 fi
5615 BASH=$ac_cv_path_BASH
5616 if test -n "$BASH"; then
5617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5618 $as_echo "$BASH" >&6; }
5619 else
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5622 fi
5623 
5624 
5625           if test "x$BASH" = x; then
5626             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5627           fi
5628         else
5629           # Otherwise we believe it is a complete path. Use it as it is.
5630           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5631 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5632           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5633 $as_echo_n "checking for BASH... " >&6; }
5634           if test ! -x "$tool_specified"; then
5635             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5636 $as_echo "not found" >&6; }
5637             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5638           fi
5639           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5640 $as_echo "$tool_specified" >&6; }
5641         fi
5642       fi
5643     fi
5644 
5645   fi
5646 
5647 
5648 
5649   if test "x$BASH" = x; then
5650     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5651   fi
5652 
5653 
5654 
5655 
5656 
5657   # Publish this variable in the help.
5658 
5659 
5660   if [ -z "${CAT+x}" ]; then
5661     # The variable is not set by user, try to locate tool using the code snippet
5662     for ac_prog in cat
5663 do
5664   # Extract the first word of "$ac_prog", so it can be a program name with args.
5665 set dummy $ac_prog; ac_word=$2
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if ${ac_cv_path_CAT+:} false; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671   case $CAT in
5672   [\\/]* | ?:[\\/]*)
5673   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5674   ;;
5675   *)
5676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679   IFS=$as_save_IFS
5680   test -z "$as_dir" && as_dir=.
5681     for ac_exec_ext in '' $ac_executable_extensions; do
5682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685     break 2
5686   fi
5687 done
5688   done
5689 IFS=$as_save_IFS
5690 
5691   ;;
5692 esac
5693 fi
5694 CAT=$ac_cv_path_CAT
5695 if test -n "$CAT"; then
5696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5697 $as_echo "$CAT" >&6; }
5698 else
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5701 fi
5702 
5703 
5704   test -n "$CAT" && break
5705 done
5706 
5707   else
5708     # The variable is set, but is it from the command line or the environment?
5709 
5710     # Try to remove the string !CAT! from our list.
5711     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5712     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5713       # If it failed, the variable was not from the command line. Ignore it,
5714       # but warn the user (except for BASH, which is always set by the calling BASH).
5715       if test "xCAT" != xBASH; then
5716         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5717 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5718       fi
5719       # Try to locate tool using the code snippet
5720       for ac_prog in cat
5721 do
5722   # Extract the first word of "$ac_prog", so it can be a program name with args.
5723 set dummy $ac_prog; ac_word=$2
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725 $as_echo_n "checking for $ac_word... " >&6; }
5726 if ${ac_cv_path_CAT+:} false; then :
5727   $as_echo_n "(cached) " >&6
5728 else
5729   case $CAT in
5730   [\\/]* | ?:[\\/]*)
5731   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5732   ;;
5733   *)
5734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737   IFS=$as_save_IFS
5738   test -z "$as_dir" && as_dir=.
5739     for ac_exec_ext in '' $ac_executable_extensions; do
5740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743     break 2
5744   fi
5745 done
5746   done
5747 IFS=$as_save_IFS
5748 
5749   ;;
5750 esac
5751 fi
5752 CAT=$ac_cv_path_CAT
5753 if test -n "$CAT"; then
5754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5755 $as_echo "$CAT" >&6; }
5756 else
5757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 $as_echo "no" >&6; }
5759 fi
5760 
5761 
5762   test -n "$CAT" && break
5763 done
5764 
5765     else
5766       # If it succeeded, then it was overridden by the user. We will use it
5767       # for the tool.
5768 
5769       # First remove it from the list of overridden variables, so we can test
5770       # for unknown variables in the end.
5771       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5772 
5773       # Check if we try to supply an empty value
5774       if test "x$CAT" = x; then
5775         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5776 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5777         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5778 $as_echo_n "checking for CAT... " >&6; }
5779         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5780 $as_echo "disabled" >&6; }
5781       else
5782         # Check if the provided tool contains a complete path.
5783         tool_specified="$CAT"
5784         tool_basename="${tool_specified##*/}"
5785         if test "x$tool_basename" = "x$tool_specified"; then
5786           # A command without a complete path is provided, search $PATH.
5787           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5788 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5789           # Extract the first word of "$tool_basename", so it can be a program name with args.
5790 set dummy $tool_basename; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if ${ac_cv_path_CAT+:} false; then :
5794   $as_echo_n "(cached) " >&6
5795 else
5796   case $CAT in
5797   [\\/]* | ?:[\\/]*)
5798   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5799   ;;
5800   *)
5801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5803 do
5804   IFS=$as_save_IFS
5805   test -z "$as_dir" && as_dir=.
5806     for ac_exec_ext in '' $ac_executable_extensions; do
5807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5808     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5810     break 2
5811   fi
5812 done
5813   done
5814 IFS=$as_save_IFS
5815 
5816   ;;
5817 esac
5818 fi
5819 CAT=$ac_cv_path_CAT
5820 if test -n "$CAT"; then
5821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5822 $as_echo "$CAT" >&6; }
5823 else
5824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5826 fi
5827 
5828 
5829           if test "x$CAT" = x; then
5830             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5831           fi
5832         else
5833           # Otherwise we believe it is a complete path. Use it as it is.
5834           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5835 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5836           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5837 $as_echo_n "checking for CAT... " >&6; }
5838           if test ! -x "$tool_specified"; then
5839             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5840 $as_echo "not found" >&6; }
5841             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5842           fi
5843           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5844 $as_echo "$tool_specified" >&6; }
5845         fi
5846       fi
5847     fi
5848 
5849   fi
5850 
5851 
5852 
5853   if test "x$CAT" = x; then
5854     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5855   fi
5856 
5857 
5858 
5859 
5860 
5861   # Publish this variable in the help.
5862 
5863 
5864   if [ -z "${CHMOD+x}" ]; then
5865     # The variable is not set by user, try to locate tool using the code snippet
5866     for ac_prog in chmod
5867 do
5868   # Extract the first word of "$ac_prog", so it can be a program name with args.
5869 set dummy $ac_prog; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if ${ac_cv_path_CHMOD+:} false; then :
5873   $as_echo_n "(cached) " >&6
5874 else
5875   case $CHMOD in
5876   [\\/]* | ?:[\\/]*)
5877   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5878   ;;
5879   *)
5880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH
5882 do
5883   IFS=$as_save_IFS
5884   test -z "$as_dir" && as_dir=.
5885     for ac_exec_ext in '' $ac_executable_extensions; do
5886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5887     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5889     break 2
5890   fi
5891 done
5892   done
5893 IFS=$as_save_IFS
5894 
5895   ;;
5896 esac
5897 fi
5898 CHMOD=$ac_cv_path_CHMOD
5899 if test -n "$CHMOD"; then
5900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5901 $as_echo "$CHMOD" >&6; }
5902 else
5903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5905 fi
5906 
5907 
5908   test -n "$CHMOD" && break
5909 done
5910 
5911   else
5912     # The variable is set, but is it from the command line or the environment?
5913 
5914     # Try to remove the string !CHMOD! from our list.
5915     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5916     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5917       # If it failed, the variable was not from the command line. Ignore it,
5918       # but warn the user (except for BASH, which is always set by the calling BASH).
5919       if test "xCHMOD" != xBASH; then
5920         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5921 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5922       fi
5923       # Try to locate tool using the code snippet
5924       for ac_prog in chmod
5925 do
5926   # Extract the first word of "$ac_prog", so it can be a program name with args.
5927 set dummy $ac_prog; ac_word=$2
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929 $as_echo_n "checking for $ac_word... " >&6; }
5930 if ${ac_cv_path_CHMOD+:} false; then :
5931   $as_echo_n "(cached) " >&6
5932 else
5933   case $CHMOD in
5934   [\\/]* | ?:[\\/]*)
5935   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5936   ;;
5937   *)
5938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH
5940 do
5941   IFS=$as_save_IFS
5942   test -z "$as_dir" && as_dir=.
5943     for ac_exec_ext in '' $ac_executable_extensions; do
5944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5945     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947     break 2
5948   fi
5949 done
5950   done
5951 IFS=$as_save_IFS
5952 
5953   ;;
5954 esac
5955 fi
5956 CHMOD=$ac_cv_path_CHMOD
5957 if test -n "$CHMOD"; then
5958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5959 $as_echo "$CHMOD" >&6; }
5960 else
5961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962 $as_echo "no" >&6; }
5963 fi
5964 
5965 
5966   test -n "$CHMOD" && break
5967 done
5968 
5969     else
5970       # If it succeeded, then it was overridden by the user. We will use it
5971       # for the tool.
5972 
5973       # First remove it from the list of overridden variables, so we can test
5974       # for unknown variables in the end.
5975       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5976 
5977       # Check if we try to supply an empty value
5978       if test "x$CHMOD" = x; then
5979         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5980 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5981         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5982 $as_echo_n "checking for CHMOD... " >&6; }
5983         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5984 $as_echo "disabled" >&6; }
5985       else
5986         # Check if the provided tool contains a complete path.
5987         tool_specified="$CHMOD"
5988         tool_basename="${tool_specified##*/}"
5989         if test "x$tool_basename" = "x$tool_specified"; then
5990           # A command without a complete path is provided, search $PATH.
5991           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5992 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5993           # Extract the first word of "$tool_basename", so it can be a program name with args.
5994 set dummy $tool_basename; ac_word=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if ${ac_cv_path_CHMOD+:} false; then :
5998   $as_echo_n "(cached) " >&6
5999 else
6000   case $CHMOD in
6001   [\\/]* | ?:[\\/]*)
6002   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
6003   ;;
6004   *)
6005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008   IFS=$as_save_IFS
6009   test -z "$as_dir" && as_dir=.
6010     for ac_exec_ext in '' $ac_executable_extensions; do
6011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6012     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
6013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014     break 2
6015   fi
6016 done
6017   done
6018 IFS=$as_save_IFS
6019 
6020   ;;
6021 esac
6022 fi
6023 CHMOD=$ac_cv_path_CHMOD
6024 if test -n "$CHMOD"; then
6025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6026 $as_echo "$CHMOD" >&6; }
6027 else
6028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6030 fi
6031 
6032 
6033           if test "x$CHMOD" = x; then
6034             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6035           fi
6036         else
6037           # Otherwise we believe it is a complete path. Use it as it is.
6038           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
6039 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
6040           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
6041 $as_echo_n "checking for CHMOD... " >&6; }
6042           if test ! -x "$tool_specified"; then
6043             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6044 $as_echo "not found" >&6; }
6045             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
6046           fi
6047           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6048 $as_echo "$tool_specified" >&6; }
6049         fi
6050       fi
6051     fi
6052 
6053   fi
6054 
6055 
6056 
6057   if test "x$CHMOD" = x; then
6058     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
6059   fi
6060 
6061 
6062 
6063 
6064 
6065   # Publish this variable in the help.
6066 
6067 
6068   if [ -z "${CMP+x}" ]; then
6069     # The variable is not set by user, try to locate tool using the code snippet
6070     for ac_prog in cmp
6071 do
6072   # Extract the first word of "$ac_prog", so it can be a program name with args.
6073 set dummy $ac_prog; ac_word=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if ${ac_cv_path_CMP+:} false; then :
6077   $as_echo_n "(cached) " >&6
6078 else
6079   case $CMP in
6080   [\\/]* | ?:[\\/]*)
6081   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6082   ;;
6083   *)
6084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6086 do
6087   IFS=$as_save_IFS
6088   test -z "$as_dir" && as_dir=.
6089     for ac_exec_ext in '' $ac_executable_extensions; do
6090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6091     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093     break 2
6094   fi
6095 done
6096   done
6097 IFS=$as_save_IFS
6098 
6099   ;;
6100 esac
6101 fi
6102 CMP=$ac_cv_path_CMP
6103 if test -n "$CMP"; then
6104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6105 $as_echo "$CMP" >&6; }
6106 else
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6109 fi
6110 
6111 
6112   test -n "$CMP" && break
6113 done
6114 
6115   else
6116     # The variable is set, but is it from the command line or the environment?
6117 
6118     # Try to remove the string !CMP! from our list.
6119     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
6120     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6121       # If it failed, the variable was not from the command line. Ignore it,
6122       # but warn the user (except for BASH, which is always set by the calling BASH).
6123       if test "xCMP" != xBASH; then
6124         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
6125 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
6126       fi
6127       # Try to locate tool using the code snippet
6128       for ac_prog in cmp
6129 do
6130   # Extract the first word of "$ac_prog", so it can be a program name with args.
6131 set dummy $ac_prog; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if ${ac_cv_path_CMP+:} false; then :
6135   $as_echo_n "(cached) " >&6
6136 else
6137   case $CMP in
6138   [\\/]* | ?:[\\/]*)
6139   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6140   ;;
6141   *)
6142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6144 do
6145   IFS=$as_save_IFS
6146   test -z "$as_dir" && as_dir=.
6147     for ac_exec_ext in '' $ac_executable_extensions; do
6148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6149     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151     break 2
6152   fi
6153 done
6154   done
6155 IFS=$as_save_IFS
6156 
6157   ;;
6158 esac
6159 fi
6160 CMP=$ac_cv_path_CMP
6161 if test -n "$CMP"; then
6162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6163 $as_echo "$CMP" >&6; }
6164 else
6165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 $as_echo "no" >&6; }
6167 fi
6168 
6169 
6170   test -n "$CMP" && break
6171 done
6172 
6173     else
6174       # If it succeeded, then it was overridden by the user. We will use it
6175       # for the tool.
6176 
6177       # First remove it from the list of overridden variables, so we can test
6178       # for unknown variables in the end.
6179       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6180 
6181       # Check if we try to supply an empty value
6182       if test "x$CMP" = x; then
6183         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
6184 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
6185         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6186 $as_echo_n "checking for CMP... " >&6; }
6187         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6188 $as_echo "disabled" >&6; }
6189       else
6190         # Check if the provided tool contains a complete path.
6191         tool_specified="$CMP"
6192         tool_basename="${tool_specified##*/}"
6193         if test "x$tool_basename" = "x$tool_specified"; then
6194           # A command without a complete path is provided, search $PATH.
6195           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
6196 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
6197           # Extract the first word of "$tool_basename", so it can be a program name with args.
6198 set dummy $tool_basename; ac_word=$2
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6200 $as_echo_n "checking for $ac_word... " >&6; }
6201 if ${ac_cv_path_CMP+:} false; then :
6202   $as_echo_n "(cached) " >&6
6203 else
6204   case $CMP in
6205   [\\/]* | ?:[\\/]*)
6206   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6207   ;;
6208   *)
6209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6211 do
6212   IFS=$as_save_IFS
6213   test -z "$as_dir" && as_dir=.
6214     for ac_exec_ext in '' $ac_executable_extensions; do
6215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218     break 2
6219   fi
6220 done
6221   done
6222 IFS=$as_save_IFS
6223 
6224   ;;
6225 esac
6226 fi
6227 CMP=$ac_cv_path_CMP
6228 if test -n "$CMP"; then
6229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6230 $as_echo "$CMP" >&6; }
6231 else
6232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6234 fi
6235 
6236 
6237           if test "x$CMP" = x; then
6238             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6239           fi
6240         else
6241           # Otherwise we believe it is a complete path. Use it as it is.
6242           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6243 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6244           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6245 $as_echo_n "checking for CMP... " >&6; }
6246           if test ! -x "$tool_specified"; then
6247             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6248 $as_echo "not found" >&6; }
6249             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6250           fi
6251           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6252 $as_echo "$tool_specified" >&6; }
6253         fi
6254       fi
6255     fi
6256 
6257   fi
6258 
6259 
6260 
6261   if test "x$CMP" = x; then
6262     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6263   fi
6264 
6265 
6266 
6267 
6268 
6269   # Publish this variable in the help.
6270 
6271 
6272   if [ -z "${COMM+x}" ]; then
6273     # The variable is not set by user, try to locate tool using the code snippet
6274     for ac_prog in comm
6275 do
6276   # Extract the first word of "$ac_prog", so it can be a program name with args.
6277 set dummy $ac_prog; ac_word=$2
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6279 $as_echo_n "checking for $ac_word... " >&6; }
6280 if ${ac_cv_path_COMM+:} false; then :
6281   $as_echo_n "(cached) " >&6
6282 else
6283   case $COMM in
6284   [\\/]* | ?:[\\/]*)
6285   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6286   ;;
6287   *)
6288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6290 do
6291   IFS=$as_save_IFS
6292   test -z "$as_dir" && as_dir=.
6293     for ac_exec_ext in '' $ac_executable_extensions; do
6294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297     break 2
6298   fi
6299 done
6300   done
6301 IFS=$as_save_IFS
6302 
6303   ;;
6304 esac
6305 fi
6306 COMM=$ac_cv_path_COMM
6307 if test -n "$COMM"; then
6308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6309 $as_echo "$COMM" >&6; }
6310 else
6311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312 $as_echo "no" >&6; }
6313 fi
6314 
6315 
6316   test -n "$COMM" && break
6317 done
6318 
6319   else
6320     # The variable is set, but is it from the command line or the environment?
6321 
6322     # Try to remove the string !COMM! from our list.
6323     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6324     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6325       # If it failed, the variable was not from the command line. Ignore it,
6326       # but warn the user (except for BASH, which is always set by the calling BASH).
6327       if test "xCOMM" != xBASH; then
6328         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6329 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6330       fi
6331       # Try to locate tool using the code snippet
6332       for ac_prog in comm
6333 do
6334   # Extract the first word of "$ac_prog", so it can be a program name with args.
6335 set dummy $ac_prog; ac_word=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_path_COMM+:} false; then :
6339   $as_echo_n "(cached) " >&6
6340 else
6341   case $COMM in
6342   [\\/]* | ?:[\\/]*)
6343   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6344   ;;
6345   *)
6346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6348 do
6349   IFS=$as_save_IFS
6350   test -z "$as_dir" && as_dir=.
6351     for ac_exec_ext in '' $ac_executable_extensions; do
6352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355     break 2
6356   fi
6357 done
6358   done
6359 IFS=$as_save_IFS
6360 
6361   ;;
6362 esac
6363 fi
6364 COMM=$ac_cv_path_COMM
6365 if test -n "$COMM"; then
6366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6367 $as_echo "$COMM" >&6; }
6368 else
6369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 fi
6372 
6373 
6374   test -n "$COMM" && break
6375 done
6376 
6377     else
6378       # If it succeeded, then it was overridden by the user. We will use it
6379       # for the tool.
6380 
6381       # First remove it from the list of overridden variables, so we can test
6382       # for unknown variables in the end.
6383       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6384 
6385       # Check if we try to supply an empty value
6386       if test "x$COMM" = x; then
6387         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6388 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6389         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6390 $as_echo_n "checking for COMM... " >&6; }
6391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6392 $as_echo "disabled" >&6; }
6393       else
6394         # Check if the provided tool contains a complete path.
6395         tool_specified="$COMM"
6396         tool_basename="${tool_specified##*/}"
6397         if test "x$tool_basename" = "x$tool_specified"; then
6398           # A command without a complete path is provided, search $PATH.
6399           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6400 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6401           # Extract the first word of "$tool_basename", so it can be a program name with args.
6402 set dummy $tool_basename; ac_word=$2
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404 $as_echo_n "checking for $ac_word... " >&6; }
6405 if ${ac_cv_path_COMM+:} false; then :
6406   $as_echo_n "(cached) " >&6
6407 else
6408   case $COMM in
6409   [\\/]* | ?:[\\/]*)
6410   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6411   ;;
6412   *)
6413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6415 do
6416   IFS=$as_save_IFS
6417   test -z "$as_dir" && as_dir=.
6418     for ac_exec_ext in '' $ac_executable_extensions; do
6419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6420     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422     break 2
6423   fi
6424 done
6425   done
6426 IFS=$as_save_IFS
6427 
6428   ;;
6429 esac
6430 fi
6431 COMM=$ac_cv_path_COMM
6432 if test -n "$COMM"; then
6433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6434 $as_echo "$COMM" >&6; }
6435 else
6436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6438 fi
6439 
6440 
6441           if test "x$COMM" = x; then
6442             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6443           fi
6444         else
6445           # Otherwise we believe it is a complete path. Use it as it is.
6446           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6447 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6448           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6449 $as_echo_n "checking for COMM... " >&6; }
6450           if test ! -x "$tool_specified"; then
6451             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6452 $as_echo "not found" >&6; }
6453             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6454           fi
6455           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6456 $as_echo "$tool_specified" >&6; }
6457         fi
6458       fi
6459     fi
6460 
6461   fi
6462 
6463 
6464 
6465   if test "x$COMM" = x; then
6466     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6467   fi
6468 
6469 
6470 
6471 
6472 
6473   # Publish this variable in the help.
6474 
6475 
6476   if [ -z "${CP+x}" ]; then
6477     # The variable is not set by user, try to locate tool using the code snippet
6478     for ac_prog in cp
6479 do
6480   # Extract the first word of "$ac_prog", so it can be a program name with args.
6481 set dummy $ac_prog; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_path_CP+:} false; then :
6485   $as_echo_n "(cached) " >&6
6486 else
6487   case $CP in
6488   [\\/]* | ?:[\\/]*)
6489   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6490   ;;
6491   *)
6492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495   IFS=$as_save_IFS
6496   test -z "$as_dir" && as_dir=.
6497     for ac_exec_ext in '' $ac_executable_extensions; do
6498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501     break 2
6502   fi
6503 done
6504   done
6505 IFS=$as_save_IFS
6506 
6507   ;;
6508 esac
6509 fi
6510 CP=$ac_cv_path_CP
6511 if test -n "$CP"; then
6512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6513 $as_echo "$CP" >&6; }
6514 else
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6517 fi
6518 
6519 
6520   test -n "$CP" && break
6521 done
6522 
6523   else
6524     # The variable is set, but is it from the command line or the environment?
6525 
6526     # Try to remove the string !CP! from our list.
6527     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6528     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6529       # If it failed, the variable was not from the command line. Ignore it,
6530       # but warn the user (except for BASH, which is always set by the calling BASH).
6531       if test "xCP" != xBASH; then
6532         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6533 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6534       fi
6535       # Try to locate tool using the code snippet
6536       for ac_prog in cp
6537 do
6538   # Extract the first word of "$ac_prog", so it can be a program name with args.
6539 set dummy $ac_prog; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if ${ac_cv_path_CP+:} false; then :
6543   $as_echo_n "(cached) " >&6
6544 else
6545   case $CP in
6546   [\\/]* | ?:[\\/]*)
6547   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6548   ;;
6549   *)
6550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555     for ac_exec_ext in '' $ac_executable_extensions; do
6556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6557     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562   done
6563 IFS=$as_save_IFS
6564 
6565   ;;
6566 esac
6567 fi
6568 CP=$ac_cv_path_CP
6569 if test -n "$CP"; then
6570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6571 $as_echo "$CP" >&6; }
6572 else
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6575 fi
6576 
6577 
6578   test -n "$CP" && break
6579 done
6580 
6581     else
6582       # If it succeeded, then it was overridden by the user. We will use it
6583       # for the tool.
6584 
6585       # First remove it from the list of overridden variables, so we can test
6586       # for unknown variables in the end.
6587       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6588 
6589       # Check if we try to supply an empty value
6590       if test "x$CP" = x; then
6591         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6592 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6593         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6594 $as_echo_n "checking for CP... " >&6; }
6595         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6596 $as_echo "disabled" >&6; }
6597       else
6598         # Check if the provided tool contains a complete path.
6599         tool_specified="$CP"
6600         tool_basename="${tool_specified##*/}"
6601         if test "x$tool_basename" = "x$tool_specified"; then
6602           # A command without a complete path is provided, search $PATH.
6603           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6604 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6605           # Extract the first word of "$tool_basename", so it can be a program name with args.
6606 set dummy $tool_basename; ac_word=$2
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608 $as_echo_n "checking for $ac_word... " >&6; }
6609 if ${ac_cv_path_CP+:} false; then :
6610   $as_echo_n "(cached) " >&6
6611 else
6612   case $CP in
6613   [\\/]* | ?:[\\/]*)
6614   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6615   ;;
6616   *)
6617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620   IFS=$as_save_IFS
6621   test -z "$as_dir" && as_dir=.
6622     for ac_exec_ext in '' $ac_executable_extensions; do
6623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626     break 2
6627   fi
6628 done
6629   done
6630 IFS=$as_save_IFS
6631 
6632   ;;
6633 esac
6634 fi
6635 CP=$ac_cv_path_CP
6636 if test -n "$CP"; then
6637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6638 $as_echo "$CP" >&6; }
6639 else
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6642 fi
6643 
6644 
6645           if test "x$CP" = x; then
6646             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6647           fi
6648         else
6649           # Otherwise we believe it is a complete path. Use it as it is.
6650           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6651 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6652           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6653 $as_echo_n "checking for CP... " >&6; }
6654           if test ! -x "$tool_specified"; then
6655             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6656 $as_echo "not found" >&6; }
6657             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6658           fi
6659           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6660 $as_echo "$tool_specified" >&6; }
6661         fi
6662       fi
6663     fi
6664 
6665   fi
6666 
6667 
6668 
6669   if test "x$CP" = x; then
6670     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6671   fi
6672 
6673 
6674 
6675 
6676 
6677   # Publish this variable in the help.
6678 
6679 
6680   if [ -z "${CUT+x}" ]; then
6681     # The variable is not set by user, try to locate tool using the code snippet
6682     for ac_prog in cut
6683 do
6684   # Extract the first word of "$ac_prog", so it can be a program name with args.
6685 set dummy $ac_prog; ac_word=$2
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687 $as_echo_n "checking for $ac_word... " >&6; }
6688 if ${ac_cv_path_CUT+:} false; then :
6689   $as_echo_n "(cached) " >&6
6690 else
6691   case $CUT in
6692   [\\/]* | ?:[\\/]*)
6693   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6694   ;;
6695   *)
6696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6698 do
6699   IFS=$as_save_IFS
6700   test -z "$as_dir" && as_dir=.
6701     for ac_exec_ext in '' $ac_executable_extensions; do
6702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6703     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705     break 2
6706   fi
6707 done
6708   done
6709 IFS=$as_save_IFS
6710 
6711   ;;
6712 esac
6713 fi
6714 CUT=$ac_cv_path_CUT
6715 if test -n "$CUT"; then
6716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6717 $as_echo "$CUT" >&6; }
6718 else
6719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6721 fi
6722 
6723 
6724   test -n "$CUT" && break
6725 done
6726 
6727   else
6728     # The variable is set, but is it from the command line or the environment?
6729 
6730     # Try to remove the string !CUT! from our list.
6731     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6732     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6733       # If it failed, the variable was not from the command line. Ignore it,
6734       # but warn the user (except for BASH, which is always set by the calling BASH).
6735       if test "xCUT" != xBASH; then
6736         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6737 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6738       fi
6739       # Try to locate tool using the code snippet
6740       for ac_prog in cut
6741 do
6742   # Extract the first word of "$ac_prog", so it can be a program name with args.
6743 set dummy $ac_prog; ac_word=$2
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745 $as_echo_n "checking for $ac_word... " >&6; }
6746 if ${ac_cv_path_CUT+:} false; then :
6747   $as_echo_n "(cached) " >&6
6748 else
6749   case $CUT in
6750   [\\/]* | ?:[\\/]*)
6751   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6752   ;;
6753   *)
6754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6756 do
6757   IFS=$as_save_IFS
6758   test -z "$as_dir" && as_dir=.
6759     for ac_exec_ext in '' $ac_executable_extensions; do
6760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6761     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763     break 2
6764   fi
6765 done
6766   done
6767 IFS=$as_save_IFS
6768 
6769   ;;
6770 esac
6771 fi
6772 CUT=$ac_cv_path_CUT
6773 if test -n "$CUT"; then
6774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6775 $as_echo "$CUT" >&6; }
6776 else
6777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6779 fi
6780 
6781 
6782   test -n "$CUT" && break
6783 done
6784 
6785     else
6786       # If it succeeded, then it was overridden by the user. We will use it
6787       # for the tool.
6788 
6789       # First remove it from the list of overridden variables, so we can test
6790       # for unknown variables in the end.
6791       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6792 
6793       # Check if we try to supply an empty value
6794       if test "x$CUT" = x; then
6795         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6796 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6797         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6798 $as_echo_n "checking for CUT... " >&6; }
6799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6800 $as_echo "disabled" >&6; }
6801       else
6802         # Check if the provided tool contains a complete path.
6803         tool_specified="$CUT"
6804         tool_basename="${tool_specified##*/}"
6805         if test "x$tool_basename" = "x$tool_specified"; then
6806           # A command without a complete path is provided, search $PATH.
6807           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6808 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6809           # Extract the first word of "$tool_basename", so it can be a program name with args.
6810 set dummy $tool_basename; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if ${ac_cv_path_CUT+:} false; then :
6814   $as_echo_n "(cached) " >&6
6815 else
6816   case $CUT in
6817   [\\/]* | ?:[\\/]*)
6818   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6819   ;;
6820   *)
6821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824   IFS=$as_save_IFS
6825   test -z "$as_dir" && as_dir=.
6826     for ac_exec_ext in '' $ac_executable_extensions; do
6827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830     break 2
6831   fi
6832 done
6833   done
6834 IFS=$as_save_IFS
6835 
6836   ;;
6837 esac
6838 fi
6839 CUT=$ac_cv_path_CUT
6840 if test -n "$CUT"; then
6841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6842 $as_echo "$CUT" >&6; }
6843 else
6844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6846 fi
6847 
6848 
6849           if test "x$CUT" = x; then
6850             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6851           fi
6852         else
6853           # Otherwise we believe it is a complete path. Use it as it is.
6854           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6855 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6856           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6857 $as_echo_n "checking for CUT... " >&6; }
6858           if test ! -x "$tool_specified"; then
6859             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6860 $as_echo "not found" >&6; }
6861             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6862           fi
6863           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6864 $as_echo "$tool_specified" >&6; }
6865         fi
6866       fi
6867     fi
6868 
6869   fi
6870 
6871 
6872 
6873   if test "x$CUT" = x; then
6874     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6875   fi
6876 
6877 
6878 
6879 
6880 
6881   # Publish this variable in the help.
6882 
6883 
6884   if [ -z "${DATE+x}" ]; then
6885     # The variable is not set by user, try to locate tool using the code snippet
6886     for ac_prog in date
6887 do
6888   # Extract the first word of "$ac_prog", so it can be a program name with args.
6889 set dummy $ac_prog; ac_word=$2
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891 $as_echo_n "checking for $ac_word... " >&6; }
6892 if ${ac_cv_path_DATE+:} false; then :
6893   $as_echo_n "(cached) " >&6
6894 else
6895   case $DATE in
6896   [\\/]* | ?:[\\/]*)
6897   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6898   ;;
6899   *)
6900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903   IFS=$as_save_IFS
6904   test -z "$as_dir" && as_dir=.
6905     for ac_exec_ext in '' $ac_executable_extensions; do
6906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909     break 2
6910   fi
6911 done
6912   done
6913 IFS=$as_save_IFS
6914 
6915   ;;
6916 esac
6917 fi
6918 DATE=$ac_cv_path_DATE
6919 if test -n "$DATE"; then
6920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6921 $as_echo "$DATE" >&6; }
6922 else
6923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6925 fi
6926 
6927 
6928   test -n "$DATE" && break
6929 done
6930 
6931   else
6932     # The variable is set, but is it from the command line or the environment?
6933 
6934     # Try to remove the string !DATE! from our list.
6935     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6936     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6937       # If it failed, the variable was not from the command line. Ignore it,
6938       # but warn the user (except for BASH, which is always set by the calling BASH).
6939       if test "xDATE" != xBASH; then
6940         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6941 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6942       fi
6943       # Try to locate tool using the code snippet
6944       for ac_prog in date
6945 do
6946   # Extract the first word of "$ac_prog", so it can be a program name with args.
6947 set dummy $ac_prog; ac_word=$2
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949 $as_echo_n "checking for $ac_word... " >&6; }
6950 if ${ac_cv_path_DATE+:} false; then :
6951   $as_echo_n "(cached) " >&6
6952 else
6953   case $DATE in
6954   [\\/]* | ?:[\\/]*)
6955   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6956   ;;
6957   *)
6958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6960 do
6961   IFS=$as_save_IFS
6962   test -z "$as_dir" && as_dir=.
6963     for ac_exec_ext in '' $ac_executable_extensions; do
6964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6965     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967     break 2
6968   fi
6969 done
6970   done
6971 IFS=$as_save_IFS
6972 
6973   ;;
6974 esac
6975 fi
6976 DATE=$ac_cv_path_DATE
6977 if test -n "$DATE"; then
6978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6979 $as_echo "$DATE" >&6; }
6980 else
6981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984 
6985 
6986   test -n "$DATE" && break
6987 done
6988 
6989     else
6990       # If it succeeded, then it was overridden by the user. We will use it
6991       # for the tool.
6992 
6993       # First remove it from the list of overridden variables, so we can test
6994       # for unknown variables in the end.
6995       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6996 
6997       # Check if we try to supply an empty value
6998       if test "x$DATE" = x; then
6999         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
7000 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
7001         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7002 $as_echo_n "checking for DATE... " >&6; }
7003         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7004 $as_echo "disabled" >&6; }
7005       else
7006         # Check if the provided tool contains a complete path.
7007         tool_specified="$DATE"
7008         tool_basename="${tool_specified##*/}"
7009         if test "x$tool_basename" = "x$tool_specified"; then
7010           # A command without a complete path is provided, search $PATH.
7011           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
7012 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
7013           # Extract the first word of "$tool_basename", so it can be a program name with args.
7014 set dummy $tool_basename; ac_word=$2
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016 $as_echo_n "checking for $ac_word... " >&6; }
7017 if ${ac_cv_path_DATE+:} false; then :
7018   $as_echo_n "(cached) " >&6
7019 else
7020   case $DATE in
7021   [\\/]* | ?:[\\/]*)
7022   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
7023   ;;
7024   *)
7025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028   IFS=$as_save_IFS
7029   test -z "$as_dir" && as_dir=.
7030     for ac_exec_ext in '' $ac_executable_extensions; do
7031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034     break 2
7035   fi
7036 done
7037   done
7038 IFS=$as_save_IFS
7039 
7040   ;;
7041 esac
7042 fi
7043 DATE=$ac_cv_path_DATE
7044 if test -n "$DATE"; then
7045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
7046 $as_echo "$DATE" >&6; }
7047 else
7048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7050 fi
7051 
7052 
7053           if test "x$DATE" = x; then
7054             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7055           fi
7056         else
7057           # Otherwise we believe it is a complete path. Use it as it is.
7058           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
7059 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
7060           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7061 $as_echo_n "checking for DATE... " >&6; }
7062           if test ! -x "$tool_specified"; then
7063             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7064 $as_echo "not found" >&6; }
7065             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
7066           fi
7067           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7068 $as_echo "$tool_specified" >&6; }
7069         fi
7070       fi
7071     fi
7072 
7073   fi
7074 
7075 
7076 
7077   if test "x$DATE" = x; then
7078     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
7079   fi
7080 
7081 
7082 
7083 
7084 
7085   # Publish this variable in the help.
7086 
7087 
7088   if [ -z "${DIFF+x}" ]; then
7089     # The variable is not set by user, try to locate tool using the code snippet
7090     for ac_prog in gdiff diff
7091 do
7092   # Extract the first word of "$ac_prog", so it can be a program name with args.
7093 set dummy $ac_prog; ac_word=$2
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if ${ac_cv_path_DIFF+:} false; then :
7097   $as_echo_n "(cached) " >&6
7098 else
7099   case $DIFF in
7100   [\\/]* | ?:[\\/]*)
7101   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7102   ;;
7103   *)
7104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107   IFS=$as_save_IFS
7108   test -z "$as_dir" && as_dir=.
7109     for ac_exec_ext in '' $ac_executable_extensions; do
7110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7111     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113     break 2
7114   fi
7115 done
7116   done
7117 IFS=$as_save_IFS
7118 
7119   ;;
7120 esac
7121 fi
7122 DIFF=$ac_cv_path_DIFF
7123 if test -n "$DIFF"; then
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7125 $as_echo "$DIFF" >&6; }
7126 else
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7129 fi
7130 
7131 
7132   test -n "$DIFF" && break
7133 done
7134 
7135   else
7136     # The variable is set, but is it from the command line or the environment?
7137 
7138     # Try to remove the string !DIFF! from our list.
7139     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
7140     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7141       # If it failed, the variable was not from the command line. Ignore it,
7142       # but warn the user (except for BASH, which is always set by the calling BASH).
7143       if test "xDIFF" != xBASH; then
7144         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
7145 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
7146       fi
7147       # Try to locate tool using the code snippet
7148       for ac_prog in gdiff diff
7149 do
7150   # Extract the first word of "$ac_prog", so it can be a program name with args.
7151 set dummy $ac_prog; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_path_DIFF+:} false; then :
7155   $as_echo_n "(cached) " >&6
7156 else
7157   case $DIFF in
7158   [\\/]* | ?:[\\/]*)
7159   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7160   ;;
7161   *)
7162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165   IFS=$as_save_IFS
7166   test -z "$as_dir" && as_dir=.
7167     for ac_exec_ext in '' $ac_executable_extensions; do
7168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7169     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171     break 2
7172   fi
7173 done
7174   done
7175 IFS=$as_save_IFS
7176 
7177   ;;
7178 esac
7179 fi
7180 DIFF=$ac_cv_path_DIFF
7181 if test -n "$DIFF"; then
7182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7183 $as_echo "$DIFF" >&6; }
7184 else
7185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7187 fi
7188 
7189 
7190   test -n "$DIFF" && break
7191 done
7192 
7193     else
7194       # If it succeeded, then it was overridden by the user. We will use it
7195       # for the tool.
7196 
7197       # First remove it from the list of overridden variables, so we can test
7198       # for unknown variables in the end.
7199       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7200 
7201       # Check if we try to supply an empty value
7202       if test "x$DIFF" = x; then
7203         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
7204 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
7205         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7206 $as_echo_n "checking for DIFF... " >&6; }
7207         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7208 $as_echo "disabled" >&6; }
7209       else
7210         # Check if the provided tool contains a complete path.
7211         tool_specified="$DIFF"
7212         tool_basename="${tool_specified##*/}"
7213         if test "x$tool_basename" = "x$tool_specified"; then
7214           # A command without a complete path is provided, search $PATH.
7215           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
7216 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
7217           # Extract the first word of "$tool_basename", so it can be a program name with args.
7218 set dummy $tool_basename; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if ${ac_cv_path_DIFF+:} false; then :
7222   $as_echo_n "(cached) " >&6
7223 else
7224   case $DIFF in
7225   [\\/]* | ?:[\\/]*)
7226   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7227   ;;
7228   *)
7229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232   IFS=$as_save_IFS
7233   test -z "$as_dir" && as_dir=.
7234     for ac_exec_ext in '' $ac_executable_extensions; do
7235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238     break 2
7239   fi
7240 done
7241   done
7242 IFS=$as_save_IFS
7243 
7244   ;;
7245 esac
7246 fi
7247 DIFF=$ac_cv_path_DIFF
7248 if test -n "$DIFF"; then
7249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7250 $as_echo "$DIFF" >&6; }
7251 else
7252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7254 fi
7255 
7256 
7257           if test "x$DIFF" = x; then
7258             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7259           fi
7260         else
7261           # Otherwise we believe it is a complete path. Use it as it is.
7262           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7263 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7264           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7265 $as_echo_n "checking for DIFF... " >&6; }
7266           if test ! -x "$tool_specified"; then
7267             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7268 $as_echo "not found" >&6; }
7269             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7270           fi
7271           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7272 $as_echo "$tool_specified" >&6; }
7273         fi
7274       fi
7275     fi
7276 
7277   fi
7278 
7279 
7280 
7281   if test "x$DIFF" = x; then
7282     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7283   fi
7284 
7285 
7286 
7287 
7288 
7289   # Publish this variable in the help.
7290 
7291 
7292   if [ -z "${DIRNAME+x}" ]; then
7293     # The variable is not set by user, try to locate tool using the code snippet
7294     for ac_prog in dirname
7295 do
7296   # Extract the first word of "$ac_prog", so it can be a program name with args.
7297 set dummy $ac_prog; ac_word=$2
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299 $as_echo_n "checking for $ac_word... " >&6; }
7300 if ${ac_cv_path_DIRNAME+:} false; then :
7301   $as_echo_n "(cached) " >&6
7302 else
7303   case $DIRNAME in
7304   [\\/]* | ?:[\\/]*)
7305   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7306   ;;
7307   *)
7308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311   IFS=$as_save_IFS
7312   test -z "$as_dir" && as_dir=.
7313     for ac_exec_ext in '' $ac_executable_extensions; do
7314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317     break 2
7318   fi
7319 done
7320   done
7321 IFS=$as_save_IFS
7322 
7323   ;;
7324 esac
7325 fi
7326 DIRNAME=$ac_cv_path_DIRNAME
7327 if test -n "$DIRNAME"; then
7328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7329 $as_echo "$DIRNAME" >&6; }
7330 else
7331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7333 fi
7334 
7335 
7336   test -n "$DIRNAME" && break
7337 done
7338 
7339   else
7340     # The variable is set, but is it from the command line or the environment?
7341 
7342     # Try to remove the string !DIRNAME! from our list.
7343     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7344     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7345       # If it failed, the variable was not from the command line. Ignore it,
7346       # but warn the user (except for BASH, which is always set by the calling BASH).
7347       if test "xDIRNAME" != xBASH; then
7348         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7349 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7350       fi
7351       # Try to locate tool using the code snippet
7352       for ac_prog in dirname
7353 do
7354   # Extract the first word of "$ac_prog", so it can be a program name with args.
7355 set dummy $ac_prog; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if ${ac_cv_path_DIRNAME+:} false; then :
7359   $as_echo_n "(cached) " >&6
7360 else
7361   case $DIRNAME in
7362   [\\/]* | ?:[\\/]*)
7363   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7364   ;;
7365   *)
7366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369   IFS=$as_save_IFS
7370   test -z "$as_dir" && as_dir=.
7371     for ac_exec_ext in '' $ac_executable_extensions; do
7372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375     break 2
7376   fi
7377 done
7378   done
7379 IFS=$as_save_IFS
7380 
7381   ;;
7382 esac
7383 fi
7384 DIRNAME=$ac_cv_path_DIRNAME
7385 if test -n "$DIRNAME"; then
7386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7387 $as_echo "$DIRNAME" >&6; }
7388 else
7389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7391 fi
7392 
7393 
7394   test -n "$DIRNAME" && break
7395 done
7396 
7397     else
7398       # If it succeeded, then it was overridden by the user. We will use it
7399       # for the tool.
7400 
7401       # First remove it from the list of overridden variables, so we can test
7402       # for unknown variables in the end.
7403       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7404 
7405       # Check if we try to supply an empty value
7406       if test "x$DIRNAME" = x; then
7407         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7408 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7409         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7410 $as_echo_n "checking for DIRNAME... " >&6; }
7411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7412 $as_echo "disabled" >&6; }
7413       else
7414         # Check if the provided tool contains a complete path.
7415         tool_specified="$DIRNAME"
7416         tool_basename="${tool_specified##*/}"
7417         if test "x$tool_basename" = "x$tool_specified"; then
7418           # A command without a complete path is provided, search $PATH.
7419           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7420 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7421           # Extract the first word of "$tool_basename", so it can be a program name with args.
7422 set dummy $tool_basename; ac_word=$2
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7424 $as_echo_n "checking for $ac_word... " >&6; }
7425 if ${ac_cv_path_DIRNAME+:} false; then :
7426   $as_echo_n "(cached) " >&6
7427 else
7428   case $DIRNAME in
7429   [\\/]* | ?:[\\/]*)
7430   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7431   ;;
7432   *)
7433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7435 do
7436   IFS=$as_save_IFS
7437   test -z "$as_dir" && as_dir=.
7438     for ac_exec_ext in '' $ac_executable_extensions; do
7439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442     break 2
7443   fi
7444 done
7445   done
7446 IFS=$as_save_IFS
7447 
7448   ;;
7449 esac
7450 fi
7451 DIRNAME=$ac_cv_path_DIRNAME
7452 if test -n "$DIRNAME"; then
7453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7454 $as_echo "$DIRNAME" >&6; }
7455 else
7456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7458 fi
7459 
7460 
7461           if test "x$DIRNAME" = x; then
7462             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7463           fi
7464         else
7465           # Otherwise we believe it is a complete path. Use it as it is.
7466           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7467 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7468           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7469 $as_echo_n "checking for DIRNAME... " >&6; }
7470           if test ! -x "$tool_specified"; then
7471             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7472 $as_echo "not found" >&6; }
7473             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7474           fi
7475           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7476 $as_echo "$tool_specified" >&6; }
7477         fi
7478       fi
7479     fi
7480 
7481   fi
7482 
7483 
7484 
7485   if test "x$DIRNAME" = x; then
7486     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7487   fi
7488 
7489 
7490 
7491 
7492 
7493   # Publish this variable in the help.
7494 
7495 
7496   if [ -z "${ECHO+x}" ]; then
7497     # The variable is not set by user, try to locate tool using the code snippet
7498     for ac_prog in echo
7499 do
7500   # Extract the first word of "$ac_prog", so it can be a program name with args.
7501 set dummy $ac_prog; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if ${ac_cv_path_ECHO+:} false; then :
7505   $as_echo_n "(cached) " >&6
7506 else
7507   case $ECHO in
7508   [\\/]* | ?:[\\/]*)
7509   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7510   ;;
7511   *)
7512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7514 do
7515   IFS=$as_save_IFS
7516   test -z "$as_dir" && as_dir=.
7517     for ac_exec_ext in '' $ac_executable_extensions; do
7518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521     break 2
7522   fi
7523 done
7524   done
7525 IFS=$as_save_IFS
7526 
7527   ;;
7528 esac
7529 fi
7530 ECHO=$ac_cv_path_ECHO
7531 if test -n "$ECHO"; then
7532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7533 $as_echo "$ECHO" >&6; }
7534 else
7535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7537 fi
7538 
7539 
7540   test -n "$ECHO" && break
7541 done
7542 
7543   else
7544     # The variable is set, but is it from the command line or the environment?
7545 
7546     # Try to remove the string !ECHO! from our list.
7547     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7548     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7549       # If it failed, the variable was not from the command line. Ignore it,
7550       # but warn the user (except for BASH, which is always set by the calling BASH).
7551       if test "xECHO" != xBASH; then
7552         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7553 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7554       fi
7555       # Try to locate tool using the code snippet
7556       for ac_prog in echo
7557 do
7558   # Extract the first word of "$ac_prog", so it can be a program name with args.
7559 set dummy $ac_prog; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if ${ac_cv_path_ECHO+:} false; then :
7563   $as_echo_n "(cached) " >&6
7564 else
7565   case $ECHO in
7566   [\\/]* | ?:[\\/]*)
7567   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7568   ;;
7569   *)
7570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 for as_dir in $PATH
7572 do
7573   IFS=$as_save_IFS
7574   test -z "$as_dir" && as_dir=.
7575     for ac_exec_ext in '' $ac_executable_extensions; do
7576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7577     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579     break 2
7580   fi
7581 done
7582   done
7583 IFS=$as_save_IFS
7584 
7585   ;;
7586 esac
7587 fi
7588 ECHO=$ac_cv_path_ECHO
7589 if test -n "$ECHO"; then
7590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7591 $as_echo "$ECHO" >&6; }
7592 else
7593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7595 fi
7596 
7597 
7598   test -n "$ECHO" && break
7599 done
7600 
7601     else
7602       # If it succeeded, then it was overridden by the user. We will use it
7603       # for the tool.
7604 
7605       # First remove it from the list of overridden variables, so we can test
7606       # for unknown variables in the end.
7607       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7608 
7609       # Check if we try to supply an empty value
7610       if test "x$ECHO" = x; then
7611         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7612 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7614 $as_echo_n "checking for ECHO... " >&6; }
7615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7616 $as_echo "disabled" >&6; }
7617       else
7618         # Check if the provided tool contains a complete path.
7619         tool_specified="$ECHO"
7620         tool_basename="${tool_specified##*/}"
7621         if test "x$tool_basename" = "x$tool_specified"; then
7622           # A command without a complete path is provided, search $PATH.
7623           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7624 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7625           # Extract the first word of "$tool_basename", so it can be a program name with args.
7626 set dummy $tool_basename; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_path_ECHO+:} false; then :
7630   $as_echo_n "(cached) " >&6
7631 else
7632   case $ECHO in
7633   [\\/]* | ?:[\\/]*)
7634   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7635   ;;
7636   *)
7637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640   IFS=$as_save_IFS
7641   test -z "$as_dir" && as_dir=.
7642     for ac_exec_ext in '' $ac_executable_extensions; do
7643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646     break 2
7647   fi
7648 done
7649   done
7650 IFS=$as_save_IFS
7651 
7652   ;;
7653 esac
7654 fi
7655 ECHO=$ac_cv_path_ECHO
7656 if test -n "$ECHO"; then
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7658 $as_echo "$ECHO" >&6; }
7659 else
7660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7662 fi
7663 
7664 
7665           if test "x$ECHO" = x; then
7666             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7667           fi
7668         else
7669           # Otherwise we believe it is a complete path. Use it as it is.
7670           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7671 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7672           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7673 $as_echo_n "checking for ECHO... " >&6; }
7674           if test ! -x "$tool_specified"; then
7675             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7676 $as_echo "not found" >&6; }
7677             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7678           fi
7679           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7680 $as_echo "$tool_specified" >&6; }
7681         fi
7682       fi
7683     fi
7684 
7685   fi
7686 
7687 
7688 
7689   if test "x$ECHO" = x; then
7690     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7691   fi
7692 
7693 
7694 
7695 
7696 
7697   # Publish this variable in the help.
7698 
7699 
7700   if [ -z "${EXPR+x}" ]; then
7701     # The variable is not set by user, try to locate tool using the code snippet
7702     for ac_prog in expr
7703 do
7704   # Extract the first word of "$ac_prog", so it can be a program name with args.
7705 set dummy $ac_prog; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_path_EXPR+:} false; then :
7709   $as_echo_n "(cached) " >&6
7710 else
7711   case $EXPR in
7712   [\\/]* | ?:[\\/]*)
7713   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7714   ;;
7715   *)
7716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719   IFS=$as_save_IFS
7720   test -z "$as_dir" && as_dir=.
7721     for ac_exec_ext in '' $ac_executable_extensions; do
7722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725     break 2
7726   fi
7727 done
7728   done
7729 IFS=$as_save_IFS
7730 
7731   ;;
7732 esac
7733 fi
7734 EXPR=$ac_cv_path_EXPR
7735 if test -n "$EXPR"; then
7736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7737 $as_echo "$EXPR" >&6; }
7738 else
7739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7741 fi
7742 
7743 
7744   test -n "$EXPR" && break
7745 done
7746 
7747   else
7748     # The variable is set, but is it from the command line or the environment?
7749 
7750     # Try to remove the string !EXPR! from our list.
7751     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7752     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7753       # If it failed, the variable was not from the command line. Ignore it,
7754       # but warn the user (except for BASH, which is always set by the calling BASH).
7755       if test "xEXPR" != xBASH; then
7756         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7757 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7758       fi
7759       # Try to locate tool using the code snippet
7760       for ac_prog in expr
7761 do
7762   # Extract the first word of "$ac_prog", so it can be a program name with args.
7763 set dummy $ac_prog; ac_word=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if ${ac_cv_path_EXPR+:} false; then :
7767   $as_echo_n "(cached) " >&6
7768 else
7769   case $EXPR in
7770   [\\/]* | ?:[\\/]*)
7771   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7772   ;;
7773   *)
7774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777   IFS=$as_save_IFS
7778   test -z "$as_dir" && as_dir=.
7779     for ac_exec_ext in '' $ac_executable_extensions; do
7780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7781     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783     break 2
7784   fi
7785 done
7786   done
7787 IFS=$as_save_IFS
7788 
7789   ;;
7790 esac
7791 fi
7792 EXPR=$ac_cv_path_EXPR
7793 if test -n "$EXPR"; then
7794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7795 $as_echo "$EXPR" >&6; }
7796 else
7797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7799 fi
7800 
7801 
7802   test -n "$EXPR" && break
7803 done
7804 
7805     else
7806       # If it succeeded, then it was overridden by the user. We will use it
7807       # for the tool.
7808 
7809       # First remove it from the list of overridden variables, so we can test
7810       # for unknown variables in the end.
7811       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7812 
7813       # Check if we try to supply an empty value
7814       if test "x$EXPR" = x; then
7815         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7816 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7817         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7818 $as_echo_n "checking for EXPR... " >&6; }
7819         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7820 $as_echo "disabled" >&6; }
7821       else
7822         # Check if the provided tool contains a complete path.
7823         tool_specified="$EXPR"
7824         tool_basename="${tool_specified##*/}"
7825         if test "x$tool_basename" = "x$tool_specified"; then
7826           # A command without a complete path is provided, search $PATH.
7827           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7828 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7829           # Extract the first word of "$tool_basename", so it can be a program name with args.
7830 set dummy $tool_basename; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_path_EXPR+:} false; then :
7834   $as_echo_n "(cached) " >&6
7835 else
7836   case $EXPR in
7837   [\\/]* | ?:[\\/]*)
7838   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7839   ;;
7840   *)
7841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 for as_dir in $PATH
7843 do
7844   IFS=$as_save_IFS
7845   test -z "$as_dir" && as_dir=.
7846     for ac_exec_ext in '' $ac_executable_extensions; do
7847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850     break 2
7851   fi
7852 done
7853   done
7854 IFS=$as_save_IFS
7855 
7856   ;;
7857 esac
7858 fi
7859 EXPR=$ac_cv_path_EXPR
7860 if test -n "$EXPR"; then
7861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7862 $as_echo "$EXPR" >&6; }
7863 else
7864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865 $as_echo "no" >&6; }
7866 fi
7867 
7868 
7869           if test "x$EXPR" = x; then
7870             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7871           fi
7872         else
7873           # Otherwise we believe it is a complete path. Use it as it is.
7874           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7875 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7876           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7877 $as_echo_n "checking for EXPR... " >&6; }
7878           if test ! -x "$tool_specified"; then
7879             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7880 $as_echo "not found" >&6; }
7881             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7882           fi
7883           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7884 $as_echo "$tool_specified" >&6; }
7885         fi
7886       fi
7887     fi
7888 
7889   fi
7890 
7891 
7892 
7893   if test "x$EXPR" = x; then
7894     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7895   fi
7896 
7897 
7898 
7899 
7900 
7901   # Publish this variable in the help.
7902 
7903 
7904   if [ -z "${FILE+x}" ]; then
7905     # The variable is not set by user, try to locate tool using the code snippet
7906     for ac_prog in file
7907 do
7908   # Extract the first word of "$ac_prog", so it can be a program name with args.
7909 set dummy $ac_prog; ac_word=$2
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7911 $as_echo_n "checking for $ac_word... " >&6; }
7912 if ${ac_cv_path_FILE+:} false; then :
7913   $as_echo_n "(cached) " >&6
7914 else
7915   case $FILE in
7916   [\\/]* | ?:[\\/]*)
7917   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7918   ;;
7919   *)
7920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923   IFS=$as_save_IFS
7924   test -z "$as_dir" && as_dir=.
7925     for ac_exec_ext in '' $ac_executable_extensions; do
7926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7929     break 2
7930   fi
7931 done
7932   done
7933 IFS=$as_save_IFS
7934 
7935   ;;
7936 esac
7937 fi
7938 FILE=$ac_cv_path_FILE
7939 if test -n "$FILE"; then
7940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7941 $as_echo "$FILE" >&6; }
7942 else
7943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7945 fi
7946 
7947 
7948   test -n "$FILE" && break
7949 done
7950 
7951   else
7952     # The variable is set, but is it from the command line or the environment?
7953 
7954     # Try to remove the string !FILE! from our list.
7955     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7956     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7957       # If it failed, the variable was not from the command line. Ignore it,
7958       # but warn the user (except for BASH, which is always set by the calling BASH).
7959       if test "xFILE" != xBASH; then
7960         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7961 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7962       fi
7963       # Try to locate tool using the code snippet
7964       for ac_prog in file
7965 do
7966   # Extract the first word of "$ac_prog", so it can be a program name with args.
7967 set dummy $ac_prog; ac_word=$2
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969 $as_echo_n "checking for $ac_word... " >&6; }
7970 if ${ac_cv_path_FILE+:} false; then :
7971   $as_echo_n "(cached) " >&6
7972 else
7973   case $FILE in
7974   [\\/]* | ?:[\\/]*)
7975   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7976   ;;
7977   *)
7978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 for as_dir in $PATH
7980 do
7981   IFS=$as_save_IFS
7982   test -z "$as_dir" && as_dir=.
7983     for ac_exec_ext in '' $ac_executable_extensions; do
7984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7985     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987     break 2
7988   fi
7989 done
7990   done
7991 IFS=$as_save_IFS
7992 
7993   ;;
7994 esac
7995 fi
7996 FILE=$ac_cv_path_FILE
7997 if test -n "$FILE"; then
7998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7999 $as_echo "$FILE" >&6; }
8000 else
8001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8003 fi
8004 
8005 
8006   test -n "$FILE" && break
8007 done
8008 
8009     else
8010       # If it succeeded, then it was overridden by the user. We will use it
8011       # for the tool.
8012 
8013       # First remove it from the list of overridden variables, so we can test
8014       # for unknown variables in the end.
8015       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8016 
8017       # Check if we try to supply an empty value
8018       if test "x$FILE" = x; then
8019         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
8020 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
8021         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8022 $as_echo_n "checking for FILE... " >&6; }
8023         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8024 $as_echo "disabled" >&6; }
8025       else
8026         # Check if the provided tool contains a complete path.
8027         tool_specified="$FILE"
8028         tool_basename="${tool_specified##*/}"
8029         if test "x$tool_basename" = "x$tool_specified"; then
8030           # A command without a complete path is provided, search $PATH.
8031           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
8032 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
8033           # Extract the first word of "$tool_basename", so it can be a program name with args.
8034 set dummy $tool_basename; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_path_FILE+:} false; then :
8038   $as_echo_n "(cached) " >&6
8039 else
8040   case $FILE in
8041   [\\/]* | ?:[\\/]*)
8042   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
8043   ;;
8044   *)
8045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8047 do
8048   IFS=$as_save_IFS
8049   test -z "$as_dir" && as_dir=.
8050     for ac_exec_ext in '' $ac_executable_extensions; do
8051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
8053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054     break 2
8055   fi
8056 done
8057   done
8058 IFS=$as_save_IFS
8059 
8060   ;;
8061 esac
8062 fi
8063 FILE=$ac_cv_path_FILE
8064 if test -n "$FILE"; then
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8066 $as_echo "$FILE" >&6; }
8067 else
8068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8070 fi
8071 
8072 
8073           if test "x$FILE" = x; then
8074             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8075           fi
8076         else
8077           # Otherwise we believe it is a complete path. Use it as it is.
8078           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
8079 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
8080           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8081 $as_echo_n "checking for FILE... " >&6; }
8082           if test ! -x "$tool_specified"; then
8083             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8084 $as_echo "not found" >&6; }
8085             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
8086           fi
8087           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8088 $as_echo "$tool_specified" >&6; }
8089         fi
8090       fi
8091     fi
8092 
8093   fi
8094 
8095 
8096 
8097   if test "x$FILE" = x; then
8098     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
8099   fi
8100 
8101 
8102 
8103 
8104 
8105   # Publish this variable in the help.
8106 
8107 
8108   if [ -z "${FIND+x}" ]; then
8109     # The variable is not set by user, try to locate tool using the code snippet
8110     for ac_prog in find
8111 do
8112   # Extract the first word of "$ac_prog", so it can be a program name with args.
8113 set dummy $ac_prog; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if ${ac_cv_path_FIND+:} false; then :
8117   $as_echo_n "(cached) " >&6
8118 else
8119   case $FIND in
8120   [\\/]* | ?:[\\/]*)
8121   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8122   ;;
8123   *)
8124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 for as_dir in $PATH
8126 do
8127   IFS=$as_save_IFS
8128   test -z "$as_dir" && as_dir=.
8129     for ac_exec_ext in '' $ac_executable_extensions; do
8130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8131     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8133     break 2
8134   fi
8135 done
8136   done
8137 IFS=$as_save_IFS
8138 
8139   ;;
8140 esac
8141 fi
8142 FIND=$ac_cv_path_FIND
8143 if test -n "$FIND"; then
8144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8145 $as_echo "$FIND" >&6; }
8146 else
8147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8149 fi
8150 
8151 
8152   test -n "$FIND" && break
8153 done
8154 
8155   else
8156     # The variable is set, but is it from the command line or the environment?
8157 
8158     # Try to remove the string !FIND! from our list.
8159     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
8160     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8161       # If it failed, the variable was not from the command line. Ignore it,
8162       # but warn the user (except for BASH, which is always set by the calling BASH).
8163       if test "xFIND" != xBASH; then
8164         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
8165 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
8166       fi
8167       # Try to locate tool using the code snippet
8168       for ac_prog in find
8169 do
8170   # Extract the first word of "$ac_prog", so it can be a program name with args.
8171 set dummy $ac_prog; ac_word=$2
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173 $as_echo_n "checking for $ac_word... " >&6; }
8174 if ${ac_cv_path_FIND+:} false; then :
8175   $as_echo_n "(cached) " >&6
8176 else
8177   case $FIND in
8178   [\\/]* | ?:[\\/]*)
8179   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8180   ;;
8181   *)
8182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8184 do
8185   IFS=$as_save_IFS
8186   test -z "$as_dir" && as_dir=.
8187     for ac_exec_ext in '' $ac_executable_extensions; do
8188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191     break 2
8192   fi
8193 done
8194   done
8195 IFS=$as_save_IFS
8196 
8197   ;;
8198 esac
8199 fi
8200 FIND=$ac_cv_path_FIND
8201 if test -n "$FIND"; then
8202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8203 $as_echo "$FIND" >&6; }
8204 else
8205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8207 fi
8208 
8209 
8210   test -n "$FIND" && break
8211 done
8212 
8213     else
8214       # If it succeeded, then it was overridden by the user. We will use it
8215       # for the tool.
8216 
8217       # First remove it from the list of overridden variables, so we can test
8218       # for unknown variables in the end.
8219       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8220 
8221       # Check if we try to supply an empty value
8222       if test "x$FIND" = x; then
8223         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
8224 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
8225         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8226 $as_echo_n "checking for FIND... " >&6; }
8227         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8228 $as_echo "disabled" >&6; }
8229       else
8230         # Check if the provided tool contains a complete path.
8231         tool_specified="$FIND"
8232         tool_basename="${tool_specified##*/}"
8233         if test "x$tool_basename" = "x$tool_specified"; then
8234           # A command without a complete path is provided, search $PATH.
8235           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8236 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8237           # Extract the first word of "$tool_basename", so it can be a program name with args.
8238 set dummy $tool_basename; ac_word=$2
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240 $as_echo_n "checking for $ac_word... " >&6; }
8241 if ${ac_cv_path_FIND+:} false; then :
8242   $as_echo_n "(cached) " >&6
8243 else
8244   case $FIND in
8245   [\\/]* | ?:[\\/]*)
8246   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8247   ;;
8248   *)
8249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 for as_dir in $PATH
8251 do
8252   IFS=$as_save_IFS
8253   test -z "$as_dir" && as_dir=.
8254     for ac_exec_ext in '' $ac_executable_extensions; do
8255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8256     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8258     break 2
8259   fi
8260 done
8261   done
8262 IFS=$as_save_IFS
8263 
8264   ;;
8265 esac
8266 fi
8267 FIND=$ac_cv_path_FIND
8268 if test -n "$FIND"; then
8269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8270 $as_echo "$FIND" >&6; }
8271 else
8272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 $as_echo "no" >&6; }
8274 fi
8275 
8276 
8277           if test "x$FIND" = x; then
8278             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8279           fi
8280         else
8281           # Otherwise we believe it is a complete path. Use it as it is.
8282           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8283 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8284           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8285 $as_echo_n "checking for FIND... " >&6; }
8286           if test ! -x "$tool_specified"; then
8287             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8288 $as_echo "not found" >&6; }
8289             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8290           fi
8291           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8292 $as_echo "$tool_specified" >&6; }
8293         fi
8294       fi
8295     fi
8296 
8297   fi
8298 
8299 
8300 
8301   if test "x$FIND" = x; then
8302     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8303   fi
8304 
8305 
8306 
8307 
8308 
8309   # Publish this variable in the help.
8310 
8311 
8312   if [ -z "${HEAD+x}" ]; then
8313     # The variable is not set by user, try to locate tool using the code snippet
8314     for ac_prog in head
8315 do
8316   # Extract the first word of "$ac_prog", so it can be a program name with args.
8317 set dummy $ac_prog; ac_word=$2
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319 $as_echo_n "checking for $ac_word... " >&6; }
8320 if ${ac_cv_path_HEAD+:} false; then :
8321   $as_echo_n "(cached) " >&6
8322 else
8323   case $HEAD in
8324   [\\/]* | ?:[\\/]*)
8325   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8326   ;;
8327   *)
8328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329 for as_dir in $PATH
8330 do
8331   IFS=$as_save_IFS
8332   test -z "$as_dir" && as_dir=.
8333     for ac_exec_ext in '' $ac_executable_extensions; do
8334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8335     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8337     break 2
8338   fi
8339 done
8340   done
8341 IFS=$as_save_IFS
8342 
8343   ;;
8344 esac
8345 fi
8346 HEAD=$ac_cv_path_HEAD
8347 if test -n "$HEAD"; then
8348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8349 $as_echo "$HEAD" >&6; }
8350 else
8351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8353 fi
8354 
8355 
8356   test -n "$HEAD" && break
8357 done
8358 
8359   else
8360     # The variable is set, but is it from the command line or the environment?
8361 
8362     # Try to remove the string !HEAD! from our list.
8363     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8364     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8365       # If it failed, the variable was not from the command line. Ignore it,
8366       # but warn the user (except for BASH, which is always set by the calling BASH).
8367       if test "xHEAD" != xBASH; then
8368         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8369 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8370       fi
8371       # Try to locate tool using the code snippet
8372       for ac_prog in head
8373 do
8374   # Extract the first word of "$ac_prog", so it can be a program name with args.
8375 set dummy $ac_prog; ac_word=$2
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377 $as_echo_n "checking for $ac_word... " >&6; }
8378 if ${ac_cv_path_HEAD+:} false; then :
8379   $as_echo_n "(cached) " >&6
8380 else
8381   case $HEAD in
8382   [\\/]* | ?:[\\/]*)
8383   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8384   ;;
8385   *)
8386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387 for as_dir in $PATH
8388 do
8389   IFS=$as_save_IFS
8390   test -z "$as_dir" && as_dir=.
8391     for ac_exec_ext in '' $ac_executable_extensions; do
8392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8393     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8395     break 2
8396   fi
8397 done
8398   done
8399 IFS=$as_save_IFS
8400 
8401   ;;
8402 esac
8403 fi
8404 HEAD=$ac_cv_path_HEAD
8405 if test -n "$HEAD"; then
8406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8407 $as_echo "$HEAD" >&6; }
8408 else
8409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8411 fi
8412 
8413 
8414   test -n "$HEAD" && break
8415 done
8416 
8417     else
8418       # If it succeeded, then it was overridden by the user. We will use it
8419       # for the tool.
8420 
8421       # First remove it from the list of overridden variables, so we can test
8422       # for unknown variables in the end.
8423       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8424 
8425       # Check if we try to supply an empty value
8426       if test "x$HEAD" = x; then
8427         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8428 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8429         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8430 $as_echo_n "checking for HEAD... " >&6; }
8431         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8432 $as_echo "disabled" >&6; }
8433       else
8434         # Check if the provided tool contains a complete path.
8435         tool_specified="$HEAD"
8436         tool_basename="${tool_specified##*/}"
8437         if test "x$tool_basename" = "x$tool_specified"; then
8438           # A command without a complete path is provided, search $PATH.
8439           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8440 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8441           # Extract the first word of "$tool_basename", so it can be a program name with args.
8442 set dummy $tool_basename; ac_word=$2
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8444 $as_echo_n "checking for $ac_word... " >&6; }
8445 if ${ac_cv_path_HEAD+:} false; then :
8446   $as_echo_n "(cached) " >&6
8447 else
8448   case $HEAD in
8449   [\\/]* | ?:[\\/]*)
8450   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8451   ;;
8452   *)
8453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 for as_dir in $PATH
8455 do
8456   IFS=$as_save_IFS
8457   test -z "$as_dir" && as_dir=.
8458     for ac_exec_ext in '' $ac_executable_extensions; do
8459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8460     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462     break 2
8463   fi
8464 done
8465   done
8466 IFS=$as_save_IFS
8467 
8468   ;;
8469 esac
8470 fi
8471 HEAD=$ac_cv_path_HEAD
8472 if test -n "$HEAD"; then
8473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8474 $as_echo "$HEAD" >&6; }
8475 else
8476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8478 fi
8479 
8480 
8481           if test "x$HEAD" = x; then
8482             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8483           fi
8484         else
8485           # Otherwise we believe it is a complete path. Use it as it is.
8486           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8487 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8488           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8489 $as_echo_n "checking for HEAD... " >&6; }
8490           if test ! -x "$tool_specified"; then
8491             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8492 $as_echo "not found" >&6; }
8493             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8494           fi
8495           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8496 $as_echo "$tool_specified" >&6; }
8497         fi
8498       fi
8499     fi
8500 
8501   fi
8502 
8503 
8504 
8505   if test "x$HEAD" = x; then
8506     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8507   fi
8508 
8509 
8510 
8511 
8512 
8513   # Publish this variable in the help.
8514 
8515 
8516   if [ -z "${GUNZIP+x}" ]; then
8517     # The variable is not set by user, try to locate tool using the code snippet
8518     for ac_prog in gunzip
8519 do
8520   # Extract the first word of "$ac_prog", so it can be a program name with args.
8521 set dummy $ac_prog; ac_word=$2
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523 $as_echo_n "checking for $ac_word... " >&6; }
8524 if ${ac_cv_path_GUNZIP+:} false; then :
8525   $as_echo_n "(cached) " >&6
8526 else
8527   case $GUNZIP in
8528   [\\/]* | ?:[\\/]*)
8529   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8530   ;;
8531   *)
8532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 for as_dir in $PATH
8534 do
8535   IFS=$as_save_IFS
8536   test -z "$as_dir" && as_dir=.
8537     for ac_exec_ext in '' $ac_executable_extensions; do
8538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8539     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8541     break 2
8542   fi
8543 done
8544   done
8545 IFS=$as_save_IFS
8546 
8547   ;;
8548 esac
8549 fi
8550 GUNZIP=$ac_cv_path_GUNZIP
8551 if test -n "$GUNZIP"; then
8552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8553 $as_echo "$GUNZIP" >&6; }
8554 else
8555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8557 fi
8558 
8559 
8560   test -n "$GUNZIP" && break
8561 done
8562 
8563   else
8564     # The variable is set, but is it from the command line or the environment?
8565 
8566     # Try to remove the string !GUNZIP! from our list.
8567     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/}
8568     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8569       # If it failed, the variable was not from the command line. Ignore it,
8570       # but warn the user (except for BASH, which is always set by the calling BASH).
8571       if test "xGUNZIP" != xBASH; then
8572         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5
8573 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;}
8574       fi
8575       # Try to locate tool using the code snippet
8576       for ac_prog in gunzip
8577 do
8578   # Extract the first word of "$ac_prog", so it can be a program name with args.
8579 set dummy $ac_prog; ac_word=$2
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581 $as_echo_n "checking for $ac_word... " >&6; }
8582 if ${ac_cv_path_GUNZIP+:} false; then :
8583   $as_echo_n "(cached) " >&6
8584 else
8585   case $GUNZIP in
8586   [\\/]* | ?:[\\/]*)
8587   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8588   ;;
8589   *)
8590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 for as_dir in $PATH
8592 do
8593   IFS=$as_save_IFS
8594   test -z "$as_dir" && as_dir=.
8595     for ac_exec_ext in '' $ac_executable_extensions; do
8596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8597     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599     break 2
8600   fi
8601 done
8602   done
8603 IFS=$as_save_IFS
8604 
8605   ;;
8606 esac
8607 fi
8608 GUNZIP=$ac_cv_path_GUNZIP
8609 if test -n "$GUNZIP"; then
8610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8611 $as_echo "$GUNZIP" >&6; }
8612 else
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8615 fi
8616 
8617 
8618   test -n "$GUNZIP" && break
8619 done
8620 
8621     else
8622       # If it succeeded, then it was overridden by the user. We will use it
8623       # for the tool.
8624 
8625       # First remove it from the list of overridden variables, so we can test
8626       # for unknown variables in the end.
8627       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8628 
8629       # Check if we try to supply an empty value
8630       if test "x$GUNZIP" = x; then
8631         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5
8632 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;}
8633         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8634 $as_echo_n "checking for GUNZIP... " >&6; }
8635         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8636 $as_echo "disabled" >&6; }
8637       else
8638         # Check if the provided tool contains a complete path.
8639         tool_specified="$GUNZIP"
8640         tool_basename="${tool_specified##*/}"
8641         if test "x$tool_basename" = "x$tool_specified"; then
8642           # A command without a complete path is provided, search $PATH.
8643           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5
8644 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;}
8645           # Extract the first word of "$tool_basename", so it can be a program name with args.
8646 set dummy $tool_basename; ac_word=$2
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648 $as_echo_n "checking for $ac_word... " >&6; }
8649 if ${ac_cv_path_GUNZIP+:} false; then :
8650   $as_echo_n "(cached) " >&6
8651 else
8652   case $GUNZIP in
8653   [\\/]* | ?:[\\/]*)
8654   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8655   ;;
8656   *)
8657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 for as_dir in $PATH
8659 do
8660   IFS=$as_save_IFS
8661   test -z "$as_dir" && as_dir=.
8662     for ac_exec_ext in '' $ac_executable_extensions; do
8663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8664     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8666     break 2
8667   fi
8668 done
8669   done
8670 IFS=$as_save_IFS
8671 
8672   ;;
8673 esac
8674 fi
8675 GUNZIP=$ac_cv_path_GUNZIP
8676 if test -n "$GUNZIP"; then
8677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8678 $as_echo "$GUNZIP" >&6; }
8679 else
8680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8682 fi
8683 
8684 
8685           if test "x$GUNZIP" = x; then
8686             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8687           fi
8688         else
8689           # Otherwise we believe it is a complete path. Use it as it is.
8690           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5
8691 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;}
8692           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8693 $as_echo_n "checking for GUNZIP... " >&6; }
8694           if test ! -x "$tool_specified"; then
8695             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8696 $as_echo "not found" >&6; }
8697             as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8698           fi
8699           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8700 $as_echo "$tool_specified" >&6; }
8701         fi
8702       fi
8703     fi
8704 
8705   fi
8706 
8707 
8708 
8709   if test "x$GUNZIP" = x; then
8710     as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5
8711   fi
8712 
8713 
8714 
8715 
8716 
8717   # Publish this variable in the help.
8718 
8719 
8720   if [ -z "${GZIP+x}" ]; then
8721     # The variable is not set by user, try to locate tool using the code snippet
8722     for ac_prog in pigz gzip
8723 do
8724   # Extract the first word of "$ac_prog", so it can be a program name with args.
8725 set dummy $ac_prog; ac_word=$2
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 $as_echo_n "checking for $ac_word... " >&6; }
8728 if ${ac_cv_path_GZIP+:} false; then :
8729   $as_echo_n "(cached) " >&6
8730 else
8731   case $GZIP in
8732   [\\/]* | ?:[\\/]*)
8733   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8734   ;;
8735   *)
8736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8738 do
8739   IFS=$as_save_IFS
8740   test -z "$as_dir" && as_dir=.
8741     for ac_exec_ext in '' $ac_executable_extensions; do
8742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8743     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745     break 2
8746   fi
8747 done
8748   done
8749 IFS=$as_save_IFS
8750 
8751   ;;
8752 esac
8753 fi
8754 GZIP=$ac_cv_path_GZIP
8755 if test -n "$GZIP"; then
8756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8757 $as_echo "$GZIP" >&6; }
8758 else
8759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8761 fi
8762 
8763 
8764   test -n "$GZIP" && break
8765 done
8766 
8767   else
8768     # The variable is set, but is it from the command line or the environment?
8769 
8770     # Try to remove the string !GZIP! from our list.
8771     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/}
8772     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8773       # If it failed, the variable was not from the command line. Ignore it,
8774       # but warn the user (except for BASH, which is always set by the calling BASH).
8775       if test "xGZIP" != xBASH; then
8776         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5
8777 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;}
8778       fi
8779       # Try to locate tool using the code snippet
8780       for ac_prog in pigz gzip
8781 do
8782   # Extract the first word of "$ac_prog", so it can be a program name with args.
8783 set dummy $ac_prog; ac_word=$2
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785 $as_echo_n "checking for $ac_word... " >&6; }
8786 if ${ac_cv_path_GZIP+:} false; then :
8787   $as_echo_n "(cached) " >&6
8788 else
8789   case $GZIP in
8790   [\\/]* | ?:[\\/]*)
8791   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8792   ;;
8793   *)
8794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795 for as_dir in $PATH
8796 do
8797   IFS=$as_save_IFS
8798   test -z "$as_dir" && as_dir=.
8799     for ac_exec_ext in '' $ac_executable_extensions; do
8800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8801     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8803     break 2
8804   fi
8805 done
8806   done
8807 IFS=$as_save_IFS
8808 
8809   ;;
8810 esac
8811 fi
8812 GZIP=$ac_cv_path_GZIP
8813 if test -n "$GZIP"; then
8814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8815 $as_echo "$GZIP" >&6; }
8816 else
8817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8818 $as_echo "no" >&6; }
8819 fi
8820 
8821 
8822   test -n "$GZIP" && break
8823 done
8824 
8825     else
8826       # If it succeeded, then it was overridden by the user. We will use it
8827       # for the tool.
8828 
8829       # First remove it from the list of overridden variables, so we can test
8830       # for unknown variables in the end.
8831       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8832 
8833       # Check if we try to supply an empty value
8834       if test "x$GZIP" = x; then
8835         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5
8836 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;}
8837         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8838 $as_echo_n "checking for GZIP... " >&6; }
8839         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8840 $as_echo "disabled" >&6; }
8841       else
8842         # Check if the provided tool contains a complete path.
8843         tool_specified="$GZIP"
8844         tool_basename="${tool_specified##*/}"
8845         if test "x$tool_basename" = "x$tool_specified"; then
8846           # A command without a complete path is provided, search $PATH.
8847           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5
8848 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;}
8849           # Extract the first word of "$tool_basename", so it can be a program name with args.
8850 set dummy $tool_basename; ac_word=$2
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8852 $as_echo_n "checking for $ac_word... " >&6; }
8853 if ${ac_cv_path_GZIP+:} false; then :
8854   $as_echo_n "(cached) " >&6
8855 else
8856   case $GZIP in
8857   [\\/]* | ?:[\\/]*)
8858   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8859   ;;
8860   *)
8861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8862 for as_dir in $PATH
8863 do
8864   IFS=$as_save_IFS
8865   test -z "$as_dir" && as_dir=.
8866     for ac_exec_ext in '' $ac_executable_extensions; do
8867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8868     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8870     break 2
8871   fi
8872 done
8873   done
8874 IFS=$as_save_IFS
8875 
8876   ;;
8877 esac
8878 fi
8879 GZIP=$ac_cv_path_GZIP
8880 if test -n "$GZIP"; then
8881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8882 $as_echo "$GZIP" >&6; }
8883 else
8884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8885 $as_echo "no" >&6; }
8886 fi
8887 
8888 
8889           if test "x$GZIP" = x; then
8890             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8891           fi
8892         else
8893           # Otherwise we believe it is a complete path. Use it as it is.
8894           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5
8895 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;}
8896           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8897 $as_echo_n "checking for GZIP... " >&6; }
8898           if test ! -x "$tool_specified"; then
8899             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8900 $as_echo "not found" >&6; }
8901             as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8902           fi
8903           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8904 $as_echo "$tool_specified" >&6; }
8905         fi
8906       fi
8907     fi
8908 
8909   fi
8910 
8911 
8912 
8913   if test "x$GZIP" = x; then
8914     as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5
8915   fi
8916 
8917 
8918 
8919 
8920 
8921   # Publish this variable in the help.
8922 
8923 
8924   if [ -z "${LN+x}" ]; then
8925     # The variable is not set by user, try to locate tool using the code snippet
8926     for ac_prog in ln
8927 do
8928   # Extract the first word of "$ac_prog", so it can be a program name with args.
8929 set dummy $ac_prog; ac_word=$2
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8931 $as_echo_n "checking for $ac_word... " >&6; }
8932 if ${ac_cv_path_LN+:} false; then :
8933   $as_echo_n "(cached) " >&6
8934 else
8935   case $LN in
8936   [\\/]* | ?:[\\/]*)
8937   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8938   ;;
8939   *)
8940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941 for as_dir in $PATH
8942 do
8943   IFS=$as_save_IFS
8944   test -z "$as_dir" && as_dir=.
8945     for ac_exec_ext in '' $ac_executable_extensions; do
8946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8947     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8949     break 2
8950   fi
8951 done
8952   done
8953 IFS=$as_save_IFS
8954 
8955   ;;
8956 esac
8957 fi
8958 LN=$ac_cv_path_LN
8959 if test -n "$LN"; then
8960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8961 $as_echo "$LN" >&6; }
8962 else
8963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8965 fi
8966 
8967 
8968   test -n "$LN" && break
8969 done
8970 
8971   else
8972     # The variable is set, but is it from the command line or the environment?
8973 
8974     # Try to remove the string !LN! from our list.
8975     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8976     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8977       # If it failed, the variable was not from the command line. Ignore it,
8978       # but warn the user (except for BASH, which is always set by the calling BASH).
8979       if test "xLN" != xBASH; then
8980         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8981 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8982       fi
8983       # Try to locate tool using the code snippet
8984       for ac_prog in ln
8985 do
8986   # Extract the first word of "$ac_prog", so it can be a program name with args.
8987 set dummy $ac_prog; ac_word=$2
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989 $as_echo_n "checking for $ac_word... " >&6; }
8990 if ${ac_cv_path_LN+:} false; then :
8991   $as_echo_n "(cached) " >&6
8992 else
8993   case $LN in
8994   [\\/]* | ?:[\\/]*)
8995   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8996   ;;
8997   *)
8998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999 for as_dir in $PATH
9000 do
9001   IFS=$as_save_IFS
9002   test -z "$as_dir" && as_dir=.
9003     for ac_exec_ext in '' $ac_executable_extensions; do
9004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9005     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9007     break 2
9008   fi
9009 done
9010   done
9011 IFS=$as_save_IFS
9012 
9013   ;;
9014 esac
9015 fi
9016 LN=$ac_cv_path_LN
9017 if test -n "$LN"; then
9018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9019 $as_echo "$LN" >&6; }
9020 else
9021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022 $as_echo "no" >&6; }
9023 fi
9024 
9025 
9026   test -n "$LN" && break
9027 done
9028 
9029     else
9030       # If it succeeded, then it was overridden by the user. We will use it
9031       # for the tool.
9032 
9033       # First remove it from the list of overridden variables, so we can test
9034       # for unknown variables in the end.
9035       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9036 
9037       # Check if we try to supply an empty value
9038       if test "x$LN" = x; then
9039         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
9040 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
9041         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9042 $as_echo_n "checking for LN... " >&6; }
9043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9044 $as_echo "disabled" >&6; }
9045       else
9046         # Check if the provided tool contains a complete path.
9047         tool_specified="$LN"
9048         tool_basename="${tool_specified##*/}"
9049         if test "x$tool_basename" = "x$tool_specified"; then
9050           # A command without a complete path is provided, search $PATH.
9051           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
9052 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
9053           # Extract the first word of "$tool_basename", so it can be a program name with args.
9054 set dummy $tool_basename; ac_word=$2
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9056 $as_echo_n "checking for $ac_word... " >&6; }
9057 if ${ac_cv_path_LN+:} false; then :
9058   $as_echo_n "(cached) " >&6
9059 else
9060   case $LN in
9061   [\\/]* | ?:[\\/]*)
9062   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9063   ;;
9064   *)
9065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066 for as_dir in $PATH
9067 do
9068   IFS=$as_save_IFS
9069   test -z "$as_dir" && as_dir=.
9070     for ac_exec_ext in '' $ac_executable_extensions; do
9071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9072     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9074     break 2
9075   fi
9076 done
9077   done
9078 IFS=$as_save_IFS
9079 
9080   ;;
9081 esac
9082 fi
9083 LN=$ac_cv_path_LN
9084 if test -n "$LN"; then
9085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9086 $as_echo "$LN" >&6; }
9087 else
9088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9090 fi
9091 
9092 
9093           if test "x$LN" = x; then
9094             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9095           fi
9096         else
9097           # Otherwise we believe it is a complete path. Use it as it is.
9098           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
9099 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
9100           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9101 $as_echo_n "checking for LN... " >&6; }
9102           if test ! -x "$tool_specified"; then
9103             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9104 $as_echo "not found" >&6; }
9105             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
9106           fi
9107           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9108 $as_echo "$tool_specified" >&6; }
9109         fi
9110       fi
9111     fi
9112 
9113   fi
9114 
9115 
9116 
9117   if test "x$LN" = x; then
9118     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
9119   fi
9120 
9121 
9122 
9123 
9124 
9125   # Publish this variable in the help.
9126 
9127 
9128   if [ -z "${LS+x}" ]; then
9129     # The variable is not set by user, try to locate tool using the code snippet
9130     for ac_prog in ls
9131 do
9132   # Extract the first word of "$ac_prog", so it can be a program name with args.
9133 set dummy $ac_prog; ac_word=$2
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9135 $as_echo_n "checking for $ac_word... " >&6; }
9136 if ${ac_cv_path_LS+:} false; then :
9137   $as_echo_n "(cached) " >&6
9138 else
9139   case $LS in
9140   [\\/]* | ?:[\\/]*)
9141   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9142   ;;
9143   *)
9144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH
9146 do
9147   IFS=$as_save_IFS
9148   test -z "$as_dir" && as_dir=.
9149     for ac_exec_ext in '' $ac_executable_extensions; do
9150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9151     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153     break 2
9154   fi
9155 done
9156   done
9157 IFS=$as_save_IFS
9158 
9159   ;;
9160 esac
9161 fi
9162 LS=$ac_cv_path_LS
9163 if test -n "$LS"; then
9164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9165 $as_echo "$LS" >&6; }
9166 else
9167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9169 fi
9170 
9171 
9172   test -n "$LS" && break
9173 done
9174 
9175   else
9176     # The variable is set, but is it from the command line or the environment?
9177 
9178     # Try to remove the string !LS! from our list.
9179     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
9180     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9181       # If it failed, the variable was not from the command line. Ignore it,
9182       # but warn the user (except for BASH, which is always set by the calling BASH).
9183       if test "xLS" != xBASH; then
9184         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
9185 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
9186       fi
9187       # Try to locate tool using the code snippet
9188       for ac_prog in ls
9189 do
9190   # Extract the first word of "$ac_prog", so it can be a program name with args.
9191 set dummy $ac_prog; ac_word=$2
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9193 $as_echo_n "checking for $ac_word... " >&6; }
9194 if ${ac_cv_path_LS+:} false; then :
9195   $as_echo_n "(cached) " >&6
9196 else
9197   case $LS in
9198   [\\/]* | ?:[\\/]*)
9199   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9200   ;;
9201   *)
9202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9203 for as_dir in $PATH
9204 do
9205   IFS=$as_save_IFS
9206   test -z "$as_dir" && as_dir=.
9207     for ac_exec_ext in '' $ac_executable_extensions; do
9208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9209     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9211     break 2
9212   fi
9213 done
9214   done
9215 IFS=$as_save_IFS
9216 
9217   ;;
9218 esac
9219 fi
9220 LS=$ac_cv_path_LS
9221 if test -n "$LS"; then
9222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9223 $as_echo "$LS" >&6; }
9224 else
9225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226 $as_echo "no" >&6; }
9227 fi
9228 
9229 
9230   test -n "$LS" && break
9231 done
9232 
9233     else
9234       # If it succeeded, then it was overridden by the user. We will use it
9235       # for the tool.
9236 
9237       # First remove it from the list of overridden variables, so we can test
9238       # for unknown variables in the end.
9239       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9240 
9241       # Check if we try to supply an empty value
9242       if test "x$LS" = x; then
9243         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
9244 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
9245         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9246 $as_echo_n "checking for LS... " >&6; }
9247         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9248 $as_echo "disabled" >&6; }
9249       else
9250         # Check if the provided tool contains a complete path.
9251         tool_specified="$LS"
9252         tool_basename="${tool_specified##*/}"
9253         if test "x$tool_basename" = "x$tool_specified"; then
9254           # A command without a complete path is provided, search $PATH.
9255           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
9256 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
9257           # Extract the first word of "$tool_basename", so it can be a program name with args.
9258 set dummy $tool_basename; ac_word=$2
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9260 $as_echo_n "checking for $ac_word... " >&6; }
9261 if ${ac_cv_path_LS+:} false; then :
9262   $as_echo_n "(cached) " >&6
9263 else
9264   case $LS in
9265   [\\/]* | ?:[\\/]*)
9266   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9267   ;;
9268   *)
9269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9270 for as_dir in $PATH
9271 do
9272   IFS=$as_save_IFS
9273   test -z "$as_dir" && as_dir=.
9274     for ac_exec_ext in '' $ac_executable_extensions; do
9275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9276     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9278     break 2
9279   fi
9280 done
9281   done
9282 IFS=$as_save_IFS
9283 
9284   ;;
9285 esac
9286 fi
9287 LS=$ac_cv_path_LS
9288 if test -n "$LS"; then
9289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9290 $as_echo "$LS" >&6; }
9291 else
9292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9293 $as_echo "no" >&6; }
9294 fi
9295 
9296 
9297           if test "x$LS" = x; then
9298             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9299           fi
9300         else
9301           # Otherwise we believe it is a complete path. Use it as it is.
9302           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
9303 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
9304           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9305 $as_echo_n "checking for LS... " >&6; }
9306           if test ! -x "$tool_specified"; then
9307             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9308 $as_echo "not found" >&6; }
9309             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
9310           fi
9311           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9312 $as_echo "$tool_specified" >&6; }
9313         fi
9314       fi
9315     fi
9316 
9317   fi
9318 
9319 
9320 
9321   if test "x$LS" = x; then
9322     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
9323   fi
9324 
9325 
9326 
9327 
9328 
9329   # Publish this variable in the help.
9330 
9331 
9332   if [ -z "${MKDIR+x}" ]; then
9333     # The variable is not set by user, try to locate tool using the code snippet
9334     for ac_prog in mkdir
9335 do
9336   # Extract the first word of "$ac_prog", so it can be a program name with args.
9337 set dummy $ac_prog; ac_word=$2
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9339 $as_echo_n "checking for $ac_word... " >&6; }
9340 if ${ac_cv_path_MKDIR+:} false; then :
9341   $as_echo_n "(cached) " >&6
9342 else
9343   case $MKDIR in
9344   [\\/]* | ?:[\\/]*)
9345   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9346   ;;
9347   *)
9348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9349 for as_dir in $PATH
9350 do
9351   IFS=$as_save_IFS
9352   test -z "$as_dir" && as_dir=.
9353     for ac_exec_ext in '' $ac_executable_extensions; do
9354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9355     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9357     break 2
9358   fi
9359 done
9360   done
9361 IFS=$as_save_IFS
9362 
9363   ;;
9364 esac
9365 fi
9366 MKDIR=$ac_cv_path_MKDIR
9367 if test -n "$MKDIR"; then
9368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9369 $as_echo "$MKDIR" >&6; }
9370 else
9371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9372 $as_echo "no" >&6; }
9373 fi
9374 
9375 
9376   test -n "$MKDIR" && break
9377 done
9378 
9379   else
9380     # The variable is set, but is it from the command line or the environment?
9381 
9382     # Try to remove the string !MKDIR! from our list.
9383     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
9384     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9385       # If it failed, the variable was not from the command line. Ignore it,
9386       # but warn the user (except for BASH, which is always set by the calling BASH).
9387       if test "xMKDIR" != xBASH; then
9388         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
9389 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
9390       fi
9391       # Try to locate tool using the code snippet
9392       for ac_prog in mkdir
9393 do
9394   # Extract the first word of "$ac_prog", so it can be a program name with args.
9395 set dummy $ac_prog; ac_word=$2
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9397 $as_echo_n "checking for $ac_word... " >&6; }
9398 if ${ac_cv_path_MKDIR+:} false; then :
9399   $as_echo_n "(cached) " >&6
9400 else
9401   case $MKDIR in
9402   [\\/]* | ?:[\\/]*)
9403   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9404   ;;
9405   *)
9406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9407 for as_dir in $PATH
9408 do
9409   IFS=$as_save_IFS
9410   test -z "$as_dir" && as_dir=.
9411     for ac_exec_ext in '' $ac_executable_extensions; do
9412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9413     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9415     break 2
9416   fi
9417 done
9418   done
9419 IFS=$as_save_IFS
9420 
9421   ;;
9422 esac
9423 fi
9424 MKDIR=$ac_cv_path_MKDIR
9425 if test -n "$MKDIR"; then
9426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9427 $as_echo "$MKDIR" >&6; }
9428 else
9429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9430 $as_echo "no" >&6; }
9431 fi
9432 
9433 
9434   test -n "$MKDIR" && break
9435 done
9436 
9437     else
9438       # If it succeeded, then it was overridden by the user. We will use it
9439       # for the tool.
9440 
9441       # First remove it from the list of overridden variables, so we can test
9442       # for unknown variables in the end.
9443       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9444 
9445       # Check if we try to supply an empty value
9446       if test "x$MKDIR" = x; then
9447         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
9448 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
9449         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9450 $as_echo_n "checking for MKDIR... " >&6; }
9451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9452 $as_echo "disabled" >&6; }
9453       else
9454         # Check if the provided tool contains a complete path.
9455         tool_specified="$MKDIR"
9456         tool_basename="${tool_specified##*/}"
9457         if test "x$tool_basename" = "x$tool_specified"; then
9458           # A command without a complete path is provided, search $PATH.
9459           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
9460 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
9461           # Extract the first word of "$tool_basename", so it can be a program name with args.
9462 set dummy $tool_basename; ac_word=$2
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9464 $as_echo_n "checking for $ac_word... " >&6; }
9465 if ${ac_cv_path_MKDIR+:} false; then :
9466   $as_echo_n "(cached) " >&6
9467 else
9468   case $MKDIR in
9469   [\\/]* | ?:[\\/]*)
9470   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9471   ;;
9472   *)
9473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474 for as_dir in $PATH
9475 do
9476   IFS=$as_save_IFS
9477   test -z "$as_dir" && as_dir=.
9478     for ac_exec_ext in '' $ac_executable_extensions; do
9479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9480     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9482     break 2
9483   fi
9484 done
9485   done
9486 IFS=$as_save_IFS
9487 
9488   ;;
9489 esac
9490 fi
9491 MKDIR=$ac_cv_path_MKDIR
9492 if test -n "$MKDIR"; then
9493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9494 $as_echo "$MKDIR" >&6; }
9495 else
9496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497 $as_echo "no" >&6; }
9498 fi
9499 
9500 
9501           if test "x$MKDIR" = x; then
9502             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9503           fi
9504         else
9505           # Otherwise we believe it is a complete path. Use it as it is.
9506           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
9507 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
9508           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9509 $as_echo_n "checking for MKDIR... " >&6; }
9510           if test ! -x "$tool_specified"; then
9511             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9512 $as_echo "not found" >&6; }
9513             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9514           fi
9515           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9516 $as_echo "$tool_specified" >&6; }
9517         fi
9518       fi
9519     fi
9520 
9521   fi
9522 
9523 
9524 
9525   if test "x$MKDIR" = x; then
9526     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
9527   fi
9528 
9529 
9530 
9531 
9532 
9533   # Publish this variable in the help.
9534 
9535 
9536   if [ -z "${MKTEMP+x}" ]; then
9537     # The variable is not set by user, try to locate tool using the code snippet
9538     for ac_prog in mktemp
9539 do
9540   # Extract the first word of "$ac_prog", so it can be a program name with args.
9541 set dummy $ac_prog; ac_word=$2
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9543 $as_echo_n "checking for $ac_word... " >&6; }
9544 if ${ac_cv_path_MKTEMP+:} false; then :
9545   $as_echo_n "(cached) " >&6
9546 else
9547   case $MKTEMP in
9548   [\\/]* | ?:[\\/]*)
9549   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9550   ;;
9551   *)
9552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9553 for as_dir in $PATH
9554 do
9555   IFS=$as_save_IFS
9556   test -z "$as_dir" && as_dir=.
9557     for ac_exec_ext in '' $ac_executable_extensions; do
9558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9559     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9561     break 2
9562   fi
9563 done
9564   done
9565 IFS=$as_save_IFS
9566 
9567   ;;
9568 esac
9569 fi
9570 MKTEMP=$ac_cv_path_MKTEMP
9571 if test -n "$MKTEMP"; then
9572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9573 $as_echo "$MKTEMP" >&6; }
9574 else
9575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576 $as_echo "no" >&6; }
9577 fi
9578 
9579 
9580   test -n "$MKTEMP" && break
9581 done
9582 
9583   else
9584     # The variable is set, but is it from the command line or the environment?
9585 
9586     # Try to remove the string !MKTEMP! from our list.
9587     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
9588     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9589       # If it failed, the variable was not from the command line. Ignore it,
9590       # but warn the user (except for BASH, which is always set by the calling BASH).
9591       if test "xMKTEMP" != xBASH; then
9592         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
9593 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
9594       fi
9595       # Try to locate tool using the code snippet
9596       for ac_prog in mktemp
9597 do
9598   # Extract the first word of "$ac_prog", so it can be a program name with args.
9599 set dummy $ac_prog; ac_word=$2
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601 $as_echo_n "checking for $ac_word... " >&6; }
9602 if ${ac_cv_path_MKTEMP+:} false; then :
9603   $as_echo_n "(cached) " >&6
9604 else
9605   case $MKTEMP in
9606   [\\/]* | ?:[\\/]*)
9607   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9608   ;;
9609   *)
9610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9611 for as_dir in $PATH
9612 do
9613   IFS=$as_save_IFS
9614   test -z "$as_dir" && as_dir=.
9615     for ac_exec_ext in '' $ac_executable_extensions; do
9616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9617     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9619     break 2
9620   fi
9621 done
9622   done
9623 IFS=$as_save_IFS
9624 
9625   ;;
9626 esac
9627 fi
9628 MKTEMP=$ac_cv_path_MKTEMP
9629 if test -n "$MKTEMP"; then
9630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9631 $as_echo "$MKTEMP" >&6; }
9632 else
9633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9634 $as_echo "no" >&6; }
9635 fi
9636 
9637 
9638   test -n "$MKTEMP" && break
9639 done
9640 
9641     else
9642       # If it succeeded, then it was overridden by the user. We will use it
9643       # for the tool.
9644 
9645       # First remove it from the list of overridden variables, so we can test
9646       # for unknown variables in the end.
9647       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9648 
9649       # Check if we try to supply an empty value
9650       if test "x$MKTEMP" = x; then
9651         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9652 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9653         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9654 $as_echo_n "checking for MKTEMP... " >&6; }
9655         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9656 $as_echo "disabled" >&6; }
9657       else
9658         # Check if the provided tool contains a complete path.
9659         tool_specified="$MKTEMP"
9660         tool_basename="${tool_specified##*/}"
9661         if test "x$tool_basename" = "x$tool_specified"; then
9662           # A command without a complete path is provided, search $PATH.
9663           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9664 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9665           # Extract the first word of "$tool_basename", so it can be a program name with args.
9666 set dummy $tool_basename; ac_word=$2
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9668 $as_echo_n "checking for $ac_word... " >&6; }
9669 if ${ac_cv_path_MKTEMP+:} false; then :
9670   $as_echo_n "(cached) " >&6
9671 else
9672   case $MKTEMP in
9673   [\\/]* | ?:[\\/]*)
9674   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9675   ;;
9676   *)
9677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678 for as_dir in $PATH
9679 do
9680   IFS=$as_save_IFS
9681   test -z "$as_dir" && as_dir=.
9682     for ac_exec_ext in '' $ac_executable_extensions; do
9683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9684     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9686     break 2
9687   fi
9688 done
9689   done
9690 IFS=$as_save_IFS
9691 
9692   ;;
9693 esac
9694 fi
9695 MKTEMP=$ac_cv_path_MKTEMP
9696 if test -n "$MKTEMP"; then
9697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9698 $as_echo "$MKTEMP" >&6; }
9699 else
9700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9702 fi
9703 
9704 
9705           if test "x$MKTEMP" = x; then
9706             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9707           fi
9708         else
9709           # Otherwise we believe it is a complete path. Use it as it is.
9710           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9711 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9712           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9713 $as_echo_n "checking for MKTEMP... " >&6; }
9714           if test ! -x "$tool_specified"; then
9715             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9716 $as_echo "not found" >&6; }
9717             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9718           fi
9719           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9720 $as_echo "$tool_specified" >&6; }
9721         fi
9722       fi
9723     fi
9724 
9725   fi
9726 
9727 
9728 
9729   if test "x$MKTEMP" = x; then
9730     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9731   fi
9732 
9733 
9734 
9735 
9736 
9737   # Publish this variable in the help.
9738 
9739 
9740   if [ -z "${MV+x}" ]; then
9741     # The variable is not set by user, try to locate tool using the code snippet
9742     for ac_prog in mv
9743 do
9744   # Extract the first word of "$ac_prog", so it can be a program name with args.
9745 set dummy $ac_prog; ac_word=$2
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9747 $as_echo_n "checking for $ac_word... " >&6; }
9748 if ${ac_cv_path_MV+:} false; then :
9749   $as_echo_n "(cached) " >&6
9750 else
9751   case $MV in
9752   [\\/]* | ?:[\\/]*)
9753   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9754   ;;
9755   *)
9756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9757 for as_dir in $PATH
9758 do
9759   IFS=$as_save_IFS
9760   test -z "$as_dir" && as_dir=.
9761     for ac_exec_ext in '' $ac_executable_extensions; do
9762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9763     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9765     break 2
9766   fi
9767 done
9768   done
9769 IFS=$as_save_IFS
9770 
9771   ;;
9772 esac
9773 fi
9774 MV=$ac_cv_path_MV
9775 if test -n "$MV"; then
9776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9777 $as_echo "$MV" >&6; }
9778 else
9779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780 $as_echo "no" >&6; }
9781 fi
9782 
9783 
9784   test -n "$MV" && break
9785 done
9786 
9787   else
9788     # The variable is set, but is it from the command line or the environment?
9789 
9790     # Try to remove the string !MV! from our list.
9791     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9792     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9793       # If it failed, the variable was not from the command line. Ignore it,
9794       # but warn the user (except for BASH, which is always set by the calling BASH).
9795       if test "xMV" != xBASH; then
9796         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9797 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9798       fi
9799       # Try to locate tool using the code snippet
9800       for ac_prog in mv
9801 do
9802   # Extract the first word of "$ac_prog", so it can be a program name with args.
9803 set dummy $ac_prog; ac_word=$2
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9805 $as_echo_n "checking for $ac_word... " >&6; }
9806 if ${ac_cv_path_MV+:} false; then :
9807   $as_echo_n "(cached) " >&6
9808 else
9809   case $MV in
9810   [\\/]* | ?:[\\/]*)
9811   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9812   ;;
9813   *)
9814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 for as_dir in $PATH
9816 do
9817   IFS=$as_save_IFS
9818   test -z "$as_dir" && as_dir=.
9819     for ac_exec_ext in '' $ac_executable_extensions; do
9820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9821     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9823     break 2
9824   fi
9825 done
9826   done
9827 IFS=$as_save_IFS
9828 
9829   ;;
9830 esac
9831 fi
9832 MV=$ac_cv_path_MV
9833 if test -n "$MV"; then
9834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9835 $as_echo "$MV" >&6; }
9836 else
9837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9839 fi
9840 
9841 
9842   test -n "$MV" && break
9843 done
9844 
9845     else
9846       # If it succeeded, then it was overridden by the user. We will use it
9847       # for the tool.
9848 
9849       # First remove it from the list of overridden variables, so we can test
9850       # for unknown variables in the end.
9851       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9852 
9853       # Check if we try to supply an empty value
9854       if test "x$MV" = x; then
9855         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9856 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9857         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9858 $as_echo_n "checking for MV... " >&6; }
9859         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9860 $as_echo "disabled" >&6; }
9861       else
9862         # Check if the provided tool contains a complete path.
9863         tool_specified="$MV"
9864         tool_basename="${tool_specified##*/}"
9865         if test "x$tool_basename" = "x$tool_specified"; then
9866           # A command without a complete path is provided, search $PATH.
9867           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9868 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9869           # Extract the first word of "$tool_basename", so it can be a program name with args.
9870 set dummy $tool_basename; ac_word=$2
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9872 $as_echo_n "checking for $ac_word... " >&6; }
9873 if ${ac_cv_path_MV+:} false; then :
9874   $as_echo_n "(cached) " >&6
9875 else
9876   case $MV in
9877   [\\/]* | ?:[\\/]*)
9878   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9879   ;;
9880   *)
9881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9882 for as_dir in $PATH
9883 do
9884   IFS=$as_save_IFS
9885   test -z "$as_dir" && as_dir=.
9886     for ac_exec_ext in '' $ac_executable_extensions; do
9887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9888     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9890     break 2
9891   fi
9892 done
9893   done
9894 IFS=$as_save_IFS
9895 
9896   ;;
9897 esac
9898 fi
9899 MV=$ac_cv_path_MV
9900 if test -n "$MV"; then
9901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9902 $as_echo "$MV" >&6; }
9903 else
9904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9905 $as_echo "no" >&6; }
9906 fi
9907 
9908 
9909           if test "x$MV" = x; then
9910             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9911           fi
9912         else
9913           # Otherwise we believe it is a complete path. Use it as it is.
9914           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9915 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9916           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9917 $as_echo_n "checking for MV... " >&6; }
9918           if test ! -x "$tool_specified"; then
9919             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9920 $as_echo "not found" >&6; }
9921             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9922           fi
9923           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9924 $as_echo "$tool_specified" >&6; }
9925         fi
9926       fi
9927     fi
9928 
9929   fi
9930 
9931 
9932 
9933   if test "x$MV" = x; then
9934     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9935   fi
9936 
9937 
9938 
9939 
9940 
9941   # Publish this variable in the help.
9942 
9943 
9944   if [ -z "${NAWK+x}" ]; then
9945     # The variable is not set by user, try to locate tool using the code snippet
9946     for ac_prog in nawk gawk awk
9947 do
9948   # Extract the first word of "$ac_prog", so it can be a program name with args.
9949 set dummy $ac_prog; ac_word=$2
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951 $as_echo_n "checking for $ac_word... " >&6; }
9952 if ${ac_cv_path_NAWK+:} false; then :
9953   $as_echo_n "(cached) " >&6
9954 else
9955   case $NAWK in
9956   [\\/]* | ?:[\\/]*)
9957   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9958   ;;
9959   *)
9960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961 for as_dir in $PATH
9962 do
9963   IFS=$as_save_IFS
9964   test -z "$as_dir" && as_dir=.
9965     for ac_exec_ext in '' $ac_executable_extensions; do
9966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9967     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9969     break 2
9970   fi
9971 done
9972   done
9973 IFS=$as_save_IFS
9974 
9975   ;;
9976 esac
9977 fi
9978 NAWK=$ac_cv_path_NAWK
9979 if test -n "$NAWK"; then
9980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9981 $as_echo "$NAWK" >&6; }
9982 else
9983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9984 $as_echo "no" >&6; }
9985 fi
9986 
9987 
9988   test -n "$NAWK" && break
9989 done
9990 
9991   else
9992     # The variable is set, but is it from the command line or the environment?
9993 
9994     # Try to remove the string !NAWK! from our list.
9995     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9996     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9997       # If it failed, the variable was not from the command line. Ignore it,
9998       # but warn the user (except for BASH, which is always set by the calling BASH).
9999       if test "xNAWK" != xBASH; then
10000         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
10001 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
10002       fi
10003       # Try to locate tool using the code snippet
10004       for ac_prog in nawk gawk awk
10005 do
10006   # Extract the first word of "$ac_prog", so it can be a program name with args.
10007 set dummy $ac_prog; ac_word=$2
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009 $as_echo_n "checking for $ac_word... " >&6; }
10010 if ${ac_cv_path_NAWK+:} false; then :
10011   $as_echo_n "(cached) " >&6
10012 else
10013   case $NAWK in
10014   [\\/]* | ?:[\\/]*)
10015   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10016   ;;
10017   *)
10018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019 for as_dir in $PATH
10020 do
10021   IFS=$as_save_IFS
10022   test -z "$as_dir" && as_dir=.
10023     for ac_exec_ext in '' $ac_executable_extensions; do
10024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10025     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10027     break 2
10028   fi
10029 done
10030   done
10031 IFS=$as_save_IFS
10032 
10033   ;;
10034 esac
10035 fi
10036 NAWK=$ac_cv_path_NAWK
10037 if test -n "$NAWK"; then
10038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10039 $as_echo "$NAWK" >&6; }
10040 else
10041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042 $as_echo "no" >&6; }
10043 fi
10044 
10045 
10046   test -n "$NAWK" && break
10047 done
10048 
10049     else
10050       # If it succeeded, then it was overridden by the user. We will use it
10051       # for the tool.
10052 
10053       # First remove it from the list of overridden variables, so we can test
10054       # for unknown variables in the end.
10055       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10056 
10057       # Check if we try to supply an empty value
10058       if test "x$NAWK" = x; then
10059         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
10060 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
10061         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10062 $as_echo_n "checking for NAWK... " >&6; }
10063         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10064 $as_echo "disabled" >&6; }
10065       else
10066         # Check if the provided tool contains a complete path.
10067         tool_specified="$NAWK"
10068         tool_basename="${tool_specified##*/}"
10069         if test "x$tool_basename" = "x$tool_specified"; then
10070           # A command without a complete path is provided, search $PATH.
10071           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
10072 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
10073           # Extract the first word of "$tool_basename", so it can be a program name with args.
10074 set dummy $tool_basename; ac_word=$2
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076 $as_echo_n "checking for $ac_word... " >&6; }
10077 if ${ac_cv_path_NAWK+:} false; then :
10078   $as_echo_n "(cached) " >&6
10079 else
10080   case $NAWK in
10081   [\\/]* | ?:[\\/]*)
10082   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10083   ;;
10084   *)
10085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086 for as_dir in $PATH
10087 do
10088   IFS=$as_save_IFS
10089   test -z "$as_dir" && as_dir=.
10090     for ac_exec_ext in '' $ac_executable_extensions; do
10091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10092     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10094     break 2
10095   fi
10096 done
10097   done
10098 IFS=$as_save_IFS
10099 
10100   ;;
10101 esac
10102 fi
10103 NAWK=$ac_cv_path_NAWK
10104 if test -n "$NAWK"; then
10105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10106 $as_echo "$NAWK" >&6; }
10107 else
10108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 $as_echo "no" >&6; }
10110 fi
10111 
10112 
10113           if test "x$NAWK" = x; then
10114             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10115           fi
10116         else
10117           # Otherwise we believe it is a complete path. Use it as it is.
10118           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
10119 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
10120           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10121 $as_echo_n "checking for NAWK... " >&6; }
10122           if test ! -x "$tool_specified"; then
10123             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10124 $as_echo "not found" >&6; }
10125             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
10126           fi
10127           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10128 $as_echo "$tool_specified" >&6; }
10129         fi
10130       fi
10131     fi
10132 
10133   fi
10134 
10135 
10136 
10137   if test "x$NAWK" = x; then
10138     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
10139   fi
10140 
10141 
10142 
10143 
10144 
10145   # Publish this variable in the help.
10146 
10147 
10148   if [ -z "${PRINTF+x}" ]; then
10149     # The variable is not set by user, try to locate tool using the code snippet
10150     for ac_prog in printf
10151 do
10152   # Extract the first word of "$ac_prog", so it can be a program name with args.
10153 set dummy $ac_prog; ac_word=$2
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10155 $as_echo_n "checking for $ac_word... " >&6; }
10156 if ${ac_cv_path_PRINTF+:} false; then :
10157   $as_echo_n "(cached) " >&6
10158 else
10159   case $PRINTF in
10160   [\\/]* | ?:[\\/]*)
10161   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10162   ;;
10163   *)
10164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10165 for as_dir in $PATH
10166 do
10167   IFS=$as_save_IFS
10168   test -z "$as_dir" && as_dir=.
10169     for ac_exec_ext in '' $ac_executable_extensions; do
10170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10171     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10173     break 2
10174   fi
10175 done
10176   done
10177 IFS=$as_save_IFS
10178 
10179   ;;
10180 esac
10181 fi
10182 PRINTF=$ac_cv_path_PRINTF
10183 if test -n "$PRINTF"; then
10184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10185 $as_echo "$PRINTF" >&6; }
10186 else
10187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188 $as_echo "no" >&6; }
10189 fi
10190 
10191 
10192   test -n "$PRINTF" && break
10193 done
10194 
10195   else
10196     # The variable is set, but is it from the command line or the environment?
10197 
10198     # Try to remove the string !PRINTF! from our list.
10199     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
10200     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10201       # If it failed, the variable was not from the command line. Ignore it,
10202       # but warn the user (except for BASH, which is always set by the calling BASH).
10203       if test "xPRINTF" != xBASH; then
10204         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
10205 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
10206       fi
10207       # Try to locate tool using the code snippet
10208       for ac_prog in printf
10209 do
10210   # Extract the first word of "$ac_prog", so it can be a program name with args.
10211 set dummy $ac_prog; ac_word=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if ${ac_cv_path_PRINTF+:} false; then :
10215   $as_echo_n "(cached) " >&6
10216 else
10217   case $PRINTF in
10218   [\\/]* | ?:[\\/]*)
10219   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10220   ;;
10221   *)
10222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223 for as_dir in $PATH
10224 do
10225   IFS=$as_save_IFS
10226   test -z "$as_dir" && as_dir=.
10227     for ac_exec_ext in '' $ac_executable_extensions; do
10228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10229     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10231     break 2
10232   fi
10233 done
10234   done
10235 IFS=$as_save_IFS
10236 
10237   ;;
10238 esac
10239 fi
10240 PRINTF=$ac_cv_path_PRINTF
10241 if test -n "$PRINTF"; then
10242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10243 $as_echo "$PRINTF" >&6; }
10244 else
10245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246 $as_echo "no" >&6; }
10247 fi
10248 
10249 
10250   test -n "$PRINTF" && break
10251 done
10252 
10253     else
10254       # If it succeeded, then it was overridden by the user. We will use it
10255       # for the tool.
10256 
10257       # First remove it from the list of overridden variables, so we can test
10258       # for unknown variables in the end.
10259       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10260 
10261       # Check if we try to supply an empty value
10262       if test "x$PRINTF" = x; then
10263         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
10264 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
10265         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10266 $as_echo_n "checking for PRINTF... " >&6; }
10267         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10268 $as_echo "disabled" >&6; }
10269       else
10270         # Check if the provided tool contains a complete path.
10271         tool_specified="$PRINTF"
10272         tool_basename="${tool_specified##*/}"
10273         if test "x$tool_basename" = "x$tool_specified"; then
10274           # A command without a complete path is provided, search $PATH.
10275           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
10276 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
10277           # Extract the first word of "$tool_basename", so it can be a program name with args.
10278 set dummy $tool_basename; ac_word=$2
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10280 $as_echo_n "checking for $ac_word... " >&6; }
10281 if ${ac_cv_path_PRINTF+:} false; then :
10282   $as_echo_n "(cached) " >&6
10283 else
10284   case $PRINTF in
10285   [\\/]* | ?:[\\/]*)
10286   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10287   ;;
10288   *)
10289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10290 for as_dir in $PATH
10291 do
10292   IFS=$as_save_IFS
10293   test -z "$as_dir" && as_dir=.
10294     for ac_exec_ext in '' $ac_executable_extensions; do
10295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10296     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10298     break 2
10299   fi
10300 done
10301   done
10302 IFS=$as_save_IFS
10303 
10304   ;;
10305 esac
10306 fi
10307 PRINTF=$ac_cv_path_PRINTF
10308 if test -n "$PRINTF"; then
10309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10310 $as_echo "$PRINTF" >&6; }
10311 else
10312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313 $as_echo "no" >&6; }
10314 fi
10315 
10316 
10317           if test "x$PRINTF" = x; then
10318             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10319           fi
10320         else
10321           # Otherwise we believe it is a complete path. Use it as it is.
10322           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
10323 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
10324           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10325 $as_echo_n "checking for PRINTF... " >&6; }
10326           if test ! -x "$tool_specified"; then
10327             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10328 $as_echo "not found" >&6; }
10329             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
10330           fi
10331           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10332 $as_echo "$tool_specified" >&6; }
10333         fi
10334       fi
10335     fi
10336 
10337   fi
10338 
10339 
10340 
10341   if test "x$PRINTF" = x; then
10342     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
10343   fi
10344 
10345 
10346 
10347 
10348 
10349   # Publish this variable in the help.
10350 
10351 
10352   if [ -z "${RM+x}" ]; then
10353     # The variable is not set by user, try to locate tool using the code snippet
10354     for ac_prog in rm
10355 do
10356   # Extract the first word of "$ac_prog", so it can be a program name with args.
10357 set dummy $ac_prog; ac_word=$2
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10359 $as_echo_n "checking for $ac_word... " >&6; }
10360 if ${ac_cv_path_RM+:} false; then :
10361   $as_echo_n "(cached) " >&6
10362 else
10363   case $RM in
10364   [\\/]* | ?:[\\/]*)
10365   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10366   ;;
10367   *)
10368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369 for as_dir in $PATH
10370 do
10371   IFS=$as_save_IFS
10372   test -z "$as_dir" && as_dir=.
10373     for ac_exec_ext in '' $ac_executable_extensions; do
10374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10375     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10377     break 2
10378   fi
10379 done
10380   done
10381 IFS=$as_save_IFS
10382 
10383   ;;
10384 esac
10385 fi
10386 RM=$ac_cv_path_RM
10387 if test -n "$RM"; then
10388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10389 $as_echo "$RM" >&6; }
10390 else
10391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392 $as_echo "no" >&6; }
10393 fi
10394 
10395 
10396   test -n "$RM" && break
10397 done
10398 
10399   else
10400     # The variable is set, but is it from the command line or the environment?
10401 
10402     # Try to remove the string !RM! from our list.
10403     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
10404     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10405       # If it failed, the variable was not from the command line. Ignore it,
10406       # but warn the user (except for BASH, which is always set by the calling BASH).
10407       if test "xRM" != xBASH; then
10408         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
10409 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
10410       fi
10411       # Try to locate tool using the code snippet
10412       for ac_prog in rm
10413 do
10414   # Extract the first word of "$ac_prog", so it can be a program name with args.
10415 set dummy $ac_prog; ac_word=$2
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10417 $as_echo_n "checking for $ac_word... " >&6; }
10418 if ${ac_cv_path_RM+:} false; then :
10419   $as_echo_n "(cached) " >&6
10420 else
10421   case $RM in
10422   [\\/]* | ?:[\\/]*)
10423   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10424   ;;
10425   *)
10426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10427 for as_dir in $PATH
10428 do
10429   IFS=$as_save_IFS
10430   test -z "$as_dir" && as_dir=.
10431     for ac_exec_ext in '' $ac_executable_extensions; do
10432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10433     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10435     break 2
10436   fi
10437 done
10438   done
10439 IFS=$as_save_IFS
10440 
10441   ;;
10442 esac
10443 fi
10444 RM=$ac_cv_path_RM
10445 if test -n "$RM"; then
10446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10447 $as_echo "$RM" >&6; }
10448 else
10449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10450 $as_echo "no" >&6; }
10451 fi
10452 
10453 
10454   test -n "$RM" && break
10455 done
10456 
10457     else
10458       # If it succeeded, then it was overridden by the user. We will use it
10459       # for the tool.
10460 
10461       # First remove it from the list of overridden variables, so we can test
10462       # for unknown variables in the end.
10463       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10464 
10465       # Check if we try to supply an empty value
10466       if test "x$RM" = x; then
10467         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
10468 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
10469         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10470 $as_echo_n "checking for RM... " >&6; }
10471         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10472 $as_echo "disabled" >&6; }
10473       else
10474         # Check if the provided tool contains a complete path.
10475         tool_specified="$RM"
10476         tool_basename="${tool_specified##*/}"
10477         if test "x$tool_basename" = "x$tool_specified"; then
10478           # A command without a complete path is provided, search $PATH.
10479           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
10480 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
10481           # Extract the first word of "$tool_basename", so it can be a program name with args.
10482 set dummy $tool_basename; ac_word=$2
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10484 $as_echo_n "checking for $ac_word... " >&6; }
10485 if ${ac_cv_path_RM+:} false; then :
10486   $as_echo_n "(cached) " >&6
10487 else
10488   case $RM in
10489   [\\/]* | ?:[\\/]*)
10490   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10491   ;;
10492   *)
10493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494 for as_dir in $PATH
10495 do
10496   IFS=$as_save_IFS
10497   test -z "$as_dir" && as_dir=.
10498     for ac_exec_ext in '' $ac_executable_extensions; do
10499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10500     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10502     break 2
10503   fi
10504 done
10505   done
10506 IFS=$as_save_IFS
10507 
10508   ;;
10509 esac
10510 fi
10511 RM=$ac_cv_path_RM
10512 if test -n "$RM"; then
10513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10514 $as_echo "$RM" >&6; }
10515 else
10516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10518 fi
10519 
10520 
10521           if test "x$RM" = x; then
10522             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10523           fi
10524         else
10525           # Otherwise we believe it is a complete path. Use it as it is.
10526           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
10527 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
10528           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10529 $as_echo_n "checking for RM... " >&6; }
10530           if test ! -x "$tool_specified"; then
10531             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10532 $as_echo "not found" >&6; }
10533             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
10534           fi
10535           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10536 $as_echo "$tool_specified" >&6; }
10537         fi
10538       fi
10539     fi
10540 
10541   fi
10542 
10543 
10544 
10545   if test "x$RM" = x; then
10546     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
10547   fi
10548 
10549 
10550 
10551 
10552 
10553   # Publish this variable in the help.
10554 
10555 
10556   if [ -z "${RMDIR+x}" ]; then
10557     # The variable is not set by user, try to locate tool using the code snippet
10558     for ac_prog in rmdir
10559 do
10560   # Extract the first word of "$ac_prog", so it can be a program name with args.
10561 set dummy $ac_prog; ac_word=$2
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10563 $as_echo_n "checking for $ac_word... " >&6; }
10564 if ${ac_cv_path_RMDIR+:} false; then :
10565   $as_echo_n "(cached) " >&6
10566 else
10567   case $RMDIR in
10568   [\\/]* | ?:[\\/]*)
10569   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10570   ;;
10571   *)
10572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573 for as_dir in $PATH
10574 do
10575   IFS=$as_save_IFS
10576   test -z "$as_dir" && as_dir=.
10577     for ac_exec_ext in '' $ac_executable_extensions; do
10578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10579     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10581     break 2
10582   fi
10583 done
10584   done
10585 IFS=$as_save_IFS
10586 
10587   ;;
10588 esac
10589 fi
10590 RMDIR=$ac_cv_path_RMDIR
10591 if test -n "$RMDIR"; then
10592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10593 $as_echo "$RMDIR" >&6; }
10594 else
10595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596 $as_echo "no" >&6; }
10597 fi
10598 
10599 
10600   test -n "$RMDIR" && break
10601 done
10602 
10603   else
10604     # The variable is set, but is it from the command line or the environment?
10605 
10606     # Try to remove the string !RMDIR! from our list.
10607     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
10608     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10609       # If it failed, the variable was not from the command line. Ignore it,
10610       # but warn the user (except for BASH, which is always set by the calling BASH).
10611       if test "xRMDIR" != xBASH; then
10612         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
10613 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
10614       fi
10615       # Try to locate tool using the code snippet
10616       for ac_prog in rmdir
10617 do
10618   # Extract the first word of "$ac_prog", so it can be a program name with args.
10619 set dummy $ac_prog; ac_word=$2
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10621 $as_echo_n "checking for $ac_word... " >&6; }
10622 if ${ac_cv_path_RMDIR+:} false; then :
10623   $as_echo_n "(cached) " >&6
10624 else
10625   case $RMDIR in
10626   [\\/]* | ?:[\\/]*)
10627   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10628   ;;
10629   *)
10630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631 for as_dir in $PATH
10632 do
10633   IFS=$as_save_IFS
10634   test -z "$as_dir" && as_dir=.
10635     for ac_exec_ext in '' $ac_executable_extensions; do
10636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10637     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10639     break 2
10640   fi
10641 done
10642   done
10643 IFS=$as_save_IFS
10644 
10645   ;;
10646 esac
10647 fi
10648 RMDIR=$ac_cv_path_RMDIR
10649 if test -n "$RMDIR"; then
10650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10651 $as_echo "$RMDIR" >&6; }
10652 else
10653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; }
10655 fi
10656 
10657 
10658   test -n "$RMDIR" && break
10659 done
10660 
10661     else
10662       # If it succeeded, then it was overridden by the user. We will use it
10663       # for the tool.
10664 
10665       # First remove it from the list of overridden variables, so we can test
10666       # for unknown variables in the end.
10667       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10668 
10669       # Check if we try to supply an empty value
10670       if test "x$RMDIR" = x; then
10671         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10672 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10673         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10674 $as_echo_n "checking for RMDIR... " >&6; }
10675         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10676 $as_echo "disabled" >&6; }
10677       else
10678         # Check if the provided tool contains a complete path.
10679         tool_specified="$RMDIR"
10680         tool_basename="${tool_specified##*/}"
10681         if test "x$tool_basename" = "x$tool_specified"; then
10682           # A command without a complete path is provided, search $PATH.
10683           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10684 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10685           # Extract the first word of "$tool_basename", so it can be a program name with args.
10686 set dummy $tool_basename; ac_word=$2
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10688 $as_echo_n "checking for $ac_word... " >&6; }
10689 if ${ac_cv_path_RMDIR+:} false; then :
10690   $as_echo_n "(cached) " >&6
10691 else
10692   case $RMDIR in
10693   [\\/]* | ?:[\\/]*)
10694   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10695   ;;
10696   *)
10697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10698 for as_dir in $PATH
10699 do
10700   IFS=$as_save_IFS
10701   test -z "$as_dir" && as_dir=.
10702     for ac_exec_ext in '' $ac_executable_extensions; do
10703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10704     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10706     break 2
10707   fi
10708 done
10709   done
10710 IFS=$as_save_IFS
10711 
10712   ;;
10713 esac
10714 fi
10715 RMDIR=$ac_cv_path_RMDIR
10716 if test -n "$RMDIR"; then
10717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10718 $as_echo "$RMDIR" >&6; }
10719 else
10720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721 $as_echo "no" >&6; }
10722 fi
10723 
10724 
10725           if test "x$RMDIR" = x; then
10726             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10727           fi
10728         else
10729           # Otherwise we believe it is a complete path. Use it as it is.
10730           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10731 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10732           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10733 $as_echo_n "checking for RMDIR... " >&6; }
10734           if test ! -x "$tool_specified"; then
10735             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10736 $as_echo "not found" >&6; }
10737             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10738           fi
10739           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10740 $as_echo "$tool_specified" >&6; }
10741         fi
10742       fi
10743     fi
10744 
10745   fi
10746 
10747 
10748 
10749   if test "x$RMDIR" = x; then
10750     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10751   fi
10752 
10753 
10754 
10755 
10756 
10757   # Publish this variable in the help.
10758 
10759 
10760   if [ -z "${SH+x}" ]; then
10761     # The variable is not set by user, try to locate tool using the code snippet
10762     for ac_prog in sh
10763 do
10764   # Extract the first word of "$ac_prog", so it can be a program name with args.
10765 set dummy $ac_prog; ac_word=$2
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10767 $as_echo_n "checking for $ac_word... " >&6; }
10768 if ${ac_cv_path_SH+:} false; then :
10769   $as_echo_n "(cached) " >&6
10770 else
10771   case $SH in
10772   [\\/]* | ?:[\\/]*)
10773   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10774   ;;
10775   *)
10776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10777 for as_dir in $PATH
10778 do
10779   IFS=$as_save_IFS
10780   test -z "$as_dir" && as_dir=.
10781     for ac_exec_ext in '' $ac_executable_extensions; do
10782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10783     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10785     break 2
10786   fi
10787 done
10788   done
10789 IFS=$as_save_IFS
10790 
10791   ;;
10792 esac
10793 fi
10794 SH=$ac_cv_path_SH
10795 if test -n "$SH"; then
10796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10797 $as_echo "$SH" >&6; }
10798 else
10799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10800 $as_echo "no" >&6; }
10801 fi
10802 
10803 
10804   test -n "$SH" && break
10805 done
10806 
10807   else
10808     # The variable is set, but is it from the command line or the environment?
10809 
10810     # Try to remove the string !SH! from our list.
10811     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10812     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10813       # If it failed, the variable was not from the command line. Ignore it,
10814       # but warn the user (except for BASH, which is always set by the calling BASH).
10815       if test "xSH" != xBASH; then
10816         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10817 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10818       fi
10819       # Try to locate tool using the code snippet
10820       for ac_prog in sh
10821 do
10822   # Extract the first word of "$ac_prog", so it can be a program name with args.
10823 set dummy $ac_prog; ac_word=$2
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10825 $as_echo_n "checking for $ac_word... " >&6; }
10826 if ${ac_cv_path_SH+:} false; then :
10827   $as_echo_n "(cached) " >&6
10828 else
10829   case $SH in
10830   [\\/]* | ?:[\\/]*)
10831   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10832   ;;
10833   *)
10834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10835 for as_dir in $PATH
10836 do
10837   IFS=$as_save_IFS
10838   test -z "$as_dir" && as_dir=.
10839     for ac_exec_ext in '' $ac_executable_extensions; do
10840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10841     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10843     break 2
10844   fi
10845 done
10846   done
10847 IFS=$as_save_IFS
10848 
10849   ;;
10850 esac
10851 fi
10852 SH=$ac_cv_path_SH
10853 if test -n "$SH"; then
10854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10855 $as_echo "$SH" >&6; }
10856 else
10857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858 $as_echo "no" >&6; }
10859 fi
10860 
10861 
10862   test -n "$SH" && break
10863 done
10864 
10865     else
10866       # If it succeeded, then it was overridden by the user. We will use it
10867       # for the tool.
10868 
10869       # First remove it from the list of overridden variables, so we can test
10870       # for unknown variables in the end.
10871       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10872 
10873       # Check if we try to supply an empty value
10874       if test "x$SH" = x; then
10875         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10876 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10877         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10878 $as_echo_n "checking for SH... " >&6; }
10879         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10880 $as_echo "disabled" >&6; }
10881       else
10882         # Check if the provided tool contains a complete path.
10883         tool_specified="$SH"
10884         tool_basename="${tool_specified##*/}"
10885         if test "x$tool_basename" = "x$tool_specified"; then
10886           # A command without a complete path is provided, search $PATH.
10887           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10888 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10889           # Extract the first word of "$tool_basename", so it can be a program name with args.
10890 set dummy $tool_basename; ac_word=$2
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10892 $as_echo_n "checking for $ac_word... " >&6; }
10893 if ${ac_cv_path_SH+:} false; then :
10894   $as_echo_n "(cached) " >&6
10895 else
10896   case $SH in
10897   [\\/]* | ?:[\\/]*)
10898   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10899   ;;
10900   *)
10901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902 for as_dir in $PATH
10903 do
10904   IFS=$as_save_IFS
10905   test -z "$as_dir" && as_dir=.
10906     for ac_exec_ext in '' $ac_executable_extensions; do
10907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10908     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10910     break 2
10911   fi
10912 done
10913   done
10914 IFS=$as_save_IFS
10915 
10916   ;;
10917 esac
10918 fi
10919 SH=$ac_cv_path_SH
10920 if test -n "$SH"; then
10921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10922 $as_echo "$SH" >&6; }
10923 else
10924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925 $as_echo "no" >&6; }
10926 fi
10927 
10928 
10929           if test "x$SH" = x; then
10930             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10931           fi
10932         else
10933           # Otherwise we believe it is a complete path. Use it as it is.
10934           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10935 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10936           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10937 $as_echo_n "checking for SH... " >&6; }
10938           if test ! -x "$tool_specified"; then
10939             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10940 $as_echo "not found" >&6; }
10941             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10942           fi
10943           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10944 $as_echo "$tool_specified" >&6; }
10945         fi
10946       fi
10947     fi
10948 
10949   fi
10950 
10951 
10952 
10953   if test "x$SH" = x; then
10954     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10955   fi
10956 
10957 
10958 
10959 
10960 
10961   # Publish this variable in the help.
10962 
10963 
10964   if [ -z "${SORT+x}" ]; then
10965     # The variable is not set by user, try to locate tool using the code snippet
10966     for ac_prog in sort
10967 do
10968   # Extract the first word of "$ac_prog", so it can be a program name with args.
10969 set dummy $ac_prog; ac_word=$2
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10971 $as_echo_n "checking for $ac_word... " >&6; }
10972 if ${ac_cv_path_SORT+:} false; then :
10973   $as_echo_n "(cached) " >&6
10974 else
10975   case $SORT in
10976   [\\/]* | ?:[\\/]*)
10977   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10978   ;;
10979   *)
10980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10982 do
10983   IFS=$as_save_IFS
10984   test -z "$as_dir" && as_dir=.
10985     for ac_exec_ext in '' $ac_executable_extensions; do
10986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10987     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989     break 2
10990   fi
10991 done
10992   done
10993 IFS=$as_save_IFS
10994 
10995   ;;
10996 esac
10997 fi
10998 SORT=$ac_cv_path_SORT
10999 if test -n "$SORT"; then
11000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11001 $as_echo "$SORT" >&6; }
11002 else
11003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11005 fi
11006 
11007 
11008   test -n "$SORT" && break
11009 done
11010 
11011   else
11012     # The variable is set, but is it from the command line or the environment?
11013 
11014     # Try to remove the string !SORT! from our list.
11015     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
11016     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11017       # If it failed, the variable was not from the command line. Ignore it,
11018       # but warn the user (except for BASH, which is always set by the calling BASH).
11019       if test "xSORT" != xBASH; then
11020         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
11021 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
11022       fi
11023       # Try to locate tool using the code snippet
11024       for ac_prog in sort
11025 do
11026   # Extract the first word of "$ac_prog", so it can be a program name with args.
11027 set dummy $ac_prog; ac_word=$2
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11029 $as_echo_n "checking for $ac_word... " >&6; }
11030 if ${ac_cv_path_SORT+:} false; then :
11031   $as_echo_n "(cached) " >&6
11032 else
11033   case $SORT in
11034   [\\/]* | ?:[\\/]*)
11035   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11036   ;;
11037   *)
11038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11039 for as_dir in $PATH
11040 do
11041   IFS=$as_save_IFS
11042   test -z "$as_dir" && as_dir=.
11043     for ac_exec_ext in '' $ac_executable_extensions; do
11044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11045     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11047     break 2
11048   fi
11049 done
11050   done
11051 IFS=$as_save_IFS
11052 
11053   ;;
11054 esac
11055 fi
11056 SORT=$ac_cv_path_SORT
11057 if test -n "$SORT"; then
11058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11059 $as_echo "$SORT" >&6; }
11060 else
11061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062 $as_echo "no" >&6; }
11063 fi
11064 
11065 
11066   test -n "$SORT" && break
11067 done
11068 
11069     else
11070       # If it succeeded, then it was overridden by the user. We will use it
11071       # for the tool.
11072 
11073       # First remove it from the list of overridden variables, so we can test
11074       # for unknown variables in the end.
11075       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11076 
11077       # Check if we try to supply an empty value
11078       if test "x$SORT" = x; then
11079         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
11080 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
11081         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11082 $as_echo_n "checking for SORT... " >&6; }
11083         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11084 $as_echo "disabled" >&6; }
11085       else
11086         # Check if the provided tool contains a complete path.
11087         tool_specified="$SORT"
11088         tool_basename="${tool_specified##*/}"
11089         if test "x$tool_basename" = "x$tool_specified"; then
11090           # A command without a complete path is provided, search $PATH.
11091           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
11092 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
11093           # Extract the first word of "$tool_basename", so it can be a program name with args.
11094 set dummy $tool_basename; ac_word=$2
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11096 $as_echo_n "checking for $ac_word... " >&6; }
11097 if ${ac_cv_path_SORT+:} false; then :
11098   $as_echo_n "(cached) " >&6
11099 else
11100   case $SORT in
11101   [\\/]* | ?:[\\/]*)
11102   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11103   ;;
11104   *)
11105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106 for as_dir in $PATH
11107 do
11108   IFS=$as_save_IFS
11109   test -z "$as_dir" && as_dir=.
11110     for ac_exec_ext in '' $ac_executable_extensions; do
11111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11112     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11114     break 2
11115   fi
11116 done
11117   done
11118 IFS=$as_save_IFS
11119 
11120   ;;
11121 esac
11122 fi
11123 SORT=$ac_cv_path_SORT
11124 if test -n "$SORT"; then
11125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11126 $as_echo "$SORT" >&6; }
11127 else
11128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11130 fi
11131 
11132 
11133           if test "x$SORT" = x; then
11134             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11135           fi
11136         else
11137           # Otherwise we believe it is a complete path. Use it as it is.
11138           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
11139 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
11140           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11141 $as_echo_n "checking for SORT... " >&6; }
11142           if test ! -x "$tool_specified"; then
11143             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11144 $as_echo "not found" >&6; }
11145             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
11146           fi
11147           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11148 $as_echo "$tool_specified" >&6; }
11149         fi
11150       fi
11151     fi
11152 
11153   fi
11154 
11155 
11156 
11157   if test "x$SORT" = x; then
11158     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
11159   fi
11160 
11161 
11162 
11163 
11164 
11165   # Publish this variable in the help.
11166 
11167 
11168   if [ -z "${TAIL+x}" ]; then
11169     # The variable is not set by user, try to locate tool using the code snippet
11170     for ac_prog in tail
11171 do
11172   # Extract the first word of "$ac_prog", so it can be a program name with args.
11173 set dummy $ac_prog; ac_word=$2
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11175 $as_echo_n "checking for $ac_word... " >&6; }
11176 if ${ac_cv_path_TAIL+:} false; then :
11177   $as_echo_n "(cached) " >&6
11178 else
11179   case $TAIL in
11180   [\\/]* | ?:[\\/]*)
11181   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11182   ;;
11183   *)
11184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185 for as_dir in $PATH
11186 do
11187   IFS=$as_save_IFS
11188   test -z "$as_dir" && as_dir=.
11189     for ac_exec_ext in '' $ac_executable_extensions; do
11190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11191     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11193     break 2
11194   fi
11195 done
11196   done
11197 IFS=$as_save_IFS
11198 
11199   ;;
11200 esac
11201 fi
11202 TAIL=$ac_cv_path_TAIL
11203 if test -n "$TAIL"; then
11204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11205 $as_echo "$TAIL" >&6; }
11206 else
11207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208 $as_echo "no" >&6; }
11209 fi
11210 
11211 
11212   test -n "$TAIL" && break
11213 done
11214 
11215   else
11216     # The variable is set, but is it from the command line or the environment?
11217 
11218     # Try to remove the string !TAIL! from our list.
11219     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
11220     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11221       # If it failed, the variable was not from the command line. Ignore it,
11222       # but warn the user (except for BASH, which is always set by the calling BASH).
11223       if test "xTAIL" != xBASH; then
11224         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
11225 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
11226       fi
11227       # Try to locate tool using the code snippet
11228       for ac_prog in tail
11229 do
11230   # Extract the first word of "$ac_prog", so it can be a program name with args.
11231 set dummy $ac_prog; ac_word=$2
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11233 $as_echo_n "checking for $ac_word... " >&6; }
11234 if ${ac_cv_path_TAIL+:} false; then :
11235   $as_echo_n "(cached) " >&6
11236 else
11237   case $TAIL in
11238   [\\/]* | ?:[\\/]*)
11239   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11240   ;;
11241   *)
11242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243 for as_dir in $PATH
11244 do
11245   IFS=$as_save_IFS
11246   test -z "$as_dir" && as_dir=.
11247     for ac_exec_ext in '' $ac_executable_extensions; do
11248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11249     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11251     break 2
11252   fi
11253 done
11254   done
11255 IFS=$as_save_IFS
11256 
11257   ;;
11258 esac
11259 fi
11260 TAIL=$ac_cv_path_TAIL
11261 if test -n "$TAIL"; then
11262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11263 $as_echo "$TAIL" >&6; }
11264 else
11265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266 $as_echo "no" >&6; }
11267 fi
11268 
11269 
11270   test -n "$TAIL" && break
11271 done
11272 
11273     else
11274       # If it succeeded, then it was overridden by the user. We will use it
11275       # for the tool.
11276 
11277       # First remove it from the list of overridden variables, so we can test
11278       # for unknown variables in the end.
11279       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11280 
11281       # Check if we try to supply an empty value
11282       if test "x$TAIL" = x; then
11283         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
11284 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
11285         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11286 $as_echo_n "checking for TAIL... " >&6; }
11287         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11288 $as_echo "disabled" >&6; }
11289       else
11290         # Check if the provided tool contains a complete path.
11291         tool_specified="$TAIL"
11292         tool_basename="${tool_specified##*/}"
11293         if test "x$tool_basename" = "x$tool_specified"; then
11294           # A command without a complete path is provided, search $PATH.
11295           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
11296 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
11297           # Extract the first word of "$tool_basename", so it can be a program name with args.
11298 set dummy $tool_basename; ac_word=$2
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11300 $as_echo_n "checking for $ac_word... " >&6; }
11301 if ${ac_cv_path_TAIL+:} false; then :
11302   $as_echo_n "(cached) " >&6
11303 else
11304   case $TAIL in
11305   [\\/]* | ?:[\\/]*)
11306   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11307   ;;
11308   *)
11309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310 for as_dir in $PATH
11311 do
11312   IFS=$as_save_IFS
11313   test -z "$as_dir" && as_dir=.
11314     for ac_exec_ext in '' $ac_executable_extensions; do
11315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11316     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11318     break 2
11319   fi
11320 done
11321   done
11322 IFS=$as_save_IFS
11323 
11324   ;;
11325 esac
11326 fi
11327 TAIL=$ac_cv_path_TAIL
11328 if test -n "$TAIL"; then
11329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11330 $as_echo "$TAIL" >&6; }
11331 else
11332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333 $as_echo "no" >&6; }
11334 fi
11335 
11336 
11337           if test "x$TAIL" = x; then
11338             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11339           fi
11340         else
11341           # Otherwise we believe it is a complete path. Use it as it is.
11342           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
11343 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
11344           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11345 $as_echo_n "checking for TAIL... " >&6; }
11346           if test ! -x "$tool_specified"; then
11347             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11348 $as_echo "not found" >&6; }
11349             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
11350           fi
11351           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11352 $as_echo "$tool_specified" >&6; }
11353         fi
11354       fi
11355     fi
11356 
11357   fi
11358 
11359 
11360 
11361   if test "x$TAIL" = x; then
11362     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
11363   fi
11364 
11365 
11366 
11367 
11368 
11369   # Publish this variable in the help.
11370 
11371 
11372   if [ -z "${TAR+x}" ]; then
11373     # The variable is not set by user, try to locate tool using the code snippet
11374     for ac_prog in gtar tar
11375 do
11376   # Extract the first word of "$ac_prog", so it can be a program name with args.
11377 set dummy $ac_prog; ac_word=$2
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11379 $as_echo_n "checking for $ac_word... " >&6; }
11380 if ${ac_cv_path_TAR+:} false; then :
11381   $as_echo_n "(cached) " >&6
11382 else
11383   case $TAR in
11384   [\\/]* | ?:[\\/]*)
11385   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11386   ;;
11387   *)
11388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389 for as_dir in $PATH
11390 do
11391   IFS=$as_save_IFS
11392   test -z "$as_dir" && as_dir=.
11393     for ac_exec_ext in '' $ac_executable_extensions; do
11394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11395     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11397     break 2
11398   fi
11399 done
11400   done
11401 IFS=$as_save_IFS
11402 
11403   ;;
11404 esac
11405 fi
11406 TAR=$ac_cv_path_TAR
11407 if test -n "$TAR"; then
11408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11409 $as_echo "$TAR" >&6; }
11410 else
11411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; }
11413 fi
11414 
11415 
11416   test -n "$TAR" && break
11417 done
11418 
11419   else
11420     # The variable is set, but is it from the command line or the environment?
11421 
11422     # Try to remove the string !TAR! from our list.
11423     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
11424     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11425       # If it failed, the variable was not from the command line. Ignore it,
11426       # but warn the user (except for BASH, which is always set by the calling BASH).
11427       if test "xTAR" != xBASH; then
11428         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
11429 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
11430       fi
11431       # Try to locate tool using the code snippet
11432       for ac_prog in gtar tar
11433 do
11434   # Extract the first word of "$ac_prog", so it can be a program name with args.
11435 set dummy $ac_prog; ac_word=$2
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11437 $as_echo_n "checking for $ac_word... " >&6; }
11438 if ${ac_cv_path_TAR+:} false; then :
11439   $as_echo_n "(cached) " >&6
11440 else
11441   case $TAR in
11442   [\\/]* | ?:[\\/]*)
11443   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11444   ;;
11445   *)
11446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447 for as_dir in $PATH
11448 do
11449   IFS=$as_save_IFS
11450   test -z "$as_dir" && as_dir=.
11451     for ac_exec_ext in '' $ac_executable_extensions; do
11452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11453     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11455     break 2
11456   fi
11457 done
11458   done
11459 IFS=$as_save_IFS
11460 
11461   ;;
11462 esac
11463 fi
11464 TAR=$ac_cv_path_TAR
11465 if test -n "$TAR"; then
11466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11467 $as_echo "$TAR" >&6; }
11468 else
11469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470 $as_echo "no" >&6; }
11471 fi
11472 
11473 
11474   test -n "$TAR" && break
11475 done
11476 
11477     else
11478       # If it succeeded, then it was overridden by the user. We will use it
11479       # for the tool.
11480 
11481       # First remove it from the list of overridden variables, so we can test
11482       # for unknown variables in the end.
11483       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11484 
11485       # Check if we try to supply an empty value
11486       if test "x$TAR" = x; then
11487         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
11488 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
11489         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11490 $as_echo_n "checking for TAR... " >&6; }
11491         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11492 $as_echo "disabled" >&6; }
11493       else
11494         # Check if the provided tool contains a complete path.
11495         tool_specified="$TAR"
11496         tool_basename="${tool_specified##*/}"
11497         if test "x$tool_basename" = "x$tool_specified"; then
11498           # A command without a complete path is provided, search $PATH.
11499           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
11500 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
11501           # Extract the first word of "$tool_basename", so it can be a program name with args.
11502 set dummy $tool_basename; ac_word=$2
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11504 $as_echo_n "checking for $ac_word... " >&6; }
11505 if ${ac_cv_path_TAR+:} false; then :
11506   $as_echo_n "(cached) " >&6
11507 else
11508   case $TAR in
11509   [\\/]* | ?:[\\/]*)
11510   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11511   ;;
11512   *)
11513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514 for as_dir in $PATH
11515 do
11516   IFS=$as_save_IFS
11517   test -z "$as_dir" && as_dir=.
11518     for ac_exec_ext in '' $ac_executable_extensions; do
11519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11520     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11522     break 2
11523   fi
11524 done
11525   done
11526 IFS=$as_save_IFS
11527 
11528   ;;
11529 esac
11530 fi
11531 TAR=$ac_cv_path_TAR
11532 if test -n "$TAR"; then
11533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11534 $as_echo "$TAR" >&6; }
11535 else
11536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11538 fi
11539 
11540 
11541           if test "x$TAR" = x; then
11542             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11543           fi
11544         else
11545           # Otherwise we believe it is a complete path. Use it as it is.
11546           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
11547 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
11548           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11549 $as_echo_n "checking for TAR... " >&6; }
11550           if test ! -x "$tool_specified"; then
11551             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11552 $as_echo "not found" >&6; }
11553             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
11554           fi
11555           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11556 $as_echo "$tool_specified" >&6; }
11557         fi
11558       fi
11559     fi
11560 
11561   fi
11562 
11563 
11564 
11565   if test "x$TAR" = x; then
11566     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
11567   fi
11568 
11569 
11570 
11571 
11572 
11573   # Publish this variable in the help.
11574 
11575 
11576   if [ -z "${TEE+x}" ]; then
11577     # The variable is not set by user, try to locate tool using the code snippet
11578     for ac_prog in tee
11579 do
11580   # Extract the first word of "$ac_prog", so it can be a program name with args.
11581 set dummy $ac_prog; ac_word=$2
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11583 $as_echo_n "checking for $ac_word... " >&6; }
11584 if ${ac_cv_path_TEE+:} false; then :
11585   $as_echo_n "(cached) " >&6
11586 else
11587   case $TEE in
11588   [\\/]* | ?:[\\/]*)
11589   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11590   ;;
11591   *)
11592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593 for as_dir in $PATH
11594 do
11595   IFS=$as_save_IFS
11596   test -z "$as_dir" && as_dir=.
11597     for ac_exec_ext in '' $ac_executable_extensions; do
11598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11599     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11601     break 2
11602   fi
11603 done
11604   done
11605 IFS=$as_save_IFS
11606 
11607   ;;
11608 esac
11609 fi
11610 TEE=$ac_cv_path_TEE
11611 if test -n "$TEE"; then
11612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11613 $as_echo "$TEE" >&6; }
11614 else
11615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616 $as_echo "no" >&6; }
11617 fi
11618 
11619 
11620   test -n "$TEE" && break
11621 done
11622 
11623   else
11624     # The variable is set, but is it from the command line or the environment?
11625 
11626     # Try to remove the string !TEE! from our list.
11627     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
11628     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11629       # If it failed, the variable was not from the command line. Ignore it,
11630       # but warn the user (except for BASH, which is always set by the calling BASH).
11631       if test "xTEE" != xBASH; then
11632         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
11633 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
11634       fi
11635       # Try to locate tool using the code snippet
11636       for ac_prog in tee
11637 do
11638   # Extract the first word of "$ac_prog", so it can be a program name with args.
11639 set dummy $ac_prog; ac_word=$2
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11641 $as_echo_n "checking for $ac_word... " >&6; }
11642 if ${ac_cv_path_TEE+:} false; then :
11643   $as_echo_n "(cached) " >&6
11644 else
11645   case $TEE in
11646   [\\/]* | ?:[\\/]*)
11647   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11648   ;;
11649   *)
11650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $PATH
11652 do
11653   IFS=$as_save_IFS
11654   test -z "$as_dir" && as_dir=.
11655     for ac_exec_ext in '' $ac_executable_extensions; do
11656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11657     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11659     break 2
11660   fi
11661 done
11662   done
11663 IFS=$as_save_IFS
11664 
11665   ;;
11666 esac
11667 fi
11668 TEE=$ac_cv_path_TEE
11669 if test -n "$TEE"; then
11670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11671 $as_echo "$TEE" >&6; }
11672 else
11673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11674 $as_echo "no" >&6; }
11675 fi
11676 
11677 
11678   test -n "$TEE" && break
11679 done
11680 
11681     else
11682       # If it succeeded, then it was overridden by the user. We will use it
11683       # for the tool.
11684 
11685       # First remove it from the list of overridden variables, so we can test
11686       # for unknown variables in the end.
11687       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11688 
11689       # Check if we try to supply an empty value
11690       if test "x$TEE" = x; then
11691         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11692 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11693         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11694 $as_echo_n "checking for TEE... " >&6; }
11695         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11696 $as_echo "disabled" >&6; }
11697       else
11698         # Check if the provided tool contains a complete path.
11699         tool_specified="$TEE"
11700         tool_basename="${tool_specified##*/}"
11701         if test "x$tool_basename" = "x$tool_specified"; then
11702           # A command without a complete path is provided, search $PATH.
11703           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11704 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11705           # Extract the first word of "$tool_basename", so it can be a program name with args.
11706 set dummy $tool_basename; ac_word=$2
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11708 $as_echo_n "checking for $ac_word... " >&6; }
11709 if ${ac_cv_path_TEE+:} false; then :
11710   $as_echo_n "(cached) " >&6
11711 else
11712   case $TEE in
11713   [\\/]* | ?:[\\/]*)
11714   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11715   ;;
11716   *)
11717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718 for as_dir in $PATH
11719 do
11720   IFS=$as_save_IFS
11721   test -z "$as_dir" && as_dir=.
11722     for ac_exec_ext in '' $ac_executable_extensions; do
11723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11724     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11726     break 2
11727   fi
11728 done
11729   done
11730 IFS=$as_save_IFS
11731 
11732   ;;
11733 esac
11734 fi
11735 TEE=$ac_cv_path_TEE
11736 if test -n "$TEE"; then
11737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11738 $as_echo "$TEE" >&6; }
11739 else
11740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741 $as_echo "no" >&6; }
11742 fi
11743 
11744 
11745           if test "x$TEE" = x; then
11746             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11747           fi
11748         else
11749           # Otherwise we believe it is a complete path. Use it as it is.
11750           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11751 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11752           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11753 $as_echo_n "checking for TEE... " >&6; }
11754           if test ! -x "$tool_specified"; then
11755             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11756 $as_echo "not found" >&6; }
11757             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11758           fi
11759           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11760 $as_echo "$tool_specified" >&6; }
11761         fi
11762       fi
11763     fi
11764 
11765   fi
11766 
11767 
11768 
11769   if test "x$TEE" = x; then
11770     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11771   fi
11772 
11773 
11774 
11775 
11776 
11777   # Publish this variable in the help.
11778 
11779 
11780   if [ -z "${TOUCH+x}" ]; then
11781     # The variable is not set by user, try to locate tool using the code snippet
11782     for ac_prog in touch
11783 do
11784   # Extract the first word of "$ac_prog", so it can be a program name with args.
11785 set dummy $ac_prog; ac_word=$2
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11787 $as_echo_n "checking for $ac_word... " >&6; }
11788 if ${ac_cv_path_TOUCH+:} false; then :
11789   $as_echo_n "(cached) " >&6
11790 else
11791   case $TOUCH in
11792   [\\/]* | ?:[\\/]*)
11793   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11794   ;;
11795   *)
11796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797 for as_dir in $PATH
11798 do
11799   IFS=$as_save_IFS
11800   test -z "$as_dir" && as_dir=.
11801     for ac_exec_ext in '' $ac_executable_extensions; do
11802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11803     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11805     break 2
11806   fi
11807 done
11808   done
11809 IFS=$as_save_IFS
11810 
11811   ;;
11812 esac
11813 fi
11814 TOUCH=$ac_cv_path_TOUCH
11815 if test -n "$TOUCH"; then
11816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11817 $as_echo "$TOUCH" >&6; }
11818 else
11819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820 $as_echo "no" >&6; }
11821 fi
11822 
11823 
11824   test -n "$TOUCH" && break
11825 done
11826 
11827   else
11828     # The variable is set, but is it from the command line or the environment?
11829 
11830     # Try to remove the string !TOUCH! from our list.
11831     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11832     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11833       # If it failed, the variable was not from the command line. Ignore it,
11834       # but warn the user (except for BASH, which is always set by the calling BASH).
11835       if test "xTOUCH" != xBASH; then
11836         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11837 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11838       fi
11839       # Try to locate tool using the code snippet
11840       for ac_prog in touch
11841 do
11842   # Extract the first word of "$ac_prog", so it can be a program name with args.
11843 set dummy $ac_prog; ac_word=$2
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11845 $as_echo_n "checking for $ac_word... " >&6; }
11846 if ${ac_cv_path_TOUCH+:} false; then :
11847   $as_echo_n "(cached) " >&6
11848 else
11849   case $TOUCH in
11850   [\\/]* | ?:[\\/]*)
11851   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11852   ;;
11853   *)
11854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855 for as_dir in $PATH
11856 do
11857   IFS=$as_save_IFS
11858   test -z "$as_dir" && as_dir=.
11859     for ac_exec_ext in '' $ac_executable_extensions; do
11860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11861     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11863     break 2
11864   fi
11865 done
11866   done
11867 IFS=$as_save_IFS
11868 
11869   ;;
11870 esac
11871 fi
11872 TOUCH=$ac_cv_path_TOUCH
11873 if test -n "$TOUCH"; then
11874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11875 $as_echo "$TOUCH" >&6; }
11876 else
11877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878 $as_echo "no" >&6; }
11879 fi
11880 
11881 
11882   test -n "$TOUCH" && break
11883 done
11884 
11885     else
11886       # If it succeeded, then it was overridden by the user. We will use it
11887       # for the tool.
11888 
11889       # First remove it from the list of overridden variables, so we can test
11890       # for unknown variables in the end.
11891       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11892 
11893       # Check if we try to supply an empty value
11894       if test "x$TOUCH" = x; then
11895         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11896 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11897         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11898 $as_echo_n "checking for TOUCH... " >&6; }
11899         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11900 $as_echo "disabled" >&6; }
11901       else
11902         # Check if the provided tool contains a complete path.
11903         tool_specified="$TOUCH"
11904         tool_basename="${tool_specified##*/}"
11905         if test "x$tool_basename" = "x$tool_specified"; then
11906           # A command without a complete path is provided, search $PATH.
11907           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11908 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11909           # Extract the first word of "$tool_basename", so it can be a program name with args.
11910 set dummy $tool_basename; ac_word=$2
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912 $as_echo_n "checking for $ac_word... " >&6; }
11913 if ${ac_cv_path_TOUCH+:} false; then :
11914   $as_echo_n "(cached) " >&6
11915 else
11916   case $TOUCH in
11917   [\\/]* | ?:[\\/]*)
11918   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11919   ;;
11920   *)
11921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11923 do
11924   IFS=$as_save_IFS
11925   test -z "$as_dir" && as_dir=.
11926     for ac_exec_ext in '' $ac_executable_extensions; do
11927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11928     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930     break 2
11931   fi
11932 done
11933   done
11934 IFS=$as_save_IFS
11935 
11936   ;;
11937 esac
11938 fi
11939 TOUCH=$ac_cv_path_TOUCH
11940 if test -n "$TOUCH"; then
11941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11942 $as_echo "$TOUCH" >&6; }
11943 else
11944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 $as_echo "no" >&6; }
11946 fi
11947 
11948 
11949           if test "x$TOUCH" = x; then
11950             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11951           fi
11952         else
11953           # Otherwise we believe it is a complete path. Use it as it is.
11954           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11955 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11956           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11957 $as_echo_n "checking for TOUCH... " >&6; }
11958           if test ! -x "$tool_specified"; then
11959             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11960 $as_echo "not found" >&6; }
11961             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11962           fi
11963           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11964 $as_echo "$tool_specified" >&6; }
11965         fi
11966       fi
11967     fi
11968 
11969   fi
11970 
11971 
11972 
11973   if test "x$TOUCH" = x; then
11974     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11975   fi
11976 
11977 
11978 
11979 
11980 
11981   # Publish this variable in the help.
11982 
11983 
11984   if [ -z "${TR+x}" ]; then
11985     # The variable is not set by user, try to locate tool using the code snippet
11986     for ac_prog in tr
11987 do
11988   # Extract the first word of "$ac_prog", so it can be a program name with args.
11989 set dummy $ac_prog; ac_word=$2
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11991 $as_echo_n "checking for $ac_word... " >&6; }
11992 if ${ac_cv_path_TR+:} false; then :
11993   $as_echo_n "(cached) " >&6
11994 else
11995   case $TR in
11996   [\\/]* | ?:[\\/]*)
11997   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11998   ;;
11999   *)
12000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001 for as_dir in $PATH
12002 do
12003   IFS=$as_save_IFS
12004   test -z "$as_dir" && as_dir=.
12005     for ac_exec_ext in '' $ac_executable_extensions; do
12006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12007     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12009     break 2
12010   fi
12011 done
12012   done
12013 IFS=$as_save_IFS
12014 
12015   ;;
12016 esac
12017 fi
12018 TR=$ac_cv_path_TR
12019 if test -n "$TR"; then
12020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12021 $as_echo "$TR" >&6; }
12022 else
12023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12025 fi
12026 
12027 
12028   test -n "$TR" && break
12029 done
12030 
12031   else
12032     # The variable is set, but is it from the command line or the environment?
12033 
12034     # Try to remove the string !TR! from our list.
12035     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
12036     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12037       # If it failed, the variable was not from the command line. Ignore it,
12038       # but warn the user (except for BASH, which is always set by the calling BASH).
12039       if test "xTR" != xBASH; then
12040         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
12041 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
12042       fi
12043       # Try to locate tool using the code snippet
12044       for ac_prog in tr
12045 do
12046   # Extract the first word of "$ac_prog", so it can be a program name with args.
12047 set dummy $ac_prog; ac_word=$2
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12049 $as_echo_n "checking for $ac_word... " >&6; }
12050 if ${ac_cv_path_TR+:} false; then :
12051   $as_echo_n "(cached) " >&6
12052 else
12053   case $TR in
12054   [\\/]* | ?:[\\/]*)
12055   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12056   ;;
12057   *)
12058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12060 do
12061   IFS=$as_save_IFS
12062   test -z "$as_dir" && as_dir=.
12063     for ac_exec_ext in '' $ac_executable_extensions; do
12064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12065     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12067     break 2
12068   fi
12069 done
12070   done
12071 IFS=$as_save_IFS
12072 
12073   ;;
12074 esac
12075 fi
12076 TR=$ac_cv_path_TR
12077 if test -n "$TR"; then
12078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12079 $as_echo "$TR" >&6; }
12080 else
12081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12083 fi
12084 
12085 
12086   test -n "$TR" && break
12087 done
12088 
12089     else
12090       # If it succeeded, then it was overridden by the user. We will use it
12091       # for the tool.
12092 
12093       # First remove it from the list of overridden variables, so we can test
12094       # for unknown variables in the end.
12095       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12096 
12097       # Check if we try to supply an empty value
12098       if test "x$TR" = x; then
12099         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
12100 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
12101         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12102 $as_echo_n "checking for TR... " >&6; }
12103         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12104 $as_echo "disabled" >&6; }
12105       else
12106         # Check if the provided tool contains a complete path.
12107         tool_specified="$TR"
12108         tool_basename="${tool_specified##*/}"
12109         if test "x$tool_basename" = "x$tool_specified"; then
12110           # A command without a complete path is provided, search $PATH.
12111           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
12112 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
12113           # Extract the first word of "$tool_basename", so it can be a program name with args.
12114 set dummy $tool_basename; ac_word=$2
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12116 $as_echo_n "checking for $ac_word... " >&6; }
12117 if ${ac_cv_path_TR+:} false; then :
12118   $as_echo_n "(cached) " >&6
12119 else
12120   case $TR in
12121   [\\/]* | ?:[\\/]*)
12122   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12123   ;;
12124   *)
12125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12126 for as_dir in $PATH
12127 do
12128   IFS=$as_save_IFS
12129   test -z "$as_dir" && as_dir=.
12130     for ac_exec_ext in '' $ac_executable_extensions; do
12131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12132     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12134     break 2
12135   fi
12136 done
12137   done
12138 IFS=$as_save_IFS
12139 
12140   ;;
12141 esac
12142 fi
12143 TR=$ac_cv_path_TR
12144 if test -n "$TR"; then
12145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12146 $as_echo "$TR" >&6; }
12147 else
12148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12149 $as_echo "no" >&6; }
12150 fi
12151 
12152 
12153           if test "x$TR" = x; then
12154             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12155           fi
12156         else
12157           # Otherwise we believe it is a complete path. Use it as it is.
12158           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
12159 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
12160           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12161 $as_echo_n "checking for TR... " >&6; }
12162           if test ! -x "$tool_specified"; then
12163             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12164 $as_echo "not found" >&6; }
12165             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
12166           fi
12167           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12168 $as_echo "$tool_specified" >&6; }
12169         fi
12170       fi
12171     fi
12172 
12173   fi
12174 
12175 
12176 
12177   if test "x$TR" = x; then
12178     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
12179   fi
12180 
12181 
12182 
12183 
12184 
12185   # Publish this variable in the help.
12186 
12187 
12188   if [ -z "${UNAME+x}" ]; then
12189     # The variable is not set by user, try to locate tool using the code snippet
12190     for ac_prog in uname
12191 do
12192   # Extract the first word of "$ac_prog", so it can be a program name with args.
12193 set dummy $ac_prog; ac_word=$2
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195 $as_echo_n "checking for $ac_word... " >&6; }
12196 if ${ac_cv_path_UNAME+:} false; then :
12197   $as_echo_n "(cached) " >&6
12198 else
12199   case $UNAME in
12200   [\\/]* | ?:[\\/]*)
12201   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12202   ;;
12203   *)
12204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12206 do
12207   IFS=$as_save_IFS
12208   test -z "$as_dir" && as_dir=.
12209     for ac_exec_ext in '' $ac_executable_extensions; do
12210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12213     break 2
12214   fi
12215 done
12216   done
12217 IFS=$as_save_IFS
12218 
12219   ;;
12220 esac
12221 fi
12222 UNAME=$ac_cv_path_UNAME
12223 if test -n "$UNAME"; then
12224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12225 $as_echo "$UNAME" >&6; }
12226 else
12227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12229 fi
12230 
12231 
12232   test -n "$UNAME" && break
12233 done
12234 
12235   else
12236     # The variable is set, but is it from the command line or the environment?
12237 
12238     # Try to remove the string !UNAME! from our list.
12239     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
12240     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12241       # If it failed, the variable was not from the command line. Ignore it,
12242       # but warn the user (except for BASH, which is always set by the calling BASH).
12243       if test "xUNAME" != xBASH; then
12244         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
12245 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
12246       fi
12247       # Try to locate tool using the code snippet
12248       for ac_prog in uname
12249 do
12250   # Extract the first word of "$ac_prog", so it can be a program name with args.
12251 set dummy $ac_prog; ac_word=$2
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12253 $as_echo_n "checking for $ac_word... " >&6; }
12254 if ${ac_cv_path_UNAME+:} false; then :
12255   $as_echo_n "(cached) " >&6
12256 else
12257   case $UNAME in
12258   [\\/]* | ?:[\\/]*)
12259   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12260   ;;
12261   *)
12262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $PATH
12264 do
12265   IFS=$as_save_IFS
12266   test -z "$as_dir" && as_dir=.
12267     for ac_exec_ext in '' $ac_executable_extensions; do
12268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12269     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271     break 2
12272   fi
12273 done
12274   done
12275 IFS=$as_save_IFS
12276 
12277   ;;
12278 esac
12279 fi
12280 UNAME=$ac_cv_path_UNAME
12281 if test -n "$UNAME"; then
12282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12283 $as_echo "$UNAME" >&6; }
12284 else
12285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12287 fi
12288 
12289 
12290   test -n "$UNAME" && break
12291 done
12292 
12293     else
12294       # If it succeeded, then it was overridden by the user. We will use it
12295       # for the tool.
12296 
12297       # First remove it from the list of overridden variables, so we can test
12298       # for unknown variables in the end.
12299       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12300 
12301       # Check if we try to supply an empty value
12302       if test "x$UNAME" = x; then
12303         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
12304 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
12305         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12306 $as_echo_n "checking for UNAME... " >&6; }
12307         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12308 $as_echo "disabled" >&6; }
12309       else
12310         # Check if the provided tool contains a complete path.
12311         tool_specified="$UNAME"
12312         tool_basename="${tool_specified##*/}"
12313         if test "x$tool_basename" = "x$tool_specified"; then
12314           # A command without a complete path is provided, search $PATH.
12315           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
12316 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
12317           # Extract the first word of "$tool_basename", so it can be a program name with args.
12318 set dummy $tool_basename; ac_word=$2
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12320 $as_echo_n "checking for $ac_word... " >&6; }
12321 if ${ac_cv_path_UNAME+:} false; then :
12322   $as_echo_n "(cached) " >&6
12323 else
12324   case $UNAME in
12325   [\\/]* | ?:[\\/]*)
12326   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12327   ;;
12328   *)
12329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330 for as_dir in $PATH
12331 do
12332   IFS=$as_save_IFS
12333   test -z "$as_dir" && as_dir=.
12334     for ac_exec_ext in '' $ac_executable_extensions; do
12335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12336     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12338     break 2
12339   fi
12340 done
12341   done
12342 IFS=$as_save_IFS
12343 
12344   ;;
12345 esac
12346 fi
12347 UNAME=$ac_cv_path_UNAME
12348 if test -n "$UNAME"; then
12349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12350 $as_echo "$UNAME" >&6; }
12351 else
12352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353 $as_echo "no" >&6; }
12354 fi
12355 
12356 
12357           if test "x$UNAME" = x; then
12358             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12359           fi
12360         else
12361           # Otherwise we believe it is a complete path. Use it as it is.
12362           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
12363 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
12364           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12365 $as_echo_n "checking for UNAME... " >&6; }
12366           if test ! -x "$tool_specified"; then
12367             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12368 $as_echo "not found" >&6; }
12369             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
12370           fi
12371           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12372 $as_echo "$tool_specified" >&6; }
12373         fi
12374       fi
12375     fi
12376 
12377   fi
12378 
12379 
12380 
12381   if test "x$UNAME" = x; then
12382     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
12383   fi
12384 
12385 
12386 
12387 
12388 
12389   # Publish this variable in the help.
12390 
12391 
12392   if [ -z "${UNIQ+x}" ]; then
12393     # The variable is not set by user, try to locate tool using the code snippet
12394     for ac_prog in uniq
12395 do
12396   # Extract the first word of "$ac_prog", so it can be a program name with args.
12397 set dummy $ac_prog; ac_word=$2
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12399 $as_echo_n "checking for $ac_word... " >&6; }
12400 if ${ac_cv_path_UNIQ+:} false; then :
12401   $as_echo_n "(cached) " >&6
12402 else
12403   case $UNIQ in
12404   [\\/]* | ?:[\\/]*)
12405   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12406   ;;
12407   *)
12408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12409 for as_dir in $PATH
12410 do
12411   IFS=$as_save_IFS
12412   test -z "$as_dir" && as_dir=.
12413     for ac_exec_ext in '' $ac_executable_extensions; do
12414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12415     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12417     break 2
12418   fi
12419 done
12420   done
12421 IFS=$as_save_IFS
12422 
12423   ;;
12424 esac
12425 fi
12426 UNIQ=$ac_cv_path_UNIQ
12427 if test -n "$UNIQ"; then
12428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12429 $as_echo "$UNIQ" >&6; }
12430 else
12431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 $as_echo "no" >&6; }
12433 fi
12434 
12435 
12436   test -n "$UNIQ" && break
12437 done
12438 
12439   else
12440     # The variable is set, but is it from the command line or the environment?
12441 
12442     # Try to remove the string !UNIQ! from our list.
12443     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
12444     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12445       # If it failed, the variable was not from the command line. Ignore it,
12446       # but warn the user (except for BASH, which is always set by the calling BASH).
12447       if test "xUNIQ" != xBASH; then
12448         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
12449 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
12450       fi
12451       # Try to locate tool using the code snippet
12452       for ac_prog in uniq
12453 do
12454   # Extract the first word of "$ac_prog", so it can be a program name with args.
12455 set dummy $ac_prog; ac_word=$2
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12457 $as_echo_n "checking for $ac_word... " >&6; }
12458 if ${ac_cv_path_UNIQ+:} false; then :
12459   $as_echo_n "(cached) " >&6
12460 else
12461   case $UNIQ in
12462   [\\/]* | ?:[\\/]*)
12463   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12464   ;;
12465   *)
12466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467 for as_dir in $PATH
12468 do
12469   IFS=$as_save_IFS
12470   test -z "$as_dir" && as_dir=.
12471     for ac_exec_ext in '' $ac_executable_extensions; do
12472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12473     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12475     break 2
12476   fi
12477 done
12478   done
12479 IFS=$as_save_IFS
12480 
12481   ;;
12482 esac
12483 fi
12484 UNIQ=$ac_cv_path_UNIQ
12485 if test -n "$UNIQ"; then
12486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12487 $as_echo "$UNIQ" >&6; }
12488 else
12489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490 $as_echo "no" >&6; }
12491 fi
12492 
12493 
12494   test -n "$UNIQ" && break
12495 done
12496 
12497     else
12498       # If it succeeded, then it was overridden by the user. We will use it
12499       # for the tool.
12500 
12501       # First remove it from the list of overridden variables, so we can test
12502       # for unknown variables in the end.
12503       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12504 
12505       # Check if we try to supply an empty value
12506       if test "x$UNIQ" = x; then
12507         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
12508 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
12509         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12510 $as_echo_n "checking for UNIQ... " >&6; }
12511         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12512 $as_echo "disabled" >&6; }
12513       else
12514         # Check if the provided tool contains a complete path.
12515         tool_specified="$UNIQ"
12516         tool_basename="${tool_specified##*/}"
12517         if test "x$tool_basename" = "x$tool_specified"; then
12518           # A command without a complete path is provided, search $PATH.
12519           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
12520 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
12521           # Extract the first word of "$tool_basename", so it can be a program name with args.
12522 set dummy $tool_basename; ac_word=$2
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12524 $as_echo_n "checking for $ac_word... " >&6; }
12525 if ${ac_cv_path_UNIQ+:} false; then :
12526   $as_echo_n "(cached) " >&6
12527 else
12528   case $UNIQ in
12529   [\\/]* | ?:[\\/]*)
12530   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12531   ;;
12532   *)
12533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534 for as_dir in $PATH
12535 do
12536   IFS=$as_save_IFS
12537   test -z "$as_dir" && as_dir=.
12538     for ac_exec_ext in '' $ac_executable_extensions; do
12539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12540     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12542     break 2
12543   fi
12544 done
12545   done
12546 IFS=$as_save_IFS
12547 
12548   ;;
12549 esac
12550 fi
12551 UNIQ=$ac_cv_path_UNIQ
12552 if test -n "$UNIQ"; then
12553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12554 $as_echo "$UNIQ" >&6; }
12555 else
12556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557 $as_echo "no" >&6; }
12558 fi
12559 
12560 
12561           if test "x$UNIQ" = x; then
12562             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12563           fi
12564         else
12565           # Otherwise we believe it is a complete path. Use it as it is.
12566           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
12567 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
12568           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12569 $as_echo_n "checking for UNIQ... " >&6; }
12570           if test ! -x "$tool_specified"; then
12571             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12572 $as_echo "not found" >&6; }
12573             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
12574           fi
12575           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12576 $as_echo "$tool_specified" >&6; }
12577         fi
12578       fi
12579     fi
12580 
12581   fi
12582 
12583 
12584 
12585   if test "x$UNIQ" = x; then
12586     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
12587   fi
12588 
12589 
12590 
12591 
12592 
12593   # Publish this variable in the help.
12594 
12595 
12596   if [ -z "${WC+x}" ]; then
12597     # The variable is not set by user, try to locate tool using the code snippet
12598     for ac_prog in wc
12599 do
12600   # Extract the first word of "$ac_prog", so it can be a program name with args.
12601 set dummy $ac_prog; ac_word=$2
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12603 $as_echo_n "checking for $ac_word... " >&6; }
12604 if ${ac_cv_path_WC+:} false; then :
12605   $as_echo_n "(cached) " >&6
12606 else
12607   case $WC in
12608   [\\/]* | ?:[\\/]*)
12609   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12610   ;;
12611   *)
12612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613 for as_dir in $PATH
12614 do
12615   IFS=$as_save_IFS
12616   test -z "$as_dir" && as_dir=.
12617     for ac_exec_ext in '' $ac_executable_extensions; do
12618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12619     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12621     break 2
12622   fi
12623 done
12624   done
12625 IFS=$as_save_IFS
12626 
12627   ;;
12628 esac
12629 fi
12630 WC=$ac_cv_path_WC
12631 if test -n "$WC"; then
12632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12633 $as_echo "$WC" >&6; }
12634 else
12635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12637 fi
12638 
12639 
12640   test -n "$WC" && break
12641 done
12642 
12643   else
12644     # The variable is set, but is it from the command line or the environment?
12645 
12646     # Try to remove the string !WC! from our list.
12647     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12648     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12649       # If it failed, the variable was not from the command line. Ignore it,
12650       # but warn the user (except for BASH, which is always set by the calling BASH).
12651       if test "xWC" != xBASH; then
12652         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12653 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12654       fi
12655       # Try to locate tool using the code snippet
12656       for ac_prog in wc
12657 do
12658   # Extract the first word of "$ac_prog", so it can be a program name with args.
12659 set dummy $ac_prog; ac_word=$2
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12661 $as_echo_n "checking for $ac_word... " >&6; }
12662 if ${ac_cv_path_WC+:} false; then :
12663   $as_echo_n "(cached) " >&6
12664 else
12665   case $WC in
12666   [\\/]* | ?:[\\/]*)
12667   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12668   ;;
12669   *)
12670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12671 for as_dir in $PATH
12672 do
12673   IFS=$as_save_IFS
12674   test -z "$as_dir" && as_dir=.
12675     for ac_exec_ext in '' $ac_executable_extensions; do
12676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12677     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12679     break 2
12680   fi
12681 done
12682   done
12683 IFS=$as_save_IFS
12684 
12685   ;;
12686 esac
12687 fi
12688 WC=$ac_cv_path_WC
12689 if test -n "$WC"; then
12690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12691 $as_echo "$WC" >&6; }
12692 else
12693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694 $as_echo "no" >&6; }
12695 fi
12696 
12697 
12698   test -n "$WC" && break
12699 done
12700 
12701     else
12702       # If it succeeded, then it was overridden by the user. We will use it
12703       # for the tool.
12704 
12705       # First remove it from the list of overridden variables, so we can test
12706       # for unknown variables in the end.
12707       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12708 
12709       # Check if we try to supply an empty value
12710       if test "x$WC" = x; then
12711         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12712 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12713         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12714 $as_echo_n "checking for WC... " >&6; }
12715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12716 $as_echo "disabled" >&6; }
12717       else
12718         # Check if the provided tool contains a complete path.
12719         tool_specified="$WC"
12720         tool_basename="${tool_specified##*/}"
12721         if test "x$tool_basename" = "x$tool_specified"; then
12722           # A command without a complete path is provided, search $PATH.
12723           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12724 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12725           # Extract the first word of "$tool_basename", so it can be a program name with args.
12726 set dummy $tool_basename; ac_word=$2
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728 $as_echo_n "checking for $ac_word... " >&6; }
12729 if ${ac_cv_path_WC+:} false; then :
12730   $as_echo_n "(cached) " >&6
12731 else
12732   case $WC in
12733   [\\/]* | ?:[\\/]*)
12734   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12735   ;;
12736   *)
12737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12738 for as_dir in $PATH
12739 do
12740   IFS=$as_save_IFS
12741   test -z "$as_dir" && as_dir=.
12742     for ac_exec_ext in '' $ac_executable_extensions; do
12743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12744     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12746     break 2
12747   fi
12748 done
12749   done
12750 IFS=$as_save_IFS
12751 
12752   ;;
12753 esac
12754 fi
12755 WC=$ac_cv_path_WC
12756 if test -n "$WC"; then
12757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12758 $as_echo "$WC" >&6; }
12759 else
12760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761 $as_echo "no" >&6; }
12762 fi
12763 
12764 
12765           if test "x$WC" = x; then
12766             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12767           fi
12768         else
12769           # Otherwise we believe it is a complete path. Use it as it is.
12770           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12771 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12772           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12773 $as_echo_n "checking for WC... " >&6; }
12774           if test ! -x "$tool_specified"; then
12775             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12776 $as_echo "not found" >&6; }
12777             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12778           fi
12779           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12780 $as_echo "$tool_specified" >&6; }
12781         fi
12782       fi
12783     fi
12784 
12785   fi
12786 
12787 
12788 
12789   if test "x$WC" = x; then
12790     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12791   fi
12792 
12793 
12794 
12795 
12796 
12797   # Publish this variable in the help.
12798 
12799 
12800   if [ -z "${WHICH+x}" ]; then
12801     # The variable is not set by user, try to locate tool using the code snippet
12802     for ac_prog in which
12803 do
12804   # Extract the first word of "$ac_prog", so it can be a program name with args.
12805 set dummy $ac_prog; ac_word=$2
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12807 $as_echo_n "checking for $ac_word... " >&6; }
12808 if ${ac_cv_path_WHICH+:} false; then :
12809   $as_echo_n "(cached) " >&6
12810 else
12811   case $WHICH in
12812   [\\/]* | ?:[\\/]*)
12813   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12814   ;;
12815   *)
12816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817 for as_dir in $PATH
12818 do
12819   IFS=$as_save_IFS
12820   test -z "$as_dir" && as_dir=.
12821     for ac_exec_ext in '' $ac_executable_extensions; do
12822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12823     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12825     break 2
12826   fi
12827 done
12828   done
12829 IFS=$as_save_IFS
12830 
12831   ;;
12832 esac
12833 fi
12834 WHICH=$ac_cv_path_WHICH
12835 if test -n "$WHICH"; then
12836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12837 $as_echo "$WHICH" >&6; }
12838 else
12839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12841 fi
12842 
12843 
12844   test -n "$WHICH" && break
12845 done
12846 
12847   else
12848     # The variable is set, but is it from the command line or the environment?
12849 
12850     # Try to remove the string !WHICH! from our list.
12851     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12852     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12853       # If it failed, the variable was not from the command line. Ignore it,
12854       # but warn the user (except for BASH, which is always set by the calling BASH).
12855       if test "xWHICH" != xBASH; then
12856         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12857 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12858       fi
12859       # Try to locate tool using the code snippet
12860       for ac_prog in which
12861 do
12862   # Extract the first word of "$ac_prog", so it can be a program name with args.
12863 set dummy $ac_prog; ac_word=$2
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865 $as_echo_n "checking for $ac_word... " >&6; }
12866 if ${ac_cv_path_WHICH+:} false; then :
12867   $as_echo_n "(cached) " >&6
12868 else
12869   case $WHICH in
12870   [\\/]* | ?:[\\/]*)
12871   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12872   ;;
12873   *)
12874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12875 for as_dir in $PATH
12876 do
12877   IFS=$as_save_IFS
12878   test -z "$as_dir" && as_dir=.
12879     for ac_exec_ext in '' $ac_executable_extensions; do
12880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12881     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12883     break 2
12884   fi
12885 done
12886   done
12887 IFS=$as_save_IFS
12888 
12889   ;;
12890 esac
12891 fi
12892 WHICH=$ac_cv_path_WHICH
12893 if test -n "$WHICH"; then
12894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12895 $as_echo "$WHICH" >&6; }
12896 else
12897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898 $as_echo "no" >&6; }
12899 fi
12900 
12901 
12902   test -n "$WHICH" && break
12903 done
12904 
12905     else
12906       # If it succeeded, then it was overridden by the user. We will use it
12907       # for the tool.
12908 
12909       # First remove it from the list of overridden variables, so we can test
12910       # for unknown variables in the end.
12911       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12912 
12913       # Check if we try to supply an empty value
12914       if test "x$WHICH" = x; then
12915         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12916 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12917         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12918 $as_echo_n "checking for WHICH... " >&6; }
12919         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12920 $as_echo "disabled" >&6; }
12921       else
12922         # Check if the provided tool contains a complete path.
12923         tool_specified="$WHICH"
12924         tool_basename="${tool_specified##*/}"
12925         if test "x$tool_basename" = "x$tool_specified"; then
12926           # A command without a complete path is provided, search $PATH.
12927           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12928 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12929           # Extract the first word of "$tool_basename", so it can be a program name with args.
12930 set dummy $tool_basename; ac_word=$2
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12932 $as_echo_n "checking for $ac_word... " >&6; }
12933 if ${ac_cv_path_WHICH+:} false; then :
12934   $as_echo_n "(cached) " >&6
12935 else
12936   case $WHICH in
12937   [\\/]* | ?:[\\/]*)
12938   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12939   ;;
12940   *)
12941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12942 for as_dir in $PATH
12943 do
12944   IFS=$as_save_IFS
12945   test -z "$as_dir" && as_dir=.
12946     for ac_exec_ext in '' $ac_executable_extensions; do
12947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12948     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12950     break 2
12951   fi
12952 done
12953   done
12954 IFS=$as_save_IFS
12955 
12956   ;;
12957 esac
12958 fi
12959 WHICH=$ac_cv_path_WHICH
12960 if test -n "$WHICH"; then
12961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12962 $as_echo "$WHICH" >&6; }
12963 else
12964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965 $as_echo "no" >&6; }
12966 fi
12967 
12968 
12969           if test "x$WHICH" = x; then
12970             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12971           fi
12972         else
12973           # Otherwise we believe it is a complete path. Use it as it is.
12974           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12975 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12976           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12977 $as_echo_n "checking for WHICH... " >&6; }
12978           if test ! -x "$tool_specified"; then
12979             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12980 $as_echo "not found" >&6; }
12981             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12982           fi
12983           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12984 $as_echo "$tool_specified" >&6; }
12985         fi
12986       fi
12987     fi
12988 
12989   fi
12990 
12991 
12992 
12993   if test "x$WHICH" = x; then
12994     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12995   fi
12996 
12997 
12998 
12999 
13000 
13001   # Publish this variable in the help.
13002 
13003 
13004   if [ -z "${XARGS+x}" ]; then
13005     # The variable is not set by user, try to locate tool using the code snippet
13006     for ac_prog in xargs
13007 do
13008   # Extract the first word of "$ac_prog", so it can be a program name with args.
13009 set dummy $ac_prog; ac_word=$2
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13011 $as_echo_n "checking for $ac_word... " >&6; }
13012 if ${ac_cv_path_XARGS+:} false; then :
13013   $as_echo_n "(cached) " >&6
13014 else
13015   case $XARGS in
13016   [\\/]* | ?:[\\/]*)
13017   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13018   ;;
13019   *)
13020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021 for as_dir in $PATH
13022 do
13023   IFS=$as_save_IFS
13024   test -z "$as_dir" && as_dir=.
13025     for ac_exec_ext in '' $ac_executable_extensions; do
13026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13027     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13029     break 2
13030   fi
13031 done
13032   done
13033 IFS=$as_save_IFS
13034 
13035   ;;
13036 esac
13037 fi
13038 XARGS=$ac_cv_path_XARGS
13039 if test -n "$XARGS"; then
13040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13041 $as_echo "$XARGS" >&6; }
13042 else
13043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13044 $as_echo "no" >&6; }
13045 fi
13046 
13047 
13048   test -n "$XARGS" && break
13049 done
13050 
13051   else
13052     # The variable is set, but is it from the command line or the environment?
13053 
13054     # Try to remove the string !XARGS! from our list.
13055     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
13056     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13057       # If it failed, the variable was not from the command line. Ignore it,
13058       # but warn the user (except for BASH, which is always set by the calling BASH).
13059       if test "xXARGS" != xBASH; then
13060         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
13061 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
13062       fi
13063       # Try to locate tool using the code snippet
13064       for ac_prog in xargs
13065 do
13066   # Extract the first word of "$ac_prog", so it can be a program name with args.
13067 set dummy $ac_prog; ac_word=$2
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13069 $as_echo_n "checking for $ac_word... " >&6; }
13070 if ${ac_cv_path_XARGS+:} false; then :
13071   $as_echo_n "(cached) " >&6
13072 else
13073   case $XARGS in
13074   [\\/]* | ?:[\\/]*)
13075   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13076   ;;
13077   *)
13078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13079 for as_dir in $PATH
13080 do
13081   IFS=$as_save_IFS
13082   test -z "$as_dir" && as_dir=.
13083     for ac_exec_ext in '' $ac_executable_extensions; do
13084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13085     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13087     break 2
13088   fi
13089 done
13090   done
13091 IFS=$as_save_IFS
13092 
13093   ;;
13094 esac
13095 fi
13096 XARGS=$ac_cv_path_XARGS
13097 if test -n "$XARGS"; then
13098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13099 $as_echo "$XARGS" >&6; }
13100 else
13101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13102 $as_echo "no" >&6; }
13103 fi
13104 
13105 
13106   test -n "$XARGS" && break
13107 done
13108 
13109     else
13110       # If it succeeded, then it was overridden by the user. We will use it
13111       # for the tool.
13112 
13113       # First remove it from the list of overridden variables, so we can test
13114       # for unknown variables in the end.
13115       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13116 
13117       # Check if we try to supply an empty value
13118       if test "x$XARGS" = x; then
13119         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
13120 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
13121         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13122 $as_echo_n "checking for XARGS... " >&6; }
13123         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13124 $as_echo "disabled" >&6; }
13125       else
13126         # Check if the provided tool contains a complete path.
13127         tool_specified="$XARGS"
13128         tool_basename="${tool_specified##*/}"
13129         if test "x$tool_basename" = "x$tool_specified"; then
13130           # A command without a complete path is provided, search $PATH.
13131           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
13132 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
13133           # Extract the first word of "$tool_basename", so it can be a program name with args.
13134 set dummy $tool_basename; ac_word=$2
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13136 $as_echo_n "checking for $ac_word... " >&6; }
13137 if ${ac_cv_path_XARGS+:} false; then :
13138   $as_echo_n "(cached) " >&6
13139 else
13140   case $XARGS in
13141   [\\/]* | ?:[\\/]*)
13142   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13143   ;;
13144   *)
13145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13146 for as_dir in $PATH
13147 do
13148   IFS=$as_save_IFS
13149   test -z "$as_dir" && as_dir=.
13150     for ac_exec_ext in '' $ac_executable_extensions; do
13151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13152     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13154     break 2
13155   fi
13156 done
13157   done
13158 IFS=$as_save_IFS
13159 
13160   ;;
13161 esac
13162 fi
13163 XARGS=$ac_cv_path_XARGS
13164 if test -n "$XARGS"; then
13165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13166 $as_echo "$XARGS" >&6; }
13167 else
13168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 $as_echo "no" >&6; }
13170 fi
13171 
13172 
13173           if test "x$XARGS" = x; then
13174             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13175           fi
13176         else
13177           # Otherwise we believe it is a complete path. Use it as it is.
13178           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
13179 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
13180           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13181 $as_echo_n "checking for XARGS... " >&6; }
13182           if test ! -x "$tool_specified"; then
13183             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13184 $as_echo "not found" >&6; }
13185             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
13186           fi
13187           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13188 $as_echo "$tool_specified" >&6; }
13189         fi
13190       fi
13191     fi
13192 
13193   fi
13194 
13195 
13196 
13197   if test "x$XARGS" = x; then
13198     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
13199   fi
13200 
13201 
13202 
13203   # Then required tools that require some special treatment.
13204 
13205 
13206   # Publish this variable in the help.
13207 
13208 
13209   if [ -z "${AWK+x}" ]; then
13210     # The variable is not set by user, try to locate tool using the code snippet
13211     for ac_prog in gawk mawk nawk awk
13212 do
13213   # Extract the first word of "$ac_prog", so it can be a program name with args.
13214 set dummy $ac_prog; ac_word=$2
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13216 $as_echo_n "checking for $ac_word... " >&6; }
13217 if ${ac_cv_prog_AWK+:} false; then :
13218   $as_echo_n "(cached) " >&6
13219 else
13220   if test -n "$AWK"; then
13221   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13222 else
13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224 for as_dir in $PATH
13225 do
13226   IFS=$as_save_IFS
13227   test -z "$as_dir" && as_dir=.
13228     for ac_exec_ext in '' $ac_executable_extensions; do
13229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13230     ac_cv_prog_AWK="$ac_prog"
13231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13232     break 2
13233   fi
13234 done
13235   done
13236 IFS=$as_save_IFS
13237 
13238 fi
13239 fi
13240 AWK=$ac_cv_prog_AWK
13241 if test -n "$AWK"; then
13242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13243 $as_echo "$AWK" >&6; }
13244 else
13245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246 $as_echo "no" >&6; }
13247 fi
13248 
13249 
13250   test -n "$AWK" && break
13251 done
13252 
13253   else
13254     # The variable is set, but is it from the command line or the environment?
13255 
13256     # Try to remove the string !AWK! from our list.
13257     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
13258     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13259       # If it failed, the variable was not from the command line. Ignore it,
13260       # but warn the user (except for BASH, which is always set by the calling BASH).
13261       if test "xAWK" != xBASH; then
13262         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
13263 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
13264       fi
13265       # Try to locate tool using the code snippet
13266       for ac_prog in gawk mawk nawk awk
13267 do
13268   # Extract the first word of "$ac_prog", so it can be a program name with args.
13269 set dummy $ac_prog; ac_word=$2
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13271 $as_echo_n "checking for $ac_word... " >&6; }
13272 if ${ac_cv_prog_AWK+:} false; then :
13273   $as_echo_n "(cached) " >&6
13274 else
13275   if test -n "$AWK"; then
13276   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13277 else
13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279 for as_dir in $PATH
13280 do
13281   IFS=$as_save_IFS
13282   test -z "$as_dir" && as_dir=.
13283     for ac_exec_ext in '' $ac_executable_extensions; do
13284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13285     ac_cv_prog_AWK="$ac_prog"
13286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13287     break 2
13288   fi
13289 done
13290   done
13291 IFS=$as_save_IFS
13292 
13293 fi
13294 fi
13295 AWK=$ac_cv_prog_AWK
13296 if test -n "$AWK"; then
13297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13298 $as_echo "$AWK" >&6; }
13299 else
13300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301 $as_echo "no" >&6; }
13302 fi
13303 
13304 
13305   test -n "$AWK" && break
13306 done
13307 
13308     else
13309       # If it succeeded, then it was overridden by the user. We will use it
13310       # for the tool.
13311 
13312       # First remove it from the list of overridden variables, so we can test
13313       # for unknown variables in the end.
13314       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13315 
13316       # Check if we try to supply an empty value
13317       if test "x$AWK" = x; then
13318         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
13319 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
13320         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13321 $as_echo_n "checking for AWK... " >&6; }
13322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13323 $as_echo "disabled" >&6; }
13324       else
13325         # Check if the provided tool contains a complete path.
13326         tool_specified="$AWK"
13327         tool_basename="${tool_specified##*/}"
13328         if test "x$tool_basename" = "x$tool_specified"; then
13329           # A command without a complete path is provided, search $PATH.
13330           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
13331 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
13332           # Extract the first word of "$tool_basename", so it can be a program name with args.
13333 set dummy $tool_basename; ac_word=$2
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13335 $as_echo_n "checking for $ac_word... " >&6; }
13336 if ${ac_cv_path_AWK+:} false; then :
13337   $as_echo_n "(cached) " >&6
13338 else
13339   case $AWK in
13340   [\\/]* | ?:[\\/]*)
13341   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
13342   ;;
13343   *)
13344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345 for as_dir in $PATH
13346 do
13347   IFS=$as_save_IFS
13348   test -z "$as_dir" && as_dir=.
13349     for ac_exec_ext in '' $ac_executable_extensions; do
13350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13351     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
13352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13353     break 2
13354   fi
13355 done
13356   done
13357 IFS=$as_save_IFS
13358 
13359   ;;
13360 esac
13361 fi
13362 AWK=$ac_cv_path_AWK
13363 if test -n "$AWK"; then
13364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13365 $as_echo "$AWK" >&6; }
13366 else
13367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 $as_echo "no" >&6; }
13369 fi
13370 
13371 
13372           if test "x$AWK" = x; then
13373             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13374           fi
13375         else
13376           # Otherwise we believe it is a complete path. Use it as it is.
13377           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
13378 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
13379           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13380 $as_echo_n "checking for AWK... " >&6; }
13381           if test ! -x "$tool_specified"; then
13382             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13383 $as_echo "not found" >&6; }
13384             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
13385           fi
13386           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13387 $as_echo "$tool_specified" >&6; }
13388         fi
13389       fi
13390     fi
13391 
13392   fi
13393 
13394 
13395   if test "x$AWK" = x; then
13396     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
13397   fi
13398 
13399 
13400 
13401 
13402   # Publish this variable in the help.
13403 
13404 
13405   if [ -z "${GREP+x}" ]; then
13406     # The variable is not set by user, try to locate tool using the code snippet
13407     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13408 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13409 if ${ac_cv_path_GREP+:} false; then :
13410   $as_echo_n "(cached) " >&6
13411 else
13412   if test -z "$GREP"; then
13413   ac_path_GREP_found=false
13414   # Loop through the user's path and test for each of PROGNAME-LIST
13415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13416 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13417 do
13418   IFS=$as_save_IFS
13419   test -z "$as_dir" && as_dir=.
13420     for ac_prog in grep ggrep; do
13421     for ac_exec_ext in '' $ac_executable_extensions; do
13422       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13423       as_fn_executable_p "$ac_path_GREP" || continue
13424 # Check for GNU ac_path_GREP and select it if it is found.
13425   # Check for GNU $ac_path_GREP
13426 case `"$ac_path_GREP" --version 2>&1` in
13427 *GNU*)
13428   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13429 *)
13430   ac_count=0
13431   $as_echo_n 0123456789 >"conftest.in"
13432   while :
13433   do
13434     cat "conftest.in" "conftest.in" >"conftest.tmp"
13435     mv "conftest.tmp" "conftest.in"
13436     cp "conftest.in" "conftest.nl"
13437     $as_echo 'GREP' >> "conftest.nl"
13438     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13439     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13440     as_fn_arith $ac_count + 1 && ac_count=$as_val
13441     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13442       # Best one so far, save it but keep looking for a better one
13443       ac_cv_path_GREP="$ac_path_GREP"
13444       ac_path_GREP_max=$ac_count
13445     fi
13446     # 10*(2^10) chars as input seems more than enough
13447     test $ac_count -gt 10 && break
13448   done
13449   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13450 esac
13451 
13452       $ac_path_GREP_found && break 3
13453     done
13454   done
13455   done
13456 IFS=$as_save_IFS
13457   if test -z "$ac_cv_path_GREP"; then
13458     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13459   fi
13460 else
13461   ac_cv_path_GREP=$GREP
13462 fi
13463 
13464 fi
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13466 $as_echo "$ac_cv_path_GREP" >&6; }
13467  GREP="$ac_cv_path_GREP"
13468 
13469 
13470   else
13471     # The variable is set, but is it from the command line or the environment?
13472 
13473     # Try to remove the string !GREP! from our list.
13474     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
13475     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13476       # If it failed, the variable was not from the command line. Ignore it,
13477       # but warn the user (except for BASH, which is always set by the calling BASH).
13478       if test "xGREP" != xBASH; then
13479         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
13480 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
13481       fi
13482       # Try to locate tool using the code snippet
13483       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13484 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13485 if ${ac_cv_path_GREP+:} false; then :
13486   $as_echo_n "(cached) " >&6
13487 else
13488   if test -z "$GREP"; then
13489   ac_path_GREP_found=false
13490   # Loop through the user's path and test for each of PROGNAME-LIST
13491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13492 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13493 do
13494   IFS=$as_save_IFS
13495   test -z "$as_dir" && as_dir=.
13496     for ac_prog in grep ggrep; do
13497     for ac_exec_ext in '' $ac_executable_extensions; do
13498       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13499       as_fn_executable_p "$ac_path_GREP" || continue
13500 # Check for GNU ac_path_GREP and select it if it is found.
13501   # Check for GNU $ac_path_GREP
13502 case `"$ac_path_GREP" --version 2>&1` in
13503 *GNU*)
13504   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13505 *)
13506   ac_count=0
13507   $as_echo_n 0123456789 >"conftest.in"
13508   while :
13509   do
13510     cat "conftest.in" "conftest.in" >"conftest.tmp"
13511     mv "conftest.tmp" "conftest.in"
13512     cp "conftest.in" "conftest.nl"
13513     $as_echo 'GREP' >> "conftest.nl"
13514     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13515     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13516     as_fn_arith $ac_count + 1 && ac_count=$as_val
13517     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13518       # Best one so far, save it but keep looking for a better one
13519       ac_cv_path_GREP="$ac_path_GREP"
13520       ac_path_GREP_max=$ac_count
13521     fi
13522     # 10*(2^10) chars as input seems more than enough
13523     test $ac_count -gt 10 && break
13524   done
13525   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13526 esac
13527 
13528       $ac_path_GREP_found && break 3
13529     done
13530   done
13531   done
13532 IFS=$as_save_IFS
13533   if test -z "$ac_cv_path_GREP"; then
13534     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13535   fi
13536 else
13537   ac_cv_path_GREP=$GREP
13538 fi
13539 
13540 fi
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13542 $as_echo "$ac_cv_path_GREP" >&6; }
13543  GREP="$ac_cv_path_GREP"
13544 
13545 
13546     else
13547       # If it succeeded, then it was overridden by the user. We will use it
13548       # for the tool.
13549 
13550       # First remove it from the list of overridden variables, so we can test
13551       # for unknown variables in the end.
13552       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13553 
13554       # Check if we try to supply an empty value
13555       if test "x$GREP" = x; then
13556         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
13557 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
13558         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13559 $as_echo_n "checking for GREP... " >&6; }
13560         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13561 $as_echo "disabled" >&6; }
13562       else
13563         # Check if the provided tool contains a complete path.
13564         tool_specified="$GREP"
13565         tool_basename="${tool_specified##*/}"
13566         if test "x$tool_basename" = "x$tool_specified"; then
13567           # A command without a complete path is provided, search $PATH.
13568           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
13569 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
13570           # Extract the first word of "$tool_basename", so it can be a program name with args.
13571 set dummy $tool_basename; ac_word=$2
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13573 $as_echo_n "checking for $ac_word... " >&6; }
13574 if ${ac_cv_path_GREP+:} false; then :
13575   $as_echo_n "(cached) " >&6
13576 else
13577   case $GREP in
13578   [\\/]* | ?:[\\/]*)
13579   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
13580   ;;
13581   *)
13582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13583 for as_dir in $PATH
13584 do
13585   IFS=$as_save_IFS
13586   test -z "$as_dir" && as_dir=.
13587     for ac_exec_ext in '' $ac_executable_extensions; do
13588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13589     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
13590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13591     break 2
13592   fi
13593 done
13594   done
13595 IFS=$as_save_IFS
13596 
13597   ;;
13598 esac
13599 fi
13600 GREP=$ac_cv_path_GREP
13601 if test -n "$GREP"; then
13602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
13603 $as_echo "$GREP" >&6; }
13604 else
13605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606 $as_echo "no" >&6; }
13607 fi
13608 
13609 
13610           if test "x$GREP" = x; then
13611             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13612           fi
13613         else
13614           # Otherwise we believe it is a complete path. Use it as it is.
13615           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
13616 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
13617           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13618 $as_echo_n "checking for GREP... " >&6; }
13619           if test ! -x "$tool_specified"; then
13620             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13621 $as_echo "not found" >&6; }
13622             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13623           fi
13624           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13625 $as_echo "$tool_specified" >&6; }
13626         fi
13627       fi
13628     fi
13629 
13630   fi
13631 
13632 
13633   if test "x$GREP" = x; then
13634     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
13635   fi
13636 
13637 
13638 
13639 
13640   # Publish this variable in the help.
13641 
13642 
13643   if [ -z "${EGREP+x}" ]; then
13644     # The variable is not set by user, try to locate tool using the code snippet
13645     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13646 $as_echo_n "checking for egrep... " >&6; }
13647 if ${ac_cv_path_EGREP+:} false; then :
13648   $as_echo_n "(cached) " >&6
13649 else
13650   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13651    then ac_cv_path_EGREP="$GREP -E"
13652    else
13653      if test -z "$EGREP"; then
13654   ac_path_EGREP_found=false
13655   # Loop through the user's path and test for each of PROGNAME-LIST
13656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13658 do
13659   IFS=$as_save_IFS
13660   test -z "$as_dir" && as_dir=.
13661     for ac_prog in egrep; do
13662     for ac_exec_ext in '' $ac_executable_extensions; do
13663       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13664       as_fn_executable_p "$ac_path_EGREP" || continue
13665 # Check for GNU ac_path_EGREP and select it if it is found.
13666   # Check for GNU $ac_path_EGREP
13667 case `"$ac_path_EGREP" --version 2>&1` in
13668 *GNU*)
13669   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13670 *)
13671   ac_count=0
13672   $as_echo_n 0123456789 >"conftest.in"
13673   while :
13674   do
13675     cat "conftest.in" "conftest.in" >"conftest.tmp"
13676     mv "conftest.tmp" "conftest.in"
13677     cp "conftest.in" "conftest.nl"
13678     $as_echo 'EGREP' >> "conftest.nl"
13679     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13680     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13681     as_fn_arith $ac_count + 1 && ac_count=$as_val
13682     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13683       # Best one so far, save it but keep looking for a better one
13684       ac_cv_path_EGREP="$ac_path_EGREP"
13685       ac_path_EGREP_max=$ac_count
13686     fi
13687     # 10*(2^10) chars as input seems more than enough
13688     test $ac_count -gt 10 && break
13689   done
13690   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13691 esac
13692 
13693       $ac_path_EGREP_found && break 3
13694     done
13695   done
13696   done
13697 IFS=$as_save_IFS
13698   if test -z "$ac_cv_path_EGREP"; then
13699     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13700   fi
13701 else
13702   ac_cv_path_EGREP=$EGREP
13703 fi
13704 
13705    fi
13706 fi
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13708 $as_echo "$ac_cv_path_EGREP" >&6; }
13709  EGREP="$ac_cv_path_EGREP"
13710 
13711 
13712   else
13713     # The variable is set, but is it from the command line or the environment?
13714 
13715     # Try to remove the string !EGREP! from our list.
13716     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13717     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13718       # If it failed, the variable was not from the command line. Ignore it,
13719       # but warn the user (except for BASH, which is always set by the calling BASH).
13720       if test "xEGREP" != xBASH; then
13721         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13722 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13723       fi
13724       # Try to locate tool using the code snippet
13725       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13726 $as_echo_n "checking for egrep... " >&6; }
13727 if ${ac_cv_path_EGREP+:} false; then :
13728   $as_echo_n "(cached) " >&6
13729 else
13730   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13731    then ac_cv_path_EGREP="$GREP -E"
13732    else
13733      if test -z "$EGREP"; then
13734   ac_path_EGREP_found=false
13735   # Loop through the user's path and test for each of PROGNAME-LIST
13736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13737 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13738 do
13739   IFS=$as_save_IFS
13740   test -z "$as_dir" && as_dir=.
13741     for ac_prog in egrep; do
13742     for ac_exec_ext in '' $ac_executable_extensions; do
13743       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13744       as_fn_executable_p "$ac_path_EGREP" || continue
13745 # Check for GNU ac_path_EGREP and select it if it is found.
13746   # Check for GNU $ac_path_EGREP
13747 case `"$ac_path_EGREP" --version 2>&1` in
13748 *GNU*)
13749   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13750 *)
13751   ac_count=0
13752   $as_echo_n 0123456789 >"conftest.in"
13753   while :
13754   do
13755     cat "conftest.in" "conftest.in" >"conftest.tmp"
13756     mv "conftest.tmp" "conftest.in"
13757     cp "conftest.in" "conftest.nl"
13758     $as_echo 'EGREP' >> "conftest.nl"
13759     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13760     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13761     as_fn_arith $ac_count + 1 && ac_count=$as_val
13762     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13763       # Best one so far, save it but keep looking for a better one
13764       ac_cv_path_EGREP="$ac_path_EGREP"
13765       ac_path_EGREP_max=$ac_count
13766     fi
13767     # 10*(2^10) chars as input seems more than enough
13768     test $ac_count -gt 10 && break
13769   done
13770   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13771 esac
13772 
13773       $ac_path_EGREP_found && break 3
13774     done
13775   done
13776   done
13777 IFS=$as_save_IFS
13778   if test -z "$ac_cv_path_EGREP"; then
13779     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13780   fi
13781 else
13782   ac_cv_path_EGREP=$EGREP
13783 fi
13784 
13785    fi
13786 fi
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13788 $as_echo "$ac_cv_path_EGREP" >&6; }
13789  EGREP="$ac_cv_path_EGREP"
13790 
13791 
13792     else
13793       # If it succeeded, then it was overridden by the user. We will use it
13794       # for the tool.
13795 
13796       # First remove it from the list of overridden variables, so we can test
13797       # for unknown variables in the end.
13798       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13799 
13800       # Check if we try to supply an empty value
13801       if test "x$EGREP" = x; then
13802         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13803 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13804         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13805 $as_echo_n "checking for EGREP... " >&6; }
13806         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13807 $as_echo "disabled" >&6; }
13808       else
13809         # Check if the provided tool contains a complete path.
13810         tool_specified="$EGREP"
13811         tool_basename="${tool_specified##*/}"
13812         if test "x$tool_basename" = "x$tool_specified"; then
13813           # A command without a complete path is provided, search $PATH.
13814           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13815 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13816           # Extract the first word of "$tool_basename", so it can be a program name with args.
13817 set dummy $tool_basename; ac_word=$2
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13819 $as_echo_n "checking for $ac_word... " >&6; }
13820 if ${ac_cv_path_EGREP+:} false; then :
13821   $as_echo_n "(cached) " >&6
13822 else
13823   case $EGREP in
13824   [\\/]* | ?:[\\/]*)
13825   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13826   ;;
13827   *)
13828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13829 for as_dir in $PATH
13830 do
13831   IFS=$as_save_IFS
13832   test -z "$as_dir" && as_dir=.
13833     for ac_exec_ext in '' $ac_executable_extensions; do
13834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13835     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13837     break 2
13838   fi
13839 done
13840   done
13841 IFS=$as_save_IFS
13842 
13843   ;;
13844 esac
13845 fi
13846 EGREP=$ac_cv_path_EGREP
13847 if test -n "$EGREP"; then
13848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13849 $as_echo "$EGREP" >&6; }
13850 else
13851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13852 $as_echo "no" >&6; }
13853 fi
13854 
13855 
13856           if test "x$EGREP" = x; then
13857             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13858           fi
13859         else
13860           # Otherwise we believe it is a complete path. Use it as it is.
13861           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13862 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13863           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13864 $as_echo_n "checking for EGREP... " >&6; }
13865           if test ! -x "$tool_specified"; then
13866             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13867 $as_echo "not found" >&6; }
13868             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13869           fi
13870           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13871 $as_echo "$tool_specified" >&6; }
13872         fi
13873       fi
13874     fi
13875 
13876   fi
13877 
13878 
13879   if test "x$EGREP" = x; then
13880     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13881   fi
13882 
13883 
13884 
13885 
13886   # Publish this variable in the help.
13887 
13888 
13889   if [ -z "${FGREP+x}" ]; then
13890     # The variable is not set by user, try to locate tool using the code snippet
13891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13892 $as_echo_n "checking for fgrep... " >&6; }
13893 if ${ac_cv_path_FGREP+:} false; then :
13894   $as_echo_n "(cached) " >&6
13895 else
13896   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13897    then ac_cv_path_FGREP="$GREP -F"
13898    else
13899      if test -z "$FGREP"; then
13900   ac_path_FGREP_found=false
13901   # Loop through the user's path and test for each of PROGNAME-LIST
13902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13904 do
13905   IFS=$as_save_IFS
13906   test -z "$as_dir" && as_dir=.
13907     for ac_prog in fgrep; do
13908     for ac_exec_ext in '' $ac_executable_extensions; do
13909       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13910       as_fn_executable_p "$ac_path_FGREP" || continue
13911 # Check for GNU ac_path_FGREP and select it if it is found.
13912   # Check for GNU $ac_path_FGREP
13913 case `"$ac_path_FGREP" --version 2>&1` in
13914 *GNU*)
13915   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13916 *)
13917   ac_count=0
13918   $as_echo_n 0123456789 >"conftest.in"
13919   while :
13920   do
13921     cat "conftest.in" "conftest.in" >"conftest.tmp"
13922     mv "conftest.tmp" "conftest.in"
13923     cp "conftest.in" "conftest.nl"
13924     $as_echo 'FGREP' >> "conftest.nl"
13925     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13926     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13927     as_fn_arith $ac_count + 1 && ac_count=$as_val
13928     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13929       # Best one so far, save it but keep looking for a better one
13930       ac_cv_path_FGREP="$ac_path_FGREP"
13931       ac_path_FGREP_max=$ac_count
13932     fi
13933     # 10*(2^10) chars as input seems more than enough
13934     test $ac_count -gt 10 && break
13935   done
13936   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13937 esac
13938 
13939       $ac_path_FGREP_found && break 3
13940     done
13941   done
13942   done
13943 IFS=$as_save_IFS
13944   if test -z "$ac_cv_path_FGREP"; then
13945     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13946   fi
13947 else
13948   ac_cv_path_FGREP=$FGREP
13949 fi
13950 
13951    fi
13952 fi
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13954 $as_echo "$ac_cv_path_FGREP" >&6; }
13955  FGREP="$ac_cv_path_FGREP"
13956 
13957 
13958   else
13959     # The variable is set, but is it from the command line or the environment?
13960 
13961     # Try to remove the string !FGREP! from our list.
13962     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13963     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13964       # If it failed, the variable was not from the command line. Ignore it,
13965       # but warn the user (except for BASH, which is always set by the calling BASH).
13966       if test "xFGREP" != xBASH; then
13967         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13968 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13969       fi
13970       # Try to locate tool using the code snippet
13971       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13972 $as_echo_n "checking for fgrep... " >&6; }
13973 if ${ac_cv_path_FGREP+:} false; then :
13974   $as_echo_n "(cached) " >&6
13975 else
13976   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13977    then ac_cv_path_FGREP="$GREP -F"
13978    else
13979      if test -z "$FGREP"; then
13980   ac_path_FGREP_found=false
13981   # Loop through the user's path and test for each of PROGNAME-LIST
13982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13984 do
13985   IFS=$as_save_IFS
13986   test -z "$as_dir" && as_dir=.
13987     for ac_prog in fgrep; do
13988     for ac_exec_ext in '' $ac_executable_extensions; do
13989       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13990       as_fn_executable_p "$ac_path_FGREP" || continue
13991 # Check for GNU ac_path_FGREP and select it if it is found.
13992   # Check for GNU $ac_path_FGREP
13993 case `"$ac_path_FGREP" --version 2>&1` in
13994 *GNU*)
13995   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13996 *)
13997   ac_count=0
13998   $as_echo_n 0123456789 >"conftest.in"
13999   while :
14000   do
14001     cat "conftest.in" "conftest.in" >"conftest.tmp"
14002     mv "conftest.tmp" "conftest.in"
14003     cp "conftest.in" "conftest.nl"
14004     $as_echo 'FGREP' >> "conftest.nl"
14005     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
14006     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14007     as_fn_arith $ac_count + 1 && ac_count=$as_val
14008     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14009       # Best one so far, save it but keep looking for a better one
14010       ac_cv_path_FGREP="$ac_path_FGREP"
14011       ac_path_FGREP_max=$ac_count
14012     fi
14013     # 10*(2^10) chars as input seems more than enough
14014     test $ac_count -gt 10 && break
14015   done
14016   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14017 esac
14018 
14019       $ac_path_FGREP_found && break 3
14020     done
14021   done
14022   done
14023 IFS=$as_save_IFS
14024   if test -z "$ac_cv_path_FGREP"; then
14025     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14026   fi
14027 else
14028   ac_cv_path_FGREP=$FGREP
14029 fi
14030 
14031    fi
14032 fi
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14034 $as_echo "$ac_cv_path_FGREP" >&6; }
14035  FGREP="$ac_cv_path_FGREP"
14036 
14037 
14038     else
14039       # If it succeeded, then it was overridden by the user. We will use it
14040       # for the tool.
14041 
14042       # First remove it from the list of overridden variables, so we can test
14043       # for unknown variables in the end.
14044       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14045 
14046       # Check if we try to supply an empty value
14047       if test "x$FGREP" = x; then
14048         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
14049 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
14050         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14051 $as_echo_n "checking for FGREP... " >&6; }
14052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14053 $as_echo "disabled" >&6; }
14054       else
14055         # Check if the provided tool contains a complete path.
14056         tool_specified="$FGREP"
14057         tool_basename="${tool_specified##*/}"
14058         if test "x$tool_basename" = "x$tool_specified"; then
14059           # A command without a complete path is provided, search $PATH.
14060           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
14061 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
14062           # Extract the first word of "$tool_basename", so it can be a program name with args.
14063 set dummy $tool_basename; ac_word=$2
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14065 $as_echo_n "checking for $ac_word... " >&6; }
14066 if ${ac_cv_path_FGREP+:} false; then :
14067   $as_echo_n "(cached) " >&6
14068 else
14069   case $FGREP in
14070   [\\/]* | ?:[\\/]*)
14071   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
14072   ;;
14073   *)
14074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14075 for as_dir in $PATH
14076 do
14077   IFS=$as_save_IFS
14078   test -z "$as_dir" && as_dir=.
14079     for ac_exec_ext in '' $ac_executable_extensions; do
14080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14081     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
14082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14083     break 2
14084   fi
14085 done
14086   done
14087 IFS=$as_save_IFS
14088 
14089   ;;
14090 esac
14091 fi
14092 FGREP=$ac_cv_path_FGREP
14093 if test -n "$FGREP"; then
14094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
14095 $as_echo "$FGREP" >&6; }
14096 else
14097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14098 $as_echo "no" >&6; }
14099 fi
14100 
14101 
14102           if test "x$FGREP" = x; then
14103             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14104           fi
14105         else
14106           # Otherwise we believe it is a complete path. Use it as it is.
14107           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
14108 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
14109           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14110 $as_echo_n "checking for FGREP... " >&6; }
14111           if test ! -x "$tool_specified"; then
14112             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14113 $as_echo "not found" >&6; }
14114             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
14115           fi
14116           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14117 $as_echo "$tool_specified" >&6; }
14118         fi
14119       fi
14120     fi
14121 
14122   fi
14123 
14124 
14125   if test "x$FGREP" = x; then
14126     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
14127   fi
14128 
14129 
14130 
14131 
14132   # Publish this variable in the help.
14133 
14134 
14135   if [ -z "${SED+x}" ]; then
14136     # The variable is not set by user, try to locate tool using the code snippet
14137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14138 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14139 if ${ac_cv_path_SED+:} false; then :
14140   $as_echo_n "(cached) " >&6
14141 else
14142             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14143      for ac_i in 1 2 3 4 5 6 7; do
14144        ac_script="$ac_script$as_nl$ac_script"
14145      done
14146      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14147      { ac_script=; unset ac_script;}
14148      if test -z "$SED"; then
14149   ac_path_SED_found=false
14150   # Loop through the user's path and test for each of PROGNAME-LIST
14151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14152 for as_dir in $PATH
14153 do
14154   IFS=$as_save_IFS
14155   test -z "$as_dir" && as_dir=.
14156     for ac_prog in sed gsed; do
14157     for ac_exec_ext in '' $ac_executable_extensions; do
14158       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14159       as_fn_executable_p "$ac_path_SED" || continue
14160 # Check for GNU ac_path_SED and select it if it is found.
14161   # Check for GNU $ac_path_SED
14162 case `"$ac_path_SED" --version 2>&1` in
14163 *GNU*)
14164   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14165 *)
14166   ac_count=0
14167   $as_echo_n 0123456789 >"conftest.in"
14168   while :
14169   do
14170     cat "conftest.in" "conftest.in" >"conftest.tmp"
14171     mv "conftest.tmp" "conftest.in"
14172     cp "conftest.in" "conftest.nl"
14173     $as_echo '' >> "conftest.nl"
14174     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14175     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14176     as_fn_arith $ac_count + 1 && ac_count=$as_val
14177     if test $ac_count -gt ${ac_path_SED_max-0}; then
14178       # Best one so far, save it but keep looking for a better one
14179       ac_cv_path_SED="$ac_path_SED"
14180       ac_path_SED_max=$ac_count
14181     fi
14182     # 10*(2^10) chars as input seems more than enough
14183     test $ac_count -gt 10 && break
14184   done
14185   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14186 esac
14187 
14188       $ac_path_SED_found && break 3
14189     done
14190   done
14191   done
14192 IFS=$as_save_IFS
14193   if test -z "$ac_cv_path_SED"; then
14194     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14195   fi
14196 else
14197   ac_cv_path_SED=$SED
14198 fi
14199 
14200 fi
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14202 $as_echo "$ac_cv_path_SED" >&6; }
14203  SED="$ac_cv_path_SED"
14204   rm -f conftest.sed
14205 
14206   else
14207     # The variable is set, but is it from the command line or the environment?
14208 
14209     # Try to remove the string !SED! from our list.
14210     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
14211     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14212       # If it failed, the variable was not from the command line. Ignore it,
14213       # but warn the user (except for BASH, which is always set by the calling BASH).
14214       if test "xSED" != xBASH; then
14215         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
14216 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
14217       fi
14218       # Try to locate tool using the code snippet
14219       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14220 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14221 if ${ac_cv_path_SED+:} false; then :
14222   $as_echo_n "(cached) " >&6
14223 else
14224             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14225      for ac_i in 1 2 3 4 5 6 7; do
14226        ac_script="$ac_script$as_nl$ac_script"
14227      done
14228      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14229      { ac_script=; unset ac_script;}
14230      if test -z "$SED"; then
14231   ac_path_SED_found=false
14232   # Loop through the user's path and test for each of PROGNAME-LIST
14233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14234 for as_dir in $PATH
14235 do
14236   IFS=$as_save_IFS
14237   test -z "$as_dir" && as_dir=.
14238     for ac_prog in sed gsed; do
14239     for ac_exec_ext in '' $ac_executable_extensions; do
14240       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14241       as_fn_executable_p "$ac_path_SED" || continue
14242 # Check for GNU ac_path_SED and select it if it is found.
14243   # Check for GNU $ac_path_SED
14244 case `"$ac_path_SED" --version 2>&1` in
14245 *GNU*)
14246   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14247 *)
14248   ac_count=0
14249   $as_echo_n 0123456789 >"conftest.in"
14250   while :
14251   do
14252     cat "conftest.in" "conftest.in" >"conftest.tmp"
14253     mv "conftest.tmp" "conftest.in"
14254     cp "conftest.in" "conftest.nl"
14255     $as_echo '' >> "conftest.nl"
14256     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14257     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14258     as_fn_arith $ac_count + 1 && ac_count=$as_val
14259     if test $ac_count -gt ${ac_path_SED_max-0}; then
14260       # Best one so far, save it but keep looking for a better one
14261       ac_cv_path_SED="$ac_path_SED"
14262       ac_path_SED_max=$ac_count
14263     fi
14264     # 10*(2^10) chars as input seems more than enough
14265     test $ac_count -gt 10 && break
14266   done
14267   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14268 esac
14269 
14270       $ac_path_SED_found && break 3
14271     done
14272   done
14273   done
14274 IFS=$as_save_IFS
14275   if test -z "$ac_cv_path_SED"; then
14276     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14277   fi
14278 else
14279   ac_cv_path_SED=$SED
14280 fi
14281 
14282 fi
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14284 $as_echo "$ac_cv_path_SED" >&6; }
14285  SED="$ac_cv_path_SED"
14286   rm -f conftest.sed
14287 
14288     else
14289       # If it succeeded, then it was overridden by the user. We will use it
14290       # for the tool.
14291 
14292       # First remove it from the list of overridden variables, so we can test
14293       # for unknown variables in the end.
14294       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14295 
14296       # Check if we try to supply an empty value
14297       if test "x$SED" = x; then
14298         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
14299 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
14300         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14301 $as_echo_n "checking for SED... " >&6; }
14302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14303 $as_echo "disabled" >&6; }
14304       else
14305         # Check if the provided tool contains a complete path.
14306         tool_specified="$SED"
14307         tool_basename="${tool_specified##*/}"
14308         if test "x$tool_basename" = "x$tool_specified"; then
14309           # A command without a complete path is provided, search $PATH.
14310           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
14311 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
14312           # Extract the first word of "$tool_basename", so it can be a program name with args.
14313 set dummy $tool_basename; ac_word=$2
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14315 $as_echo_n "checking for $ac_word... " >&6; }
14316 if ${ac_cv_path_SED+:} false; then :
14317   $as_echo_n "(cached) " >&6
14318 else
14319   case $SED in
14320   [\\/]* | ?:[\\/]*)
14321   ac_cv_path_SED="$SED" # Let the user override the test with a path.
14322   ;;
14323   *)
14324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14325 for as_dir in $PATH
14326 do
14327   IFS=$as_save_IFS
14328   test -z "$as_dir" && as_dir=.
14329     for ac_exec_ext in '' $ac_executable_extensions; do
14330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14331     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14333     break 2
14334   fi
14335 done
14336   done
14337 IFS=$as_save_IFS
14338 
14339   ;;
14340 esac
14341 fi
14342 SED=$ac_cv_path_SED
14343 if test -n "$SED"; then
14344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14345 $as_echo "$SED" >&6; }
14346 else
14347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348 $as_echo "no" >&6; }
14349 fi
14350 
14351 
14352           if test "x$SED" = x; then
14353             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14354           fi
14355         else
14356           # Otherwise we believe it is a complete path. Use it as it is.
14357           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
14358 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
14359           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14360 $as_echo_n "checking for SED... " >&6; }
14361           if test ! -x "$tool_specified"; then
14362             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14363 $as_echo "not found" >&6; }
14364             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
14365           fi
14366           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14367 $as_echo "$tool_specified" >&6; }
14368         fi
14369       fi
14370     fi
14371 
14372   fi
14373 
14374 
14375   if test "x$SED" = x; then
14376     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
14377   fi
14378 
14379 
14380 
14381   # Always force rm.
14382   RM="$RM -f"
14383 
14384   # pwd behaves differently on various platforms and some don't support the -L flag.
14385   # Always use the bash builtin pwd to get uniform behavior.
14386   THEPWDCMD=pwd
14387 
14388   # These are not required on all platforms
14389 
14390 
14391   # Publish this variable in the help.
14392 
14393 
14394   if [ -z "${CYGPATH+x}" ]; then
14395     # The variable is not set by user, try to locate tool using the code snippet
14396     for ac_prog in cygpath
14397 do
14398   # Extract the first word of "$ac_prog", so it can be a program name with args.
14399 set dummy $ac_prog; ac_word=$2
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14401 $as_echo_n "checking for $ac_word... " >&6; }
14402 if ${ac_cv_path_CYGPATH+:} false; then :
14403   $as_echo_n "(cached) " >&6
14404 else
14405   case $CYGPATH in
14406   [\\/]* | ?:[\\/]*)
14407   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14408   ;;
14409   *)
14410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14411 for as_dir in $PATH
14412 do
14413   IFS=$as_save_IFS
14414   test -z "$as_dir" && as_dir=.
14415     for ac_exec_ext in '' $ac_executable_extensions; do
14416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14417     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14419     break 2
14420   fi
14421 done
14422   done
14423 IFS=$as_save_IFS
14424 
14425   ;;
14426 esac
14427 fi
14428 CYGPATH=$ac_cv_path_CYGPATH
14429 if test -n "$CYGPATH"; then
14430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14431 $as_echo "$CYGPATH" >&6; }
14432 else
14433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14434 $as_echo "no" >&6; }
14435 fi
14436 
14437 
14438   test -n "$CYGPATH" && break
14439 done
14440 
14441   else
14442     # The variable is set, but is it from the command line or the environment?
14443 
14444     # Try to remove the string !CYGPATH! from our list.
14445     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
14446     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14447       # If it failed, the variable was not from the command line. Ignore it,
14448       # but warn the user (except for BASH, which is always set by the calling BASH).
14449       if test "xCYGPATH" != xBASH; then
14450         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
14451 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
14452       fi
14453       # Try to locate tool using the code snippet
14454       for ac_prog in cygpath
14455 do
14456   # Extract the first word of "$ac_prog", so it can be a program name with args.
14457 set dummy $ac_prog; ac_word=$2
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14459 $as_echo_n "checking for $ac_word... " >&6; }
14460 if ${ac_cv_path_CYGPATH+:} false; then :
14461   $as_echo_n "(cached) " >&6
14462 else
14463   case $CYGPATH in
14464   [\\/]* | ?:[\\/]*)
14465   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14466   ;;
14467   *)
14468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14469 for as_dir in $PATH
14470 do
14471   IFS=$as_save_IFS
14472   test -z "$as_dir" && as_dir=.
14473     for ac_exec_ext in '' $ac_executable_extensions; do
14474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14475     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14477     break 2
14478   fi
14479 done
14480   done
14481 IFS=$as_save_IFS
14482 
14483   ;;
14484 esac
14485 fi
14486 CYGPATH=$ac_cv_path_CYGPATH
14487 if test -n "$CYGPATH"; then
14488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14489 $as_echo "$CYGPATH" >&6; }
14490 else
14491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14492 $as_echo "no" >&6; }
14493 fi
14494 
14495 
14496   test -n "$CYGPATH" && break
14497 done
14498 
14499     else
14500       # If it succeeded, then it was overridden by the user. We will use it
14501       # for the tool.
14502 
14503       # First remove it from the list of overridden variables, so we can test
14504       # for unknown variables in the end.
14505       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14506 
14507       # Check if we try to supply an empty value
14508       if test "x$CYGPATH" = x; then
14509         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
14510 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
14511         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14512 $as_echo_n "checking for CYGPATH... " >&6; }
14513         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14514 $as_echo "disabled" >&6; }
14515       else
14516         # Check if the provided tool contains a complete path.
14517         tool_specified="$CYGPATH"
14518         tool_basename="${tool_specified##*/}"
14519         if test "x$tool_basename" = "x$tool_specified"; then
14520           # A command without a complete path is provided, search $PATH.
14521           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
14522 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
14523           # Extract the first word of "$tool_basename", so it can be a program name with args.
14524 set dummy $tool_basename; ac_word=$2
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14526 $as_echo_n "checking for $ac_word... " >&6; }
14527 if ${ac_cv_path_CYGPATH+:} false; then :
14528   $as_echo_n "(cached) " >&6
14529 else
14530   case $CYGPATH in
14531   [\\/]* | ?:[\\/]*)
14532   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14533   ;;
14534   *)
14535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14536 for as_dir in $PATH
14537 do
14538   IFS=$as_save_IFS
14539   test -z "$as_dir" && as_dir=.
14540     for ac_exec_ext in '' $ac_executable_extensions; do
14541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14542     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14544     break 2
14545   fi
14546 done
14547   done
14548 IFS=$as_save_IFS
14549 
14550   ;;
14551 esac
14552 fi
14553 CYGPATH=$ac_cv_path_CYGPATH
14554 if test -n "$CYGPATH"; then
14555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14556 $as_echo "$CYGPATH" >&6; }
14557 else
14558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14559 $as_echo "no" >&6; }
14560 fi
14561 
14562 
14563           if test "x$CYGPATH" = x; then
14564             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14565           fi
14566         else
14567           # Otherwise we believe it is a complete path. Use it as it is.
14568           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
14569 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
14570           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14571 $as_echo_n "checking for CYGPATH... " >&6; }
14572           if test ! -x "$tool_specified"; then
14573             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14574 $as_echo "not found" >&6; }
14575             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
14576           fi
14577           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14578 $as_echo "$tool_specified" >&6; }
14579         fi
14580       fi
14581     fi
14582 
14583   fi
14584 
14585 
14586 
14587 
14588   # Publish this variable in the help.
14589 
14590 
14591   if [ -z "${READLINK+x}" ]; then
14592     # The variable is not set by user, try to locate tool using the code snippet
14593     for ac_prog in greadlink readlink
14594 do
14595   # Extract the first word of "$ac_prog", so it can be a program name with args.
14596 set dummy $ac_prog; ac_word=$2
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14598 $as_echo_n "checking for $ac_word... " >&6; }
14599 if ${ac_cv_path_READLINK+:} false; then :
14600   $as_echo_n "(cached) " >&6
14601 else
14602   case $READLINK in
14603   [\\/]* | ?:[\\/]*)
14604   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14605   ;;
14606   *)
14607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14608 for as_dir in $PATH
14609 do
14610   IFS=$as_save_IFS
14611   test -z "$as_dir" && as_dir=.
14612     for ac_exec_ext in '' $ac_executable_extensions; do
14613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14614     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14616     break 2
14617   fi
14618 done
14619   done
14620 IFS=$as_save_IFS
14621 
14622   ;;
14623 esac
14624 fi
14625 READLINK=$ac_cv_path_READLINK
14626 if test -n "$READLINK"; then
14627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14628 $as_echo "$READLINK" >&6; }
14629 else
14630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14631 $as_echo "no" >&6; }
14632 fi
14633 
14634 
14635   test -n "$READLINK" && break
14636 done
14637 
14638   else
14639     # The variable is set, but is it from the command line or the environment?
14640 
14641     # Try to remove the string !READLINK! from our list.
14642     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14643     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14644       # If it failed, the variable was not from the command line. Ignore it,
14645       # but warn the user (except for BASH, which is always set by the calling BASH).
14646       if test "xREADLINK" != xBASH; then
14647         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14648 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14649       fi
14650       # Try to locate tool using the code snippet
14651       for ac_prog in greadlink readlink
14652 do
14653   # Extract the first word of "$ac_prog", so it can be a program name with args.
14654 set dummy $ac_prog; ac_word=$2
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14656 $as_echo_n "checking for $ac_word... " >&6; }
14657 if ${ac_cv_path_READLINK+:} false; then :
14658   $as_echo_n "(cached) " >&6
14659 else
14660   case $READLINK in
14661   [\\/]* | ?:[\\/]*)
14662   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14663   ;;
14664   *)
14665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14666 for as_dir in $PATH
14667 do
14668   IFS=$as_save_IFS
14669   test -z "$as_dir" && as_dir=.
14670     for ac_exec_ext in '' $ac_executable_extensions; do
14671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14672     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14674     break 2
14675   fi
14676 done
14677   done
14678 IFS=$as_save_IFS
14679 
14680   ;;
14681 esac
14682 fi
14683 READLINK=$ac_cv_path_READLINK
14684 if test -n "$READLINK"; then
14685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14686 $as_echo "$READLINK" >&6; }
14687 else
14688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14689 $as_echo "no" >&6; }
14690 fi
14691 
14692 
14693   test -n "$READLINK" && break
14694 done
14695 
14696     else
14697       # If it succeeded, then it was overridden by the user. We will use it
14698       # for the tool.
14699 
14700       # First remove it from the list of overridden variables, so we can test
14701       # for unknown variables in the end.
14702       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14703 
14704       # Check if we try to supply an empty value
14705       if test "x$READLINK" = x; then
14706         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14707 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14708         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14709 $as_echo_n "checking for READLINK... " >&6; }
14710         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14711 $as_echo "disabled" >&6; }
14712       else
14713         # Check if the provided tool contains a complete path.
14714         tool_specified="$READLINK"
14715         tool_basename="${tool_specified##*/}"
14716         if test "x$tool_basename" = "x$tool_specified"; then
14717           # A command without a complete path is provided, search $PATH.
14718           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14719 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14720           # Extract the first word of "$tool_basename", so it can be a program name with args.
14721 set dummy $tool_basename; ac_word=$2
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14723 $as_echo_n "checking for $ac_word... " >&6; }
14724 if ${ac_cv_path_READLINK+:} false; then :
14725   $as_echo_n "(cached) " >&6
14726 else
14727   case $READLINK in
14728   [\\/]* | ?:[\\/]*)
14729   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14730   ;;
14731   *)
14732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14733 for as_dir in $PATH
14734 do
14735   IFS=$as_save_IFS
14736   test -z "$as_dir" && as_dir=.
14737     for ac_exec_ext in '' $ac_executable_extensions; do
14738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14739     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14741     break 2
14742   fi
14743 done
14744   done
14745 IFS=$as_save_IFS
14746 
14747   ;;
14748 esac
14749 fi
14750 READLINK=$ac_cv_path_READLINK
14751 if test -n "$READLINK"; then
14752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14753 $as_echo "$READLINK" >&6; }
14754 else
14755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14756 $as_echo "no" >&6; }
14757 fi
14758 
14759 
14760           if test "x$READLINK" = x; then
14761             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14762           fi
14763         else
14764           # Otherwise we believe it is a complete path. Use it as it is.
14765           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14766 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14767           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14768 $as_echo_n "checking for READLINK... " >&6; }
14769           if test ! -x "$tool_specified"; then
14770             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14771 $as_echo "not found" >&6; }
14772             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14773           fi
14774           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14775 $as_echo "$tool_specified" >&6; }
14776         fi
14777       fi
14778     fi
14779 
14780   fi
14781 
14782 
14783 
14784 
14785   # Publish this variable in the help.
14786 
14787 
14788   if [ -z "${DF+x}" ]; then
14789     # The variable is not set by user, try to locate tool using the code snippet
14790     for ac_prog in df
14791 do
14792   # Extract the first word of "$ac_prog", so it can be a program name with args.
14793 set dummy $ac_prog; ac_word=$2
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14795 $as_echo_n "checking for $ac_word... " >&6; }
14796 if ${ac_cv_path_DF+:} false; then :
14797   $as_echo_n "(cached) " >&6
14798 else
14799   case $DF in
14800   [\\/]* | ?:[\\/]*)
14801   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14802   ;;
14803   *)
14804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14805 for as_dir in $PATH
14806 do
14807   IFS=$as_save_IFS
14808   test -z "$as_dir" && as_dir=.
14809     for ac_exec_ext in '' $ac_executable_extensions; do
14810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14811     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14813     break 2
14814   fi
14815 done
14816   done
14817 IFS=$as_save_IFS
14818 
14819   ;;
14820 esac
14821 fi
14822 DF=$ac_cv_path_DF
14823 if test -n "$DF"; then
14824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14825 $as_echo "$DF" >&6; }
14826 else
14827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14828 $as_echo "no" >&6; }
14829 fi
14830 
14831 
14832   test -n "$DF" && break
14833 done
14834 
14835   else
14836     # The variable is set, but is it from the command line or the environment?
14837 
14838     # Try to remove the string !DF! from our list.
14839     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14840     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14841       # If it failed, the variable was not from the command line. Ignore it,
14842       # but warn the user (except for BASH, which is always set by the calling BASH).
14843       if test "xDF" != xBASH; then
14844         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14845 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14846       fi
14847       # Try to locate tool using the code snippet
14848       for ac_prog in df
14849 do
14850   # Extract the first word of "$ac_prog", so it can be a program name with args.
14851 set dummy $ac_prog; ac_word=$2
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14853 $as_echo_n "checking for $ac_word... " >&6; }
14854 if ${ac_cv_path_DF+:} false; then :
14855   $as_echo_n "(cached) " >&6
14856 else
14857   case $DF in
14858   [\\/]* | ?:[\\/]*)
14859   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14860   ;;
14861   *)
14862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14863 for as_dir in $PATH
14864 do
14865   IFS=$as_save_IFS
14866   test -z "$as_dir" && as_dir=.
14867     for ac_exec_ext in '' $ac_executable_extensions; do
14868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14869     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14871     break 2
14872   fi
14873 done
14874   done
14875 IFS=$as_save_IFS
14876 
14877   ;;
14878 esac
14879 fi
14880 DF=$ac_cv_path_DF
14881 if test -n "$DF"; then
14882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14883 $as_echo "$DF" >&6; }
14884 else
14885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14886 $as_echo "no" >&6; }
14887 fi
14888 
14889 
14890   test -n "$DF" && break
14891 done
14892 
14893     else
14894       # If it succeeded, then it was overridden by the user. We will use it
14895       # for the tool.
14896 
14897       # First remove it from the list of overridden variables, so we can test
14898       # for unknown variables in the end.
14899       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14900 
14901       # Check if we try to supply an empty value
14902       if test "x$DF" = x; then
14903         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14904 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14905         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14906 $as_echo_n "checking for DF... " >&6; }
14907         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14908 $as_echo "disabled" >&6; }
14909       else
14910         # Check if the provided tool contains a complete path.
14911         tool_specified="$DF"
14912         tool_basename="${tool_specified##*/}"
14913         if test "x$tool_basename" = "x$tool_specified"; then
14914           # A command without a complete path is provided, search $PATH.
14915           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14916 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14917           # Extract the first word of "$tool_basename", so it can be a program name with args.
14918 set dummy $tool_basename; ac_word=$2
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14920 $as_echo_n "checking for $ac_word... " >&6; }
14921 if ${ac_cv_path_DF+:} false; then :
14922   $as_echo_n "(cached) " >&6
14923 else
14924   case $DF in
14925   [\\/]* | ?:[\\/]*)
14926   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14927   ;;
14928   *)
14929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14930 for as_dir in $PATH
14931 do
14932   IFS=$as_save_IFS
14933   test -z "$as_dir" && as_dir=.
14934     for ac_exec_ext in '' $ac_executable_extensions; do
14935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14936     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14938     break 2
14939   fi
14940 done
14941   done
14942 IFS=$as_save_IFS
14943 
14944   ;;
14945 esac
14946 fi
14947 DF=$ac_cv_path_DF
14948 if test -n "$DF"; then
14949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14950 $as_echo "$DF" >&6; }
14951 else
14952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14953 $as_echo "no" >&6; }
14954 fi
14955 
14956 
14957           if test "x$DF" = x; then
14958             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14959           fi
14960         else
14961           # Otherwise we believe it is a complete path. Use it as it is.
14962           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14963 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14964           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14965 $as_echo_n "checking for DF... " >&6; }
14966           if test ! -x "$tool_specified"; then
14967             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14968 $as_echo "not found" >&6; }
14969             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14970           fi
14971           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14972 $as_echo "$tool_specified" >&6; }
14973         fi
14974       fi
14975     fi
14976 
14977   fi
14978 
14979 
14980 
14981 
14982   # Publish this variable in the help.
14983 
14984 
14985   if [ -z "${CPIO+x}" ]; then
14986     # The variable is not set by user, try to locate tool using the code snippet
14987     for ac_prog in cpio bsdcpio
14988 do
14989   # Extract the first word of "$ac_prog", so it can be a program name with args.
14990 set dummy $ac_prog; ac_word=$2
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14992 $as_echo_n "checking for $ac_word... " >&6; }
14993 if ${ac_cv_path_CPIO+:} false; then :
14994   $as_echo_n "(cached) " >&6
14995 else
14996   case $CPIO in
14997   [\\/]* | ?:[\\/]*)
14998   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14999   ;;
15000   *)
15001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15002 for as_dir in $PATH
15003 do
15004   IFS=$as_save_IFS
15005   test -z "$as_dir" && as_dir=.
15006     for ac_exec_ext in '' $ac_executable_extensions; do
15007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15008     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15010     break 2
15011   fi
15012 done
15013   done
15014 IFS=$as_save_IFS
15015 
15016   ;;
15017 esac
15018 fi
15019 CPIO=$ac_cv_path_CPIO
15020 if test -n "$CPIO"; then
15021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15022 $as_echo "$CPIO" >&6; }
15023 else
15024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15025 $as_echo "no" >&6; }
15026 fi
15027 
15028 
15029   test -n "$CPIO" && break
15030 done
15031 
15032   else
15033     # The variable is set, but is it from the command line or the environment?
15034 
15035     # Try to remove the string !CPIO! from our list.
15036     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
15037     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15038       # If it failed, the variable was not from the command line. Ignore it,
15039       # but warn the user (except for BASH, which is always set by the calling BASH).
15040       if test "xCPIO" != xBASH; then
15041         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
15042 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
15043       fi
15044       # Try to locate tool using the code snippet
15045       for ac_prog in cpio bsdcpio
15046 do
15047   # Extract the first word of "$ac_prog", so it can be a program name with args.
15048 set dummy $ac_prog; ac_word=$2
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15050 $as_echo_n "checking for $ac_word... " >&6; }
15051 if ${ac_cv_path_CPIO+:} false; then :
15052   $as_echo_n "(cached) " >&6
15053 else
15054   case $CPIO in
15055   [\\/]* | ?:[\\/]*)
15056   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15057   ;;
15058   *)
15059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15060 for as_dir in $PATH
15061 do
15062   IFS=$as_save_IFS
15063   test -z "$as_dir" && as_dir=.
15064     for ac_exec_ext in '' $ac_executable_extensions; do
15065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15066     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15068     break 2
15069   fi
15070 done
15071   done
15072 IFS=$as_save_IFS
15073 
15074   ;;
15075 esac
15076 fi
15077 CPIO=$ac_cv_path_CPIO
15078 if test -n "$CPIO"; then
15079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15080 $as_echo "$CPIO" >&6; }
15081 else
15082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15083 $as_echo "no" >&6; }
15084 fi
15085 
15086 
15087   test -n "$CPIO" && break
15088 done
15089 
15090     else
15091       # If it succeeded, then it was overridden by the user. We will use it
15092       # for the tool.
15093 
15094       # First remove it from the list of overridden variables, so we can test
15095       # for unknown variables in the end.
15096       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15097 
15098       # Check if we try to supply an empty value
15099       if test "x$CPIO" = x; then
15100         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
15101 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
15102         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15103 $as_echo_n "checking for CPIO... " >&6; }
15104         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15105 $as_echo "disabled" >&6; }
15106       else
15107         # Check if the provided tool contains a complete path.
15108         tool_specified="$CPIO"
15109         tool_basename="${tool_specified##*/}"
15110         if test "x$tool_basename" = "x$tool_specified"; then
15111           # A command without a complete path is provided, search $PATH.
15112           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
15113 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
15114           # Extract the first word of "$tool_basename", so it can be a program name with args.
15115 set dummy $tool_basename; ac_word=$2
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15117 $as_echo_n "checking for $ac_word... " >&6; }
15118 if ${ac_cv_path_CPIO+:} false; then :
15119   $as_echo_n "(cached) " >&6
15120 else
15121   case $CPIO in
15122   [\\/]* | ?:[\\/]*)
15123   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15124   ;;
15125   *)
15126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15127 for as_dir in $PATH
15128 do
15129   IFS=$as_save_IFS
15130   test -z "$as_dir" && as_dir=.
15131     for ac_exec_ext in '' $ac_executable_extensions; do
15132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15133     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15135     break 2
15136   fi
15137 done
15138   done
15139 IFS=$as_save_IFS
15140 
15141   ;;
15142 esac
15143 fi
15144 CPIO=$ac_cv_path_CPIO
15145 if test -n "$CPIO"; then
15146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15147 $as_echo "$CPIO" >&6; }
15148 else
15149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15150 $as_echo "no" >&6; }
15151 fi
15152 
15153 
15154           if test "x$CPIO" = x; then
15155             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15156           fi
15157         else
15158           # Otherwise we believe it is a complete path. Use it as it is.
15159           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
15160 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
15161           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15162 $as_echo_n "checking for CPIO... " >&6; }
15163           if test ! -x "$tool_specified"; then
15164             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15165 $as_echo "not found" >&6; }
15166             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
15167           fi
15168           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15169 $as_echo "$tool_specified" >&6; }
15170         fi
15171       fi
15172     fi
15173 
15174   fi
15175 
15176 
15177 
15178 
15179   # Publish this variable in the help.
15180 
15181 
15182   if [ -z "${NICE+x}" ]; then
15183     # The variable is not set by user, try to locate tool using the code snippet
15184     for ac_prog in nice
15185 do
15186   # Extract the first word of "$ac_prog", so it can be a program name with args.
15187 set dummy $ac_prog; ac_word=$2
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15189 $as_echo_n "checking for $ac_word... " >&6; }
15190 if ${ac_cv_path_NICE+:} false; then :
15191   $as_echo_n "(cached) " >&6
15192 else
15193   case $NICE in
15194   [\\/]* | ?:[\\/]*)
15195   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15196   ;;
15197   *)
15198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15199 for as_dir in $PATH
15200 do
15201   IFS=$as_save_IFS
15202   test -z "$as_dir" && as_dir=.
15203     for ac_exec_ext in '' $ac_executable_extensions; do
15204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15205     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15207     break 2
15208   fi
15209 done
15210   done
15211 IFS=$as_save_IFS
15212 
15213   ;;
15214 esac
15215 fi
15216 NICE=$ac_cv_path_NICE
15217 if test -n "$NICE"; then
15218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15219 $as_echo "$NICE" >&6; }
15220 else
15221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15222 $as_echo "no" >&6; }
15223 fi
15224 
15225 
15226   test -n "$NICE" && break
15227 done
15228 
15229   else
15230     # The variable is set, but is it from the command line or the environment?
15231 
15232     # Try to remove the string !NICE! from our list.
15233     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
15234     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15235       # If it failed, the variable was not from the command line. Ignore it,
15236       # but warn the user (except for BASH, which is always set by the calling BASH).
15237       if test "xNICE" != xBASH; then
15238         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
15239 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
15240       fi
15241       # Try to locate tool using the code snippet
15242       for ac_prog in nice
15243 do
15244   # Extract the first word of "$ac_prog", so it can be a program name with args.
15245 set dummy $ac_prog; ac_word=$2
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15247 $as_echo_n "checking for $ac_word... " >&6; }
15248 if ${ac_cv_path_NICE+:} false; then :
15249   $as_echo_n "(cached) " >&6
15250 else
15251   case $NICE in
15252   [\\/]* | ?:[\\/]*)
15253   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15254   ;;
15255   *)
15256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15257 for as_dir in $PATH
15258 do
15259   IFS=$as_save_IFS
15260   test -z "$as_dir" && as_dir=.
15261     for ac_exec_ext in '' $ac_executable_extensions; do
15262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15263     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15265     break 2
15266   fi
15267 done
15268   done
15269 IFS=$as_save_IFS
15270 
15271   ;;
15272 esac
15273 fi
15274 NICE=$ac_cv_path_NICE
15275 if test -n "$NICE"; then
15276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15277 $as_echo "$NICE" >&6; }
15278 else
15279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15280 $as_echo "no" >&6; }
15281 fi
15282 
15283 
15284   test -n "$NICE" && break
15285 done
15286 
15287     else
15288       # If it succeeded, then it was overridden by the user. We will use it
15289       # for the tool.
15290 
15291       # First remove it from the list of overridden variables, so we can test
15292       # for unknown variables in the end.
15293       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15294 
15295       # Check if we try to supply an empty value
15296       if test "x$NICE" = x; then
15297         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
15298 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
15299         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15300 $as_echo_n "checking for NICE... " >&6; }
15301         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15302 $as_echo "disabled" >&6; }
15303       else
15304         # Check if the provided tool contains a complete path.
15305         tool_specified="$NICE"
15306         tool_basename="${tool_specified##*/}"
15307         if test "x$tool_basename" = "x$tool_specified"; then
15308           # A command without a complete path is provided, search $PATH.
15309           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
15310 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
15311           # Extract the first word of "$tool_basename", so it can be a program name with args.
15312 set dummy $tool_basename; ac_word=$2
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15314 $as_echo_n "checking for $ac_word... " >&6; }
15315 if ${ac_cv_path_NICE+:} false; then :
15316   $as_echo_n "(cached) " >&6
15317 else
15318   case $NICE in
15319   [\\/]* | ?:[\\/]*)
15320   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15321   ;;
15322   *)
15323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15324 for as_dir in $PATH
15325 do
15326   IFS=$as_save_IFS
15327   test -z "$as_dir" && as_dir=.
15328     for ac_exec_ext in '' $ac_executable_extensions; do
15329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15330     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15332     break 2
15333   fi
15334 done
15335   done
15336 IFS=$as_save_IFS
15337 
15338   ;;
15339 esac
15340 fi
15341 NICE=$ac_cv_path_NICE
15342 if test -n "$NICE"; then
15343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15344 $as_echo "$NICE" >&6; }
15345 else
15346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15347 $as_echo "no" >&6; }
15348 fi
15349 
15350 
15351           if test "x$NICE" = x; then
15352             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15353           fi
15354         else
15355           # Otherwise we believe it is a complete path. Use it as it is.
15356           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
15357 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
15358           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15359 $as_echo_n "checking for NICE... " >&6; }
15360           if test ! -x "$tool_specified"; then
15361             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15362 $as_echo "not found" >&6; }
15363             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
15364           fi
15365           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15366 $as_echo "$tool_specified" >&6; }
15367         fi
15368       fi
15369     fi
15370 
15371   fi
15372 
15373 
15374 
15375 
15376   # Publish this variable in the help.
15377 
15378 
15379   if [ -z "${PANDOC+x}" ]; then
15380     # The variable is not set by user, try to locate tool using the code snippet
15381     for ac_prog in pandoc
15382 do
15383   # Extract the first word of "$ac_prog", so it can be a program name with args.
15384 set dummy $ac_prog; ac_word=$2
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15386 $as_echo_n "checking for $ac_word... " >&6; }
15387 if ${ac_cv_path_PANDOC+:} false; then :
15388   $as_echo_n "(cached) " >&6
15389 else
15390   case $PANDOC in
15391   [\\/]* | ?:[\\/]*)
15392   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15393   ;;
15394   *)
15395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15396 for as_dir in $PATH
15397 do
15398   IFS=$as_save_IFS
15399   test -z "$as_dir" && as_dir=.
15400     for ac_exec_ext in '' $ac_executable_extensions; do
15401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15402     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15404     break 2
15405   fi
15406 done
15407   done
15408 IFS=$as_save_IFS
15409 
15410   ;;
15411 esac
15412 fi
15413 PANDOC=$ac_cv_path_PANDOC
15414 if test -n "$PANDOC"; then
15415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15416 $as_echo "$PANDOC" >&6; }
15417 else
15418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15419 $as_echo "no" >&6; }
15420 fi
15421 
15422 
15423   test -n "$PANDOC" && break
15424 done
15425 
15426   else
15427     # The variable is set, but is it from the command line or the environment?
15428 
15429     # Try to remove the string !PANDOC! from our list.
15430     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/}
15431     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15432       # If it failed, the variable was not from the command line. Ignore it,
15433       # but warn the user (except for BASH, which is always set by the calling BASH).
15434       if test "xPANDOC" != xBASH; then
15435         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5
15436 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;}
15437       fi
15438       # Try to locate tool using the code snippet
15439       for ac_prog in pandoc
15440 do
15441   # Extract the first word of "$ac_prog", so it can be a program name with args.
15442 set dummy $ac_prog; ac_word=$2
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15444 $as_echo_n "checking for $ac_word... " >&6; }
15445 if ${ac_cv_path_PANDOC+:} false; then :
15446   $as_echo_n "(cached) " >&6
15447 else
15448   case $PANDOC in
15449   [\\/]* | ?:[\\/]*)
15450   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15451   ;;
15452   *)
15453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15454 for as_dir in $PATH
15455 do
15456   IFS=$as_save_IFS
15457   test -z "$as_dir" && as_dir=.
15458     for ac_exec_ext in '' $ac_executable_extensions; do
15459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15460     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15462     break 2
15463   fi
15464 done
15465   done
15466 IFS=$as_save_IFS
15467 
15468   ;;
15469 esac
15470 fi
15471 PANDOC=$ac_cv_path_PANDOC
15472 if test -n "$PANDOC"; then
15473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15474 $as_echo "$PANDOC" >&6; }
15475 else
15476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15477 $as_echo "no" >&6; }
15478 fi
15479 
15480 
15481   test -n "$PANDOC" && break
15482 done
15483 
15484     else
15485       # If it succeeded, then it was overridden by the user. We will use it
15486       # for the tool.
15487 
15488       # First remove it from the list of overridden variables, so we can test
15489       # for unknown variables in the end.
15490       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15491 
15492       # Check if we try to supply an empty value
15493       if test "x$PANDOC" = x; then
15494         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5
15495 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;}
15496         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15497 $as_echo_n "checking for PANDOC... " >&6; }
15498         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15499 $as_echo "disabled" >&6; }
15500       else
15501         # Check if the provided tool contains a complete path.
15502         tool_specified="$PANDOC"
15503         tool_basename="${tool_specified##*/}"
15504         if test "x$tool_basename" = "x$tool_specified"; then
15505           # A command without a complete path is provided, search $PATH.
15506           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5
15507 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;}
15508           # Extract the first word of "$tool_basename", so it can be a program name with args.
15509 set dummy $tool_basename; ac_word=$2
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15511 $as_echo_n "checking for $ac_word... " >&6; }
15512 if ${ac_cv_path_PANDOC+:} false; then :
15513   $as_echo_n "(cached) " >&6
15514 else
15515   case $PANDOC in
15516   [\\/]* | ?:[\\/]*)
15517   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15518   ;;
15519   *)
15520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15521 for as_dir in $PATH
15522 do
15523   IFS=$as_save_IFS
15524   test -z "$as_dir" && as_dir=.
15525     for ac_exec_ext in '' $ac_executable_extensions; do
15526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15527     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15529     break 2
15530   fi
15531 done
15532   done
15533 IFS=$as_save_IFS
15534 
15535   ;;
15536 esac
15537 fi
15538 PANDOC=$ac_cv_path_PANDOC
15539 if test -n "$PANDOC"; then
15540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15541 $as_echo "$PANDOC" >&6; }
15542 else
15543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15544 $as_echo "no" >&6; }
15545 fi
15546 
15547 
15548           if test "x$PANDOC" = x; then
15549             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15550           fi
15551         else
15552           # Otherwise we believe it is a complete path. Use it as it is.
15553           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5
15554 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;}
15555           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15556 $as_echo_n "checking for PANDOC... " >&6; }
15557           if test ! -x "$tool_specified"; then
15558             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15559 $as_echo "not found" >&6; }
15560             as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5
15561           fi
15562           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15563 $as_echo "$tool_specified" >&6; }
15564         fi
15565       fi
15566     fi
15567 
15568   fi
15569 
15570 
15571 
15572 
15573 # Now we can determine OpenJDK build and target platforms. This is required to
15574 # have early on.
15575 # Make sure we can run config.sub.
15576 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
15577   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
15578 
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
15580 $as_echo_n "checking build system type... " >&6; }
15581 if ${ac_cv_build+:} false; then :
15582   $as_echo_n "(cached) " >&6
15583 else
15584   ac_build_alias=$build_alias
15585 test "x$ac_build_alias" = x &&
15586   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
15587 test "x$ac_build_alias" = x &&
15588   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
15589 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
15590   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
15591 
15592 fi
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
15594 $as_echo "$ac_cv_build" >&6; }
15595 case $ac_cv_build in
15596 *-*-*) ;;
15597 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
15598 esac
15599 build=$ac_cv_build
15600 ac_save_IFS=$IFS; IFS='-'
15601 set x $ac_cv_build
15602 shift
15603 build_cpu=$1
15604 build_vendor=$2
15605 shift; shift
15606 # Remember, the first character of IFS is used to create $*,
15607 # except with old shells:
15608 build_os=$*
15609 IFS=$ac_save_IFS
15610 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
15611 
15612 
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
15614 $as_echo_n "checking host system type... " >&6; }
15615 if ${ac_cv_host+:} false; then :
15616   $as_echo_n "(cached) " >&6
15617 else
15618   if test "x$host_alias" = x; then
15619   ac_cv_host=$ac_cv_build
15620 else
15621   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15622     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
15623 fi
15624 
15625 fi
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
15627 $as_echo "$ac_cv_host" >&6; }
15628 case $ac_cv_host in
15629 *-*-*) ;;
15630 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
15631 esac
15632 host=$ac_cv_host
15633 ac_save_IFS=$IFS; IFS='-'
15634 set x $ac_cv_host
15635 shift
15636 host_cpu=$1
15637 host_vendor=$2
15638 shift; shift
15639 # Remember, the first character of IFS is used to create $*,
15640 # except with old shells:
15641 host_os=$*
15642 IFS=$ac_save_IFS
15643 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15644 
15645 
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15647 $as_echo_n "checking target system type... " >&6; }
15648 if ${ac_cv_target+:} false; then :
15649   $as_echo_n "(cached) " >&6
15650 else
15651   if test "x$target_alias" = x; then
15652   ac_cv_target=$ac_cv_host
15653 else
15654   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
15655     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
15656 fi
15657 
15658 fi
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15660 $as_echo "$ac_cv_target" >&6; }
15661 case $ac_cv_target in
15662 *-*-*) ;;
15663 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15664 esac
15665 target=$ac_cv_target
15666 ac_save_IFS=$IFS; IFS='-'
15667 set x $ac_cv_target
15668 shift
15669 target_cpu=$1
15670 target_vendor=$2
15671 shift; shift
15672 # Remember, the first character of IFS is used to create $*,
15673 # except with old shells:
15674 target_os=$*
15675 IFS=$ac_save_IFS
15676 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15677 
15678 
15679 # The aliases save the names the user supplied, while $host etc.
15680 # will get canonicalized.
15681 test -n "$target_alias" &&
15682   test "$program_prefix$program_suffix$program_transform_name" = \
15683     NONENONEs,x,x, &&
15684   program_prefix=${target_alias}-
15685 
15686   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
15687   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
15688   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
15689   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
15690   # to use the configure naming style.
15691 
15692 
15693 
15694 
15695 
15696   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
15697   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
15698   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
15699   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
15700   OPENJDK_TARGET_AUTOCONF_NAME="$host"
15701   OPENJDK_BUILD_AUTOCONF_NAME="$build"
15702 
15703 
15704 
15705   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15706 
15707   case "$build_os" in
15708     *linux*)
15709       VAR_OS=linux
15710       VAR_OS_TYPE=unix
15711       ;;
15712     *solaris*)
15713       VAR_OS=solaris
15714       VAR_OS_TYPE=unix
15715       ;;
15716     *darwin*)
15717       VAR_OS=macosx
15718       VAR_OS_TYPE=unix
15719       ;;
15720     *bsd*)
15721       VAR_OS=bsd
15722       VAR_OS_TYPE=unix
15723       ;;
15724     *cygwin*)
15725       VAR_OS=windows
15726       VAR_OS_ENV=windows.cygwin
15727       ;;
15728     *mingw*)
15729       VAR_OS=windows
15730       VAR_OS_ENV=windows.msys
15731       ;;
15732     *aix*)
15733       VAR_OS=aix
15734       VAR_OS_TYPE=unix
15735       ;;
15736     *)
15737       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15738       ;;
15739   esac
15740 
15741 
15742   # First argument is the cpu name from the trip/quad
15743   case "$build_cpu" in
15744     x86_64)
15745       VAR_CPU=x86_64
15746       VAR_CPU_ARCH=x86
15747       VAR_CPU_BITS=64
15748       VAR_CPU_ENDIAN=little
15749       ;;
15750     i?86)
15751       VAR_CPU=x86
15752       VAR_CPU_ARCH=x86
15753       VAR_CPU_BITS=32
15754       VAR_CPU_ENDIAN=little
15755       ;;
15756     alpha*)
15757       VAR_CPU=alpha
15758       VAR_CPU_ARCH=alpha
15759       VAR_CPU_BITS=64
15760       VAR_CPU_ENDIAN=little
15761       ;;
15762     arm*)
15763       VAR_CPU=arm
15764       VAR_CPU_ARCH=arm
15765       VAR_CPU_BITS=32
15766       VAR_CPU_ENDIAN=little
15767       ;;
15768     aarch64)
15769       VAR_CPU=aarch64
15770       VAR_CPU_ARCH=aarch64
15771       VAR_CPU_BITS=64
15772       VAR_CPU_ENDIAN=little
15773       ;;
15774     m68k)
15775       VAR_CPU=m68k
15776       VAR_CPU_ARCH=m68k
15777       VAR_CPU_BITS=32
15778       VAR_CPU_ENDIAN=big
15779       ;;
15780     mips)
15781       VAR_CPU=mips
15782       VAR_CPU_ARCH=mips
15783       VAR_CPU_BITS=32
15784       VAR_CPU_ENDIAN=big
15785       ;;
15786     mipsel)
15787       VAR_CPU=mipsel
15788       VAR_CPU_ARCH=mipsel
15789       VAR_CPU_BITS=32
15790       VAR_CPU_ENDIAN=little
15791       ;;
15792     mips64)
15793       VAR_CPU=mips64
15794       VAR_CPU_ARCH=mips64
15795       VAR_CPU_BITS=64
15796       VAR_CPU_ENDIAN=big
15797       ;;
15798     mips64el)
15799       VAR_CPU=mips64el
15800       VAR_CPU_ARCH=mips64el
15801       VAR_CPU_BITS=64
15802       VAR_CPU_ENDIAN=little
15803       ;;
15804     powerpc)
15805       VAR_CPU=ppc
15806       VAR_CPU_ARCH=ppc
15807       VAR_CPU_BITS=32
15808       VAR_CPU_ENDIAN=big
15809       ;;
15810     powerpc64)
15811       VAR_CPU=ppc64
15812       VAR_CPU_ARCH=ppc
15813       VAR_CPU_BITS=64
15814       VAR_CPU_ENDIAN=big
15815       ;;
15816     powerpc64le)
15817       VAR_CPU=ppc64le
15818       VAR_CPU_ARCH=ppc
15819       VAR_CPU_BITS=64
15820       VAR_CPU_ENDIAN=little
15821       ;;
15822     s390)
15823       VAR_CPU=s390
15824       VAR_CPU_ARCH=s390
15825       VAR_CPU_BITS=32
15826       VAR_CPU_ENDIAN=big
15827       ;;
15828     s390x)
15829       VAR_CPU=s390x
15830       VAR_CPU_ARCH=s390
15831       VAR_CPU_BITS=64
15832       VAR_CPU_ENDIAN=big
15833       ;;
15834     sh*eb)
15835       VAR_CPU=sh
15836       VAR_CPU_ARCH=sh
15837       VAR_CPU_BITS=32
15838       VAR_CPU_ENDIAN=big
15839       ;;
15840     sh*)
15841       VAR_CPU=sh
15842       VAR_CPU_ARCH=sh
15843       VAR_CPU_BITS=32
15844       VAR_CPU_ENDIAN=little
15845       ;;
15846     sparc)
15847       VAR_CPU=sparc
15848       VAR_CPU_ARCH=sparc
15849       VAR_CPU_BITS=32
15850       VAR_CPU_ENDIAN=big
15851       ;;
15852     sparcv9|sparc64)
15853       VAR_CPU=sparcv9
15854       VAR_CPU_ARCH=sparc
15855       VAR_CPU_BITS=64
15856       VAR_CPU_ENDIAN=big
15857       ;;
15858     *)
15859       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15860       ;;
15861   esac
15862 
15863   # ..and setup our own variables. (Do this explicitly to facilitate searching)
15864   OPENJDK_BUILD_OS="$VAR_OS"
15865   if test "x$VAR_OS_TYPE" != x; then
15866     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15867   else
15868     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15869   fi
15870   if test "x$VAR_OS_ENV" != x; then
15871     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15872   else
15873     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15874   fi
15875   OPENJDK_BUILD_CPU="$VAR_CPU"
15876   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15877   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15878   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15879 
15880 
15881 
15882 
15883 
15884 
15885 
15886 
15887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15888 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15890 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15891 
15892   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15893 
15894   case "$host_os" in
15895     *linux*)
15896       VAR_OS=linux
15897       VAR_OS_TYPE=unix
15898       ;;
15899     *solaris*)
15900       VAR_OS=solaris
15901       VAR_OS_TYPE=unix
15902       ;;
15903     *darwin*)
15904       VAR_OS=macosx
15905       VAR_OS_TYPE=unix
15906       ;;
15907     *bsd*)
15908       VAR_OS=bsd
15909       VAR_OS_TYPE=unix
15910       ;;
15911     *cygwin*)
15912       VAR_OS=windows
15913       VAR_OS_ENV=windows.cygwin
15914       ;;
15915     *mingw*)
15916       VAR_OS=windows
15917       VAR_OS_ENV=windows.msys
15918       ;;
15919     *aix*)
15920       VAR_OS=aix
15921       VAR_OS_TYPE=unix
15922       ;;
15923     *)
15924       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15925       ;;
15926   esac
15927 
15928 
15929   # First argument is the cpu name from the trip/quad
15930   case "$host_cpu" in
15931     x86_64)
15932       VAR_CPU=x86_64
15933       VAR_CPU_ARCH=x86
15934       VAR_CPU_BITS=64
15935       VAR_CPU_ENDIAN=little
15936       ;;
15937     i?86)
15938       VAR_CPU=x86
15939       VAR_CPU_ARCH=x86
15940       VAR_CPU_BITS=32
15941       VAR_CPU_ENDIAN=little
15942       ;;
15943     alpha*)
15944       VAR_CPU=alpha
15945       VAR_CPU_ARCH=alpha
15946       VAR_CPU_BITS=64
15947       VAR_CPU_ENDIAN=little
15948       ;;
15949     arm*)
15950       VAR_CPU=arm
15951       VAR_CPU_ARCH=arm
15952       VAR_CPU_BITS=32
15953       VAR_CPU_ENDIAN=little
15954       ;;
15955     aarch64)
15956       VAR_CPU=aarch64
15957       VAR_CPU_ARCH=aarch64
15958       VAR_CPU_BITS=64
15959       VAR_CPU_ENDIAN=little
15960       ;;
15961     m68k)
15962       VAR_CPU=m68k
15963       VAR_CPU_ARCH=m68k
15964       VAR_CPU_BITS=32
15965       VAR_CPU_ENDIAN=big
15966       ;;
15967     mips)
15968       VAR_CPU=mips
15969       VAR_CPU_ARCH=mips
15970       VAR_CPU_BITS=32
15971       VAR_CPU_ENDIAN=big
15972       ;;
15973     mipsel)
15974       VAR_CPU=mipsel
15975       VAR_CPU_ARCH=mipsel
15976       VAR_CPU_BITS=32
15977       VAR_CPU_ENDIAN=little
15978       ;;
15979     mips64)
15980       VAR_CPU=mips64
15981       VAR_CPU_ARCH=mips64
15982       VAR_CPU_BITS=64
15983       VAR_CPU_ENDIAN=big
15984       ;;
15985     mips64el)
15986       VAR_CPU=mips64el
15987       VAR_CPU_ARCH=mips64el
15988       VAR_CPU_BITS=64
15989       VAR_CPU_ENDIAN=little
15990       ;;
15991     powerpc)
15992       VAR_CPU=ppc
15993       VAR_CPU_ARCH=ppc
15994       VAR_CPU_BITS=32
15995       VAR_CPU_ENDIAN=big
15996       ;;
15997     powerpc64)
15998       VAR_CPU=ppc64
15999       VAR_CPU_ARCH=ppc
16000       VAR_CPU_BITS=64
16001       VAR_CPU_ENDIAN=big
16002       ;;
16003     powerpc64le)
16004       VAR_CPU=ppc64le
16005       VAR_CPU_ARCH=ppc
16006       VAR_CPU_BITS=64
16007       VAR_CPU_ENDIAN=little
16008       ;;
16009     s390)
16010       VAR_CPU=s390
16011       VAR_CPU_ARCH=s390
16012       VAR_CPU_BITS=32
16013       VAR_CPU_ENDIAN=big
16014       ;;
16015     s390x)
16016       VAR_CPU=s390x
16017       VAR_CPU_ARCH=s390
16018       VAR_CPU_BITS=64
16019       VAR_CPU_ENDIAN=big
16020       ;;
16021     sh*eb)
16022       VAR_CPU=sh
16023       VAR_CPU_ARCH=sh
16024       VAR_CPU_BITS=32
16025       VAR_CPU_ENDIAN=big
16026       ;;
16027     sh*)
16028       VAR_CPU=sh
16029       VAR_CPU_ARCH=sh
16030       VAR_CPU_BITS=32
16031       VAR_CPU_ENDIAN=little
16032       ;;
16033     sparc)
16034       VAR_CPU=sparc
16035       VAR_CPU_ARCH=sparc
16036       VAR_CPU_BITS=32
16037       VAR_CPU_ENDIAN=big
16038       ;;
16039     sparcv9|sparc64)
16040       VAR_CPU=sparcv9
16041       VAR_CPU_ARCH=sparc
16042       VAR_CPU_BITS=64
16043       VAR_CPU_ENDIAN=big
16044       ;;
16045     *)
16046       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
16047       ;;
16048   esac
16049 
16050   # ... and setup our own variables. (Do this explicitly to facilitate searching)
16051   OPENJDK_TARGET_OS="$VAR_OS"
16052   if test "x$VAR_OS_TYPE" != x; then
16053     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
16054   else
16055     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
16056   fi
16057   if test "x$VAR_OS_ENV" != x; then
16058     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
16059   else
16060     OPENJDK_TARGET_OS_ENV="$VAR_OS"
16061   fi
16062   OPENJDK_TARGET_CPU="$VAR_CPU"
16063   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
16064   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
16065   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
16066 
16067 
16068 
16069 
16070 
16071 
16072 
16073 
16074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
16075 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
16076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
16077 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
16078 
16079 
16080 
16081 # Check whether --with-target-bits was given.
16082 if test "${with_target_bits+set}" = set; then :
16083   withval=$with_target_bits;
16084 fi
16085 
16086 
16087   # We have three types of compiles:
16088   # native  == normal compilation, target system == build system
16089   # cross   == traditional cross compilation, target system != build system; special toolchain needed
16090   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
16091   #
16092   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
16093     # We're doing a proper cross-compilation
16094     COMPILE_TYPE="cross"
16095   else
16096     COMPILE_TYPE="native"
16097   fi
16098 
16099   if test "x$with_target_bits" != x; then
16100     if test "x$COMPILE_TYPE" = "xcross"; then
16101       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
16102     fi
16103 
16104     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16105       # A reduced build is requested
16106       COMPILE_TYPE="reduced"
16107       OPENJDK_TARGET_CPU_BITS=32
16108       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
16109         OPENJDK_TARGET_CPU=x86
16110       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
16111         OPENJDK_TARGET_CPU=sparc
16112       else
16113         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
16114       fi
16115     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
16116       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
16117     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
16118       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
16119 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
16120     else
16121       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
16122     fi
16123   fi
16124 
16125 
16126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
16127 $as_echo_n "checking compilation type... " >&6; }
16128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
16129 $as_echo "$COMPILE_TYPE" >&6; }
16130 
16131 
16132   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16133     OPENJDK_MODULE_TARGET_OS_NAME="macos"
16134   else
16135     OPENJDK_MODULE_TARGET_OS_NAME="$OPENJDK_TARGET_OS"
16136   fi
16137 
16138   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16139     OPENJDK_MODULE_TARGET_OS_ARCH="amd64"
16140   else
16141     OPENJDK_MODULE_TARGET_OS_ARCH="$OPENJDK_TARGET_CPU"
16142   fi
16143 
16144   OPENJDK_MODULE_TARGET_PLATFORM="${OPENJDK_MODULE_TARGET_OS_NAME}-${OPENJDK_MODULE_TARGET_OS_ARCH}"
16145 
16146 
16147 
16148   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
16149     RELEASE_FILE_OS_NAME=SunOS
16150   fi
16151   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
16152     RELEASE_FILE_OS_NAME=Linux
16153   fi
16154   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16155     RELEASE_FILE_OS_NAME=Windows
16156   fi
16157   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16158     RELEASE_FILE_OS_NAME="Darwin"
16159   fi
16160   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
16161     RELEASE_FILE_OS_NAME="AIX"
16162   fi
16163   RELEASE_FILE_OS_ARCH=${OPENJDK_TARGET_CPU}
16164 
16165 
16166 
16167 
16168 
16169 
16170   # Also store the legacy naming of the cpu.
16171   # Ie i586 and amd64 instead of x86 and x86_64
16172   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
16173   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16174     OPENJDK_TARGET_CPU_LEGACY="i586"
16175   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16176     # On all platforms except MacOSX replace x86_64 with amd64.
16177     OPENJDK_TARGET_CPU_LEGACY="amd64"
16178   elif test "x$OPENJDK_TARGET_CPU" = xalpha; then
16179     # Avoid name collisions with variables named alpha
16180     OPENJDK_TARGET_CPU_LEGACY="_alpha_"
16181   elif test "x$OPENJDK_TARGET_CPU" = xsh; then
16182     # Avoid name collisions with variables named sh
16183     OPENJDK_TARGET_CPU_LEGACY="_sh_"
16184   fi
16185 
16186 
16187   # And the second legacy naming of the cpu.
16188   # Ie i386 and amd64 instead of x86 and x86_64.
16189   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
16190   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16191     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
16192   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16193     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
16194   fi
16195 
16196 
16197   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16198   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16199   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
16200   OPENJDK_TARGET_CPU_ISADIR=""
16201   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
16202     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16203       OPENJDK_TARGET_CPU_ISADIR="/amd64"
16204     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16205       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
16206     fi
16207   fi
16208 
16209 
16210   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
16211   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
16212   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
16213     # On linux only, we replace x86 with i386.
16214     OPENJDK_TARGET_CPU_OSARCH="i386"
16215   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16216     # On all platforms except macosx, we replace x86_64 with amd64.
16217     OPENJDK_TARGET_CPU_OSARCH="amd64"
16218   fi
16219 
16220 
16221   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
16222   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16223     OPENJDK_TARGET_CPU_JLI="i386"
16224   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16225     # On all platforms except macosx, we replace x86_64 with amd64.
16226     OPENJDK_TARGET_CPU_JLI="amd64"
16227   fi
16228 
16229   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16230   # Macosx is osx and x86_64 is x64
16231   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16232     OPENJDK_TARGET_OS_BUNDLE="osx"
16233   else
16234     OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS"
16235   fi
16236   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16237     OPENJDK_TARGET_CPU_BUNDLE="x64"
16238   else
16239     OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU"
16240   fi
16241   OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}"
16242 
16243 
16244   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16245     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16246     # unpack200.exe. This variable is used in
16247     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16248     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
16249       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
16250     fi
16251   fi
16252 
16253   if test "x$COMPILE_TYPE" = "xcross"; then
16254     # FIXME: ... or should this include reduced builds..?
16255     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
16256   else
16257     DEFINE_CROSS_COMPILE_ARCH=""
16258   fi
16259 
16260 
16261   # Convert openjdk platform names to hotspot names
16262 
16263   HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS}
16264   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16265     HOTSPOT_TARGET_OS=bsd
16266   fi
16267 
16268 
16269   HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE}
16270   if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then
16271     HOTSPOT_TARGET_OS_TYPE=posix
16272   fi
16273 
16274 
16275   HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU}
16276   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16277     HOTSPOT_TARGET_CPU=x86_32
16278   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16279     HOTSPOT_TARGET_CPU=sparc
16280   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16281     HOTSPOT_TARGET_CPU=ppc_64
16282   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16283     HOTSPOT_TARGET_CPU=ppc_64
16284   fi
16285 
16286 
16287   # This is identical with OPENJDK_*, but define anyway for consistency.
16288   HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH}
16289 
16290 
16291   # Setup HOTSPOT_TARGET_CPU_DEFINE
16292   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16293     HOTSPOT_TARGET_CPU_DEFINE=IA32
16294   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16295     HOTSPOT_TARGET_CPU_DEFINE=AMD64
16296   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16297     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16298   elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
16299     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
16300   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16301     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16302   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16303     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16304 
16305   # The cpu defines below are for zero, we don't support them directly.
16306   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
16307     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16308   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
16309     HOTSPOT_TARGET_CPU_DEFINE=PPC32
16310   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
16311     HOTSPOT_TARGET_CPU_DEFINE=S390
16312   elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
16313     HOTSPOT_TARGET_CPU_DEFINE=S390
16314   elif test "x$OPENJDK_TARGET_CPU" != x; then
16315     HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z)
16316   fi
16317 
16318 
16319 
16320 
16321   # Also store the legacy naming of the cpu.
16322   # Ie i586 and amd64 instead of x86 and x86_64
16323   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
16324   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16325     OPENJDK_BUILD_CPU_LEGACY="i586"
16326   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16327     # On all platforms except MacOSX replace x86_64 with amd64.
16328     OPENJDK_BUILD_CPU_LEGACY="amd64"
16329   elif test "x$OPENJDK_BUILD_CPU" = xalpha; then
16330     # Avoid name collisions with variables named alpha
16331     OPENJDK_BUILD_CPU_LEGACY="_alpha_"
16332   elif test "x$OPENJDK_BUILD_CPU" = xsh; then
16333     # Avoid name collisions with variables named sh
16334     OPENJDK_BUILD_CPU_LEGACY="_sh_"
16335   fi
16336 
16337 
16338   # And the second legacy naming of the cpu.
16339   # Ie i386 and amd64 instead of x86 and x86_64.
16340   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
16341   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16342     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
16343   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16344     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
16345   fi
16346 
16347 
16348   # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16349   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16350   # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so
16351   OPENJDK_BUILD_CPU_ISADIR=""
16352   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
16353     if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16354       OPENJDK_BUILD_CPU_ISADIR="/amd64"
16355     elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16356       OPENJDK_BUILD_CPU_ISADIR="/sparcv9"
16357     fi
16358   fi
16359 
16360 
16361   # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property
16362   OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU"
16363   if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then
16364     # On linux only, we replace x86 with i386.
16365     OPENJDK_BUILD_CPU_OSARCH="i386"
16366   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16367     # On all platforms except macosx, we replace x86_64 with amd64.
16368     OPENJDK_BUILD_CPU_OSARCH="amd64"
16369   fi
16370 
16371 
16372   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
16373   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16374     OPENJDK_BUILD_CPU_JLI="i386"
16375   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16376     # On all platforms except macosx, we replace x86_64 with amd64.
16377     OPENJDK_BUILD_CPU_JLI="amd64"
16378   fi
16379 
16380   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16381   # Macosx is osx and x86_64 is x64
16382   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16383     OPENJDK_BUILD_OS_BUNDLE="osx"
16384   else
16385     OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS"
16386   fi
16387   if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16388     OPENJDK_BUILD_CPU_BUNDLE="x64"
16389   else
16390     OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU"
16391   fi
16392   OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}"
16393 
16394 
16395   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
16396     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16397     # unpack200.exe. This variable is used in
16398     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16399     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
16400       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
16401     fi
16402   fi
16403 
16404   if test "x$COMPILE_TYPE" = "xcross"; then
16405     # FIXME: ... or should this include reduced builds..?
16406     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
16407   else
16408     DEFINE_CROSS_COMPILE_ARCH=""
16409   fi
16410 
16411 
16412   # Convert openjdk platform names to hotspot names
16413 
16414   HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS}
16415   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16416     HOTSPOT_BUILD_OS=bsd
16417   fi
16418 
16419 
16420   HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE}
16421   if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then
16422     HOTSPOT_BUILD_OS_TYPE=posix
16423   fi
16424 
16425 
16426   HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU}
16427   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16428     HOTSPOT_BUILD_CPU=x86_32
16429   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16430     HOTSPOT_BUILD_CPU=sparc
16431   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16432     HOTSPOT_BUILD_CPU=ppc_64
16433   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16434     HOTSPOT_BUILD_CPU=ppc_64
16435   fi
16436 
16437 
16438   # This is identical with OPENJDK_*, but define anyway for consistency.
16439   HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH}
16440 
16441 
16442   # Setup HOTSPOT_BUILD_CPU_DEFINE
16443   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16444     HOTSPOT_BUILD_CPU_DEFINE=IA32
16445   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16446     HOTSPOT_BUILD_CPU_DEFINE=AMD64
16447   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16448     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16449   elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
16450     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16451   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16452     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16453   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16454     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16455 
16456   # The cpu defines below are for zero, we don't support them directly.
16457   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16458     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16459   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16460     HOTSPOT_BUILD_CPU_DEFINE=PPC32
16461   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16462     HOTSPOT_BUILD_CPU_DEFINE=S390
16463   elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16464     HOTSPOT_BUILD_CPU_DEFINE=S390
16465   elif test "x$OPENJDK_BUILD_CPU" != x; then
16466     HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z)
16467   fi
16468 
16469 
16470 
16471 
16472 
16473 
16474 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16475 
16476   # Save the current directory this script was started from
16477   CURDIR="$PWD"
16478 
16479   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16480   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
16481   # was not available at that time.
16482   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
16483   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
16484     ORIGINAL_PATH="$REWRITTEN_PATH"
16485     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
16486 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
16487   fi
16488 
16489   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16490     PATH_SEP=";"
16491 
16492   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
16493   if test $SRC_ROOT_LENGTH -gt 100; then
16494     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
16495   fi
16496 
16497   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
16499 $as_echo_n "checking cygwin release... " >&6; }
16500     CYGWIN_VERSION=`$UNAME -r`
16501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
16502 $as_echo "$CYGWIN_VERSION" >&6; }
16503     WINDOWS_ENV_VENDOR='cygwin'
16504     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
16505 
16506     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
16507     if test "x$CYGWIN_VERSION_OLD" != x; then
16508       { $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
16509 $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;}
16510       as_fn_error $? "Cannot continue" "$LINENO" 5
16511     fi
16512     if test "x$CYGPATH" = x; then
16513       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
16514     fi
16515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
16516 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
16517     # The cmd output ends with Windows line endings (CR/LF)
16518     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
16519     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
16520     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
16521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
16522 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
16523     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
16524     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
16525     if test "x$test_cygdrive_prefix" = x; then
16526       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
16527     fi
16528   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
16530 $as_echo_n "checking msys release... " >&6; }
16531     MSYS_VERSION=`$UNAME -r`
16532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
16533 $as_echo "$MSYS_VERSION" >&6; }
16534 
16535     WINDOWS_ENV_VENDOR='msys'
16536     WINDOWS_ENV_VERSION="$MSYS_VERSION"
16537 
16538     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
16539 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
16540     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16541     MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"`
16542 
16543   windows_path="$MSYS_ROOT_PATH"
16544   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16545     unix_path=`$CYGPATH -u "$windows_path"`
16546     MSYS_ROOT_PATH="$unix_path"
16547   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16548     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16549     MSYS_ROOT_PATH="$unix_path"
16550   fi
16551 
16552     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
16553 $as_echo "$MSYS_ROOT_PATH" >&6; }
16554     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
16555   else
16556     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
16557   fi
16558 
16559   # Test if windows or unix (cygwin/msys) find is first in path.
16560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
16561 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
16562   FIND_BINARY_OUTPUT=`find --version 2>&1`
16563   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
16564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
16565 $as_echo "unix style" >&6; }
16566   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
16567     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
16568 $as_echo "Windows" >&6; }
16569     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
16570 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
16571     { $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
16572 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
16573     as_fn_error $? "Cannot continue" "$LINENO" 5
16574   else
16575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16576 $as_echo "unknown" >&6; }
16577     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
16578 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
16579   fi
16580 
16581   else
16582     PATH_SEP=":"
16583   fi
16584 
16585 
16586   # We get the top-level directory from the supporting wrappers.
16587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
16588 $as_echo_n "checking for top-level directory... " >&6; }
16589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
16590 $as_echo "$TOPDIR" >&6; }
16591 
16592 
16593   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
16594 
16595   # Only process if variable expands to non-empty
16596 
16597   if test "x$CURDIR" != x; then
16598     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16599 
16600   # Input might be given as Windows format, start by converting to
16601   # unix format.
16602   path="$CURDIR"
16603   new_path=`$CYGPATH -u "$path"`
16604 
16605   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16606   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16607   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16608   # "foo.exe" is OK but "foo" is an error.
16609   #
16610   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16611   # It is also a way to make sure we got the proper file name for the real test later on.
16612   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16613   if test "x$test_shortpath" = x; then
16614     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16615 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16616     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
16617   fi
16618 
16619   # Call helper function which possibly converts this using DOS-style short mode.
16620   # If so, the updated path is stored in $new_path.
16621 
16622   input_path="$new_path"
16623   # Check if we need to convert this using DOS-style short mode. If the path
16624   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16625   # take no chances and rewrite it.
16626   # Note: m4 eats our [], so we need to use [ and ] instead.
16627   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16628   if test "x$has_forbidden_chars" != x; then
16629     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16630     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16631     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16632     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16633       # Going to short mode and back again did indeed matter. Since short mode is
16634       # case insensitive, let's make it lowercase to improve readability.
16635       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16636       # Now convert it back to Unix-style (cygpath)
16637       input_path=`$CYGPATH -u "$shortmode_path"`
16638       new_path="$input_path"
16639     fi
16640   fi
16641 
16642   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16643   if test "x$test_cygdrive_prefix" = x; then
16644     # As a simple fix, exclude /usr/bin since it's not a real path.
16645     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16646       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16647       # a path prefixed by /cygdrive for fixpath to work.
16648       new_path="$CYGWIN_ROOT_PATH$input_path"
16649     fi
16650   fi
16651 
16652 
16653   if test "x$path" != "x$new_path"; then
16654     CURDIR="$new_path"
16655     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16656 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16657   fi
16658 
16659     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16660 
16661   path="$CURDIR"
16662   has_colon=`$ECHO $path | $GREP ^.:`
16663   new_path="$path"
16664   if test "x$has_colon" = x; then
16665     # Not in mixed or Windows style, start by that.
16666     new_path=`cmd //c echo $path`
16667   fi
16668 
16669 
16670   input_path="$new_path"
16671   # Check if we need to convert this using DOS-style short mode. If the path
16672   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16673   # take no chances and rewrite it.
16674   # Note: m4 eats our [], so we need to use [ and ] instead.
16675   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16676   if test "x$has_forbidden_chars" != x; then
16677     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16678     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16679   fi
16680 
16681 
16682   windows_path="$new_path"
16683   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16684     unix_path=`$CYGPATH -u "$windows_path"`
16685     new_path="$unix_path"
16686   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16687     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16688     new_path="$unix_path"
16689   fi
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   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16698   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16699 
16700     else
16701       # We're on a unix platform. Hooray! :)
16702       path="$CURDIR"
16703       has_space=`$ECHO "$path" | $GREP " "`
16704       if test "x$has_space" != x; then
16705         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16706 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16707         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16708       fi
16709 
16710       # Use eval to expand a potential ~
16711       eval path="$path"
16712       if test ! -f "$path" && test ! -d "$path"; then
16713         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16714       fi
16715 
16716       if test -d "$path"; then
16717         CURDIR="`cd "$path"; $THEPWDCMD -L`"
16718       else
16719         dir="`$DIRNAME "$path"`"
16720         base="`$BASENAME "$path"`"
16721         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16722       fi
16723     fi
16724   fi
16725 
16726 
16727   # Only process if variable expands to non-empty
16728 
16729   if test "x$TOPDIR" != x; then
16730     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16731 
16732   # Input might be given as Windows format, start by converting to
16733   # unix format.
16734   path="$TOPDIR"
16735   new_path=`$CYGPATH -u "$path"`
16736 
16737   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16738   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16739   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16740   # "foo.exe" is OK but "foo" is an error.
16741   #
16742   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16743   # It is also a way to make sure we got the proper file name for the real test later on.
16744   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16745   if test "x$test_shortpath" = x; then
16746     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16747 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16748     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
16749   fi
16750 
16751   # Call helper function which possibly converts this using DOS-style short mode.
16752   # If so, the updated path is stored in $new_path.
16753 
16754   input_path="$new_path"
16755   # Check if we need to convert this using DOS-style short mode. If the path
16756   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16757   # take no chances and rewrite it.
16758   # Note: m4 eats our [], so we need to use [ and ] instead.
16759   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16760   if test "x$has_forbidden_chars" != x; then
16761     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16762     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16763     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16764     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16765       # Going to short mode and back again did indeed matter. Since short mode is
16766       # case insensitive, let's make it lowercase to improve readability.
16767       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16768       # Now convert it back to Unix-style (cygpath)
16769       input_path=`$CYGPATH -u "$shortmode_path"`
16770       new_path="$input_path"
16771     fi
16772   fi
16773 
16774   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16775   if test "x$test_cygdrive_prefix" = x; then
16776     # As a simple fix, exclude /usr/bin since it's not a real path.
16777     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16778       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16779       # a path prefixed by /cygdrive for fixpath to work.
16780       new_path="$CYGWIN_ROOT_PATH$input_path"
16781     fi
16782   fi
16783 
16784 
16785   if test "x$path" != "x$new_path"; then
16786     TOPDIR="$new_path"
16787     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16788 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16789   fi
16790 
16791     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16792 
16793   path="$TOPDIR"
16794   has_colon=`$ECHO $path | $GREP ^.:`
16795   new_path="$path"
16796   if test "x$has_colon" = x; then
16797     # Not in mixed or Windows style, start by that.
16798     new_path=`cmd //c echo $path`
16799   fi
16800 
16801 
16802   input_path="$new_path"
16803   # Check if we need to convert this using DOS-style short mode. If the path
16804   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16805   # take no chances and rewrite it.
16806   # Note: m4 eats our [], so we need to use [ and ] instead.
16807   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16808   if test "x$has_forbidden_chars" != x; then
16809     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16810     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16811   fi
16812 
16813 
16814   windows_path="$new_path"
16815   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16816     unix_path=`$CYGPATH -u "$windows_path"`
16817     new_path="$unix_path"
16818   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16819     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16820     new_path="$unix_path"
16821   fi
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   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16830   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16831 
16832     else
16833       # We're on a unix platform. Hooray! :)
16834       path="$TOPDIR"
16835       has_space=`$ECHO "$path" | $GREP " "`
16836       if test "x$has_space" != x; then
16837         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16838 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16839         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16840       fi
16841 
16842       # Use eval to expand a potential ~
16843       eval path="$path"
16844       if test ! -f "$path" && test ! -d "$path"; then
16845         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16846       fi
16847 
16848       if test -d "$path"; then
16849         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
16850       else
16851         dir="`$DIRNAME "$path"`"
16852         base="`$BASENAME "$path"`"
16853         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16854       fi
16855     fi
16856   fi
16857 
16858 
16859   # Locate the directory of this script.
16860   AUTOCONF_DIR=$TOPDIR/make/autoconf
16861 
16862   # Setup username (for use in adhoc version strings etc)
16863   # Outer [ ] to quote m4.
16864    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16865 
16866 
16867 
16868 # Check if it's a pure open build or if custom sources are to be used.
16869 
16870   # Check whether --enable-openjdk-only was given.
16871 if test "${enable_openjdk_only+set}" = set; then :
16872   enableval=$enable_openjdk_only;
16873 else
16874   enable_openjdk_only="no"
16875 fi
16876 
16877 
16878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5
16879 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; }
16880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5
16881 $as_echo "$enable_openjdk_only" >&6; }
16882   if test "x$enable_openjdk_only" = "xyes"; then
16883     SUPPRESS_CUSTOM_EXTENSIONS="true"
16884   elif test "x$enable_openjdk_only" = "xno"; then
16885     SUPPRESS_CUSTOM_EXTENSIONS="false"
16886   else
16887     as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5
16888   fi
16889 
16890   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16891   # the IncludeCustomExtension macro.
16892 
16893 
16894 # Check whether --with-custom-make-dir was given.
16895 if test "${with_custom_make_dir+set}" = set; then :
16896   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
16897 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16898 fi
16899 
16900 
16901 
16902 
16903 # These are needed to be able to create a configuration name (and thus the output directory)
16904 
16905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16906 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16907 
16908 # Check whether --with-jdk-variant was given.
16909 if test "${with_jdk_variant+set}" = set; then :
16910   withval=$with_jdk_variant;
16911 fi
16912 
16913 
16914   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
16915     JDK_VARIANT="normal"
16916   else
16917     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
16918   fi
16919 
16920 
16921 
16922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
16923 $as_echo "$JDK_VARIANT" >&6; }
16924 
16925 
16926   DEBUG_LEVEL="release"
16927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16928 $as_echo_n "checking which debug level to use... " >&6; }
16929   # Check whether --enable-debug was given.
16930 if test "${enable_debug+set}" = set; then :
16931   enableval=$enable_debug;
16932         ENABLE_DEBUG="${enableval}"
16933         DEBUG_LEVEL="fastdebug"
16934 
16935 else
16936   ENABLE_DEBUG="no"
16937 fi
16938 
16939 
16940 
16941 # Check whether --with-debug-level was given.
16942 if test "${with_debug_level+set}" = set; then :
16943   withval=$with_debug_level;
16944         DEBUG_LEVEL="${withval}"
16945         if test "x$ENABLE_DEBUG" = xyes; then
16946           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16947         fi
16948 
16949 fi
16950 
16951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16952 $as_echo "$DEBUG_LEVEL" >&6; }
16953 
16954   if test "x$DEBUG_LEVEL" != xrelease && \
16955       test "x$DEBUG_LEVEL" != xoptimized && \
16956       test "x$DEBUG_LEVEL" != xfastdebug && \
16957       test "x$DEBUG_LEVEL" != xslowdebug; then
16958     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16959   fi
16960 
16961   # Translate DEBUG_LEVEL to debug level used by Hotspot
16962   HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL"
16963   if test "x$DEBUG_LEVEL" = xrelease; then
16964     HOTSPOT_DEBUG_LEVEL="product"
16965   elif test "x$DEBUG_LEVEL" = xslowdebug; then
16966     HOTSPOT_DEBUG_LEVEL="debug"
16967   fi
16968 
16969   if test "x$DEBUG_LEVEL" = xoptimized; then
16970     # The debug level 'optimized' is a little special because it is currently only
16971     # applicable to the HotSpot build where it means to build a completely
16972     # optimized version of the VM without any debugging code (like for the
16973     # 'release' debug level which is called 'product' in the HotSpot build) but
16974     # with the exception that it can contain additional code which is otherwise
16975     # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16976     # test new and/or experimental features which are not intended for customer
16977     # shipment. Because these new features need to be tested and benchmarked in
16978     # real world scenarios, we want to build the containing JDK at the 'release'
16979     # debug level.
16980     DEBUG_LEVEL="release"
16981   fi
16982 
16983 
16984 
16985 
16986 
16987 
16988 # Check whether --with-jvm-variants was given.
16989 if test "${with_jvm_variants+set}" = set; then :
16990   withval=$with_jvm_variants;
16991 fi
16992 
16993 
16994 
16995 
16996 # Check whether --with-cpu-port was given.
16997 if test "${with_cpu_port+set}" = set; then :
16998   withval=$with_cpu_port;
16999 fi
17000 
17001 
17002   if test "x$with_cpu_port" != x; then
17003     if test "x$OPENJDK_TARGET_CPU" != xaarch64; then
17004       as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5
17005     fi
17006     if test "x$with_cpu_port" != xarm64 && \
17007         test "x$with_cpu_port" != xaarch64; then
17008       as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5
17009     fi
17010     HOTSPOT_TARGET_CPU_PORT="$with_cpu_port"
17011   fi
17012 
17013 
17014   if test "x$with_jvm_variants" = x; then
17015     with_jvm_variants="server"
17016   fi
17017   JVM_VARIANTS_OPT="$with_jvm_variants"
17018 
17019   # Has the user listed more than one variant?
17020   # Additional [] needed to keep m4 from mangling shell constructs.
17021   if  [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then
17022     BUILDING_MULTIPLE_JVM_VARIANTS=true
17023   else
17024     BUILDING_MULTIPLE_JVM_VARIANTS=false
17025   fi
17026   # Replace the commas with AND for use in the build directory name.
17027   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
17028 
17029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
17030 $as_echo_n "checking which variants of the JVM to build... " >&6; }
17031   # JVM_VARIANTS is a space-separated list.
17032   # Also use minimal, not minimal1 (which is kept for backwards compatibility).
17033   JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'`
17034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5
17035 $as_echo "$JVM_VARIANTS" >&6; }
17036 
17037   # Check that the selected variants are valid
17038 
17039   # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326
17040   # Notice that the original variant failes on SLES 10 and 11
17041   NEEDLE=${VALID_JVM_VARIANTS// /$'\n'}
17042   STACK=${JVM_VARIANTS// /$'\n'}
17043   INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
17044   if test "x$INVALID_VARIANTS" != x; then
17045     { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5
17046 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
17047     as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5
17048   fi
17049 
17050   # All "special" variants share the same output directory ("server")
17051   VALID_MULTIPLE_JVM_VARIANTS="server client minimal"
17052   NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'}
17053   STACK=${JVM_VARIANTS// /$'\n'}
17054   INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
17055   if  test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then
17056     as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5
17057   fi
17058 
17059   # The "main" variant is the one used by other libs to link against during the
17060   # build.
17061   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then
17062     MAIN_VARIANT_PRIO_ORDER="server client minimal"
17063     for variant in $MAIN_VARIANT_PRIO_ORDER; do
17064       if   [[ " $JVM_VARIANTS " =~ " $variant " ]]  ; then
17065         JVM_VARIANT_MAIN="$variant"
17066         break
17067       fi
17068     done
17069   else
17070     JVM_VARIANT_MAIN="$JVM_VARIANTS"
17071   fi
17072 
17073 
17074 
17075 
17076 
17077   if   [[ " $JVM_VARIANTS " =~ " zero " ]]  ; then
17078     # zero behaves as a platform and rewrites these values. This is really weird. :(
17079     # We are guaranteed that we do not build any other variants when building zero.
17080     HOTSPOT_TARGET_CPU=zero
17081     HOTSPOT_TARGET_CPU_ARCH=zero
17082   fi
17083 
17084 
17085 # With basic setup done, call the custom early hook.
17086 
17087 
17088 # Check if we have devkits, extra paths or sysroot set.
17089 
17090 
17091 # Check whether --with-devkit was given.
17092 if test "${with_devkit+set}" = set; then :
17093   withval=$with_devkit;
17094 
17095   # Only process if variable expands to non-empty
17096 
17097   if test "x$with_devkit" != x; then
17098     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17099 
17100   # Input might be given as Windows format, start by converting to
17101   # unix format.
17102   path="$with_devkit"
17103   new_path=`$CYGPATH -u "$path"`
17104 
17105   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17106   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17107   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17108   # "foo.exe" is OK but "foo" is an error.
17109   #
17110   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17111   # It is also a way to make sure we got the proper file name for the real test later on.
17112   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17113   if test "x$test_shortpath" = x; then
17114     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17115 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17116     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
17117   fi
17118 
17119   # Call helper function which possibly converts this using DOS-style short mode.
17120   # If so, the updated path is stored in $new_path.
17121 
17122   input_path="$new_path"
17123   # Check if we need to convert this using DOS-style short mode. If the path
17124   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17125   # take no chances and rewrite it.
17126   # Note: m4 eats our [], so we need to use [ and ] instead.
17127   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17128   if test "x$has_forbidden_chars" != x; then
17129     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17130     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17131     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17132     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17133       # Going to short mode and back again did indeed matter. Since short mode is
17134       # case insensitive, let's make it lowercase to improve readability.
17135       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17136       # Now convert it back to Unix-style (cygpath)
17137       input_path=`$CYGPATH -u "$shortmode_path"`
17138       new_path="$input_path"
17139     fi
17140   fi
17141 
17142   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17143   if test "x$test_cygdrive_prefix" = x; then
17144     # As a simple fix, exclude /usr/bin since it's not a real path.
17145     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17146       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17147       # a path prefixed by /cygdrive for fixpath to work.
17148       new_path="$CYGWIN_ROOT_PATH$input_path"
17149     fi
17150   fi
17151 
17152 
17153   if test "x$path" != "x$new_path"; then
17154     with_devkit="$new_path"
17155     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
17156 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
17157   fi
17158 
17159     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17160 
17161   path="$with_devkit"
17162   has_colon=`$ECHO $path | $GREP ^.:`
17163   new_path="$path"
17164   if test "x$has_colon" = x; then
17165     # Not in mixed or Windows style, start by that.
17166     new_path=`cmd //c echo $path`
17167   fi
17168 
17169 
17170   input_path="$new_path"
17171   # Check if we need to convert this using DOS-style short mode. If the path
17172   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17173   # take no chances and rewrite it.
17174   # Note: m4 eats our [], so we need to use [ and ] instead.
17175   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17176   if test "x$has_forbidden_chars" != x; then
17177     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17178     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17179   fi
17180 
17181 
17182   windows_path="$new_path"
17183   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17184     unix_path=`$CYGPATH -u "$windows_path"`
17185     new_path="$unix_path"
17186   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17187     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17188     new_path="$unix_path"
17189   fi
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   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17198   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17199 
17200     else
17201       # We're on a unix platform. Hooray! :)
17202       path="$with_devkit"
17203       has_space=`$ECHO "$path" | $GREP " "`
17204       if test "x$has_space" != x; then
17205         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17206 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17207         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17208       fi
17209 
17210       # Use eval to expand a potential ~
17211       eval path="$path"
17212       if test ! -f "$path" && test ! -d "$path"; then
17213         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
17214       fi
17215 
17216       if test -d "$path"; then
17217         with_devkit="`cd "$path"; $THEPWDCMD -L`"
17218       else
17219         dir="`$DIRNAME "$path"`"
17220         base="`$BASENAME "$path"`"
17221         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
17222       fi
17223     fi
17224   fi
17225 
17226         DEVKIT_ROOT="$with_devkit"
17227         # Check for a meta data info file in the root of the devkit
17228         if test -f "$DEVKIT_ROOT/devkit.info"; then
17229           . $DEVKIT_ROOT/devkit.info
17230           # This potentially sets the following:
17231           # A descriptive name of the devkit
17232 
17233   if test "x$DEVKIT_NAME" = x; then
17234     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
17235   fi
17236 
17237           # Corresponds to --with-extra-path
17238 
17239   if test "x$DEVKIT_EXTRA_PATH" = x; then
17240     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
17241   fi
17242 
17243           # Corresponds to --with-toolchain-path
17244 
17245   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17246     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
17247   fi
17248 
17249           # Corresponds to --with-sysroot
17250 
17251   if test "x$DEVKIT_SYSROOT" = x; then
17252     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
17253   fi
17254 
17255 
17256           # Identifies the Visual Studio version in the devkit
17257 
17258   if test "x$DEVKIT_VS_VERSION" = x; then
17259     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
17260   fi
17261 
17262           # The Visual Studio include environment variable
17263 
17264   if test "x$DEVKIT_VS_INCLUDE" = x; then
17265     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
17266   fi
17267 
17268           # The Visual Studio lib environment variable
17269 
17270   if test "x$DEVKIT_VS_LIB" = x; then
17271     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
17272   fi
17273 
17274           # Corresponds to --with-msvcr-dll
17275 
17276   if test "x$DEVKIT_MSVCR_DLL" = x; then
17277     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
17278   fi
17279 
17280           # Corresponds to --with-msvcp-dll
17281 
17282   if test "x$DEVKIT_MSVCP_DLL" = x; then
17283     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
17284   fi
17285 
17286         fi
17287 
17288         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
17289 $as_echo_n "checking for devkit... " >&6; }
17290         if test "x$DEVKIT_NAME" != x; then
17291           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
17292 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
17293         else
17294           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
17295 $as_echo "$DEVKIT_ROOT" >&6; }
17296         fi
17297 
17298 
17299   if test "x$DEVKIT_EXTRA_PATH" != x; then
17300     if test "x$EXTRA_PATH" = x; then
17301       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
17302     else
17303       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
17304     fi
17305   fi
17306 
17307 
17308         # Fallback default of just /bin if DEVKIT_PATH is not defined
17309         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17310           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
17311         fi
17312 
17313   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
17314     if test "x$TOOLCHAIN_PATH" = x; then
17315       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
17316     else
17317       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
17318     fi
17319   fi
17320 
17321 
17322         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
17323         # places for backwards compatiblity.
17324         if test "x$DEVKIT_SYSROOT" != x; then
17325           SYSROOT="$DEVKIT_SYSROOT"
17326         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
17327           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
17328         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
17329           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
17330         fi
17331 
17332         if test "x$DEVKIT_ROOT" != x; then
17333           DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib"
17334           if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
17335             DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64"
17336           fi
17337 
17338         fi
17339 
17340 
17341 fi
17342 
17343 
17344   # You can force the sysroot if the sysroot encoded into the compiler tools
17345   # is not correct.
17346 
17347 # Check whether --with-sys-root was given.
17348 if test "${with_sys_root+set}" = set; then :
17349   withval=$with_sys_root; SYSROOT=$with_sys_root
17350 
17351 fi
17352 
17353 
17354 
17355 # Check whether --with-sysroot was given.
17356 if test "${with_sysroot+set}" = set; then :
17357   withval=$with_sysroot; SYSROOT=$with_sysroot
17358 
17359 fi
17360 
17361 
17362 
17363 # Check whether --with-tools-dir was given.
17364 if test "${with_tools_dir+set}" = set; then :
17365   withval=$with_tools_dir;
17366   if test "x$with_tools_dir" != x; then
17367     if test "x$TOOLCHAIN_PATH" = x; then
17368       TOOLCHAIN_PATH="$with_tools_dir"
17369     else
17370       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
17371     fi
17372   fi
17373 
17374 
17375 fi
17376 
17377 
17378 
17379 # Check whether --with-toolchain-path was given.
17380 if test "${with_toolchain_path+set}" = set; then :
17381   withval=$with_toolchain_path;
17382   if test "x$with_toolchain_path" != x; then
17383     if test "x$TOOLCHAIN_PATH" = x; then
17384       TOOLCHAIN_PATH="$with_toolchain_path"
17385     else
17386       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
17387     fi
17388   fi
17389 
17390 
17391 fi
17392 
17393 
17394 
17395 # Check whether --with-extra-path was given.
17396 if test "${with_extra_path+set}" = set; then :
17397   withval=$with_extra_path;
17398   if test "x$with_extra_path" != x; then
17399     if test "x$EXTRA_PATH" = x; then
17400       EXTRA_PATH="$with_extra_path"
17401     else
17402       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
17403     fi
17404   fi
17405 
17406 
17407 fi
17408 
17409 
17410   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
17411     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
17412     # If not, detect if Xcode is installed by running xcodebuild -version
17413     # if no Xcode installed, xcodebuild exits with 1
17414     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
17415     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
17416       # We need to use xcodebuild in the toolchain dir provided by the user, this will
17417       # fall back on the stub binary in /usr/bin/xcodebuild
17418       # Extract the first word of "xcodebuild", so it can be a program name with args.
17419 set dummy xcodebuild; ac_word=$2
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17421 $as_echo_n "checking for $ac_word... " >&6; }
17422 if ${ac_cv_path_XCODEBUILD+:} false; then :
17423   $as_echo_n "(cached) " >&6
17424 else
17425   case $XCODEBUILD in
17426   [\\/]* | ?:[\\/]*)
17427   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
17428   ;;
17429   *)
17430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17431 for as_dir in $TOOLCHAIN_PATH
17432 do
17433   IFS=$as_save_IFS
17434   test -z "$as_dir" && as_dir=.
17435     for ac_exec_ext in '' $ac_executable_extensions; do
17436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17437     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
17438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17439     break 2
17440   fi
17441 done
17442   done
17443 IFS=$as_save_IFS
17444 
17445   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
17446   ;;
17447 esac
17448 fi
17449 XCODEBUILD=$ac_cv_path_XCODEBUILD
17450 if test -n "$XCODEBUILD"; then
17451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
17452 $as_echo "$XCODEBUILD" >&6; }
17453 else
17454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17455 $as_echo "no" >&6; }
17456 fi
17457 
17458 
17459     else
17460       # this should result in SYSROOT being empty, unless --with-sysroot is provided
17461       # when only the command line tools are installed there are no SDKs, so headers
17462       # are copied into the system frameworks
17463       XCODEBUILD=
17464 
17465     fi
17466 
17467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
17468 $as_echo_n "checking for sdk name... " >&6; }
17469 
17470 # Check whether --with-sdk-name was given.
17471 if test "${with_sdk_name+set}" = set; then :
17472   withval=$with_sdk_name; SDKNAME=$with_sdk_name
17473 
17474 fi
17475 
17476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
17477 $as_echo "$SDKNAME" >&6; }
17478 
17479     # if toolchain path is specified then don't rely on system headers, they may not compile
17480     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
17481     test -z "$TOOLCHAIN_PATH" && \
17482       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
17483 
17484     if test -z "$SYSROOT"; then
17485       if test -n "$XCODEBUILD"; then
17486         # if we don't have system headers, use default SDK name (last resort)
17487         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17488           SDKNAME=${SDKNAME:-macosx}
17489         fi
17490 
17491         if test -n "$SDKNAME"; then
17492           # Call xcodebuild to determine SYSROOT
17493           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'`
17494         fi
17495       else
17496         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17497           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
17498         fi
17499       fi
17500     else
17501       # warn user if --with-sdk-name was also set
17502       if test -n "$with_sdk_name"; then
17503         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
17504 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
17505       fi
17506     fi
17507 
17508     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
17509       # If no system framework headers, then SYSROOT must be set, or we won't build
17510       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
17511     fi
17512 
17513     # Perform a basic sanity test
17514     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
17515       if test -z "$SYSROOT"; then
17516         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
17517       else
17518         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
17519       fi
17520     fi
17521 
17522     # set SDKROOT too, Xcode tools will pick it up
17523     SDKROOT="$SYSROOT"
17524 
17525   fi
17526 
17527   # Prepend the extra path to the global path
17528 
17529   if test "x$EXTRA_PATH" != x; then
17530     if test "x$PATH" = x; then
17531       PATH="$EXTRA_PATH"
17532     else
17533       PATH="$EXTRA_PATH:$PATH"
17534     fi
17535   fi
17536 
17537 
17538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17539 $as_echo_n "checking for sysroot... " >&6; }
17540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
17541 $as_echo "$SYSROOT" >&6; }
17542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
17543 $as_echo_n "checking for toolchain path... " >&6; }
17544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
17545 $as_echo "$TOOLCHAIN_PATH" >&6; }
17546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
17547 $as_echo_n "checking for extra path... " >&6; }
17548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
17549 $as_echo "$EXTRA_PATH" >&6; }
17550 
17551 
17552 # To properly create a configuration name, we need to have the OpenJDK target
17553 # and options (variants and debug level) parsed.
17554 
17555 
17556 
17557 # Check whether --with-conf-name was given.
17558 if test "${with_conf_name+set}" = set; then :
17559   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
17560 fi
17561 
17562 
17563   # Test from where we are running configure, in or outside of src root.
17564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
17565 $as_echo_n "checking where to store configuration... " >&6; }
17566   if test "x$CURDIR" = "x$TOPDIR" || test "x$CURDIR" = "x$CUSTOM_ROOT" \
17567       || test "x$CURDIR" = "x$TOPDIR/make/autoconf" \
17568       || test "x$CURDIR" = "x$TOPDIR/make" ; then
17569     # We are running configure from the src root.
17570     # Create a default ./build/target-variant-debuglevel output root.
17571     if test "x${CONF_NAME}" = x; then
17572       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
17573 $as_echo "in default location" >&6; }
17574       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
17575     else
17576       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
17577 $as_echo "in build directory with custom name" >&6; }
17578     fi
17579 
17580     if test "x$CUSTOM_ROOT" != x; then
17581       OUTPUTDIR="${CUSTOM_ROOT}/build/${CONF_NAME}"
17582     else
17583       OUTPUTDIR="${TOPDIR}/build/${CONF_NAME}"
17584     fi
17585     $MKDIR -p "$OUTPUTDIR"
17586     if test ! -d "$OUTPUTDIR"; then
17587       as_fn_error $? "Could not create build directory $OUTPUTDIR" "$LINENO" 5
17588     fi
17589   else
17590     # We are running configure from outside of the src dir.
17591     # Then use the current directory as output dir!
17592     # If configuration is situated in normal build directory, just use the build
17593     # directory name as configuration name, otherwise use the complete path.
17594     if test "x${CONF_NAME}" = x; then
17595       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${TOPDIR}/build/!!"`
17596     fi
17597     OUTPUTDIR="$CURDIR"
17598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
17599 $as_echo "in current directory" >&6; }
17600 
17601     # WARNING: This might be a bad thing to do. You need to be sure you want to
17602     # have a configuration in this directory. Do some sanity checks!
17603 
17604     if test ! -e "$OUTPUTDIR/spec.gmk"; then
17605       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
17606       # other files
17607       files_present=`$LS $OUTPUTDIR`
17608       # Configure has already touched config.log and confdefs.h in the current dir when this check
17609       # is performed.
17610       filtered_files=`$ECHO "$files_present" \
17611           | $SED -e 's/config.log//g' \
17612               -e 's/configure.log//g' \
17613               -e 's/confdefs.h//g' \
17614               -e 's/ //g' \
17615           | $TR -d '\n'`
17616       if test "x$filtered_files" != x; then
17617         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
17618 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
17619         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
17620 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
17621         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
17622 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
17623         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
17624 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
17625         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
17626 $as_echo "$as_me: seriously mess up just about everything." >&6;}
17627         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $TOPDIR' and restart configure" >&5
17628 $as_echo "$as_me: Try 'cd $TOPDIR' and restart configure" >&6;}
17629         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
17630 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
17631         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
17632       fi
17633     fi
17634   fi
17635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
17636 $as_echo_n "checking what configuration name to use... " >&6; }
17637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
17638 $as_echo "$CONF_NAME" >&6; }
17639 
17640 
17641   # Only process if variable expands to non-empty
17642 
17643   if test "x$OUTPUTDIR" != x; then
17644     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17645 
17646   # Input might be given as Windows format, start by converting to
17647   # unix format.
17648   path="$OUTPUTDIR"
17649   new_path=`$CYGPATH -u "$path"`
17650 
17651   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17652   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17653   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17654   # "foo.exe" is OK but "foo" is an error.
17655   #
17656   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17657   # It is also a way to make sure we got the proper file name for the real test later on.
17658   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17659   if test "x$test_shortpath" = x; then
17660     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5
17661 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;}
17662     as_fn_error $? "Cannot locate the the path of OUTPUTDIR" "$LINENO" 5
17663   fi
17664 
17665   # Call helper function which possibly converts this using DOS-style short mode.
17666   # If so, the updated path is stored in $new_path.
17667 
17668   input_path="$new_path"
17669   # Check if we need to convert this using DOS-style short mode. If the path
17670   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17671   # take no chances and rewrite it.
17672   # Note: m4 eats our [], so we need to use [ and ] instead.
17673   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17674   if test "x$has_forbidden_chars" != x; then
17675     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17676     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17677     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17678     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17679       # Going to short mode and back again did indeed matter. Since short mode is
17680       # case insensitive, let's make it lowercase to improve readability.
17681       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17682       # Now convert it back to Unix-style (cygpath)
17683       input_path=`$CYGPATH -u "$shortmode_path"`
17684       new_path="$input_path"
17685     fi
17686   fi
17687 
17688   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17689   if test "x$test_cygdrive_prefix" = x; then
17690     # As a simple fix, exclude /usr/bin since it's not a real path.
17691     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17692       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17693       # a path prefixed by /cygdrive for fixpath to work.
17694       new_path="$CYGWIN_ROOT_PATH$input_path"
17695     fi
17696   fi
17697 
17698 
17699   if test "x$path" != "x$new_path"; then
17700     OUTPUTDIR="$new_path"
17701     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5
17702 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;}
17703   fi
17704 
17705     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17706 
17707   path="$OUTPUTDIR"
17708   has_colon=`$ECHO $path | $GREP ^.:`
17709   new_path="$path"
17710   if test "x$has_colon" = x; then
17711     # Not in mixed or Windows style, start by that.
17712     new_path=`cmd //c echo $path`
17713   fi
17714 
17715 
17716   input_path="$new_path"
17717   # Check if we need to convert this using DOS-style short mode. If the path
17718   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17719   # take no chances and rewrite it.
17720   # Note: m4 eats our [], so we need to use [ and ] instead.
17721   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17722   if test "x$has_forbidden_chars" != x; then
17723     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17724     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17725   fi
17726 
17727 
17728   windows_path="$new_path"
17729   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17730     unix_path=`$CYGPATH -u "$windows_path"`
17731     new_path="$unix_path"
17732   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17733     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17734     new_path="$unix_path"
17735   fi
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   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17744   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17745 
17746     else
17747       # We're on a unix platform. Hooray! :)
17748       path="$OUTPUTDIR"
17749       has_space=`$ECHO "$path" | $GREP " "`
17750       if test "x$has_space" != x; then
17751         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5
17752 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;}
17753         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17754       fi
17755 
17756       # Use eval to expand a potential ~
17757       eval path="$path"
17758       if test ! -f "$path" && test ! -d "$path"; then
17759         as_fn_error $? "The path of OUTPUTDIR, which resolves as \"$path\", is not found." "$LINENO" 5
17760       fi
17761 
17762       if test -d "$path"; then
17763         OUTPUTDIR="`cd "$path"; $THEPWDCMD -L`"
17764       else
17765         dir="`$DIRNAME "$path"`"
17766         base="`$BASENAME "$path"`"
17767         OUTPUTDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
17768       fi
17769     fi
17770   fi
17771 
17772 
17773   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUTDIR/configure-support"
17774   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
17775 
17776   SPEC="$OUTPUTDIR/spec.gmk"
17777 
17778 
17779 
17780 
17781 
17782   # The spec.gmk file contains all variables for the make system.
17783   ac_config_files="$ac_config_files $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
17784 
17785   # The bootcycle-spec.gmk file contains support for boot cycle builds.
17786   ac_config_files="$ac_config_files $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
17787 
17788   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
17789   ac_config_files="$ac_config_files $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
17790 
17791   # The compare.sh is used to compare the build output to other builds.
17792   ac_config_files="$ac_config_files $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in"
17793 
17794   # The generated Makefile knows where the spec.gmk is and where the source is.
17795   # You can run make from the OUTPUTDIR, or from the top-level Makefile
17796   # which will look for generated configurations
17797   ac_config_files="$ac_config_files $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in"
17798 
17799 
17800 
17801 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
17802 
17803   for ac_prog in apt-get yum brew port pkgutil pkgadd
17804 do
17805   # Extract the first word of "$ac_prog", so it can be a program name with args.
17806 set dummy $ac_prog; ac_word=$2
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17808 $as_echo_n "checking for $ac_word... " >&6; }
17809 if ${ac_cv_prog_PKGHANDLER+:} false; then :
17810   $as_echo_n "(cached) " >&6
17811 else
17812   if test -n "$PKGHANDLER"; then
17813   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
17814 else
17815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17816 for as_dir in $PATH
17817 do
17818   IFS=$as_save_IFS
17819   test -z "$as_dir" && as_dir=.
17820     for ac_exec_ext in '' $ac_executable_extensions; do
17821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17822     ac_cv_prog_PKGHANDLER="$ac_prog"
17823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17824     break 2
17825   fi
17826 done
17827   done
17828 IFS=$as_save_IFS
17829 
17830 fi
17831 fi
17832 PKGHANDLER=$ac_cv_prog_PKGHANDLER
17833 if test -n "$PKGHANDLER"; then
17834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
17835 $as_echo "$PKGHANDLER" >&6; }
17836 else
17837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17838 $as_echo "no" >&6; }
17839 fi
17840 
17841 
17842   test -n "$PKGHANDLER" && break
17843 done
17844 
17845 
17846 
17847 # Setup tools that requires more complex handling, or that is not needed by the configure script.
17848 
17849 
17850 
17851   # Publish this variable in the help.
17852 
17853 
17854   if [ -z "${MAKE+x}" ]; then
17855     # The variable is not set by user, try to locate tool using the code snippet
17856 
17857     # Try our hardest to locate a correct version of GNU make
17858     for ac_prog in gmake
17859 do
17860   # Extract the first word of "$ac_prog", so it can be a program name with args.
17861 set dummy $ac_prog; ac_word=$2
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17863 $as_echo_n "checking for $ac_word... " >&6; }
17864 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
17865   $as_echo_n "(cached) " >&6
17866 else
17867   case $CHECK_GMAKE in
17868   [\\/]* | ?:[\\/]*)
17869   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
17870   ;;
17871   *)
17872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17873 for as_dir in $PATH
17874 do
17875   IFS=$as_save_IFS
17876   test -z "$as_dir" && as_dir=.
17877     for ac_exec_ext in '' $ac_executable_extensions; do
17878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17879     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17881     break 2
17882   fi
17883 done
17884   done
17885 IFS=$as_save_IFS
17886 
17887   ;;
17888 esac
17889 fi
17890 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
17891 if test -n "$CHECK_GMAKE"; then
17892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
17893 $as_echo "$CHECK_GMAKE" >&6; }
17894 else
17895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17896 $as_echo "no" >&6; }
17897 fi
17898 
17899 
17900   test -n "$CHECK_GMAKE" && break
17901 done
17902 
17903 
17904   MAKE_CANDIDATE=""$CHECK_GMAKE""
17905   DESCRIPTION="gmake in PATH"
17906 
17907   # On Cygwin, we require a newer version of make than on other platforms
17908   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17909     MAKE_VERSION_EXPR="-e 4\."
17910     MAKE_REQUIRED_VERSION="4.0"
17911    else
17912     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17913     MAKE_REQUIRED_VERSION="3.81"
17914   fi
17915 
17916   if test "x$MAKE_CANDIDATE" != x; then
17917     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17918 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17919     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17920     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17921     if test "x$IS_GNU_MAKE" = x; then
17922       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17923 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17924     else
17925       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17926       if test "x$IS_MODERN_MAKE" = x; then
17927         { $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
17928 $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;}
17929       else
17930         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17931           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17932             MAKE_EXPECTED_ENV='cygwin'
17933           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17934             MAKE_EXPECTED_ENV='msys'
17935           else
17936             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17937           fi
17938           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17939           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17940         else
17941           # Not relevant for non-Windows
17942           IS_MAKE_CORRECT_ENV=true
17943         fi
17944         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17945           { $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
17946 $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;}
17947         else
17948           FOUND_MAKE=$MAKE_CANDIDATE
17949 
17950   # Only process if variable expands to non-empty
17951 
17952   if test "x$FOUND_MAKE" != x; then
17953     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17954 
17955   # First separate the path from the arguments. This will split at the first
17956   # space.
17957   complete="$FOUND_MAKE"
17958   path="${complete%% *}"
17959   tmp="$complete EOL"
17960   arguments="${tmp#* }"
17961 
17962   # Input might be given as Windows format, start by converting to
17963   # unix format.
17964   new_path=`$CYGPATH -u "$path"`
17965 
17966   # Now try to locate executable using which
17967   new_path=`$WHICH "$new_path" 2> /dev/null`
17968   # bat and cmd files are not always considered executable in cygwin causing which
17969   # to not find them
17970   if test "x$new_path" = x \
17971       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17972       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17973     new_path=`$CYGPATH -u "$path"`
17974   fi
17975   if test "x$new_path" = x; then
17976     # Oops. Which didn't find the executable.
17977     # The splitting of arguments from the executable at a space might have been incorrect,
17978     # since paths with space are more likely in Windows. Give it another try with the whole
17979     # argument.
17980     path="$complete"
17981     arguments="EOL"
17982     new_path=`$CYGPATH -u "$path"`
17983     new_path=`$WHICH "$new_path" 2> /dev/null`
17984     # bat and cmd files are not always considered executable in cygwin causing which
17985     # to not find them
17986     if test "x$new_path" = x \
17987         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17988         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17989       new_path=`$CYGPATH -u "$path"`
17990     fi
17991     if test "x$new_path" = x; then
17992       # It's still not found. Now this is an unrecoverable error.
17993       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17994 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17995       has_space=`$ECHO "$complete" | $GREP " "`
17996       if test "x$has_space" != x; then
17997         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17998 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17999       fi
18000       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18001     fi
18002   fi
18003 
18004   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18005   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18006   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18007   # "foo.exe" is OK but "foo" is an error.
18008   #
18009   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18010   # It is also a way to make sure we got the proper file name for the real test later on.
18011   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18012   if test "x$test_shortpath" = x; then
18013     # Short path failed, file does not exist as specified.
18014     # Try adding .exe or .cmd
18015     if test -f "${new_path}.exe"; then
18016       input_to_shortpath="${new_path}.exe"
18017     elif test -f "${new_path}.cmd"; then
18018       input_to_shortpath="${new_path}.cmd"
18019     else
18020       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18021 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18022       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18023 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18024       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18025     fi
18026   else
18027     input_to_shortpath="$new_path"
18028   fi
18029 
18030   # Call helper function which possibly converts this using DOS-style short mode.
18031   # If so, the updated path is stored in $new_path.
18032   new_path="$input_to_shortpath"
18033 
18034   input_path="$input_to_shortpath"
18035   # Check if we need to convert this using DOS-style short mode. If the path
18036   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18037   # take no chances and rewrite it.
18038   # Note: m4 eats our [], so we need to use [ and ] instead.
18039   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18040   if test "x$has_forbidden_chars" != x; then
18041     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18042     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18043     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18044     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18045       # Going to short mode and back again did indeed matter. Since short mode is
18046       # case insensitive, let's make it lowercase to improve readability.
18047       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18048       # Now convert it back to Unix-style (cygpath)
18049       input_path=`$CYGPATH -u "$shortmode_path"`
18050       new_path="$input_path"
18051     fi
18052   fi
18053 
18054   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18055   if test "x$test_cygdrive_prefix" = x; then
18056     # As a simple fix, exclude /usr/bin since it's not a real path.
18057     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18058       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18059       # a path prefixed by /cygdrive for fixpath to work.
18060       new_path="$CYGWIN_ROOT_PATH$input_path"
18061     fi
18062   fi
18063 
18064   # remove trailing .exe if any
18065   new_path="${new_path/%.exe/}"
18066 
18067     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18068 
18069   # First separate the path from the arguments. This will split at the first
18070   # space.
18071   complete="$FOUND_MAKE"
18072   path="${complete%% *}"
18073   tmp="$complete EOL"
18074   arguments="${tmp#* }"
18075 
18076   # Input might be given as Windows format, start by converting to
18077   # unix format.
18078   new_path="$path"
18079 
18080   windows_path="$new_path"
18081   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18082     unix_path=`$CYGPATH -u "$windows_path"`
18083     new_path="$unix_path"
18084   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18085     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18086     new_path="$unix_path"
18087   fi
18088 
18089 
18090   # Now try to locate executable using which
18091   new_path=`$WHICH "$new_path" 2> /dev/null`
18092 
18093   if test "x$new_path" = x; then
18094     # Oops. Which didn't find the executable.
18095     # The splitting of arguments from the executable at a space might have been incorrect,
18096     # since paths with space are more likely in Windows. Give it another try with the whole
18097     # argument.
18098     path="$complete"
18099     arguments="EOL"
18100     new_path="$path"
18101 
18102   windows_path="$new_path"
18103   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18104     unix_path=`$CYGPATH -u "$windows_path"`
18105     new_path="$unix_path"
18106   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18107     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18108     new_path="$unix_path"
18109   fi
18110 
18111 
18112     new_path=`$WHICH "$new_path" 2> /dev/null`
18113     # bat and cmd files are not always considered executable in MSYS causing which
18114     # to not find them
18115     if test "x$new_path" = x \
18116         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18117         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
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     fi
18130 
18131     if test "x$new_path" = x; then
18132       # It's still not found. Now this is an unrecoverable error.
18133       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18134 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18135       has_space=`$ECHO "$complete" | $GREP " "`
18136       if test "x$has_space" != x; then
18137         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18138 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18139       fi
18140       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18141     fi
18142   fi
18143 
18144   # Now new_path has a complete unix path to the binary
18145   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18146     # Keep paths in /bin as-is, but remove trailing .exe if any
18147     new_path="${new_path/%.exe/}"
18148     # Do not save /bin paths to all_fixpath_prefixes!
18149   else
18150     # Not in mixed or Windows style, start by that.
18151     new_path=`cmd //c echo $new_path`
18152 
18153   input_path="$new_path"
18154   # Check if we need to convert this using DOS-style short mode. If the path
18155   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18156   # take no chances and rewrite it.
18157   # Note: m4 eats our [], so we need to use [ and ] instead.
18158   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18159   if test "x$has_forbidden_chars" != x; then
18160     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18161     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18162   fi
18163 
18164     # Output is in $new_path
18165 
18166   windows_path="$new_path"
18167   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18168     unix_path=`$CYGPATH -u "$windows_path"`
18169     new_path="$unix_path"
18170   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18171     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18172     new_path="$unix_path"
18173   fi
18174 
18175     # remove trailing .exe if any
18176     new_path="${new_path/%.exe/}"
18177 
18178     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18179     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18180   fi
18181 
18182     else
18183       # We're on a unix platform. Hooray! :)
18184       # First separate the path from the arguments. This will split at the first
18185       # space.
18186       complete="$FOUND_MAKE"
18187       path="${complete%% *}"
18188       tmp="$complete EOL"
18189       arguments="${tmp#* }"
18190 
18191       # Cannot rely on the command "which" here since it doesn't always work.
18192       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18193       if test -z "$is_absolute_path"; then
18194         # Path to executable is not absolute. Find it.
18195         IFS_save="$IFS"
18196         IFS=:
18197         for p in $PATH; do
18198           if test -f "$p/$path" && test -x "$p/$path"; then
18199             new_path="$p/$path"
18200             break
18201           fi
18202         done
18203         IFS="$IFS_save"
18204       else
18205         # This is an absolute path, we can use it without further modifications.
18206         new_path="$path"
18207       fi
18208 
18209       if test "x$new_path" = x; then
18210         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18211 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18212         has_space=`$ECHO "$complete" | $GREP " "`
18213         if test "x$has_space" != x; then
18214           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18215 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18216         fi
18217         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18218       fi
18219     fi
18220 
18221     # Now join together the path and the arguments once again
18222     if test "x$arguments" != xEOL; then
18223       new_complete="$new_path ${arguments% *}"
18224     else
18225       new_complete="$new_path"
18226     fi
18227 
18228     if test "x$complete" != "x$new_complete"; then
18229       FOUND_MAKE="$new_complete"
18230       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18231 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18232     fi
18233   fi
18234 
18235         fi
18236       fi
18237     fi
18238   fi
18239 
18240 
18241     if test "x$FOUND_MAKE" = x; then
18242       for ac_prog in make
18243 do
18244   # Extract the first word of "$ac_prog", so it can be a program name with args.
18245 set dummy $ac_prog; ac_word=$2
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18247 $as_echo_n "checking for $ac_word... " >&6; }
18248 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18249   $as_echo_n "(cached) " >&6
18250 else
18251   case $CHECK_MAKE in
18252   [\\/]* | ?:[\\/]*)
18253   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18254   ;;
18255   *)
18256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18257 for as_dir in $PATH
18258 do
18259   IFS=$as_save_IFS
18260   test -z "$as_dir" && as_dir=.
18261     for ac_exec_ext in '' $ac_executable_extensions; do
18262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18263     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18265     break 2
18266   fi
18267 done
18268   done
18269 IFS=$as_save_IFS
18270 
18271   ;;
18272 esac
18273 fi
18274 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18275 if test -n "$CHECK_MAKE"; then
18276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18277 $as_echo "$CHECK_MAKE" >&6; }
18278 else
18279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18280 $as_echo "no" >&6; }
18281 fi
18282 
18283 
18284   test -n "$CHECK_MAKE" && break
18285 done
18286 
18287 
18288   MAKE_CANDIDATE=""$CHECK_MAKE""
18289   DESCRIPTION="make in PATH"
18290 
18291   # On Cygwin, we require a newer version of make than on other platforms
18292   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18293     MAKE_VERSION_EXPR="-e 4\."
18294     MAKE_REQUIRED_VERSION="4.0"
18295    else
18296     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18297     MAKE_REQUIRED_VERSION="3.81"
18298   fi
18299 
18300   if test "x$MAKE_CANDIDATE" != x; then
18301     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18302 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18303     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18304     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18305     if test "x$IS_GNU_MAKE" = x; then
18306       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18307 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18308     else
18309       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18310       if test "x$IS_MODERN_MAKE" = x; then
18311         { $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
18312 $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;}
18313       else
18314         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18315           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18316             MAKE_EXPECTED_ENV='cygwin'
18317           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18318             MAKE_EXPECTED_ENV='msys'
18319           else
18320             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18321           fi
18322           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18323           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18324         else
18325           # Not relevant for non-Windows
18326           IS_MAKE_CORRECT_ENV=true
18327         fi
18328         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18329           { $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
18330 $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;}
18331         else
18332           FOUND_MAKE=$MAKE_CANDIDATE
18333 
18334   # Only process if variable expands to non-empty
18335 
18336   if test "x$FOUND_MAKE" != x; then
18337     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18338 
18339   # First separate the path from the arguments. This will split at the first
18340   # space.
18341   complete="$FOUND_MAKE"
18342   path="${complete%% *}"
18343   tmp="$complete EOL"
18344   arguments="${tmp#* }"
18345 
18346   # Input might be given as Windows format, start by converting to
18347   # unix format.
18348   new_path=`$CYGPATH -u "$path"`
18349 
18350   # Now try to locate executable using which
18351   new_path=`$WHICH "$new_path" 2> /dev/null`
18352   # bat and cmd files are not always considered executable in cygwin causing which
18353   # to not find them
18354   if test "x$new_path" = x \
18355       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18356       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18357     new_path=`$CYGPATH -u "$path"`
18358   fi
18359   if test "x$new_path" = x; then
18360     # Oops. Which didn't find the executable.
18361     # The splitting of arguments from the executable at a space might have been incorrect,
18362     # since paths with space are more likely in Windows. Give it another try with the whole
18363     # argument.
18364     path="$complete"
18365     arguments="EOL"
18366     new_path=`$CYGPATH -u "$path"`
18367     new_path=`$WHICH "$new_path" 2> /dev/null`
18368     # bat and cmd files are not always considered executable in cygwin causing which
18369     # to not find them
18370     if test "x$new_path" = x \
18371         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18372         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18373       new_path=`$CYGPATH -u "$path"`
18374     fi
18375     if test "x$new_path" = x; then
18376       # It's still not found. Now this is an unrecoverable error.
18377       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18378 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18379       has_space=`$ECHO "$complete" | $GREP " "`
18380       if test "x$has_space" != x; then
18381         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18382 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18383       fi
18384       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18385     fi
18386   fi
18387 
18388   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18389   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18390   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18391   # "foo.exe" is OK but "foo" is an error.
18392   #
18393   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18394   # It is also a way to make sure we got the proper file name for the real test later on.
18395   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18396   if test "x$test_shortpath" = x; then
18397     # Short path failed, file does not exist as specified.
18398     # Try adding .exe or .cmd
18399     if test -f "${new_path}.exe"; then
18400       input_to_shortpath="${new_path}.exe"
18401     elif test -f "${new_path}.cmd"; then
18402       input_to_shortpath="${new_path}.cmd"
18403     else
18404       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18405 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18406       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18407 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18408       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18409     fi
18410   else
18411     input_to_shortpath="$new_path"
18412   fi
18413 
18414   # Call helper function which possibly converts this using DOS-style short mode.
18415   # If so, the updated path is stored in $new_path.
18416   new_path="$input_to_shortpath"
18417 
18418   input_path="$input_to_shortpath"
18419   # Check if we need to convert this using DOS-style short mode. If the path
18420   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18421   # take no chances and rewrite it.
18422   # Note: m4 eats our [], so we need to use [ and ] instead.
18423   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18424   if test "x$has_forbidden_chars" != x; then
18425     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18426     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18427     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18428     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18429       # Going to short mode and back again did indeed matter. Since short mode is
18430       # case insensitive, let's make it lowercase to improve readability.
18431       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18432       # Now convert it back to Unix-style (cygpath)
18433       input_path=`$CYGPATH -u "$shortmode_path"`
18434       new_path="$input_path"
18435     fi
18436   fi
18437 
18438   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18439   if test "x$test_cygdrive_prefix" = x; then
18440     # As a simple fix, exclude /usr/bin since it's not a real path.
18441     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18442       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18443       # a path prefixed by /cygdrive for fixpath to work.
18444       new_path="$CYGWIN_ROOT_PATH$input_path"
18445     fi
18446   fi
18447 
18448   # remove trailing .exe if any
18449   new_path="${new_path/%.exe/}"
18450 
18451     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18452 
18453   # First separate the path from the arguments. This will split at the first
18454   # space.
18455   complete="$FOUND_MAKE"
18456   path="${complete%% *}"
18457   tmp="$complete EOL"
18458   arguments="${tmp#* }"
18459 
18460   # Input might be given as Windows format, start by converting to
18461   # unix format.
18462   new_path="$path"
18463 
18464   windows_path="$new_path"
18465   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18466     unix_path=`$CYGPATH -u "$windows_path"`
18467     new_path="$unix_path"
18468   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18469     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18470     new_path="$unix_path"
18471   fi
18472 
18473 
18474   # Now try to locate executable using which
18475   new_path=`$WHICH "$new_path" 2> /dev/null`
18476 
18477   if test "x$new_path" = x; then
18478     # Oops. Which didn't find the executable.
18479     # The splitting of arguments from the executable at a space might have been incorrect,
18480     # since paths with space are more likely in Windows. Give it another try with the whole
18481     # argument.
18482     path="$complete"
18483     arguments="EOL"
18484     new_path="$path"
18485 
18486   windows_path="$new_path"
18487   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18488     unix_path=`$CYGPATH -u "$windows_path"`
18489     new_path="$unix_path"
18490   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18491     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18492     new_path="$unix_path"
18493   fi
18494 
18495 
18496     new_path=`$WHICH "$new_path" 2> /dev/null`
18497     # bat and cmd files are not always considered executable in MSYS causing which
18498     # to not find them
18499     if test "x$new_path" = x \
18500         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18501         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18502       new_path="$path"
18503 
18504   windows_path="$new_path"
18505   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18506     unix_path=`$CYGPATH -u "$windows_path"`
18507     new_path="$unix_path"
18508   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18509     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18510     new_path="$unix_path"
18511   fi
18512 
18513     fi
18514 
18515     if test "x$new_path" = x; then
18516       # It's still not found. Now this is an unrecoverable error.
18517       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18518 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18519       has_space=`$ECHO "$complete" | $GREP " "`
18520       if test "x$has_space" != x; then
18521         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18522 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18523       fi
18524       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18525     fi
18526   fi
18527 
18528   # Now new_path has a complete unix path to the binary
18529   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18530     # Keep paths in /bin as-is, but remove trailing .exe if any
18531     new_path="${new_path/%.exe/}"
18532     # Do not save /bin paths to all_fixpath_prefixes!
18533   else
18534     # Not in mixed or Windows style, start by that.
18535     new_path=`cmd //c echo $new_path`
18536 
18537   input_path="$new_path"
18538   # Check if we need to convert this using DOS-style short mode. If the path
18539   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18540   # take no chances and rewrite it.
18541   # Note: m4 eats our [], so we need to use [ and ] instead.
18542   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18543   if test "x$has_forbidden_chars" != x; then
18544     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18545     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18546   fi
18547 
18548     # Output is in $new_path
18549 
18550   windows_path="$new_path"
18551   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18552     unix_path=`$CYGPATH -u "$windows_path"`
18553     new_path="$unix_path"
18554   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18555     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18556     new_path="$unix_path"
18557   fi
18558 
18559     # remove trailing .exe if any
18560     new_path="${new_path/%.exe/}"
18561 
18562     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18563     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18564   fi
18565 
18566     else
18567       # We're on a unix platform. Hooray! :)
18568       # First separate the path from the arguments. This will split at the first
18569       # space.
18570       complete="$FOUND_MAKE"
18571       path="${complete%% *}"
18572       tmp="$complete EOL"
18573       arguments="${tmp#* }"
18574 
18575       # Cannot rely on the command "which" here since it doesn't always work.
18576       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18577       if test -z "$is_absolute_path"; then
18578         # Path to executable is not absolute. Find it.
18579         IFS_save="$IFS"
18580         IFS=:
18581         for p in $PATH; do
18582           if test -f "$p/$path" && test -x "$p/$path"; then
18583             new_path="$p/$path"
18584             break
18585           fi
18586         done
18587         IFS="$IFS_save"
18588       else
18589         # This is an absolute path, we can use it without further modifications.
18590         new_path="$path"
18591       fi
18592 
18593       if test "x$new_path" = x; then
18594         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18595 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18596         has_space=`$ECHO "$complete" | $GREP " "`
18597         if test "x$has_space" != x; then
18598           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18599 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18600         fi
18601         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18602       fi
18603     fi
18604 
18605     # Now join together the path and the arguments once again
18606     if test "x$arguments" != xEOL; then
18607       new_complete="$new_path ${arguments% *}"
18608     else
18609       new_complete="$new_path"
18610     fi
18611 
18612     if test "x$complete" != "x$new_complete"; then
18613       FOUND_MAKE="$new_complete"
18614       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18615 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18616     fi
18617   fi
18618 
18619         fi
18620       fi
18621     fi
18622   fi
18623 
18624     fi
18625 
18626     if test "x$FOUND_MAKE" = x; then
18627       if test "x$TOOLCHAIN_PATH" != x; then
18628         # We have a toolchain path, check that as well before giving up.
18629         OLD_PATH=$PATH
18630         PATH=$TOOLCHAIN_PATH:$PATH
18631         for ac_prog in gmake
18632 do
18633   # Extract the first word of "$ac_prog", so it can be a program name with args.
18634 set dummy $ac_prog; ac_word=$2
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18636 $as_echo_n "checking for $ac_word... " >&6; }
18637 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18638   $as_echo_n "(cached) " >&6
18639 else
18640   case $CHECK_TOOLSDIR_GMAKE in
18641   [\\/]* | ?:[\\/]*)
18642   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18643   ;;
18644   *)
18645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18646 for as_dir in $PATH
18647 do
18648   IFS=$as_save_IFS
18649   test -z "$as_dir" && as_dir=.
18650     for ac_exec_ext in '' $ac_executable_extensions; do
18651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18652     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18654     break 2
18655   fi
18656 done
18657   done
18658 IFS=$as_save_IFS
18659 
18660   ;;
18661 esac
18662 fi
18663 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18664 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18666 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18667 else
18668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18669 $as_echo "no" >&6; }
18670 fi
18671 
18672 
18673   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18674 done
18675 
18676 
18677   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18678   DESCRIPTION="gmake in tools-dir"
18679 
18680   # On Cygwin, we require a newer version of make than on other platforms
18681   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18682     MAKE_VERSION_EXPR="-e 4\."
18683     MAKE_REQUIRED_VERSION="4.0"
18684    else
18685     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18686     MAKE_REQUIRED_VERSION="3.81"
18687   fi
18688 
18689   if test "x$MAKE_CANDIDATE" != x; then
18690     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18691 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18692     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18693     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18694     if test "x$IS_GNU_MAKE" = x; then
18695       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18696 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18697     else
18698       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18699       if test "x$IS_MODERN_MAKE" = x; then
18700         { $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
18701 $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;}
18702       else
18703         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18704           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18705             MAKE_EXPECTED_ENV='cygwin'
18706           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18707             MAKE_EXPECTED_ENV='msys'
18708           else
18709             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18710           fi
18711           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18712           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18713         else
18714           # Not relevant for non-Windows
18715           IS_MAKE_CORRECT_ENV=true
18716         fi
18717         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18718           { $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
18719 $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;}
18720         else
18721           FOUND_MAKE=$MAKE_CANDIDATE
18722 
18723   # Only process if variable expands to non-empty
18724 
18725   if test "x$FOUND_MAKE" != x; then
18726     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18727 
18728   # First separate the path from the arguments. This will split at the first
18729   # space.
18730   complete="$FOUND_MAKE"
18731   path="${complete%% *}"
18732   tmp="$complete EOL"
18733   arguments="${tmp#* }"
18734 
18735   # Input might be given as Windows format, start by converting to
18736   # unix format.
18737   new_path=`$CYGPATH -u "$path"`
18738 
18739   # Now try to locate executable using which
18740   new_path=`$WHICH "$new_path" 2> /dev/null`
18741   # bat and cmd files are not always considered executable in cygwin causing which
18742   # to not find them
18743   if test "x$new_path" = x \
18744       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18745       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18746     new_path=`$CYGPATH -u "$path"`
18747   fi
18748   if test "x$new_path" = x; then
18749     # Oops. Which didn't find the executable.
18750     # The splitting of arguments from the executable at a space might have been incorrect,
18751     # since paths with space are more likely in Windows. Give it another try with the whole
18752     # argument.
18753     path="$complete"
18754     arguments="EOL"
18755     new_path=`$CYGPATH -u "$path"`
18756     new_path=`$WHICH "$new_path" 2> /dev/null`
18757     # bat and cmd files are not always considered executable in cygwin causing which
18758     # to not find them
18759     if test "x$new_path" = x \
18760         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18761         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18762       new_path=`$CYGPATH -u "$path"`
18763     fi
18764     if test "x$new_path" = x; then
18765       # It's still not found. Now this is an unrecoverable error.
18766       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18767 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18768       has_space=`$ECHO "$complete" | $GREP " "`
18769       if test "x$has_space" != x; then
18770         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18771 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18772       fi
18773       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18774     fi
18775   fi
18776 
18777   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18778   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18779   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18780   # "foo.exe" is OK but "foo" is an error.
18781   #
18782   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18783   # It is also a way to make sure we got the proper file name for the real test later on.
18784   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18785   if test "x$test_shortpath" = x; then
18786     # Short path failed, file does not exist as specified.
18787     # Try adding .exe or .cmd
18788     if test -f "${new_path}.exe"; then
18789       input_to_shortpath="${new_path}.exe"
18790     elif test -f "${new_path}.cmd"; then
18791       input_to_shortpath="${new_path}.cmd"
18792     else
18793       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18794 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18795       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18796 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18797       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18798     fi
18799   else
18800     input_to_shortpath="$new_path"
18801   fi
18802 
18803   # Call helper function which possibly converts this using DOS-style short mode.
18804   # If so, the updated path is stored in $new_path.
18805   new_path="$input_to_shortpath"
18806 
18807   input_path="$input_to_shortpath"
18808   # Check if we need to convert this using DOS-style short mode. If the path
18809   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18810   # take no chances and rewrite it.
18811   # Note: m4 eats our [], so we need to use [ and ] instead.
18812   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18813   if test "x$has_forbidden_chars" != x; then
18814     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18815     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18816     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18817     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18818       # Going to short mode and back again did indeed matter. Since short mode is
18819       # case insensitive, let's make it lowercase to improve readability.
18820       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18821       # Now convert it back to Unix-style (cygpath)
18822       input_path=`$CYGPATH -u "$shortmode_path"`
18823       new_path="$input_path"
18824     fi
18825   fi
18826 
18827   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18828   if test "x$test_cygdrive_prefix" = x; then
18829     # As a simple fix, exclude /usr/bin since it's not a real path.
18830     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18831       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18832       # a path prefixed by /cygdrive for fixpath to work.
18833       new_path="$CYGWIN_ROOT_PATH$input_path"
18834     fi
18835   fi
18836 
18837   # remove trailing .exe if any
18838   new_path="${new_path/%.exe/}"
18839 
18840     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18841 
18842   # First separate the path from the arguments. This will split at the first
18843   # space.
18844   complete="$FOUND_MAKE"
18845   path="${complete%% *}"
18846   tmp="$complete EOL"
18847   arguments="${tmp#* }"
18848 
18849   # Input might be given as Windows format, start by converting to
18850   # unix format.
18851   new_path="$path"
18852 
18853   windows_path="$new_path"
18854   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18855     unix_path=`$CYGPATH -u "$windows_path"`
18856     new_path="$unix_path"
18857   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18858     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18859     new_path="$unix_path"
18860   fi
18861 
18862 
18863   # Now try to locate executable using which
18864   new_path=`$WHICH "$new_path" 2> /dev/null`
18865 
18866   if test "x$new_path" = x; then
18867     # Oops. Which didn't find the executable.
18868     # The splitting of arguments from the executable at a space might have been incorrect,
18869     # since paths with space are more likely in Windows. Give it another try with the whole
18870     # argument.
18871     path="$complete"
18872     arguments="EOL"
18873     new_path="$path"
18874 
18875   windows_path="$new_path"
18876   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18877     unix_path=`$CYGPATH -u "$windows_path"`
18878     new_path="$unix_path"
18879   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18880     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18881     new_path="$unix_path"
18882   fi
18883 
18884 
18885     new_path=`$WHICH "$new_path" 2> /dev/null`
18886     # bat and cmd files are not always considered executable in MSYS causing which
18887     # to not find them
18888     if test "x$new_path" = x \
18889         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18890         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18891       new_path="$path"
18892 
18893   windows_path="$new_path"
18894   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18895     unix_path=`$CYGPATH -u "$windows_path"`
18896     new_path="$unix_path"
18897   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18898     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18899     new_path="$unix_path"
18900   fi
18901 
18902     fi
18903 
18904     if test "x$new_path" = x; then
18905       # It's still not found. Now this is an unrecoverable error.
18906       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18907 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18908       has_space=`$ECHO "$complete" | $GREP " "`
18909       if test "x$has_space" != x; then
18910         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18911 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18912       fi
18913       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18914     fi
18915   fi
18916 
18917   # Now new_path has a complete unix path to the binary
18918   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18919     # Keep paths in /bin as-is, but remove trailing .exe if any
18920     new_path="${new_path/%.exe/}"
18921     # Do not save /bin paths to all_fixpath_prefixes!
18922   else
18923     # Not in mixed or Windows style, start by that.
18924     new_path=`cmd //c echo $new_path`
18925 
18926   input_path="$new_path"
18927   # Check if we need to convert this using DOS-style short mode. If the path
18928   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18929   # take no chances and rewrite it.
18930   # Note: m4 eats our [], so we need to use [ and ] instead.
18931   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18932   if test "x$has_forbidden_chars" != x; then
18933     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18934     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18935   fi
18936 
18937     # Output is in $new_path
18938 
18939   windows_path="$new_path"
18940   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18941     unix_path=`$CYGPATH -u "$windows_path"`
18942     new_path="$unix_path"
18943   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18944     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18945     new_path="$unix_path"
18946   fi
18947 
18948     # remove trailing .exe if any
18949     new_path="${new_path/%.exe/}"
18950 
18951     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18952     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18953   fi
18954 
18955     else
18956       # We're on a unix platform. Hooray! :)
18957       # First separate the path from the arguments. This will split at the first
18958       # space.
18959       complete="$FOUND_MAKE"
18960       path="${complete%% *}"
18961       tmp="$complete EOL"
18962       arguments="${tmp#* }"
18963 
18964       # Cannot rely on the command "which" here since it doesn't always work.
18965       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18966       if test -z "$is_absolute_path"; then
18967         # Path to executable is not absolute. Find it.
18968         IFS_save="$IFS"
18969         IFS=:
18970         for p in $PATH; do
18971           if test -f "$p/$path" && test -x "$p/$path"; then
18972             new_path="$p/$path"
18973             break
18974           fi
18975         done
18976         IFS="$IFS_save"
18977       else
18978         # This is an absolute path, we can use it without further modifications.
18979         new_path="$path"
18980       fi
18981 
18982       if test "x$new_path" = x; then
18983         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18984 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18985         has_space=`$ECHO "$complete" | $GREP " "`
18986         if test "x$has_space" != x; then
18987           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18988 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18989         fi
18990         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18991       fi
18992     fi
18993 
18994     # Now join together the path and the arguments once again
18995     if test "x$arguments" != xEOL; then
18996       new_complete="$new_path ${arguments% *}"
18997     else
18998       new_complete="$new_path"
18999     fi
19000 
19001     if test "x$complete" != "x$new_complete"; then
19002       FOUND_MAKE="$new_complete"
19003       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19004 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19005     fi
19006   fi
19007 
19008         fi
19009       fi
19010     fi
19011   fi
19012 
19013         if test "x$FOUND_MAKE" = x; then
19014           for ac_prog in make
19015 do
19016   # Extract the first word of "$ac_prog", so it can be a program name with args.
19017 set dummy $ac_prog; ac_word=$2
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19019 $as_echo_n "checking for $ac_word... " >&6; }
19020 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19021   $as_echo_n "(cached) " >&6
19022 else
19023   case $CHECK_TOOLSDIR_MAKE in
19024   [\\/]* | ?:[\\/]*)
19025   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19026   ;;
19027   *)
19028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19029 for as_dir in $PATH
19030 do
19031   IFS=$as_save_IFS
19032   test -z "$as_dir" && as_dir=.
19033     for ac_exec_ext in '' $ac_executable_extensions; do
19034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19035     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19037     break 2
19038   fi
19039 done
19040   done
19041 IFS=$as_save_IFS
19042 
19043   ;;
19044 esac
19045 fi
19046 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19047 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19049 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19050 else
19051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19052 $as_echo "no" >&6; }
19053 fi
19054 
19055 
19056   test -n "$CHECK_TOOLSDIR_MAKE" && break
19057 done
19058 
19059 
19060   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19061   DESCRIPTION="make in tools-dir"
19062 
19063   # On Cygwin, we require a newer version of make than on other platforms
19064   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19065     MAKE_VERSION_EXPR="-e 4\."
19066     MAKE_REQUIRED_VERSION="4.0"
19067    else
19068     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19069     MAKE_REQUIRED_VERSION="3.81"
19070   fi
19071 
19072   if test "x$MAKE_CANDIDATE" != x; then
19073     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19074 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19075     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19076     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19077     if test "x$IS_GNU_MAKE" = x; then
19078       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19079 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19080     else
19081       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19082       if test "x$IS_MODERN_MAKE" = x; then
19083         { $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
19084 $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;}
19085       else
19086         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19087           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19088             MAKE_EXPECTED_ENV='cygwin'
19089           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19090             MAKE_EXPECTED_ENV='msys'
19091           else
19092             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19093           fi
19094           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19095           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19096         else
19097           # Not relevant for non-Windows
19098           IS_MAKE_CORRECT_ENV=true
19099         fi
19100         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19101           { $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
19102 $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;}
19103         else
19104           FOUND_MAKE=$MAKE_CANDIDATE
19105 
19106   # Only process if variable expands to non-empty
19107 
19108   if test "x$FOUND_MAKE" != x; then
19109     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19110 
19111   # First separate the path from the arguments. This will split at the first
19112   # space.
19113   complete="$FOUND_MAKE"
19114   path="${complete%% *}"
19115   tmp="$complete EOL"
19116   arguments="${tmp#* }"
19117 
19118   # Input might be given as Windows format, start by converting to
19119   # unix format.
19120   new_path=`$CYGPATH -u "$path"`
19121 
19122   # Now try to locate executable using which
19123   new_path=`$WHICH "$new_path" 2> /dev/null`
19124   # bat and cmd files are not always considered executable in cygwin causing which
19125   # to not find them
19126   if test "x$new_path" = x \
19127       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19128       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19129     new_path=`$CYGPATH -u "$path"`
19130   fi
19131   if test "x$new_path" = x; then
19132     # Oops. Which didn't find the executable.
19133     # The splitting of arguments from the executable at a space might have been incorrect,
19134     # since paths with space are more likely in Windows. Give it another try with the whole
19135     # argument.
19136     path="$complete"
19137     arguments="EOL"
19138     new_path=`$CYGPATH -u "$path"`
19139     new_path=`$WHICH "$new_path" 2> /dev/null`
19140     # bat and cmd files are not always considered executable in cygwin causing which
19141     # to not find them
19142     if test "x$new_path" = x \
19143         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19144         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19145       new_path=`$CYGPATH -u "$path"`
19146     fi
19147     if test "x$new_path" = x; then
19148       # It's still not found. Now this is an unrecoverable error.
19149       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19150 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19151       has_space=`$ECHO "$complete" | $GREP " "`
19152       if test "x$has_space" != x; then
19153         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19154 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19155       fi
19156       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19157     fi
19158   fi
19159 
19160   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19161   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19162   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19163   # "foo.exe" is OK but "foo" is an error.
19164   #
19165   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19166   # It is also a way to make sure we got the proper file name for the real test later on.
19167   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19168   if test "x$test_shortpath" = x; then
19169     # Short path failed, file does not exist as specified.
19170     # Try adding .exe or .cmd
19171     if test -f "${new_path}.exe"; then
19172       input_to_shortpath="${new_path}.exe"
19173     elif test -f "${new_path}.cmd"; then
19174       input_to_shortpath="${new_path}.cmd"
19175     else
19176       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19177 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19178       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19179 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19180       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19181     fi
19182   else
19183     input_to_shortpath="$new_path"
19184   fi
19185 
19186   # Call helper function which possibly converts this using DOS-style short mode.
19187   # If so, the updated path is stored in $new_path.
19188   new_path="$input_to_shortpath"
19189 
19190   input_path="$input_to_shortpath"
19191   # Check if we need to convert this using DOS-style short mode. If the path
19192   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19193   # take no chances and rewrite it.
19194   # Note: m4 eats our [], so we need to use [ and ] instead.
19195   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19196   if test "x$has_forbidden_chars" != x; then
19197     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19198     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19199     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19200     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19201       # Going to short mode and back again did indeed matter. Since short mode is
19202       # case insensitive, let's make it lowercase to improve readability.
19203       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19204       # Now convert it back to Unix-style (cygpath)
19205       input_path=`$CYGPATH -u "$shortmode_path"`
19206       new_path="$input_path"
19207     fi
19208   fi
19209 
19210   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19211   if test "x$test_cygdrive_prefix" = x; then
19212     # As a simple fix, exclude /usr/bin since it's not a real path.
19213     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19214       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19215       # a path prefixed by /cygdrive for fixpath to work.
19216       new_path="$CYGWIN_ROOT_PATH$input_path"
19217     fi
19218   fi
19219 
19220   # remove trailing .exe if any
19221   new_path="${new_path/%.exe/}"
19222 
19223     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19224 
19225   # First separate the path from the arguments. This will split at the first
19226   # space.
19227   complete="$FOUND_MAKE"
19228   path="${complete%% *}"
19229   tmp="$complete EOL"
19230   arguments="${tmp#* }"
19231 
19232   # Input might be given as Windows format, start by converting to
19233   # unix format.
19234   new_path="$path"
19235 
19236   windows_path="$new_path"
19237   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19238     unix_path=`$CYGPATH -u "$windows_path"`
19239     new_path="$unix_path"
19240   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19241     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19242     new_path="$unix_path"
19243   fi
19244 
19245 
19246   # Now try to locate executable using which
19247   new_path=`$WHICH "$new_path" 2> /dev/null`
19248 
19249   if test "x$new_path" = x; then
19250     # Oops. Which didn't find the executable.
19251     # The splitting of arguments from the executable at a space might have been incorrect,
19252     # since paths with space are more likely in Windows. Give it another try with the whole
19253     # argument.
19254     path="$complete"
19255     arguments="EOL"
19256     new_path="$path"
19257 
19258   windows_path="$new_path"
19259   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19260     unix_path=`$CYGPATH -u "$windows_path"`
19261     new_path="$unix_path"
19262   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19263     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19264     new_path="$unix_path"
19265   fi
19266 
19267 
19268     new_path=`$WHICH "$new_path" 2> /dev/null`
19269     # bat and cmd files are not always considered executable in MSYS causing which
19270     # to not find them
19271     if test "x$new_path" = x \
19272         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19273         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19274       new_path="$path"
19275 
19276   windows_path="$new_path"
19277   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19278     unix_path=`$CYGPATH -u "$windows_path"`
19279     new_path="$unix_path"
19280   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19281     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19282     new_path="$unix_path"
19283   fi
19284 
19285     fi
19286 
19287     if test "x$new_path" = x; then
19288       # It's still not found. Now this is an unrecoverable error.
19289       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19290 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19291       has_space=`$ECHO "$complete" | $GREP " "`
19292       if test "x$has_space" != x; then
19293         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19294 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19295       fi
19296       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19297     fi
19298   fi
19299 
19300   # Now new_path has a complete unix path to the binary
19301   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19302     # Keep paths in /bin as-is, but remove trailing .exe if any
19303     new_path="${new_path/%.exe/}"
19304     # Do not save /bin paths to all_fixpath_prefixes!
19305   else
19306     # Not in mixed or Windows style, start by that.
19307     new_path=`cmd //c echo $new_path`
19308 
19309   input_path="$new_path"
19310   # Check if we need to convert this using DOS-style short mode. If the path
19311   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19312   # take no chances and rewrite it.
19313   # Note: m4 eats our [], so we need to use [ and ] instead.
19314   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19315   if test "x$has_forbidden_chars" != x; then
19316     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19317     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19318   fi
19319 
19320     # Output is in $new_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     # remove trailing .exe if any
19332     new_path="${new_path/%.exe/}"
19333 
19334     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19335     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19336   fi
19337 
19338     else
19339       # We're on a unix platform. Hooray! :)
19340       # First separate the path from the arguments. This will split at the first
19341       # space.
19342       complete="$FOUND_MAKE"
19343       path="${complete%% *}"
19344       tmp="$complete EOL"
19345       arguments="${tmp#* }"
19346 
19347       # Cannot rely on the command "which" here since it doesn't always work.
19348       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19349       if test -z "$is_absolute_path"; then
19350         # Path to executable is not absolute. Find it.
19351         IFS_save="$IFS"
19352         IFS=:
19353         for p in $PATH; do
19354           if test -f "$p/$path" && test -x "$p/$path"; then
19355             new_path="$p/$path"
19356             break
19357           fi
19358         done
19359         IFS="$IFS_save"
19360       else
19361         # This is an absolute path, we can use it without further modifications.
19362         new_path="$path"
19363       fi
19364 
19365       if test "x$new_path" = x; then
19366         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19367 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19368         has_space=`$ECHO "$complete" | $GREP " "`
19369         if test "x$has_space" != x; then
19370           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19371 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19372         fi
19373         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19374       fi
19375     fi
19376 
19377     # Now join together the path and the arguments once again
19378     if test "x$arguments" != xEOL; then
19379       new_complete="$new_path ${arguments% *}"
19380     else
19381       new_complete="$new_path"
19382     fi
19383 
19384     if test "x$complete" != "x$new_complete"; then
19385       FOUND_MAKE="$new_complete"
19386       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19387 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19388     fi
19389   fi
19390 
19391         fi
19392       fi
19393     fi
19394   fi
19395 
19396         fi
19397         PATH=$OLD_PATH
19398       fi
19399     fi
19400 
19401     if test "x$FOUND_MAKE" = x; then
19402       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
19403     fi
19404 
19405   else
19406     # The variable is set, but is it from the command line or the environment?
19407 
19408     # Try to remove the string !MAKE! from our list.
19409     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
19410     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19411       # If it failed, the variable was not from the command line. Ignore it,
19412       # but warn the user (except for BASH, which is always set by the calling BASH).
19413       if test "xMAKE" != xBASH; then
19414         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
19415 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
19416       fi
19417       # Try to locate tool using the code snippet
19418 
19419     # Try our hardest to locate a correct version of GNU make
19420     for ac_prog in gmake
19421 do
19422   # Extract the first word of "$ac_prog", so it can be a program name with args.
19423 set dummy $ac_prog; ac_word=$2
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19425 $as_echo_n "checking for $ac_word... " >&6; }
19426 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
19427   $as_echo_n "(cached) " >&6
19428 else
19429   case $CHECK_GMAKE in
19430   [\\/]* | ?:[\\/]*)
19431   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
19432   ;;
19433   *)
19434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19435 for as_dir in $PATH
19436 do
19437   IFS=$as_save_IFS
19438   test -z "$as_dir" && as_dir=.
19439     for ac_exec_ext in '' $ac_executable_extensions; do
19440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19441     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19443     break 2
19444   fi
19445 done
19446   done
19447 IFS=$as_save_IFS
19448 
19449   ;;
19450 esac
19451 fi
19452 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
19453 if test -n "$CHECK_GMAKE"; then
19454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
19455 $as_echo "$CHECK_GMAKE" >&6; }
19456 else
19457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19458 $as_echo "no" >&6; }
19459 fi
19460 
19461 
19462   test -n "$CHECK_GMAKE" && break
19463 done
19464 
19465 
19466   MAKE_CANDIDATE=""$CHECK_GMAKE""
19467   DESCRIPTION="gmake in PATH"
19468 
19469   # On Cygwin, we require a newer version of make than on other platforms
19470   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19471     MAKE_VERSION_EXPR="-e 4\."
19472     MAKE_REQUIRED_VERSION="4.0"
19473    else
19474     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19475     MAKE_REQUIRED_VERSION="3.81"
19476   fi
19477 
19478   if test "x$MAKE_CANDIDATE" != x; then
19479     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19480 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19481     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19482     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19483     if test "x$IS_GNU_MAKE" = x; then
19484       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19485 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19486     else
19487       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19488       if test "x$IS_MODERN_MAKE" = x; then
19489         { $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
19490 $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;}
19491       else
19492         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19493           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19494             MAKE_EXPECTED_ENV='cygwin'
19495           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19496             MAKE_EXPECTED_ENV='msys'
19497           else
19498             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19499           fi
19500           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19501           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19502         else
19503           # Not relevant for non-Windows
19504           IS_MAKE_CORRECT_ENV=true
19505         fi
19506         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19507           { $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
19508 $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;}
19509         else
19510           FOUND_MAKE=$MAKE_CANDIDATE
19511 
19512   # Only process if variable expands to non-empty
19513 
19514   if test "x$FOUND_MAKE" != x; then
19515     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19516 
19517   # First separate the path from the arguments. This will split at the first
19518   # space.
19519   complete="$FOUND_MAKE"
19520   path="${complete%% *}"
19521   tmp="$complete EOL"
19522   arguments="${tmp#* }"
19523 
19524   # Input might be given as Windows format, start by converting to
19525   # unix format.
19526   new_path=`$CYGPATH -u "$path"`
19527 
19528   # Now try to locate executable using which
19529   new_path=`$WHICH "$new_path" 2> /dev/null`
19530   # bat and cmd files are not always considered executable in cygwin causing which
19531   # to not find them
19532   if test "x$new_path" = x \
19533       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19534       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19535     new_path=`$CYGPATH -u "$path"`
19536   fi
19537   if test "x$new_path" = x; then
19538     # Oops. Which didn't find the executable.
19539     # The splitting of arguments from the executable at a space might have been incorrect,
19540     # since paths with space are more likely in Windows. Give it another try with the whole
19541     # argument.
19542     path="$complete"
19543     arguments="EOL"
19544     new_path=`$CYGPATH -u "$path"`
19545     new_path=`$WHICH "$new_path" 2> /dev/null`
19546     # bat and cmd files are not always considered executable in cygwin causing which
19547     # to not find them
19548     if test "x$new_path" = x \
19549         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19550         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19551       new_path=`$CYGPATH -u "$path"`
19552     fi
19553     if test "x$new_path" = x; then
19554       # It's still not found. Now this is an unrecoverable error.
19555       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19556 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19557       has_space=`$ECHO "$complete" | $GREP " "`
19558       if test "x$has_space" != x; then
19559         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19560 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19561       fi
19562       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19563     fi
19564   fi
19565 
19566   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19567   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19568   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19569   # "foo.exe" is OK but "foo" is an error.
19570   #
19571   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19572   # It is also a way to make sure we got the proper file name for the real test later on.
19573   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19574   if test "x$test_shortpath" = x; then
19575     # Short path failed, file does not exist as specified.
19576     # Try adding .exe or .cmd
19577     if test -f "${new_path}.exe"; then
19578       input_to_shortpath="${new_path}.exe"
19579     elif test -f "${new_path}.cmd"; then
19580       input_to_shortpath="${new_path}.cmd"
19581     else
19582       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19583 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19584       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19585 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19586       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19587     fi
19588   else
19589     input_to_shortpath="$new_path"
19590   fi
19591 
19592   # Call helper function which possibly converts this using DOS-style short mode.
19593   # If so, the updated path is stored in $new_path.
19594   new_path="$input_to_shortpath"
19595 
19596   input_path="$input_to_shortpath"
19597   # Check if we need to convert this using DOS-style short mode. If the path
19598   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19599   # take no chances and rewrite it.
19600   # Note: m4 eats our [], so we need to use [ and ] instead.
19601   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19602   if test "x$has_forbidden_chars" != x; then
19603     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19604     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19605     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19606     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19607       # Going to short mode and back again did indeed matter. Since short mode is
19608       # case insensitive, let's make it lowercase to improve readability.
19609       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19610       # Now convert it back to Unix-style (cygpath)
19611       input_path=`$CYGPATH -u "$shortmode_path"`
19612       new_path="$input_path"
19613     fi
19614   fi
19615 
19616   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19617   if test "x$test_cygdrive_prefix" = x; then
19618     # As a simple fix, exclude /usr/bin since it's not a real path.
19619     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19620       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19621       # a path prefixed by /cygdrive for fixpath to work.
19622       new_path="$CYGWIN_ROOT_PATH$input_path"
19623     fi
19624   fi
19625 
19626   # remove trailing .exe if any
19627   new_path="${new_path/%.exe/}"
19628 
19629     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19630 
19631   # First separate the path from the arguments. This will split at the first
19632   # space.
19633   complete="$FOUND_MAKE"
19634   path="${complete%% *}"
19635   tmp="$complete EOL"
19636   arguments="${tmp#* }"
19637 
19638   # Input might be given as Windows format, start by converting to
19639   # unix format.
19640   new_path="$path"
19641 
19642   windows_path="$new_path"
19643   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19644     unix_path=`$CYGPATH -u "$windows_path"`
19645     new_path="$unix_path"
19646   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19647     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19648     new_path="$unix_path"
19649   fi
19650 
19651 
19652   # Now try to locate executable using which
19653   new_path=`$WHICH "$new_path" 2> /dev/null`
19654 
19655   if test "x$new_path" = x; then
19656     # Oops. Which didn't find the executable.
19657     # The splitting of arguments from the executable at a space might have been incorrect,
19658     # since paths with space are more likely in Windows. Give it another try with the whole
19659     # argument.
19660     path="$complete"
19661     arguments="EOL"
19662     new_path="$path"
19663 
19664   windows_path="$new_path"
19665   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19666     unix_path=`$CYGPATH -u "$windows_path"`
19667     new_path="$unix_path"
19668   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19669     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19670     new_path="$unix_path"
19671   fi
19672 
19673 
19674     new_path=`$WHICH "$new_path" 2> /dev/null`
19675     # bat and cmd files are not always considered executable in MSYS causing which
19676     # to not find them
19677     if test "x$new_path" = x \
19678         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19679         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19680       new_path="$path"
19681 
19682   windows_path="$new_path"
19683   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19684     unix_path=`$CYGPATH -u "$windows_path"`
19685     new_path="$unix_path"
19686   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19687     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19688     new_path="$unix_path"
19689   fi
19690 
19691     fi
19692 
19693     if test "x$new_path" = x; then
19694       # It's still not found. Now this is an unrecoverable error.
19695       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19696 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19697       has_space=`$ECHO "$complete" | $GREP " "`
19698       if test "x$has_space" != x; then
19699         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19700 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19701       fi
19702       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19703     fi
19704   fi
19705 
19706   # Now new_path has a complete unix path to the binary
19707   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19708     # Keep paths in /bin as-is, but remove trailing .exe if any
19709     new_path="${new_path/%.exe/}"
19710     # Do not save /bin paths to all_fixpath_prefixes!
19711   else
19712     # Not in mixed or Windows style, start by that.
19713     new_path=`cmd //c echo $new_path`
19714 
19715   input_path="$new_path"
19716   # Check if we need to convert this using DOS-style short mode. If the path
19717   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19718   # take no chances and rewrite it.
19719   # Note: m4 eats our [], so we need to use [ and ] instead.
19720   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19721   if test "x$has_forbidden_chars" != x; then
19722     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19723     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19724   fi
19725 
19726     # Output is in $new_path
19727 
19728   windows_path="$new_path"
19729   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19730     unix_path=`$CYGPATH -u "$windows_path"`
19731     new_path="$unix_path"
19732   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19733     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19734     new_path="$unix_path"
19735   fi
19736 
19737     # remove trailing .exe if any
19738     new_path="${new_path/%.exe/}"
19739 
19740     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19741     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19742   fi
19743 
19744     else
19745       # We're on a unix platform. Hooray! :)
19746       # First separate the path from the arguments. This will split at the first
19747       # space.
19748       complete="$FOUND_MAKE"
19749       path="${complete%% *}"
19750       tmp="$complete EOL"
19751       arguments="${tmp#* }"
19752 
19753       # Cannot rely on the command "which" here since it doesn't always work.
19754       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19755       if test -z "$is_absolute_path"; then
19756         # Path to executable is not absolute. Find it.
19757         IFS_save="$IFS"
19758         IFS=:
19759         for p in $PATH; do
19760           if test -f "$p/$path" && test -x "$p/$path"; then
19761             new_path="$p/$path"
19762             break
19763           fi
19764         done
19765         IFS="$IFS_save"
19766       else
19767         # This is an absolute path, we can use it without further modifications.
19768         new_path="$path"
19769       fi
19770 
19771       if test "x$new_path" = x; then
19772         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19773 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19774         has_space=`$ECHO "$complete" | $GREP " "`
19775         if test "x$has_space" != x; then
19776           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19777 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19778         fi
19779         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19780       fi
19781     fi
19782 
19783     # Now join together the path and the arguments once again
19784     if test "x$arguments" != xEOL; then
19785       new_complete="$new_path ${arguments% *}"
19786     else
19787       new_complete="$new_path"
19788     fi
19789 
19790     if test "x$complete" != "x$new_complete"; then
19791       FOUND_MAKE="$new_complete"
19792       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19793 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19794     fi
19795   fi
19796 
19797         fi
19798       fi
19799     fi
19800   fi
19801 
19802 
19803     if test "x$FOUND_MAKE" = x; then
19804       for ac_prog in make
19805 do
19806   # Extract the first word of "$ac_prog", so it can be a program name with args.
19807 set dummy $ac_prog; ac_word=$2
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19809 $as_echo_n "checking for $ac_word... " >&6; }
19810 if ${ac_cv_path_CHECK_MAKE+:} false; then :
19811   $as_echo_n "(cached) " >&6
19812 else
19813   case $CHECK_MAKE in
19814   [\\/]* | ?:[\\/]*)
19815   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
19816   ;;
19817   *)
19818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19819 for as_dir in $PATH
19820 do
19821   IFS=$as_save_IFS
19822   test -z "$as_dir" && as_dir=.
19823     for ac_exec_ext in '' $ac_executable_extensions; do
19824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19825     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
19826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19827     break 2
19828   fi
19829 done
19830   done
19831 IFS=$as_save_IFS
19832 
19833   ;;
19834 esac
19835 fi
19836 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
19837 if test -n "$CHECK_MAKE"; then
19838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
19839 $as_echo "$CHECK_MAKE" >&6; }
19840 else
19841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19842 $as_echo "no" >&6; }
19843 fi
19844 
19845 
19846   test -n "$CHECK_MAKE" && break
19847 done
19848 
19849 
19850   MAKE_CANDIDATE=""$CHECK_MAKE""
19851   DESCRIPTION="make in PATH"
19852 
19853   # On Cygwin, we require a newer version of make than on other platforms
19854   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19855     MAKE_VERSION_EXPR="-e 4\."
19856     MAKE_REQUIRED_VERSION="4.0"
19857    else
19858     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19859     MAKE_REQUIRED_VERSION="3.81"
19860   fi
19861 
19862   if test "x$MAKE_CANDIDATE" != x; then
19863     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19864 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19865     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19866     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19867     if test "x$IS_GNU_MAKE" = x; then
19868       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19869 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19870     else
19871       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19872       if test "x$IS_MODERN_MAKE" = x; then
19873         { $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
19874 $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;}
19875       else
19876         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19877           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19878             MAKE_EXPECTED_ENV='cygwin'
19879           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19880             MAKE_EXPECTED_ENV='msys'
19881           else
19882             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19883           fi
19884           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19885           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19886         else
19887           # Not relevant for non-Windows
19888           IS_MAKE_CORRECT_ENV=true
19889         fi
19890         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19891           { $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
19892 $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;}
19893         else
19894           FOUND_MAKE=$MAKE_CANDIDATE
19895 
19896   # Only process if variable expands to non-empty
19897 
19898   if test "x$FOUND_MAKE" != x; then
19899     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19900 
19901   # First separate the path from the arguments. This will split at the first
19902   # space.
19903   complete="$FOUND_MAKE"
19904   path="${complete%% *}"
19905   tmp="$complete EOL"
19906   arguments="${tmp#* }"
19907 
19908   # Input might be given as Windows format, start by converting to
19909   # unix format.
19910   new_path=`$CYGPATH -u "$path"`
19911 
19912   # Now try to locate executable using which
19913   new_path=`$WHICH "$new_path" 2> /dev/null`
19914   # bat and cmd files are not always considered executable in cygwin causing which
19915   # to not find them
19916   if test "x$new_path" = x \
19917       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19918       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19919     new_path=`$CYGPATH -u "$path"`
19920   fi
19921   if test "x$new_path" = x; then
19922     # Oops. Which didn't find the executable.
19923     # The splitting of arguments from the executable at a space might have been incorrect,
19924     # since paths with space are more likely in Windows. Give it another try with the whole
19925     # argument.
19926     path="$complete"
19927     arguments="EOL"
19928     new_path=`$CYGPATH -u "$path"`
19929     new_path=`$WHICH "$new_path" 2> /dev/null`
19930     # bat and cmd files are not always considered executable in cygwin causing which
19931     # to not find them
19932     if test "x$new_path" = x \
19933         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19934         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19935       new_path=`$CYGPATH -u "$path"`
19936     fi
19937     if test "x$new_path" = x; then
19938       # It's still not found. Now this is an unrecoverable error.
19939       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19940 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19941       has_space=`$ECHO "$complete" | $GREP " "`
19942       if test "x$has_space" != x; then
19943         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19944 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19945       fi
19946       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19947     fi
19948   fi
19949 
19950   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19951   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19952   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19953   # "foo.exe" is OK but "foo" is an error.
19954   #
19955   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19956   # It is also a way to make sure we got the proper file name for the real test later on.
19957   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19958   if test "x$test_shortpath" = x; then
19959     # Short path failed, file does not exist as specified.
19960     # Try adding .exe or .cmd
19961     if test -f "${new_path}.exe"; then
19962       input_to_shortpath="${new_path}.exe"
19963     elif test -f "${new_path}.cmd"; then
19964       input_to_shortpath="${new_path}.cmd"
19965     else
19966       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19967 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19968       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19969 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19970       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19971     fi
19972   else
19973     input_to_shortpath="$new_path"
19974   fi
19975 
19976   # Call helper function which possibly converts this using DOS-style short mode.
19977   # If so, the updated path is stored in $new_path.
19978   new_path="$input_to_shortpath"
19979 
19980   input_path="$input_to_shortpath"
19981   # Check if we need to convert this using DOS-style short mode. If the path
19982   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19983   # take no chances and rewrite it.
19984   # Note: m4 eats our [], so we need to use [ and ] instead.
19985   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19986   if test "x$has_forbidden_chars" != x; then
19987     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19988     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19989     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19990     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19991       # Going to short mode and back again did indeed matter. Since short mode is
19992       # case insensitive, let's make it lowercase to improve readability.
19993       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19994       # Now convert it back to Unix-style (cygpath)
19995       input_path=`$CYGPATH -u "$shortmode_path"`
19996       new_path="$input_path"
19997     fi
19998   fi
19999 
20000   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20001   if test "x$test_cygdrive_prefix" = x; then
20002     # As a simple fix, exclude /usr/bin since it's not a real path.
20003     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20004       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20005       # a path prefixed by /cygdrive for fixpath to work.
20006       new_path="$CYGWIN_ROOT_PATH$input_path"
20007     fi
20008   fi
20009 
20010   # remove trailing .exe if any
20011   new_path="${new_path/%.exe/}"
20012 
20013     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20014 
20015   # First separate the path from the arguments. This will split at the first
20016   # space.
20017   complete="$FOUND_MAKE"
20018   path="${complete%% *}"
20019   tmp="$complete EOL"
20020   arguments="${tmp#* }"
20021 
20022   # Input might be given as Windows format, start by converting to
20023   # unix format.
20024   new_path="$path"
20025 
20026   windows_path="$new_path"
20027   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20028     unix_path=`$CYGPATH -u "$windows_path"`
20029     new_path="$unix_path"
20030   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20031     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20032     new_path="$unix_path"
20033   fi
20034 
20035 
20036   # Now try to locate executable using which
20037   new_path=`$WHICH "$new_path" 2> /dev/null`
20038 
20039   if test "x$new_path" = x; then
20040     # Oops. Which didn't find the executable.
20041     # The splitting of arguments from the executable at a space might have been incorrect,
20042     # since paths with space are more likely in Windows. Give it another try with the whole
20043     # argument.
20044     path="$complete"
20045     arguments="EOL"
20046     new_path="$path"
20047 
20048   windows_path="$new_path"
20049   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20050     unix_path=`$CYGPATH -u "$windows_path"`
20051     new_path="$unix_path"
20052   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20053     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20054     new_path="$unix_path"
20055   fi
20056 
20057 
20058     new_path=`$WHICH "$new_path" 2> /dev/null`
20059     # bat and cmd files are not always considered executable in MSYS causing which
20060     # to not find them
20061     if test "x$new_path" = x \
20062         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20063         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20064       new_path="$path"
20065 
20066   windows_path="$new_path"
20067   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20068     unix_path=`$CYGPATH -u "$windows_path"`
20069     new_path="$unix_path"
20070   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20071     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20072     new_path="$unix_path"
20073   fi
20074 
20075     fi
20076 
20077     if test "x$new_path" = x; then
20078       # It's still not found. Now this is an unrecoverable error.
20079       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20080 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20081       has_space=`$ECHO "$complete" | $GREP " "`
20082       if test "x$has_space" != x; then
20083         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20084 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20085       fi
20086       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20087     fi
20088   fi
20089 
20090   # Now new_path has a complete unix path to the binary
20091   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20092     # Keep paths in /bin as-is, but remove trailing .exe if any
20093     new_path="${new_path/%.exe/}"
20094     # Do not save /bin paths to all_fixpath_prefixes!
20095   else
20096     # Not in mixed or Windows style, start by that.
20097     new_path=`cmd //c echo $new_path`
20098 
20099   input_path="$new_path"
20100   # Check if we need to convert this using DOS-style short mode. If the path
20101   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20102   # take no chances and rewrite it.
20103   # Note: m4 eats our [], so we need to use [ and ] instead.
20104   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20105   if test "x$has_forbidden_chars" != x; then
20106     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20107     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20108   fi
20109 
20110     # Output is in $new_path
20111 
20112   windows_path="$new_path"
20113   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20114     unix_path=`$CYGPATH -u "$windows_path"`
20115     new_path="$unix_path"
20116   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20117     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20118     new_path="$unix_path"
20119   fi
20120 
20121     # remove trailing .exe if any
20122     new_path="${new_path/%.exe/}"
20123 
20124     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20125     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20126   fi
20127 
20128     else
20129       # We're on a unix platform. Hooray! :)
20130       # First separate the path from the arguments. This will split at the first
20131       # space.
20132       complete="$FOUND_MAKE"
20133       path="${complete%% *}"
20134       tmp="$complete EOL"
20135       arguments="${tmp#* }"
20136 
20137       # Cannot rely on the command "which" here since it doesn't always work.
20138       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20139       if test -z "$is_absolute_path"; then
20140         # Path to executable is not absolute. Find it.
20141         IFS_save="$IFS"
20142         IFS=:
20143         for p in $PATH; do
20144           if test -f "$p/$path" && test -x "$p/$path"; then
20145             new_path="$p/$path"
20146             break
20147           fi
20148         done
20149         IFS="$IFS_save"
20150       else
20151         # This is an absolute path, we can use it without further modifications.
20152         new_path="$path"
20153       fi
20154 
20155       if test "x$new_path" = x; then
20156         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20157 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20158         has_space=`$ECHO "$complete" | $GREP " "`
20159         if test "x$has_space" != x; then
20160           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20161 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20162         fi
20163         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20164       fi
20165     fi
20166 
20167     # Now join together the path and the arguments once again
20168     if test "x$arguments" != xEOL; then
20169       new_complete="$new_path ${arguments% *}"
20170     else
20171       new_complete="$new_path"
20172     fi
20173 
20174     if test "x$complete" != "x$new_complete"; then
20175       FOUND_MAKE="$new_complete"
20176       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20177 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20178     fi
20179   fi
20180 
20181         fi
20182       fi
20183     fi
20184   fi
20185 
20186     fi
20187 
20188     if test "x$FOUND_MAKE" = x; then
20189       if test "x$TOOLCHAIN_PATH" != x; then
20190         # We have a toolchain path, check that as well before giving up.
20191         OLD_PATH=$PATH
20192         PATH=$TOOLCHAIN_PATH:$PATH
20193         for ac_prog in gmake
20194 do
20195   # Extract the first word of "$ac_prog", so it can be a program name with args.
20196 set dummy $ac_prog; ac_word=$2
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20198 $as_echo_n "checking for $ac_word... " >&6; }
20199 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
20200   $as_echo_n "(cached) " >&6
20201 else
20202   case $CHECK_TOOLSDIR_GMAKE in
20203   [\\/]* | ?:[\\/]*)
20204   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
20205   ;;
20206   *)
20207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20208 for as_dir in $PATH
20209 do
20210   IFS=$as_save_IFS
20211   test -z "$as_dir" && as_dir=.
20212     for ac_exec_ext in '' $ac_executable_extensions; do
20213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20214     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
20215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20216     break 2
20217   fi
20218 done
20219   done
20220 IFS=$as_save_IFS
20221 
20222   ;;
20223 esac
20224 fi
20225 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
20226 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
20227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
20228 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
20229 else
20230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20231 $as_echo "no" >&6; }
20232 fi
20233 
20234 
20235   test -n "$CHECK_TOOLSDIR_GMAKE" && break
20236 done
20237 
20238 
20239   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
20240   DESCRIPTION="gmake in tools-dir"
20241 
20242   # On Cygwin, we require a newer version of make than on other platforms
20243   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20244     MAKE_VERSION_EXPR="-e 4\."
20245     MAKE_REQUIRED_VERSION="4.0"
20246    else
20247     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20248     MAKE_REQUIRED_VERSION="3.81"
20249   fi
20250 
20251   if test "x$MAKE_CANDIDATE" != x; then
20252     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20253 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20254     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20255     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20256     if test "x$IS_GNU_MAKE" = x; then
20257       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20258 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20259     else
20260       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20261       if test "x$IS_MODERN_MAKE" = x; then
20262         { $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
20263 $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;}
20264       else
20265         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20266           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20267             MAKE_EXPECTED_ENV='cygwin'
20268           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20269             MAKE_EXPECTED_ENV='msys'
20270           else
20271             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20272           fi
20273           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20274           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20275         else
20276           # Not relevant for non-Windows
20277           IS_MAKE_CORRECT_ENV=true
20278         fi
20279         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20280           { $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
20281 $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;}
20282         else
20283           FOUND_MAKE=$MAKE_CANDIDATE
20284 
20285   # Only process if variable expands to non-empty
20286 
20287   if test "x$FOUND_MAKE" != x; then
20288     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20289 
20290   # First separate the path from the arguments. This will split at the first
20291   # space.
20292   complete="$FOUND_MAKE"
20293   path="${complete%% *}"
20294   tmp="$complete EOL"
20295   arguments="${tmp#* }"
20296 
20297   # Input might be given as Windows format, start by converting to
20298   # unix format.
20299   new_path=`$CYGPATH -u "$path"`
20300 
20301   # Now try to locate executable using which
20302   new_path=`$WHICH "$new_path" 2> /dev/null`
20303   # bat and cmd files are not always considered executable in cygwin causing which
20304   # to not find them
20305   if test "x$new_path" = x \
20306       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20307       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20308     new_path=`$CYGPATH -u "$path"`
20309   fi
20310   if test "x$new_path" = x; then
20311     # Oops. Which didn't find the executable.
20312     # The splitting of arguments from the executable at a space might have been incorrect,
20313     # since paths with space are more likely in Windows. Give it another try with the whole
20314     # argument.
20315     path="$complete"
20316     arguments="EOL"
20317     new_path=`$CYGPATH -u "$path"`
20318     new_path=`$WHICH "$new_path" 2> /dev/null`
20319     # bat and cmd files are not always considered executable in cygwin causing which
20320     # to not find them
20321     if test "x$new_path" = x \
20322         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20323         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20324       new_path=`$CYGPATH -u "$path"`
20325     fi
20326     if test "x$new_path" = x; then
20327       # It's still not found. Now this is an unrecoverable error.
20328       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20329 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20330       has_space=`$ECHO "$complete" | $GREP " "`
20331       if test "x$has_space" != x; then
20332         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20333 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20334       fi
20335       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20336     fi
20337   fi
20338 
20339   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20340   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20341   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20342   # "foo.exe" is OK but "foo" is an error.
20343   #
20344   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20345   # It is also a way to make sure we got the proper file name for the real test later on.
20346   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20347   if test "x$test_shortpath" = x; then
20348     # Short path failed, file does not exist as specified.
20349     # Try adding .exe or .cmd
20350     if test -f "${new_path}.exe"; then
20351       input_to_shortpath="${new_path}.exe"
20352     elif test -f "${new_path}.cmd"; then
20353       input_to_shortpath="${new_path}.cmd"
20354     else
20355       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20356 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20357       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20358 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20359       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20360     fi
20361   else
20362     input_to_shortpath="$new_path"
20363   fi
20364 
20365   # Call helper function which possibly converts this using DOS-style short mode.
20366   # If so, the updated path is stored in $new_path.
20367   new_path="$input_to_shortpath"
20368 
20369   input_path="$input_to_shortpath"
20370   # Check if we need to convert this using DOS-style short mode. If the path
20371   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20372   # take no chances and rewrite it.
20373   # Note: m4 eats our [], so we need to use [ and ] instead.
20374   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20375   if test "x$has_forbidden_chars" != x; then
20376     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20377     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20378     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20379     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20380       # Going to short mode and back again did indeed matter. Since short mode is
20381       # case insensitive, let's make it lowercase to improve readability.
20382       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20383       # Now convert it back to Unix-style (cygpath)
20384       input_path=`$CYGPATH -u "$shortmode_path"`
20385       new_path="$input_path"
20386     fi
20387   fi
20388 
20389   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20390   if test "x$test_cygdrive_prefix" = x; then
20391     # As a simple fix, exclude /usr/bin since it's not a real path.
20392     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20393       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20394       # a path prefixed by /cygdrive for fixpath to work.
20395       new_path="$CYGWIN_ROOT_PATH$input_path"
20396     fi
20397   fi
20398 
20399   # remove trailing .exe if any
20400   new_path="${new_path/%.exe/}"
20401 
20402     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20403 
20404   # First separate the path from the arguments. This will split at the first
20405   # space.
20406   complete="$FOUND_MAKE"
20407   path="${complete%% *}"
20408   tmp="$complete EOL"
20409   arguments="${tmp#* }"
20410 
20411   # Input might be given as Windows format, start by converting to
20412   # unix format.
20413   new_path="$path"
20414 
20415   windows_path="$new_path"
20416   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20417     unix_path=`$CYGPATH -u "$windows_path"`
20418     new_path="$unix_path"
20419   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20420     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20421     new_path="$unix_path"
20422   fi
20423 
20424 
20425   # Now try to locate executable using which
20426   new_path=`$WHICH "$new_path" 2> /dev/null`
20427 
20428   if test "x$new_path" = x; then
20429     # Oops. Which didn't find the executable.
20430     # The splitting of arguments from the executable at a space might have been incorrect,
20431     # since paths with space are more likely in Windows. Give it another try with the whole
20432     # argument.
20433     path="$complete"
20434     arguments="EOL"
20435     new_path="$path"
20436 
20437   windows_path="$new_path"
20438   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20439     unix_path=`$CYGPATH -u "$windows_path"`
20440     new_path="$unix_path"
20441   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20442     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20443     new_path="$unix_path"
20444   fi
20445 
20446 
20447     new_path=`$WHICH "$new_path" 2> /dev/null`
20448     # bat and cmd files are not always considered executable in MSYS causing which
20449     # to not find them
20450     if test "x$new_path" = x \
20451         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20452         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20453       new_path="$path"
20454 
20455   windows_path="$new_path"
20456   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20457     unix_path=`$CYGPATH -u "$windows_path"`
20458     new_path="$unix_path"
20459   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20460     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20461     new_path="$unix_path"
20462   fi
20463 
20464     fi
20465 
20466     if test "x$new_path" = x; then
20467       # It's still not found. Now this is an unrecoverable error.
20468       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20469 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20470       has_space=`$ECHO "$complete" | $GREP " "`
20471       if test "x$has_space" != x; then
20472         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20473 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20474       fi
20475       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20476     fi
20477   fi
20478 
20479   # Now new_path has a complete unix path to the binary
20480   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20481     # Keep paths in /bin as-is, but remove trailing .exe if any
20482     new_path="${new_path/%.exe/}"
20483     # Do not save /bin paths to all_fixpath_prefixes!
20484   else
20485     # Not in mixed or Windows style, start by that.
20486     new_path=`cmd //c echo $new_path`
20487 
20488   input_path="$new_path"
20489   # Check if we need to convert this using DOS-style short mode. If the path
20490   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20491   # take no chances and rewrite it.
20492   # Note: m4 eats our [], so we need to use [ and ] instead.
20493   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20494   if test "x$has_forbidden_chars" != x; then
20495     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20496     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20497   fi
20498 
20499     # Output is in $new_path
20500 
20501   windows_path="$new_path"
20502   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20503     unix_path=`$CYGPATH -u "$windows_path"`
20504     new_path="$unix_path"
20505   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20506     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20507     new_path="$unix_path"
20508   fi
20509 
20510     # remove trailing .exe if any
20511     new_path="${new_path/%.exe/}"
20512 
20513     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20514     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20515   fi
20516 
20517     else
20518       # We're on a unix platform. Hooray! :)
20519       # First separate the path from the arguments. This will split at the first
20520       # space.
20521       complete="$FOUND_MAKE"
20522       path="${complete%% *}"
20523       tmp="$complete EOL"
20524       arguments="${tmp#* }"
20525 
20526       # Cannot rely on the command "which" here since it doesn't always work.
20527       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20528       if test -z "$is_absolute_path"; then
20529         # Path to executable is not absolute. Find it.
20530         IFS_save="$IFS"
20531         IFS=:
20532         for p in $PATH; do
20533           if test -f "$p/$path" && test -x "$p/$path"; then
20534             new_path="$p/$path"
20535             break
20536           fi
20537         done
20538         IFS="$IFS_save"
20539       else
20540         # This is an absolute path, we can use it without further modifications.
20541         new_path="$path"
20542       fi
20543 
20544       if test "x$new_path" = x; then
20545         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20546 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20547         has_space=`$ECHO "$complete" | $GREP " "`
20548         if test "x$has_space" != x; then
20549           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20550 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20551         fi
20552         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20553       fi
20554     fi
20555 
20556     # Now join together the path and the arguments once again
20557     if test "x$arguments" != xEOL; then
20558       new_complete="$new_path ${arguments% *}"
20559     else
20560       new_complete="$new_path"
20561     fi
20562 
20563     if test "x$complete" != "x$new_complete"; then
20564       FOUND_MAKE="$new_complete"
20565       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20566 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20567     fi
20568   fi
20569 
20570         fi
20571       fi
20572     fi
20573   fi
20574 
20575         if test "x$FOUND_MAKE" = x; then
20576           for ac_prog in make
20577 do
20578   # Extract the first word of "$ac_prog", so it can be a program name with args.
20579 set dummy $ac_prog; ac_word=$2
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20581 $as_echo_n "checking for $ac_word... " >&6; }
20582 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
20583   $as_echo_n "(cached) " >&6
20584 else
20585   case $CHECK_TOOLSDIR_MAKE in
20586   [\\/]* | ?:[\\/]*)
20587   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
20588   ;;
20589   *)
20590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20591 for as_dir in $PATH
20592 do
20593   IFS=$as_save_IFS
20594   test -z "$as_dir" && as_dir=.
20595     for ac_exec_ext in '' $ac_executable_extensions; do
20596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20597     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
20598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20599     break 2
20600   fi
20601 done
20602   done
20603 IFS=$as_save_IFS
20604 
20605   ;;
20606 esac
20607 fi
20608 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
20609 if test -n "$CHECK_TOOLSDIR_MAKE"; then
20610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
20611 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
20612 else
20613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20614 $as_echo "no" >&6; }
20615 fi
20616 
20617 
20618   test -n "$CHECK_TOOLSDIR_MAKE" && break
20619 done
20620 
20621 
20622   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
20623   DESCRIPTION="make in tools-dir"
20624 
20625   # On Cygwin, we require a newer version of make than on other platforms
20626   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20627     MAKE_VERSION_EXPR="-e 4\."
20628     MAKE_REQUIRED_VERSION="4.0"
20629    else
20630     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20631     MAKE_REQUIRED_VERSION="3.81"
20632   fi
20633 
20634   if test "x$MAKE_CANDIDATE" != x; then
20635     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20636 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20637     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20638     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20639     if test "x$IS_GNU_MAKE" = x; then
20640       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20641 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20642     else
20643       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20644       if test "x$IS_MODERN_MAKE" = x; then
20645         { $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
20646 $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;}
20647       else
20648         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20649           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20650             MAKE_EXPECTED_ENV='cygwin'
20651           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20652             MAKE_EXPECTED_ENV='msys'
20653           else
20654             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20655           fi
20656           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20657           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20658         else
20659           # Not relevant for non-Windows
20660           IS_MAKE_CORRECT_ENV=true
20661         fi
20662         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20663           { $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
20664 $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;}
20665         else
20666           FOUND_MAKE=$MAKE_CANDIDATE
20667 
20668   # Only process if variable expands to non-empty
20669 
20670   if test "x$FOUND_MAKE" != x; then
20671     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20672 
20673   # First separate the path from the arguments. This will split at the first
20674   # space.
20675   complete="$FOUND_MAKE"
20676   path="${complete%% *}"
20677   tmp="$complete EOL"
20678   arguments="${tmp#* }"
20679 
20680   # Input might be given as Windows format, start by converting to
20681   # unix format.
20682   new_path=`$CYGPATH -u "$path"`
20683 
20684   # Now try to locate executable using which
20685   new_path=`$WHICH "$new_path" 2> /dev/null`
20686   # bat and cmd files are not always considered executable in cygwin causing which
20687   # to not find them
20688   if test "x$new_path" = x \
20689       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20690       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20691     new_path=`$CYGPATH -u "$path"`
20692   fi
20693   if test "x$new_path" = x; then
20694     # Oops. Which didn't find the executable.
20695     # The splitting of arguments from the executable at a space might have been incorrect,
20696     # since paths with space are more likely in Windows. Give it another try with the whole
20697     # argument.
20698     path="$complete"
20699     arguments="EOL"
20700     new_path=`$CYGPATH -u "$path"`
20701     new_path=`$WHICH "$new_path" 2> /dev/null`
20702     # bat and cmd files are not always considered executable in cygwin causing which
20703     # to not find them
20704     if test "x$new_path" = x \
20705         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20706         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20707       new_path=`$CYGPATH -u "$path"`
20708     fi
20709     if test "x$new_path" = x; then
20710       # It's still not found. Now this is an unrecoverable error.
20711       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20712 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20713       has_space=`$ECHO "$complete" | $GREP " "`
20714       if test "x$has_space" != x; then
20715         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20716 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20717       fi
20718       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20719     fi
20720   fi
20721 
20722   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20723   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20724   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20725   # "foo.exe" is OK but "foo" is an error.
20726   #
20727   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20728   # It is also a way to make sure we got the proper file name for the real test later on.
20729   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20730   if test "x$test_shortpath" = x; then
20731     # Short path failed, file does not exist as specified.
20732     # Try adding .exe or .cmd
20733     if test -f "${new_path}.exe"; then
20734       input_to_shortpath="${new_path}.exe"
20735     elif test -f "${new_path}.cmd"; then
20736       input_to_shortpath="${new_path}.cmd"
20737     else
20738       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20739 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20740       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20741 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20742       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20743     fi
20744   else
20745     input_to_shortpath="$new_path"
20746   fi
20747 
20748   # Call helper function which possibly converts this using DOS-style short mode.
20749   # If so, the updated path is stored in $new_path.
20750   new_path="$input_to_shortpath"
20751 
20752   input_path="$input_to_shortpath"
20753   # Check if we need to convert this using DOS-style short mode. If the path
20754   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20755   # take no chances and rewrite it.
20756   # Note: m4 eats our [], so we need to use [ and ] instead.
20757   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20758   if test "x$has_forbidden_chars" != x; then
20759     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20760     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20761     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20762     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20763       # Going to short mode and back again did indeed matter. Since short mode is
20764       # case insensitive, let's make it lowercase to improve readability.
20765       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20766       # Now convert it back to Unix-style (cygpath)
20767       input_path=`$CYGPATH -u "$shortmode_path"`
20768       new_path="$input_path"
20769     fi
20770   fi
20771 
20772   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20773   if test "x$test_cygdrive_prefix" = x; then
20774     # As a simple fix, exclude /usr/bin since it's not a real path.
20775     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20776       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20777       # a path prefixed by /cygdrive for fixpath to work.
20778       new_path="$CYGWIN_ROOT_PATH$input_path"
20779     fi
20780   fi
20781 
20782   # remove trailing .exe if any
20783   new_path="${new_path/%.exe/}"
20784 
20785     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20786 
20787   # First separate the path from the arguments. This will split at the first
20788   # space.
20789   complete="$FOUND_MAKE"
20790   path="${complete%% *}"
20791   tmp="$complete EOL"
20792   arguments="${tmp#* }"
20793 
20794   # Input might be given as Windows format, start by converting to
20795   # unix format.
20796   new_path="$path"
20797 
20798   windows_path="$new_path"
20799   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20800     unix_path=`$CYGPATH -u "$windows_path"`
20801     new_path="$unix_path"
20802   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20803     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20804     new_path="$unix_path"
20805   fi
20806 
20807 
20808   # Now try to locate executable using which
20809   new_path=`$WHICH "$new_path" 2> /dev/null`
20810 
20811   if test "x$new_path" = x; then
20812     # Oops. Which didn't find the executable.
20813     # The splitting of arguments from the executable at a space might have been incorrect,
20814     # since paths with space are more likely in Windows. Give it another try with the whole
20815     # argument.
20816     path="$complete"
20817     arguments="EOL"
20818     new_path="$path"
20819 
20820   windows_path="$new_path"
20821   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20822     unix_path=`$CYGPATH -u "$windows_path"`
20823     new_path="$unix_path"
20824   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20825     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20826     new_path="$unix_path"
20827   fi
20828 
20829 
20830     new_path=`$WHICH "$new_path" 2> /dev/null`
20831     # bat and cmd files are not always considered executable in MSYS causing which
20832     # to not find them
20833     if test "x$new_path" = x \
20834         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20835         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20836       new_path="$path"
20837 
20838   windows_path="$new_path"
20839   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20840     unix_path=`$CYGPATH -u "$windows_path"`
20841     new_path="$unix_path"
20842   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20843     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20844     new_path="$unix_path"
20845   fi
20846 
20847     fi
20848 
20849     if test "x$new_path" = x; then
20850       # It's still not found. Now this is an unrecoverable error.
20851       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20852 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20853       has_space=`$ECHO "$complete" | $GREP " "`
20854       if test "x$has_space" != x; then
20855         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20856 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20857       fi
20858       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20859     fi
20860   fi
20861 
20862   # Now new_path has a complete unix path to the binary
20863   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20864     # Keep paths in /bin as-is, but remove trailing .exe if any
20865     new_path="${new_path/%.exe/}"
20866     # Do not save /bin paths to all_fixpath_prefixes!
20867   else
20868     # Not in mixed or Windows style, start by that.
20869     new_path=`cmd //c echo $new_path`
20870 
20871   input_path="$new_path"
20872   # Check if we need to convert this using DOS-style short mode. If the path
20873   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20874   # take no chances and rewrite it.
20875   # Note: m4 eats our [], so we need to use [ and ] instead.
20876   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20877   if test "x$has_forbidden_chars" != x; then
20878     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20879     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20880   fi
20881 
20882     # Output is in $new_path
20883 
20884   windows_path="$new_path"
20885   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20886     unix_path=`$CYGPATH -u "$windows_path"`
20887     new_path="$unix_path"
20888   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20889     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20890     new_path="$unix_path"
20891   fi
20892 
20893     # remove trailing .exe if any
20894     new_path="${new_path/%.exe/}"
20895 
20896     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20897     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20898   fi
20899 
20900     else
20901       # We're on a unix platform. Hooray! :)
20902       # First separate the path from the arguments. This will split at the first
20903       # space.
20904       complete="$FOUND_MAKE"
20905       path="${complete%% *}"
20906       tmp="$complete EOL"
20907       arguments="${tmp#* }"
20908 
20909       # Cannot rely on the command "which" here since it doesn't always work.
20910       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20911       if test -z "$is_absolute_path"; then
20912         # Path to executable is not absolute. Find it.
20913         IFS_save="$IFS"
20914         IFS=:
20915         for p in $PATH; do
20916           if test -f "$p/$path" && test -x "$p/$path"; then
20917             new_path="$p/$path"
20918             break
20919           fi
20920         done
20921         IFS="$IFS_save"
20922       else
20923         # This is an absolute path, we can use it without further modifications.
20924         new_path="$path"
20925       fi
20926 
20927       if test "x$new_path" = x; then
20928         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20929 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20930         has_space=`$ECHO "$complete" | $GREP " "`
20931         if test "x$has_space" != x; then
20932           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20933 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20934         fi
20935         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20936       fi
20937     fi
20938 
20939     # Now join together the path and the arguments once again
20940     if test "x$arguments" != xEOL; then
20941       new_complete="$new_path ${arguments% *}"
20942     else
20943       new_complete="$new_path"
20944     fi
20945 
20946     if test "x$complete" != "x$new_complete"; then
20947       FOUND_MAKE="$new_complete"
20948       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20949 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20950     fi
20951   fi
20952 
20953         fi
20954       fi
20955     fi
20956   fi
20957 
20958         fi
20959         PATH=$OLD_PATH
20960       fi
20961     fi
20962 
20963     if test "x$FOUND_MAKE" = x; then
20964       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
20965     fi
20966 
20967     else
20968       # If it succeeded, then it was overridden by the user. We will use it
20969       # for the tool.
20970 
20971       # First remove it from the list of overridden variables, so we can test
20972       # for unknown variables in the end.
20973       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20974 
20975       # Check if we try to supply an empty value
20976       if test "x$MAKE" = x; then
20977         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20978 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20979         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20980 $as_echo_n "checking for MAKE... " >&6; }
20981         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20982 $as_echo "disabled" >&6; }
20983       else
20984         # Check if the provided tool contains a complete path.
20985         tool_specified="$MAKE"
20986         tool_basename="${tool_specified##*/}"
20987         if test "x$tool_basename" = "x$tool_specified"; then
20988           # A command without a complete path is provided, search $PATH.
20989           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
20990 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
20991           # Extract the first word of "$tool_basename", so it can be a program name with args.
20992 set dummy $tool_basename; ac_word=$2
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20994 $as_echo_n "checking for $ac_word... " >&6; }
20995 if ${ac_cv_path_MAKE+:} false; then :
20996   $as_echo_n "(cached) " >&6
20997 else
20998   case $MAKE in
20999   [\\/]* | ?:[\\/]*)
21000   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
21001   ;;
21002   *)
21003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21004 for as_dir in $PATH
21005 do
21006   IFS=$as_save_IFS
21007   test -z "$as_dir" && as_dir=.
21008     for ac_exec_ext in '' $ac_executable_extensions; do
21009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21010     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
21011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21012     break 2
21013   fi
21014 done
21015   done
21016 IFS=$as_save_IFS
21017 
21018   ;;
21019 esac
21020 fi
21021 MAKE=$ac_cv_path_MAKE
21022 if test -n "$MAKE"; then
21023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
21024 $as_echo "$MAKE" >&6; }
21025 else
21026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21027 $as_echo "no" >&6; }
21028 fi
21029 
21030 
21031           if test "x$MAKE" = x; then
21032             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21033           fi
21034         else
21035           # Otherwise we believe it is a complete path. Use it as it is.
21036           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
21037 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
21038           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
21039 $as_echo_n "checking for MAKE... " >&6; }
21040           if test ! -x "$tool_specified"; then
21041             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21042 $as_echo "not found" >&6; }
21043             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
21044           fi
21045           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21046 $as_echo "$tool_specified" >&6; }
21047         fi
21048       fi
21049     fi
21050 
21051     # If MAKE was set by user, verify the version
21052 
21053   MAKE_CANDIDATE=""$MAKE""
21054   DESCRIPTION="user supplied MAKE=$MAKE"
21055 
21056   # On Cygwin, we require a newer version of make than on other platforms
21057   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21058     MAKE_VERSION_EXPR="-e 4\."
21059     MAKE_REQUIRED_VERSION="4.0"
21060    else
21061     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
21062     MAKE_REQUIRED_VERSION="3.81"
21063   fi
21064 
21065   if test "x$MAKE_CANDIDATE" != x; then
21066     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
21067 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
21068     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
21069     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
21070     if test "x$IS_GNU_MAKE" = x; then
21071       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
21072 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
21073     else
21074       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
21075       if test "x$IS_MODERN_MAKE" = x; then
21076         { $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
21077 $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;}
21078       else
21079         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
21080           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21081             MAKE_EXPECTED_ENV='cygwin'
21082           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21083             MAKE_EXPECTED_ENV='msys'
21084           else
21085             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
21086           fi
21087           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
21088           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
21089         else
21090           # Not relevant for non-Windows
21091           IS_MAKE_CORRECT_ENV=true
21092         fi
21093         if test "x$IS_MAKE_CORRECT_ENV" = x; then
21094           { $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
21095 $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;}
21096         else
21097           FOUND_MAKE=$MAKE_CANDIDATE
21098 
21099   # Only process if variable expands to non-empty
21100 
21101   if test "x$FOUND_MAKE" != x; then
21102     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21103 
21104   # First separate the path from the arguments. This will split at the first
21105   # space.
21106   complete="$FOUND_MAKE"
21107   path="${complete%% *}"
21108   tmp="$complete EOL"
21109   arguments="${tmp#* }"
21110 
21111   # Input might be given as Windows format, start by converting to
21112   # unix format.
21113   new_path=`$CYGPATH -u "$path"`
21114 
21115   # Now try to locate executable using which
21116   new_path=`$WHICH "$new_path" 2> /dev/null`
21117   # bat and cmd files are not always considered executable in cygwin causing which
21118   # to not find them
21119   if test "x$new_path" = x \
21120       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21121       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21122     new_path=`$CYGPATH -u "$path"`
21123   fi
21124   if test "x$new_path" = x; then
21125     # Oops. Which didn't find the executable.
21126     # The splitting of arguments from the executable at a space might have been incorrect,
21127     # since paths with space are more likely in Windows. Give it another try with the whole
21128     # argument.
21129     path="$complete"
21130     arguments="EOL"
21131     new_path=`$CYGPATH -u "$path"`
21132     new_path=`$WHICH "$new_path" 2> /dev/null`
21133     # bat and cmd files are not always considered executable in cygwin causing which
21134     # to not find them
21135     if test "x$new_path" = x \
21136         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21137         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21138       new_path=`$CYGPATH -u "$path"`
21139     fi
21140     if test "x$new_path" = x; then
21141       # It's still not found. Now this is an unrecoverable error.
21142       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21143 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21144       has_space=`$ECHO "$complete" | $GREP " "`
21145       if test "x$has_space" != x; then
21146         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21147 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21148       fi
21149       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21150     fi
21151   fi
21152 
21153   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21154   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21155   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21156   # "foo.exe" is OK but "foo" is an error.
21157   #
21158   # This test is therefore slightly more accurate than "test -f" to check for file presence.
21159   # It is also a way to make sure we got the proper file name for the real test later on.
21160   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21161   if test "x$test_shortpath" = x; then
21162     # Short path failed, file does not exist as specified.
21163     # Try adding .exe or .cmd
21164     if test -f "${new_path}.exe"; then
21165       input_to_shortpath="${new_path}.exe"
21166     elif test -f "${new_path}.cmd"; then
21167       input_to_shortpath="${new_path}.cmd"
21168     else
21169       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
21170 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
21171       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
21172 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
21173       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21174     fi
21175   else
21176     input_to_shortpath="$new_path"
21177   fi
21178 
21179   # Call helper function which possibly converts this using DOS-style short mode.
21180   # If so, the updated path is stored in $new_path.
21181   new_path="$input_to_shortpath"
21182 
21183   input_path="$input_to_shortpath"
21184   # Check if we need to convert this using DOS-style short mode. If the path
21185   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21186   # take no chances and rewrite it.
21187   # Note: m4 eats our [], so we need to use [ and ] instead.
21188   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21189   if test "x$has_forbidden_chars" != x; then
21190     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21191     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21192     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21193     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21194       # Going to short mode and back again did indeed matter. Since short mode is
21195       # case insensitive, let's make it lowercase to improve readability.
21196       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21197       # Now convert it back to Unix-style (cygpath)
21198       input_path=`$CYGPATH -u "$shortmode_path"`
21199       new_path="$input_path"
21200     fi
21201   fi
21202 
21203   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21204   if test "x$test_cygdrive_prefix" = x; then
21205     # As a simple fix, exclude /usr/bin since it's not a real path.
21206     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
21207       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21208       # a path prefixed by /cygdrive for fixpath to work.
21209       new_path="$CYGWIN_ROOT_PATH$input_path"
21210     fi
21211   fi
21212 
21213   # remove trailing .exe if any
21214   new_path="${new_path/%.exe/}"
21215 
21216     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21217 
21218   # First separate the path from the arguments. This will split at the first
21219   # space.
21220   complete="$FOUND_MAKE"
21221   path="${complete%% *}"
21222   tmp="$complete EOL"
21223   arguments="${tmp#* }"
21224 
21225   # Input might be given as Windows format, start by converting to
21226   # unix format.
21227   new_path="$path"
21228 
21229   windows_path="$new_path"
21230   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21231     unix_path=`$CYGPATH -u "$windows_path"`
21232     new_path="$unix_path"
21233   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21234     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21235     new_path="$unix_path"
21236   fi
21237 
21238 
21239   # Now try to locate executable using which
21240   new_path=`$WHICH "$new_path" 2> /dev/null`
21241 
21242   if test "x$new_path" = x; then
21243     # Oops. Which didn't find the executable.
21244     # The splitting of arguments from the executable at a space might have been incorrect,
21245     # since paths with space are more likely in Windows. Give it another try with the whole
21246     # argument.
21247     path="$complete"
21248     arguments="EOL"
21249     new_path="$path"
21250 
21251   windows_path="$new_path"
21252   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21253     unix_path=`$CYGPATH -u "$windows_path"`
21254     new_path="$unix_path"
21255   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21256     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21257     new_path="$unix_path"
21258   fi
21259 
21260 
21261     new_path=`$WHICH "$new_path" 2> /dev/null`
21262     # bat and cmd files are not always considered executable in MSYS causing which
21263     # to not find them
21264     if test "x$new_path" = x \
21265         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21266         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21267       new_path="$path"
21268 
21269   windows_path="$new_path"
21270   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21271     unix_path=`$CYGPATH -u "$windows_path"`
21272     new_path="$unix_path"
21273   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21274     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21275     new_path="$unix_path"
21276   fi
21277 
21278     fi
21279 
21280     if test "x$new_path" = x; then
21281       # It's still not found. Now this is an unrecoverable error.
21282       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21283 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21284       has_space=`$ECHO "$complete" | $GREP " "`
21285       if test "x$has_space" != x; then
21286         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21287 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21288       fi
21289       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21290     fi
21291   fi
21292 
21293   # Now new_path has a complete unix path to the binary
21294   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
21295     # Keep paths in /bin as-is, but remove trailing .exe if any
21296     new_path="${new_path/%.exe/}"
21297     # Do not save /bin paths to all_fixpath_prefixes!
21298   else
21299     # Not in mixed or Windows style, start by that.
21300     new_path=`cmd //c echo $new_path`
21301 
21302   input_path="$new_path"
21303   # Check if we need to convert this using DOS-style short mode. If the path
21304   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21305   # take no chances and rewrite it.
21306   # Note: m4 eats our [], so we need to use [ and ] instead.
21307   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21308   if test "x$has_forbidden_chars" != x; then
21309     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21310     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21311   fi
21312 
21313     # Output is in $new_path
21314 
21315   windows_path="$new_path"
21316   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21317     unix_path=`$CYGPATH -u "$windows_path"`
21318     new_path="$unix_path"
21319   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21320     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21321     new_path="$unix_path"
21322   fi
21323 
21324     # remove trailing .exe if any
21325     new_path="${new_path/%.exe/}"
21326 
21327     # Save the first 10 bytes of this path to the storage, so fixpath can work.
21328     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21329   fi
21330 
21331     else
21332       # We're on a unix platform. Hooray! :)
21333       # First separate the path from the arguments. This will split at the first
21334       # space.
21335       complete="$FOUND_MAKE"
21336       path="${complete%% *}"
21337       tmp="$complete EOL"
21338       arguments="${tmp#* }"
21339 
21340       # Cannot rely on the command "which" here since it doesn't always work.
21341       is_absolute_path=`$ECHO "$path" | $GREP ^/`
21342       if test -z "$is_absolute_path"; then
21343         # Path to executable is not absolute. Find it.
21344         IFS_save="$IFS"
21345         IFS=:
21346         for p in $PATH; do
21347           if test -f "$p/$path" && test -x "$p/$path"; then
21348             new_path="$p/$path"
21349             break
21350           fi
21351         done
21352         IFS="$IFS_save"
21353       else
21354         # This is an absolute path, we can use it without further modifications.
21355         new_path="$path"
21356       fi
21357 
21358       if test "x$new_path" = x; then
21359         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21360 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21361         has_space=`$ECHO "$complete" | $GREP " "`
21362         if test "x$has_space" != x; then
21363           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21364 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21365         fi
21366         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21367       fi
21368     fi
21369 
21370     # Now join together the path and the arguments once again
21371     if test "x$arguments" != xEOL; then
21372       new_complete="$new_path ${arguments% *}"
21373     else
21374       new_complete="$new_path"
21375     fi
21376 
21377     if test "x$complete" != "x$new_complete"; then
21378       FOUND_MAKE="$new_complete"
21379       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
21380 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
21381     fi
21382   fi
21383 
21384         fi
21385       fi
21386     fi
21387   fi
21388 
21389     if test "x$FOUND_MAKE" = x; then
21390       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
21391     fi
21392 
21393   fi
21394 
21395 
21396   MAKE=$FOUND_MAKE
21397 
21398   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
21399 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
21400 
21401 
21402   # Check if make supports the output sync option and if so, setup using it.
21403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
21404 $as_echo_n "checking if make --output-sync is supported... " >&6; }
21405   if $MAKE --version -O > /dev/null 2>&1; then
21406     OUTPUT_SYNC_SUPPORTED=true
21407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21408 $as_echo "yes" >&6; }
21409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
21410 $as_echo_n "checking for output-sync value... " >&6; }
21411 
21412 # Check whether --with-output-sync was given.
21413 if test "${with_output_sync+set}" = set; then :
21414   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
21415 fi
21416 
21417     if test "x$OUTPUT_SYNC" = "x"; then
21418       OUTPUT_SYNC=none
21419     fi
21420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
21421 $as_echo "$OUTPUT_SYNC" >&6; }
21422     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
21423       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
21424     fi
21425   else
21426     OUTPUT_SYNC_SUPPORTED=false
21427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21428 $as_echo "no" >&6; }
21429   fi
21430 
21431 
21432 
21433 
21434 
21435 
21436   # Test if find supports -delete
21437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
21438 $as_echo_n "checking if find supports -delete... " >&6; }
21439   FIND_DELETE="-delete"
21440 
21441   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
21442 
21443   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
21444 
21445   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
21446   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
21447     # No, it does not.
21448     $RM $DELETEDIR/TestIfFindSupportsDelete
21449     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21450       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
21451       FIND_DELETE="-print | $XARGS $RM"
21452     else
21453       FIND_DELETE="-exec $RM \{\} \+"
21454     fi
21455     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21456 $as_echo "no" >&6; }
21457   else
21458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21459 $as_echo "yes" >&6; }
21460   fi
21461   $RMDIR $DELETEDIR
21462 
21463 
21464 
21465   # Test which kind of tar was found
21466   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
21467     TAR_TYPE="gnu"
21468   elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then
21469     TAR_TYPE="bsd"
21470   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
21471     TAR_TYPE="bsd"
21472   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
21473     TAR_TYPE="solaris"
21474   fi
21475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5
21476 $as_echo_n "checking what type of tar was found... " >&6; }
21477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5
21478 $as_echo "$TAR_TYPE" >&6; }
21479 
21480   TAR_CREATE_FILE_PARAM=""
21481 
21482   if test "x$TAR_TYPE" = "xgnu"; then
21483     TAR_INCLUDE_PARAM="T"
21484     TAR_SUPPORTS_TRANSFORM="true"
21485     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
21486       # When using gnu tar for Solaris targets, need to use compatibility mode
21487       TAR_CREATE_EXTRA_PARAM="--format=ustar"
21488     fi
21489   else
21490     TAR_INCLUDE_PARAM="I"
21491     TAR_SUPPORTS_TRANSFORM="false"
21492   fi
21493 
21494 
21495 
21496 
21497 
21498 
21499   # Test that grep supports -Fx with a list of pattern which includes null pattern.
21500   # This is a problem for the grep resident on AIX.
21501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5
21502 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; }
21503   # Multiple subsequent spaces..
21504   STACK_SPACES='aaa   bbb   ccc'
21505   # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty
21506   # patterns in it.
21507   STACK_LIST=${STACK_SPACES// /$'\n'}
21508   NEEDLE_SPACES='ccc bbb aaa'
21509   NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'}
21510   RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")"
21511   if test "x$RESULT" == "x"; then
21512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21513 $as_echo "yes" >&6; }
21514   else
21515     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21516       ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin."
21517     fi
21518     as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5
21519   fi
21520 
21521 
21522   # These tools might not be installed by default,
21523   # need hint on how to install them.
21524 
21525 
21526 
21527   # Publish this variable in the help.
21528 
21529 
21530   if [ -z "${UNZIP+x}" ]; then
21531     # The variable is not set by user, try to locate tool using the code snippet
21532     for ac_prog in unzip
21533 do
21534   # Extract the first word of "$ac_prog", so it can be a program name with args.
21535 set dummy $ac_prog; ac_word=$2
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21537 $as_echo_n "checking for $ac_word... " >&6; }
21538 if ${ac_cv_path_UNZIP+:} false; then :
21539   $as_echo_n "(cached) " >&6
21540 else
21541   case $UNZIP in
21542   [\\/]* | ?:[\\/]*)
21543   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21544   ;;
21545   *)
21546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21547 for as_dir in $PATH
21548 do
21549   IFS=$as_save_IFS
21550   test -z "$as_dir" && as_dir=.
21551     for ac_exec_ext in '' $ac_executable_extensions; do
21552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21553     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21555     break 2
21556   fi
21557 done
21558   done
21559 IFS=$as_save_IFS
21560 
21561   ;;
21562 esac
21563 fi
21564 UNZIP=$ac_cv_path_UNZIP
21565 if test -n "$UNZIP"; then
21566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21567 $as_echo "$UNZIP" >&6; }
21568 else
21569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21570 $as_echo "no" >&6; }
21571 fi
21572 
21573 
21574   test -n "$UNZIP" && break
21575 done
21576 
21577   else
21578     # The variable is set, but is it from the command line or the environment?
21579 
21580     # Try to remove the string !UNZIP! from our list.
21581     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
21582     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21583       # If it failed, the variable was not from the command line. Ignore it,
21584       # but warn the user (except for BASH, which is always set by the calling BASH).
21585       if test "xUNZIP" != xBASH; then
21586         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
21587 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
21588       fi
21589       # Try to locate tool using the code snippet
21590       for ac_prog in unzip
21591 do
21592   # Extract the first word of "$ac_prog", so it can be a program name with args.
21593 set dummy $ac_prog; ac_word=$2
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21595 $as_echo_n "checking for $ac_word... " >&6; }
21596 if ${ac_cv_path_UNZIP+:} false; then :
21597   $as_echo_n "(cached) " >&6
21598 else
21599   case $UNZIP in
21600   [\\/]* | ?:[\\/]*)
21601   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21602   ;;
21603   *)
21604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21605 for as_dir in $PATH
21606 do
21607   IFS=$as_save_IFS
21608   test -z "$as_dir" && as_dir=.
21609     for ac_exec_ext in '' $ac_executable_extensions; do
21610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21611     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21613     break 2
21614   fi
21615 done
21616   done
21617 IFS=$as_save_IFS
21618 
21619   ;;
21620 esac
21621 fi
21622 UNZIP=$ac_cv_path_UNZIP
21623 if test -n "$UNZIP"; then
21624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21625 $as_echo "$UNZIP" >&6; }
21626 else
21627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21628 $as_echo "no" >&6; }
21629 fi
21630 
21631 
21632   test -n "$UNZIP" && break
21633 done
21634 
21635     else
21636       # If it succeeded, then it was overridden by the user. We will use it
21637       # for the tool.
21638 
21639       # First remove it from the list of overridden variables, so we can test
21640       # for unknown variables in the end.
21641       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21642 
21643       # Check if we try to supply an empty value
21644       if test "x$UNZIP" = x; then
21645         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
21646 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
21647         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21648 $as_echo_n "checking for UNZIP... " >&6; }
21649         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21650 $as_echo "disabled" >&6; }
21651       else
21652         # Check if the provided tool contains a complete path.
21653         tool_specified="$UNZIP"
21654         tool_basename="${tool_specified##*/}"
21655         if test "x$tool_basename" = "x$tool_specified"; then
21656           # A command without a complete path is provided, search $PATH.
21657           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
21658 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
21659           # Extract the first word of "$tool_basename", so it can be a program name with args.
21660 set dummy $tool_basename; ac_word=$2
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21662 $as_echo_n "checking for $ac_word... " >&6; }
21663 if ${ac_cv_path_UNZIP+:} false; then :
21664   $as_echo_n "(cached) " >&6
21665 else
21666   case $UNZIP in
21667   [\\/]* | ?:[\\/]*)
21668   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21669   ;;
21670   *)
21671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21672 for as_dir in $PATH
21673 do
21674   IFS=$as_save_IFS
21675   test -z "$as_dir" && as_dir=.
21676     for ac_exec_ext in '' $ac_executable_extensions; do
21677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21678     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21680     break 2
21681   fi
21682 done
21683   done
21684 IFS=$as_save_IFS
21685 
21686   ;;
21687 esac
21688 fi
21689 UNZIP=$ac_cv_path_UNZIP
21690 if test -n "$UNZIP"; then
21691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21692 $as_echo "$UNZIP" >&6; }
21693 else
21694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21695 $as_echo "no" >&6; }
21696 fi
21697 
21698 
21699           if test "x$UNZIP" = x; then
21700             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21701           fi
21702         else
21703           # Otherwise we believe it is a complete path. Use it as it is.
21704           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
21705 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
21706           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21707 $as_echo_n "checking for UNZIP... " >&6; }
21708           if test ! -x "$tool_specified"; then
21709             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21710 $as_echo "not found" >&6; }
21711             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21712           fi
21713           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21714 $as_echo "$tool_specified" >&6; }
21715         fi
21716       fi
21717     fi
21718 
21719   fi
21720 
21721 
21722 
21723   if test "x$UNZIP" = x; then
21724     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
21725   fi
21726 
21727 
21728   # Since zip uses "ZIP" as a environment variable for passing options, we need
21729   # to name our variable differently, hence ZIPEXE.
21730 
21731 
21732 
21733   # Publish this variable in the help.
21734 
21735 
21736   if [ -z "${ZIPEXE+x}" ]; then
21737     # The variable is not set by user, try to locate tool using the code snippet
21738     for ac_prog in zip
21739 do
21740   # Extract the first word of "$ac_prog", so it can be a program name with args.
21741 set dummy $ac_prog; ac_word=$2
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21743 $as_echo_n "checking for $ac_word... " >&6; }
21744 if ${ac_cv_path_ZIPEXE+:} false; then :
21745   $as_echo_n "(cached) " >&6
21746 else
21747   case $ZIPEXE in
21748   [\\/]* | ?:[\\/]*)
21749   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21750   ;;
21751   *)
21752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21753 for as_dir in $PATH
21754 do
21755   IFS=$as_save_IFS
21756   test -z "$as_dir" && as_dir=.
21757     for ac_exec_ext in '' $ac_executable_extensions; do
21758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21759     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21761     break 2
21762   fi
21763 done
21764   done
21765 IFS=$as_save_IFS
21766 
21767   ;;
21768 esac
21769 fi
21770 ZIPEXE=$ac_cv_path_ZIPEXE
21771 if test -n "$ZIPEXE"; then
21772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21773 $as_echo "$ZIPEXE" >&6; }
21774 else
21775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21776 $as_echo "no" >&6; }
21777 fi
21778 
21779 
21780   test -n "$ZIPEXE" && break
21781 done
21782 
21783   else
21784     # The variable is set, but is it from the command line or the environment?
21785 
21786     # Try to remove the string !ZIPEXE! from our list.
21787     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/}
21788     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21789       # If it failed, the variable was not from the command line. Ignore it,
21790       # but warn the user (except for BASH, which is always set by the calling BASH).
21791       if test "xZIPEXE" != xBASH; then
21792         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5
21793 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;}
21794       fi
21795       # Try to locate tool using the code snippet
21796       for ac_prog in zip
21797 do
21798   # Extract the first word of "$ac_prog", so it can be a program name with args.
21799 set dummy $ac_prog; ac_word=$2
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21801 $as_echo_n "checking for $ac_word... " >&6; }
21802 if ${ac_cv_path_ZIPEXE+:} false; then :
21803   $as_echo_n "(cached) " >&6
21804 else
21805   case $ZIPEXE in
21806   [\\/]* | ?:[\\/]*)
21807   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21808   ;;
21809   *)
21810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21811 for as_dir in $PATH
21812 do
21813   IFS=$as_save_IFS
21814   test -z "$as_dir" && as_dir=.
21815     for ac_exec_ext in '' $ac_executable_extensions; do
21816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21817     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21819     break 2
21820   fi
21821 done
21822   done
21823 IFS=$as_save_IFS
21824 
21825   ;;
21826 esac
21827 fi
21828 ZIPEXE=$ac_cv_path_ZIPEXE
21829 if test -n "$ZIPEXE"; then
21830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21831 $as_echo "$ZIPEXE" >&6; }
21832 else
21833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21834 $as_echo "no" >&6; }
21835 fi
21836 
21837 
21838   test -n "$ZIPEXE" && break
21839 done
21840 
21841     else
21842       # If it succeeded, then it was overridden by the user. We will use it
21843       # for the tool.
21844 
21845       # First remove it from the list of overridden variables, so we can test
21846       # for unknown variables in the end.
21847       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21848 
21849       # Check if we try to supply an empty value
21850       if test "x$ZIPEXE" = x; then
21851         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5
21852 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;}
21853         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21854 $as_echo_n "checking for ZIPEXE... " >&6; }
21855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21856 $as_echo "disabled" >&6; }
21857       else
21858         # Check if the provided tool contains a complete path.
21859         tool_specified="$ZIPEXE"
21860         tool_basename="${tool_specified##*/}"
21861         if test "x$tool_basename" = "x$tool_specified"; then
21862           # A command without a complete path is provided, search $PATH.
21863           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5
21864 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;}
21865           # Extract the first word of "$tool_basename", so it can be a program name with args.
21866 set dummy $tool_basename; ac_word=$2
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21868 $as_echo_n "checking for $ac_word... " >&6; }
21869 if ${ac_cv_path_ZIPEXE+:} false; then :
21870   $as_echo_n "(cached) " >&6
21871 else
21872   case $ZIPEXE in
21873   [\\/]* | ?:[\\/]*)
21874   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21875   ;;
21876   *)
21877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21878 for as_dir in $PATH
21879 do
21880   IFS=$as_save_IFS
21881   test -z "$as_dir" && as_dir=.
21882     for ac_exec_ext in '' $ac_executable_extensions; do
21883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21884     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21886     break 2
21887   fi
21888 done
21889   done
21890 IFS=$as_save_IFS
21891 
21892   ;;
21893 esac
21894 fi
21895 ZIPEXE=$ac_cv_path_ZIPEXE
21896 if test -n "$ZIPEXE"; then
21897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21898 $as_echo "$ZIPEXE" >&6; }
21899 else
21900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21901 $as_echo "no" >&6; }
21902 fi
21903 
21904 
21905           if test "x$ZIPEXE" = x; then
21906             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21907           fi
21908         else
21909           # Otherwise we believe it is a complete path. Use it as it is.
21910           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5
21911 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;}
21912           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21913 $as_echo_n "checking for ZIPEXE... " >&6; }
21914           if test ! -x "$tool_specified"; then
21915             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21916 $as_echo "not found" >&6; }
21917             as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5
21918           fi
21919           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21920 $as_echo "$tool_specified" >&6; }
21921         fi
21922       fi
21923     fi
21924 
21925   fi
21926 
21927 
21928 
21929   if test "x$ZIPEXE" = x; then
21930     as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5
21931   fi
21932 
21933 
21934 
21935   # Non-required basic tools
21936 
21937 
21938 
21939   # Publish this variable in the help.
21940 
21941 
21942   if [ -z "${LDD+x}" ]; then
21943     # The variable is not set by user, try to locate tool using the code snippet
21944     for ac_prog in ldd
21945 do
21946   # Extract the first word of "$ac_prog", so it can be a program name with args.
21947 set dummy $ac_prog; ac_word=$2
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21949 $as_echo_n "checking for $ac_word... " >&6; }
21950 if ${ac_cv_path_LDD+:} false; then :
21951   $as_echo_n "(cached) " >&6
21952 else
21953   case $LDD in
21954   [\\/]* | ?:[\\/]*)
21955   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21956   ;;
21957   *)
21958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21959 for as_dir in $PATH
21960 do
21961   IFS=$as_save_IFS
21962   test -z "$as_dir" && as_dir=.
21963     for ac_exec_ext in '' $ac_executable_extensions; do
21964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21965     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21967     break 2
21968   fi
21969 done
21970   done
21971 IFS=$as_save_IFS
21972 
21973   ;;
21974 esac
21975 fi
21976 LDD=$ac_cv_path_LDD
21977 if test -n "$LDD"; then
21978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21979 $as_echo "$LDD" >&6; }
21980 else
21981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21982 $as_echo "no" >&6; }
21983 fi
21984 
21985 
21986   test -n "$LDD" && break
21987 done
21988 
21989   else
21990     # The variable is set, but is it from the command line or the environment?
21991 
21992     # Try to remove the string !LDD! from our list.
21993     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
21994     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21995       # If it failed, the variable was not from the command line. Ignore it,
21996       # but warn the user (except for BASH, which is always set by the calling BASH).
21997       if test "xLDD" != xBASH; then
21998         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
21999 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
22000       fi
22001       # Try to locate tool using the code snippet
22002       for ac_prog in ldd
22003 do
22004   # Extract the first word of "$ac_prog", so it can be a program name with args.
22005 set dummy $ac_prog; ac_word=$2
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22007 $as_echo_n "checking for $ac_word... " >&6; }
22008 if ${ac_cv_path_LDD+:} false; then :
22009   $as_echo_n "(cached) " >&6
22010 else
22011   case $LDD in
22012   [\\/]* | ?:[\\/]*)
22013   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
22014   ;;
22015   *)
22016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22017 for as_dir in $PATH
22018 do
22019   IFS=$as_save_IFS
22020   test -z "$as_dir" && as_dir=.
22021     for ac_exec_ext in '' $ac_executable_extensions; do
22022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22023     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
22024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22025     break 2
22026   fi
22027 done
22028   done
22029 IFS=$as_save_IFS
22030 
22031   ;;
22032 esac
22033 fi
22034 LDD=$ac_cv_path_LDD
22035 if test -n "$LDD"; then
22036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
22037 $as_echo "$LDD" >&6; }
22038 else
22039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22040 $as_echo "no" >&6; }
22041 fi
22042 
22043 
22044   test -n "$LDD" && break
22045 done
22046 
22047     else
22048       # If it succeeded, then it was overridden by the user. We will use it
22049       # for the tool.
22050 
22051       # First remove it from the list of overridden variables, so we can test
22052       # for unknown variables in the end.
22053       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22054 
22055       # Check if we try to supply an empty value
22056       if test "x$LDD" = x; then
22057         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
22058 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
22059         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
22060 $as_echo_n "checking for LDD... " >&6; }
22061         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22062 $as_echo "disabled" >&6; }
22063       else
22064         # Check if the provided tool contains a complete path.
22065         tool_specified="$LDD"
22066         tool_basename="${tool_specified##*/}"
22067         if test "x$tool_basename" = "x$tool_specified"; then
22068           # A command without a complete path is provided, search $PATH.
22069           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
22070 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
22071           # Extract the first word of "$tool_basename", so it can be a program name with args.
22072 set dummy $tool_basename; ac_word=$2
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22074 $as_echo_n "checking for $ac_word... " >&6; }
22075 if ${ac_cv_path_LDD+:} false; then :
22076   $as_echo_n "(cached) " >&6
22077 else
22078   case $LDD in
22079   [\\/]* | ?:[\\/]*)
22080   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
22081   ;;
22082   *)
22083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22084 for as_dir in $PATH
22085 do
22086   IFS=$as_save_IFS
22087   test -z "$as_dir" && as_dir=.
22088     for ac_exec_ext in '' $ac_executable_extensions; do
22089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22090     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
22091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22092     break 2
22093   fi
22094 done
22095   done
22096 IFS=$as_save_IFS
22097 
22098   ;;
22099 esac
22100 fi
22101 LDD=$ac_cv_path_LDD
22102 if test -n "$LDD"; then
22103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
22104 $as_echo "$LDD" >&6; }
22105 else
22106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22107 $as_echo "no" >&6; }
22108 fi
22109 
22110 
22111           if test "x$LDD" = x; then
22112             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22113           fi
22114         else
22115           # Otherwise we believe it is a complete path. Use it as it is.
22116           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
22117 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
22118           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
22119 $as_echo_n "checking for LDD... " >&6; }
22120           if test ! -x "$tool_specified"; then
22121             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22122 $as_echo "not found" >&6; }
22123             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
22124           fi
22125           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22126 $as_echo "$tool_specified" >&6; }
22127         fi
22128       fi
22129     fi
22130 
22131   fi
22132 
22133 
22134   if test "x$LDD" = "x"; then
22135     # List shared lib dependencies is used for
22136     # debug output and checking for forbidden dependencies.
22137     # We can build without it.
22138     LDD="true"
22139   fi
22140 
22141 
22142   # Publish this variable in the help.
22143 
22144 
22145   if [ -z "${READELF+x}" ]; then
22146     # The variable is not set by user, try to locate tool using the code snippet
22147     for ac_prog in greadelf readelf
22148 do
22149   # Extract the first word of "$ac_prog", so it can be a program name with args.
22150 set dummy $ac_prog; ac_word=$2
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22152 $as_echo_n "checking for $ac_word... " >&6; }
22153 if ${ac_cv_path_READELF+:} false; then :
22154   $as_echo_n "(cached) " >&6
22155 else
22156   case $READELF in
22157   [\\/]* | ?:[\\/]*)
22158   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22159   ;;
22160   *)
22161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22162 for as_dir in $PATH
22163 do
22164   IFS=$as_save_IFS
22165   test -z "$as_dir" && as_dir=.
22166     for ac_exec_ext in '' $ac_executable_extensions; do
22167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22168     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22170     break 2
22171   fi
22172 done
22173   done
22174 IFS=$as_save_IFS
22175 
22176   ;;
22177 esac
22178 fi
22179 READELF=$ac_cv_path_READELF
22180 if test -n "$READELF"; then
22181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22182 $as_echo "$READELF" >&6; }
22183 else
22184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22185 $as_echo "no" >&6; }
22186 fi
22187 
22188 
22189   test -n "$READELF" && break
22190 done
22191 
22192   else
22193     # The variable is set, but is it from the command line or the environment?
22194 
22195     # Try to remove the string !READELF! from our list.
22196     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
22197     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22198       # If it failed, the variable was not from the command line. Ignore it,
22199       # but warn the user (except for BASH, which is always set by the calling BASH).
22200       if test "xREADELF" != xBASH; then
22201         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
22202 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
22203       fi
22204       # Try to locate tool using the code snippet
22205       for ac_prog in greadelf readelf
22206 do
22207   # Extract the first word of "$ac_prog", so it can be a program name with args.
22208 set dummy $ac_prog; ac_word=$2
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22210 $as_echo_n "checking for $ac_word... " >&6; }
22211 if ${ac_cv_path_READELF+:} false; then :
22212   $as_echo_n "(cached) " >&6
22213 else
22214   case $READELF in
22215   [\\/]* | ?:[\\/]*)
22216   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22217   ;;
22218   *)
22219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22220 for as_dir in $PATH
22221 do
22222   IFS=$as_save_IFS
22223   test -z "$as_dir" && as_dir=.
22224     for ac_exec_ext in '' $ac_executable_extensions; do
22225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22226     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22228     break 2
22229   fi
22230 done
22231   done
22232 IFS=$as_save_IFS
22233 
22234   ;;
22235 esac
22236 fi
22237 READELF=$ac_cv_path_READELF
22238 if test -n "$READELF"; then
22239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22240 $as_echo "$READELF" >&6; }
22241 else
22242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22243 $as_echo "no" >&6; }
22244 fi
22245 
22246 
22247   test -n "$READELF" && break
22248 done
22249 
22250     else
22251       # If it succeeded, then it was overridden by the user. We will use it
22252       # for the tool.
22253 
22254       # First remove it from the list of overridden variables, so we can test
22255       # for unknown variables in the end.
22256       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22257 
22258       # Check if we try to supply an empty value
22259       if test "x$READELF" = x; then
22260         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
22261 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
22262         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22263 $as_echo_n "checking for READELF... " >&6; }
22264         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22265 $as_echo "disabled" >&6; }
22266       else
22267         # Check if the provided tool contains a complete path.
22268         tool_specified="$READELF"
22269         tool_basename="${tool_specified##*/}"
22270         if test "x$tool_basename" = "x$tool_specified"; then
22271           # A command without a complete path is provided, search $PATH.
22272           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
22273 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
22274           # Extract the first word of "$tool_basename", so it can be a program name with args.
22275 set dummy $tool_basename; ac_word=$2
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22277 $as_echo_n "checking for $ac_word... " >&6; }
22278 if ${ac_cv_path_READELF+:} false; then :
22279   $as_echo_n "(cached) " >&6
22280 else
22281   case $READELF in
22282   [\\/]* | ?:[\\/]*)
22283   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22284   ;;
22285   *)
22286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22287 for as_dir in $PATH
22288 do
22289   IFS=$as_save_IFS
22290   test -z "$as_dir" && as_dir=.
22291     for ac_exec_ext in '' $ac_executable_extensions; do
22292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22293     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22295     break 2
22296   fi
22297 done
22298   done
22299 IFS=$as_save_IFS
22300 
22301   ;;
22302 esac
22303 fi
22304 READELF=$ac_cv_path_READELF
22305 if test -n "$READELF"; then
22306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22307 $as_echo "$READELF" >&6; }
22308 else
22309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22310 $as_echo "no" >&6; }
22311 fi
22312 
22313 
22314           if test "x$READELF" = x; then
22315             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22316           fi
22317         else
22318           # Otherwise we believe it is a complete path. Use it as it is.
22319           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
22320 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
22321           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22322 $as_echo_n "checking for READELF... " >&6; }
22323           if test ! -x "$tool_specified"; then
22324             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22325 $as_echo "not found" >&6; }
22326             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
22327           fi
22328           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22329 $as_echo "$tool_specified" >&6; }
22330         fi
22331       fi
22332     fi
22333 
22334   fi
22335 
22336 
22337 
22338 
22339   # Publish this variable in the help.
22340 
22341 
22342   if [ -z "${DOT+x}" ]; then
22343     # The variable is not set by user, try to locate tool using the code snippet
22344     for ac_prog in dot
22345 do
22346   # Extract the first word of "$ac_prog", so it can be a program name with args.
22347 set dummy $ac_prog; ac_word=$2
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22349 $as_echo_n "checking for $ac_word... " >&6; }
22350 if ${ac_cv_path_DOT+:} false; then :
22351   $as_echo_n "(cached) " >&6
22352 else
22353   case $DOT in
22354   [\\/]* | ?:[\\/]*)
22355   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22356   ;;
22357   *)
22358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22359 for as_dir in $PATH
22360 do
22361   IFS=$as_save_IFS
22362   test -z "$as_dir" && as_dir=.
22363     for ac_exec_ext in '' $ac_executable_extensions; do
22364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22365     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22367     break 2
22368   fi
22369 done
22370   done
22371 IFS=$as_save_IFS
22372 
22373   ;;
22374 esac
22375 fi
22376 DOT=$ac_cv_path_DOT
22377 if test -n "$DOT"; then
22378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22379 $as_echo "$DOT" >&6; }
22380 else
22381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22382 $as_echo "no" >&6; }
22383 fi
22384 
22385 
22386   test -n "$DOT" && break
22387 done
22388 
22389   else
22390     # The variable is set, but is it from the command line or the environment?
22391 
22392     # Try to remove the string !DOT! from our list.
22393     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DOT!/}
22394     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22395       # If it failed, the variable was not from the command line. Ignore it,
22396       # but warn the user (except for BASH, which is always set by the calling BASH).
22397       if test "xDOT" != xBASH; then
22398         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&5
22399 $as_echo "$as_me: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&2;}
22400       fi
22401       # Try to locate tool using the code snippet
22402       for ac_prog in dot
22403 do
22404   # Extract the first word of "$ac_prog", so it can be a program name with args.
22405 set dummy $ac_prog; ac_word=$2
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22407 $as_echo_n "checking for $ac_word... " >&6; }
22408 if ${ac_cv_path_DOT+:} false; then :
22409   $as_echo_n "(cached) " >&6
22410 else
22411   case $DOT in
22412   [\\/]* | ?:[\\/]*)
22413   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22414   ;;
22415   *)
22416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22417 for as_dir in $PATH
22418 do
22419   IFS=$as_save_IFS
22420   test -z "$as_dir" && as_dir=.
22421     for ac_exec_ext in '' $ac_executable_extensions; do
22422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22423     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22425     break 2
22426   fi
22427 done
22428   done
22429 IFS=$as_save_IFS
22430 
22431   ;;
22432 esac
22433 fi
22434 DOT=$ac_cv_path_DOT
22435 if test -n "$DOT"; then
22436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22437 $as_echo "$DOT" >&6; }
22438 else
22439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22440 $as_echo "no" >&6; }
22441 fi
22442 
22443 
22444   test -n "$DOT" && break
22445 done
22446 
22447     else
22448       # If it succeeded, then it was overridden by the user. We will use it
22449       # for the tool.
22450 
22451       # First remove it from the list of overridden variables, so we can test
22452       # for unknown variables in the end.
22453       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22454 
22455       # Check if we try to supply an empty value
22456       if test "x$DOT" = x; then
22457         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DOT= (no value)" >&5
22458 $as_echo "$as_me: Setting user supplied tool DOT= (no value)" >&6;}
22459         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5
22460 $as_echo_n "checking for DOT... " >&6; }
22461         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22462 $as_echo "disabled" >&6; }
22463       else
22464         # Check if the provided tool contains a complete path.
22465         tool_specified="$DOT"
22466         tool_basename="${tool_specified##*/}"
22467         if test "x$tool_basename" = "x$tool_specified"; then
22468           # A command without a complete path is provided, search $PATH.
22469           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DOT=$tool_basename" >&5
22470 $as_echo "$as_me: Will search for user supplied tool DOT=$tool_basename" >&6;}
22471           # Extract the first word of "$tool_basename", so it can be a program name with args.
22472 set dummy $tool_basename; ac_word=$2
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22474 $as_echo_n "checking for $ac_word... " >&6; }
22475 if ${ac_cv_path_DOT+:} false; then :
22476   $as_echo_n "(cached) " >&6
22477 else
22478   case $DOT in
22479   [\\/]* | ?:[\\/]*)
22480   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22481   ;;
22482   *)
22483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22484 for as_dir in $PATH
22485 do
22486   IFS=$as_save_IFS
22487   test -z "$as_dir" && as_dir=.
22488     for ac_exec_ext in '' $ac_executable_extensions; do
22489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22490     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22492     break 2
22493   fi
22494 done
22495   done
22496 IFS=$as_save_IFS
22497 
22498   ;;
22499 esac
22500 fi
22501 DOT=$ac_cv_path_DOT
22502 if test -n "$DOT"; then
22503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22504 $as_echo "$DOT" >&6; }
22505 else
22506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22507 $as_echo "no" >&6; }
22508 fi
22509 
22510 
22511           if test "x$DOT" = x; then
22512             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22513           fi
22514         else
22515           # Otherwise we believe it is a complete path. Use it as it is.
22516           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DOT=$tool_specified" >&5
22517 $as_echo "$as_me: Will use user supplied tool DOT=$tool_specified" >&6;}
22518           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5
22519 $as_echo_n "checking for DOT... " >&6; }
22520           if test ! -x "$tool_specified"; then
22521             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22522 $as_echo "not found" >&6; }
22523             as_fn_error $? "User supplied tool DOT=$tool_specified does not exist or is not executable" "$LINENO" 5
22524           fi
22525           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22526 $as_echo "$tool_specified" >&6; }
22527         fi
22528       fi
22529     fi
22530 
22531   fi
22532 
22533 
22534 
22535 
22536   # Publish this variable in the help.
22537 
22538 
22539   if [ -z "${HG+x}" ]; then
22540     # The variable is not set by user, try to locate tool using the code snippet
22541     for ac_prog in hg
22542 do
22543   # Extract the first word of "$ac_prog", so it can be a program name with args.
22544 set dummy $ac_prog; ac_word=$2
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22546 $as_echo_n "checking for $ac_word... " >&6; }
22547 if ${ac_cv_path_HG+:} false; then :
22548   $as_echo_n "(cached) " >&6
22549 else
22550   case $HG in
22551   [\\/]* | ?:[\\/]*)
22552   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22553   ;;
22554   *)
22555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22556 for as_dir in $PATH
22557 do
22558   IFS=$as_save_IFS
22559   test -z "$as_dir" && as_dir=.
22560     for ac_exec_ext in '' $ac_executable_extensions; do
22561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22562     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22564     break 2
22565   fi
22566 done
22567   done
22568 IFS=$as_save_IFS
22569 
22570   ;;
22571 esac
22572 fi
22573 HG=$ac_cv_path_HG
22574 if test -n "$HG"; then
22575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22576 $as_echo "$HG" >&6; }
22577 else
22578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22579 $as_echo "no" >&6; }
22580 fi
22581 
22582 
22583   test -n "$HG" && break
22584 done
22585 
22586   else
22587     # The variable is set, but is it from the command line or the environment?
22588 
22589     # Try to remove the string !HG! from our list.
22590     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
22591     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22592       # If it failed, the variable was not from the command line. Ignore it,
22593       # but warn the user (except for BASH, which is always set by the calling BASH).
22594       if test "xHG" != xBASH; then
22595         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
22596 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
22597       fi
22598       # Try to locate tool using the code snippet
22599       for ac_prog in hg
22600 do
22601   # Extract the first word of "$ac_prog", so it can be a program name with args.
22602 set dummy $ac_prog; ac_word=$2
22603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22604 $as_echo_n "checking for $ac_word... " >&6; }
22605 if ${ac_cv_path_HG+:} false; then :
22606   $as_echo_n "(cached) " >&6
22607 else
22608   case $HG in
22609   [\\/]* | ?:[\\/]*)
22610   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22611   ;;
22612   *)
22613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22614 for as_dir in $PATH
22615 do
22616   IFS=$as_save_IFS
22617   test -z "$as_dir" && as_dir=.
22618     for ac_exec_ext in '' $ac_executable_extensions; do
22619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22620     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22622     break 2
22623   fi
22624 done
22625   done
22626 IFS=$as_save_IFS
22627 
22628   ;;
22629 esac
22630 fi
22631 HG=$ac_cv_path_HG
22632 if test -n "$HG"; then
22633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22634 $as_echo "$HG" >&6; }
22635 else
22636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22637 $as_echo "no" >&6; }
22638 fi
22639 
22640 
22641   test -n "$HG" && break
22642 done
22643 
22644     else
22645       # If it succeeded, then it was overridden by the user. We will use it
22646       # for the tool.
22647 
22648       # First remove it from the list of overridden variables, so we can test
22649       # for unknown variables in the end.
22650       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22651 
22652       # Check if we try to supply an empty value
22653       if test "x$HG" = x; then
22654         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
22655 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
22656         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22657 $as_echo_n "checking for HG... " >&6; }
22658         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22659 $as_echo "disabled" >&6; }
22660       else
22661         # Check if the provided tool contains a complete path.
22662         tool_specified="$HG"
22663         tool_basename="${tool_specified##*/}"
22664         if test "x$tool_basename" = "x$tool_specified"; then
22665           # A command without a complete path is provided, search $PATH.
22666           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
22667 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
22668           # Extract the first word of "$tool_basename", so it can be a program name with args.
22669 set dummy $tool_basename; ac_word=$2
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22671 $as_echo_n "checking for $ac_word... " >&6; }
22672 if ${ac_cv_path_HG+:} false; then :
22673   $as_echo_n "(cached) " >&6
22674 else
22675   case $HG in
22676   [\\/]* | ?:[\\/]*)
22677   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22678   ;;
22679   *)
22680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22681 for as_dir in $PATH
22682 do
22683   IFS=$as_save_IFS
22684   test -z "$as_dir" && as_dir=.
22685     for ac_exec_ext in '' $ac_executable_extensions; do
22686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22687     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22689     break 2
22690   fi
22691 done
22692   done
22693 IFS=$as_save_IFS
22694 
22695   ;;
22696 esac
22697 fi
22698 HG=$ac_cv_path_HG
22699 if test -n "$HG"; then
22700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22701 $as_echo "$HG" >&6; }
22702 else
22703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22704 $as_echo "no" >&6; }
22705 fi
22706 
22707 
22708           if test "x$HG" = x; then
22709             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22710           fi
22711         else
22712           # Otherwise we believe it is a complete path. Use it as it is.
22713           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
22714 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
22715           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22716 $as_echo_n "checking for HG... " >&6; }
22717           if test ! -x "$tool_specified"; then
22718             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22719 $as_echo "not found" >&6; }
22720             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
22721           fi
22722           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22723 $as_echo "$tool_specified" >&6; }
22724         fi
22725       fi
22726     fi
22727 
22728   fi
22729 
22730 
22731 
22732 
22733   # Publish this variable in the help.
22734 
22735 
22736   if [ -z "${STAT+x}" ]; then
22737     # The variable is not set by user, try to locate tool using the code snippet
22738     for ac_prog in stat
22739 do
22740   # Extract the first word of "$ac_prog", so it can be a program name with args.
22741 set dummy $ac_prog; ac_word=$2
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22743 $as_echo_n "checking for $ac_word... " >&6; }
22744 if ${ac_cv_path_STAT+:} false; then :
22745   $as_echo_n "(cached) " >&6
22746 else
22747   case $STAT in
22748   [\\/]* | ?:[\\/]*)
22749   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22750   ;;
22751   *)
22752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22753 for as_dir in $PATH
22754 do
22755   IFS=$as_save_IFS
22756   test -z "$as_dir" && as_dir=.
22757     for ac_exec_ext in '' $ac_executable_extensions; do
22758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22759     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22761     break 2
22762   fi
22763 done
22764   done
22765 IFS=$as_save_IFS
22766 
22767   ;;
22768 esac
22769 fi
22770 STAT=$ac_cv_path_STAT
22771 if test -n "$STAT"; then
22772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22773 $as_echo "$STAT" >&6; }
22774 else
22775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22776 $as_echo "no" >&6; }
22777 fi
22778 
22779 
22780   test -n "$STAT" && break
22781 done
22782 
22783   else
22784     # The variable is set, but is it from the command line or the environment?
22785 
22786     # Try to remove the string !STAT! from our list.
22787     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
22788     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22789       # If it failed, the variable was not from the command line. Ignore it,
22790       # but warn the user (except for BASH, which is always set by the calling BASH).
22791       if test "xSTAT" != xBASH; then
22792         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
22793 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
22794       fi
22795       # Try to locate tool using the code snippet
22796       for ac_prog in stat
22797 do
22798   # Extract the first word of "$ac_prog", so it can be a program name with args.
22799 set dummy $ac_prog; ac_word=$2
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22801 $as_echo_n "checking for $ac_word... " >&6; }
22802 if ${ac_cv_path_STAT+:} false; then :
22803   $as_echo_n "(cached) " >&6
22804 else
22805   case $STAT in
22806   [\\/]* | ?:[\\/]*)
22807   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22808   ;;
22809   *)
22810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22811 for as_dir in $PATH
22812 do
22813   IFS=$as_save_IFS
22814   test -z "$as_dir" && as_dir=.
22815     for ac_exec_ext in '' $ac_executable_extensions; do
22816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22817     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22819     break 2
22820   fi
22821 done
22822   done
22823 IFS=$as_save_IFS
22824 
22825   ;;
22826 esac
22827 fi
22828 STAT=$ac_cv_path_STAT
22829 if test -n "$STAT"; then
22830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22831 $as_echo "$STAT" >&6; }
22832 else
22833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22834 $as_echo "no" >&6; }
22835 fi
22836 
22837 
22838   test -n "$STAT" && break
22839 done
22840 
22841     else
22842       # If it succeeded, then it was overridden by the user. We will use it
22843       # for the tool.
22844 
22845       # First remove it from the list of overridden variables, so we can test
22846       # for unknown variables in the end.
22847       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22848 
22849       # Check if we try to supply an empty value
22850       if test "x$STAT" = x; then
22851         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
22852 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
22853         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22854 $as_echo_n "checking for STAT... " >&6; }
22855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22856 $as_echo "disabled" >&6; }
22857       else
22858         # Check if the provided tool contains a complete path.
22859         tool_specified="$STAT"
22860         tool_basename="${tool_specified##*/}"
22861         if test "x$tool_basename" = "x$tool_specified"; then
22862           # A command without a complete path is provided, search $PATH.
22863           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
22864 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
22865           # Extract the first word of "$tool_basename", so it can be a program name with args.
22866 set dummy $tool_basename; ac_word=$2
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22868 $as_echo_n "checking for $ac_word... " >&6; }
22869 if ${ac_cv_path_STAT+:} false; then :
22870   $as_echo_n "(cached) " >&6
22871 else
22872   case $STAT in
22873   [\\/]* | ?:[\\/]*)
22874   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22875   ;;
22876   *)
22877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22878 for as_dir in $PATH
22879 do
22880   IFS=$as_save_IFS
22881   test -z "$as_dir" && as_dir=.
22882     for ac_exec_ext in '' $ac_executable_extensions; do
22883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22884     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22886     break 2
22887   fi
22888 done
22889   done
22890 IFS=$as_save_IFS
22891 
22892   ;;
22893 esac
22894 fi
22895 STAT=$ac_cv_path_STAT
22896 if test -n "$STAT"; then
22897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22898 $as_echo "$STAT" >&6; }
22899 else
22900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22901 $as_echo "no" >&6; }
22902 fi
22903 
22904 
22905           if test "x$STAT" = x; then
22906             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22907           fi
22908         else
22909           # Otherwise we believe it is a complete path. Use it as it is.
22910           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
22911 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
22912           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22913 $as_echo_n "checking for STAT... " >&6; }
22914           if test ! -x "$tool_specified"; then
22915             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22916 $as_echo "not found" >&6; }
22917             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
22918           fi
22919           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22920 $as_echo "$tool_specified" >&6; }
22921         fi
22922       fi
22923     fi
22924 
22925   fi
22926 
22927 
22928 
22929 
22930   # Publish this variable in the help.
22931 
22932 
22933   if [ -z "${TIME+x}" ]; then
22934     # The variable is not set by user, try to locate tool using the code snippet
22935     for ac_prog in time
22936 do
22937   # Extract the first word of "$ac_prog", so it can be a program name with args.
22938 set dummy $ac_prog; ac_word=$2
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22940 $as_echo_n "checking for $ac_word... " >&6; }
22941 if ${ac_cv_path_TIME+:} false; then :
22942   $as_echo_n "(cached) " >&6
22943 else
22944   case $TIME in
22945   [\\/]* | ?:[\\/]*)
22946   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22947   ;;
22948   *)
22949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22950 for as_dir in $PATH
22951 do
22952   IFS=$as_save_IFS
22953   test -z "$as_dir" && as_dir=.
22954     for ac_exec_ext in '' $ac_executable_extensions; do
22955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22956     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22958     break 2
22959   fi
22960 done
22961   done
22962 IFS=$as_save_IFS
22963 
22964   ;;
22965 esac
22966 fi
22967 TIME=$ac_cv_path_TIME
22968 if test -n "$TIME"; then
22969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22970 $as_echo "$TIME" >&6; }
22971 else
22972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22973 $as_echo "no" >&6; }
22974 fi
22975 
22976 
22977   test -n "$TIME" && break
22978 done
22979 
22980   else
22981     # The variable is set, but is it from the command line or the environment?
22982 
22983     # Try to remove the string !TIME! from our list.
22984     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
22985     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22986       # If it failed, the variable was not from the command line. Ignore it,
22987       # but warn the user (except for BASH, which is always set by the calling BASH).
22988       if test "xTIME" != xBASH; then
22989         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
22990 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
22991       fi
22992       # Try to locate tool using the code snippet
22993       for ac_prog in time
22994 do
22995   # Extract the first word of "$ac_prog", so it can be a program name with args.
22996 set dummy $ac_prog; ac_word=$2
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22998 $as_echo_n "checking for $ac_word... " >&6; }
22999 if ${ac_cv_path_TIME+:} false; then :
23000   $as_echo_n "(cached) " >&6
23001 else
23002   case $TIME in
23003   [\\/]* | ?:[\\/]*)
23004   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
23005   ;;
23006   *)
23007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23008 for as_dir in $PATH
23009 do
23010   IFS=$as_save_IFS
23011   test -z "$as_dir" && as_dir=.
23012     for ac_exec_ext in '' $ac_executable_extensions; do
23013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23014     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23016     break 2
23017   fi
23018 done
23019   done
23020 IFS=$as_save_IFS
23021 
23022   ;;
23023 esac
23024 fi
23025 TIME=$ac_cv_path_TIME
23026 if test -n "$TIME"; then
23027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23028 $as_echo "$TIME" >&6; }
23029 else
23030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23031 $as_echo "no" >&6; }
23032 fi
23033 
23034 
23035   test -n "$TIME" && break
23036 done
23037 
23038     else
23039       # If it succeeded, then it was overridden by the user. We will use it
23040       # for the tool.
23041 
23042       # First remove it from the list of overridden variables, so we can test
23043       # for unknown variables in the end.
23044       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23045 
23046       # Check if we try to supply an empty value
23047       if test "x$TIME" = x; then
23048         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
23049 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
23050         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
23051 $as_echo_n "checking for TIME... " >&6; }
23052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23053 $as_echo "disabled" >&6; }
23054       else
23055         # Check if the provided tool contains a complete path.
23056         tool_specified="$TIME"
23057         tool_basename="${tool_specified##*/}"
23058         if test "x$tool_basename" = "x$tool_specified"; then
23059           # A command without a complete path is provided, search $PATH.
23060           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
23061 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
23062           # Extract the first word of "$tool_basename", so it can be a program name with args.
23063 set dummy $tool_basename; ac_word=$2
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23065 $as_echo_n "checking for $ac_word... " >&6; }
23066 if ${ac_cv_path_TIME+:} false; then :
23067   $as_echo_n "(cached) " >&6
23068 else
23069   case $TIME in
23070   [\\/]* | ?:[\\/]*)
23071   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
23072   ;;
23073   *)
23074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23075 for as_dir in $PATH
23076 do
23077   IFS=$as_save_IFS
23078   test -z "$as_dir" && as_dir=.
23079     for ac_exec_ext in '' $ac_executable_extensions; do
23080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23081     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23083     break 2
23084   fi
23085 done
23086   done
23087 IFS=$as_save_IFS
23088 
23089   ;;
23090 esac
23091 fi
23092 TIME=$ac_cv_path_TIME
23093 if test -n "$TIME"; then
23094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23095 $as_echo "$TIME" >&6; }
23096 else
23097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23098 $as_echo "no" >&6; }
23099 fi
23100 
23101 
23102           if test "x$TIME" = x; then
23103             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23104           fi
23105         else
23106           # Otherwise we believe it is a complete path. Use it as it is.
23107           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
23108 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
23109           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
23110 $as_echo_n "checking for TIME... " >&6; }
23111           if test ! -x "$tool_specified"; then
23112             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23113 $as_echo "not found" >&6; }
23114             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
23115           fi
23116           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23117 $as_echo "$tool_specified" >&6; }
23118         fi
23119       fi
23120     fi
23121 
23122   fi
23123 
23124 
23125 
23126 
23127   # Publish this variable in the help.
23128 
23129 
23130   if [ -z "${FLOCK+x}" ]; then
23131     # The variable is not set by user, try to locate tool using the code snippet
23132     for ac_prog in flock
23133 do
23134   # Extract the first word of "$ac_prog", so it can be a program name with args.
23135 set dummy $ac_prog; ac_word=$2
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23137 $as_echo_n "checking for $ac_word... " >&6; }
23138 if ${ac_cv_path_FLOCK+:} false; then :
23139   $as_echo_n "(cached) " >&6
23140 else
23141   case $FLOCK in
23142   [\\/]* | ?:[\\/]*)
23143   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23144   ;;
23145   *)
23146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23147 for as_dir in $PATH
23148 do
23149   IFS=$as_save_IFS
23150   test -z "$as_dir" && as_dir=.
23151     for ac_exec_ext in '' $ac_executable_extensions; do
23152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23153     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23155     break 2
23156   fi
23157 done
23158   done
23159 IFS=$as_save_IFS
23160 
23161   ;;
23162 esac
23163 fi
23164 FLOCK=$ac_cv_path_FLOCK
23165 if test -n "$FLOCK"; then
23166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23167 $as_echo "$FLOCK" >&6; }
23168 else
23169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23170 $as_echo "no" >&6; }
23171 fi
23172 
23173 
23174   test -n "$FLOCK" && break
23175 done
23176 
23177   else
23178     # The variable is set, but is it from the command line or the environment?
23179 
23180     # Try to remove the string !FLOCK! from our list.
23181     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FLOCK!/}
23182     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23183       # If it failed, the variable was not from the command line. Ignore it,
23184       # but warn the user (except for BASH, which is always set by the calling BASH).
23185       if test "xFLOCK" != xBASH; then
23186         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&5
23187 $as_echo "$as_me: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&2;}
23188       fi
23189       # Try to locate tool using the code snippet
23190       for ac_prog in flock
23191 do
23192   # Extract the first word of "$ac_prog", so it can be a program name with args.
23193 set dummy $ac_prog; ac_word=$2
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23195 $as_echo_n "checking for $ac_word... " >&6; }
23196 if ${ac_cv_path_FLOCK+:} false; then :
23197   $as_echo_n "(cached) " >&6
23198 else
23199   case $FLOCK in
23200   [\\/]* | ?:[\\/]*)
23201   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23202   ;;
23203   *)
23204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23205 for as_dir in $PATH
23206 do
23207   IFS=$as_save_IFS
23208   test -z "$as_dir" && as_dir=.
23209     for ac_exec_ext in '' $ac_executable_extensions; do
23210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23211     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23213     break 2
23214   fi
23215 done
23216   done
23217 IFS=$as_save_IFS
23218 
23219   ;;
23220 esac
23221 fi
23222 FLOCK=$ac_cv_path_FLOCK
23223 if test -n "$FLOCK"; then
23224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23225 $as_echo "$FLOCK" >&6; }
23226 else
23227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23228 $as_echo "no" >&6; }
23229 fi
23230 
23231 
23232   test -n "$FLOCK" && break
23233 done
23234 
23235     else
23236       # If it succeeded, then it was overridden by the user. We will use it
23237       # for the tool.
23238 
23239       # First remove it from the list of overridden variables, so we can test
23240       # for unknown variables in the end.
23241       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23242 
23243       # Check if we try to supply an empty value
23244       if test "x$FLOCK" = x; then
23245         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FLOCK= (no value)" >&5
23246 $as_echo "$as_me: Setting user supplied tool FLOCK= (no value)" >&6;}
23247         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5
23248 $as_echo_n "checking for FLOCK... " >&6; }
23249         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23250 $as_echo "disabled" >&6; }
23251       else
23252         # Check if the provided tool contains a complete path.
23253         tool_specified="$FLOCK"
23254         tool_basename="${tool_specified##*/}"
23255         if test "x$tool_basename" = "x$tool_specified"; then
23256           # A command without a complete path is provided, search $PATH.
23257           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FLOCK=$tool_basename" >&5
23258 $as_echo "$as_me: Will search for user supplied tool FLOCK=$tool_basename" >&6;}
23259           # Extract the first word of "$tool_basename", so it can be a program name with args.
23260 set dummy $tool_basename; ac_word=$2
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23262 $as_echo_n "checking for $ac_word... " >&6; }
23263 if ${ac_cv_path_FLOCK+:} false; then :
23264   $as_echo_n "(cached) " >&6
23265 else
23266   case $FLOCK in
23267   [\\/]* | ?:[\\/]*)
23268   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23269   ;;
23270   *)
23271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23272 for as_dir in $PATH
23273 do
23274   IFS=$as_save_IFS
23275   test -z "$as_dir" && as_dir=.
23276     for ac_exec_ext in '' $ac_executable_extensions; do
23277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23278     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23280     break 2
23281   fi
23282 done
23283   done
23284 IFS=$as_save_IFS
23285 
23286   ;;
23287 esac
23288 fi
23289 FLOCK=$ac_cv_path_FLOCK
23290 if test -n "$FLOCK"; then
23291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23292 $as_echo "$FLOCK" >&6; }
23293 else
23294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23295 $as_echo "no" >&6; }
23296 fi
23297 
23298 
23299           if test "x$FLOCK" = x; then
23300             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23301           fi
23302         else
23303           # Otherwise we believe it is a complete path. Use it as it is.
23304           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FLOCK=$tool_specified" >&5
23305 $as_echo "$as_me: Will use user supplied tool FLOCK=$tool_specified" >&6;}
23306           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5
23307 $as_echo_n "checking for FLOCK... " >&6; }
23308           if test ! -x "$tool_specified"; then
23309             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23310 $as_echo "not found" >&6; }
23311             as_fn_error $? "User supplied tool FLOCK=$tool_specified does not exist or is not executable" "$LINENO" 5
23312           fi
23313           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23314 $as_echo "$tool_specified" >&6; }
23315         fi
23316       fi
23317     fi
23318 
23319   fi
23320 
23321 
23322   # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not
23323   # be in the user path.
23324 
23325 
23326   # Publish this variable in the help.
23327 
23328 
23329   if [ -z "${DTRACE+x}" ]; then
23330     # The variable is not set by user, try to locate tool using the code snippet
23331     for ac_prog in dtrace
23332 do
23333   # Extract the first word of "$ac_prog", so it can be a program name with args.
23334 set dummy $ac_prog; ac_word=$2
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23336 $as_echo_n "checking for $ac_word... " >&6; }
23337 if ${ac_cv_path_DTRACE+:} false; then :
23338   $as_echo_n "(cached) " >&6
23339 else
23340   case $DTRACE in
23341   [\\/]* | ?:[\\/]*)
23342   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23343   ;;
23344   *)
23345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23346 as_dummy="$PATH:/usr/sbin"
23347 for as_dir in $as_dummy
23348 do
23349   IFS=$as_save_IFS
23350   test -z "$as_dir" && as_dir=.
23351     for ac_exec_ext in '' $ac_executable_extensions; do
23352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23353     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23355     break 2
23356   fi
23357 done
23358   done
23359 IFS=$as_save_IFS
23360 
23361   ;;
23362 esac
23363 fi
23364 DTRACE=$ac_cv_path_DTRACE
23365 if test -n "$DTRACE"; then
23366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23367 $as_echo "$DTRACE" >&6; }
23368 else
23369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23370 $as_echo "no" >&6; }
23371 fi
23372 
23373 
23374   test -n "$DTRACE" && break
23375 done
23376 
23377   else
23378     # The variable is set, but is it from the command line or the environment?
23379 
23380     # Try to remove the string !DTRACE! from our list.
23381     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/}
23382     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23383       # If it failed, the variable was not from the command line. Ignore it,
23384       # but warn the user (except for BASH, which is always set by the calling BASH).
23385       if test "xDTRACE" != xBASH; then
23386         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5
23387 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;}
23388       fi
23389       # Try to locate tool using the code snippet
23390       for ac_prog in dtrace
23391 do
23392   # Extract the first word of "$ac_prog", so it can be a program name with args.
23393 set dummy $ac_prog; ac_word=$2
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23395 $as_echo_n "checking for $ac_word... " >&6; }
23396 if ${ac_cv_path_DTRACE+:} false; then :
23397   $as_echo_n "(cached) " >&6
23398 else
23399   case $DTRACE in
23400   [\\/]* | ?:[\\/]*)
23401   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23402   ;;
23403   *)
23404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23405 as_dummy="$PATH:/usr/sbin"
23406 for as_dir in $as_dummy
23407 do
23408   IFS=$as_save_IFS
23409   test -z "$as_dir" && as_dir=.
23410     for ac_exec_ext in '' $ac_executable_extensions; do
23411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23412     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23414     break 2
23415   fi
23416 done
23417   done
23418 IFS=$as_save_IFS
23419 
23420   ;;
23421 esac
23422 fi
23423 DTRACE=$ac_cv_path_DTRACE
23424 if test -n "$DTRACE"; then
23425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23426 $as_echo "$DTRACE" >&6; }
23427 else
23428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23429 $as_echo "no" >&6; }
23430 fi
23431 
23432 
23433   test -n "$DTRACE" && break
23434 done
23435 
23436     else
23437       # If it succeeded, then it was overridden by the user. We will use it
23438       # for the tool.
23439 
23440       # First remove it from the list of overridden variables, so we can test
23441       # for unknown variables in the end.
23442       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23443 
23444       # Check if we try to supply an empty value
23445       if test "x$DTRACE" = x; then
23446         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5
23447 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;}
23448         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23449 $as_echo_n "checking for DTRACE... " >&6; }
23450         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23451 $as_echo "disabled" >&6; }
23452       else
23453         # Check if the provided tool contains a complete path.
23454         tool_specified="$DTRACE"
23455         tool_basename="${tool_specified##*/}"
23456         if test "x$tool_basename" = "x$tool_specified"; then
23457           # A command without a complete path is provided, search $PATH.
23458           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5
23459 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;}
23460           # Extract the first word of "$tool_basename", so it can be a program name with args.
23461 set dummy $tool_basename; ac_word=$2
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23463 $as_echo_n "checking for $ac_word... " >&6; }
23464 if ${ac_cv_path_DTRACE+:} false; then :
23465   $as_echo_n "(cached) " >&6
23466 else
23467   case $DTRACE in
23468   [\\/]* | ?:[\\/]*)
23469   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23470   ;;
23471   *)
23472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23473 for as_dir in $PATH
23474 do
23475   IFS=$as_save_IFS
23476   test -z "$as_dir" && as_dir=.
23477     for ac_exec_ext in '' $ac_executable_extensions; do
23478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23479     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23481     break 2
23482   fi
23483 done
23484   done
23485 IFS=$as_save_IFS
23486 
23487   ;;
23488 esac
23489 fi
23490 DTRACE=$ac_cv_path_DTRACE
23491 if test -n "$DTRACE"; then
23492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23493 $as_echo "$DTRACE" >&6; }
23494 else
23495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23496 $as_echo "no" >&6; }
23497 fi
23498 
23499 
23500           if test "x$DTRACE" = x; then
23501             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23502           fi
23503         else
23504           # Otherwise we believe it is a complete path. Use it as it is.
23505           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5
23506 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;}
23507           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23508 $as_echo_n "checking for DTRACE... " >&6; }
23509           if test ! -x "$tool_specified"; then
23510             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23511 $as_echo "not found" >&6; }
23512             as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5
23513           fi
23514           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23515 $as_echo "$tool_specified" >&6; }
23516         fi
23517       fi
23518     fi
23519 
23520   fi
23521 
23522 
23523 
23524 
23525   # Publish this variable in the help.
23526 
23527 
23528   if [ -z "${PATCH+x}" ]; then
23529     # The variable is not set by user, try to locate tool using the code snippet
23530     for ac_prog in gpatch patch
23531 do
23532   # Extract the first word of "$ac_prog", so it can be a program name with args.
23533 set dummy $ac_prog; ac_word=$2
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23535 $as_echo_n "checking for $ac_word... " >&6; }
23536 if ${ac_cv_path_PATCH+:} false; then :
23537   $as_echo_n "(cached) " >&6
23538 else
23539   case $PATCH in
23540   [\\/]* | ?:[\\/]*)
23541   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23542   ;;
23543   *)
23544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23545 for as_dir in $PATH
23546 do
23547   IFS=$as_save_IFS
23548   test -z "$as_dir" && as_dir=.
23549     for ac_exec_ext in '' $ac_executable_extensions; do
23550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23551     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23553     break 2
23554   fi
23555 done
23556   done
23557 IFS=$as_save_IFS
23558 
23559   ;;
23560 esac
23561 fi
23562 PATCH=$ac_cv_path_PATCH
23563 if test -n "$PATCH"; then
23564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23565 $as_echo "$PATCH" >&6; }
23566 else
23567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23568 $as_echo "no" >&6; }
23569 fi
23570 
23571 
23572   test -n "$PATCH" && break
23573 done
23574 
23575   else
23576     # The variable is set, but is it from the command line or the environment?
23577 
23578     # Try to remove the string !PATCH! from our list.
23579     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
23580     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23581       # If it failed, the variable was not from the command line. Ignore it,
23582       # but warn the user (except for BASH, which is always set by the calling BASH).
23583       if test "xPATCH" != xBASH; then
23584         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
23585 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
23586       fi
23587       # Try to locate tool using the code snippet
23588       for ac_prog in gpatch patch
23589 do
23590   # Extract the first word of "$ac_prog", so it can be a program name with args.
23591 set dummy $ac_prog; ac_word=$2
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23593 $as_echo_n "checking for $ac_word... " >&6; }
23594 if ${ac_cv_path_PATCH+:} false; then :
23595   $as_echo_n "(cached) " >&6
23596 else
23597   case $PATCH in
23598   [\\/]* | ?:[\\/]*)
23599   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23600   ;;
23601   *)
23602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23603 for as_dir in $PATH
23604 do
23605   IFS=$as_save_IFS
23606   test -z "$as_dir" && as_dir=.
23607     for ac_exec_ext in '' $ac_executable_extensions; do
23608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23609     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23611     break 2
23612   fi
23613 done
23614   done
23615 IFS=$as_save_IFS
23616 
23617   ;;
23618 esac
23619 fi
23620 PATCH=$ac_cv_path_PATCH
23621 if test -n "$PATCH"; then
23622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23623 $as_echo "$PATCH" >&6; }
23624 else
23625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23626 $as_echo "no" >&6; }
23627 fi
23628 
23629 
23630   test -n "$PATCH" && break
23631 done
23632 
23633     else
23634       # If it succeeded, then it was overridden by the user. We will use it
23635       # for the tool.
23636 
23637       # First remove it from the list of overridden variables, so we can test
23638       # for unknown variables in the end.
23639       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23640 
23641       # Check if we try to supply an empty value
23642       if test "x$PATCH" = x; then
23643         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
23644 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
23645         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23646 $as_echo_n "checking for PATCH... " >&6; }
23647         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23648 $as_echo "disabled" >&6; }
23649       else
23650         # Check if the provided tool contains a complete path.
23651         tool_specified="$PATCH"
23652         tool_basename="${tool_specified##*/}"
23653         if test "x$tool_basename" = "x$tool_specified"; then
23654           # A command without a complete path is provided, search $PATH.
23655           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
23656 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
23657           # Extract the first word of "$tool_basename", so it can be a program name with args.
23658 set dummy $tool_basename; ac_word=$2
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23660 $as_echo_n "checking for $ac_word... " >&6; }
23661 if ${ac_cv_path_PATCH+:} false; then :
23662   $as_echo_n "(cached) " >&6
23663 else
23664   case $PATCH in
23665   [\\/]* | ?:[\\/]*)
23666   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23667   ;;
23668   *)
23669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23670 for as_dir in $PATH
23671 do
23672   IFS=$as_save_IFS
23673   test -z "$as_dir" && as_dir=.
23674     for ac_exec_ext in '' $ac_executable_extensions; do
23675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23676     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23678     break 2
23679   fi
23680 done
23681   done
23682 IFS=$as_save_IFS
23683 
23684   ;;
23685 esac
23686 fi
23687 PATCH=$ac_cv_path_PATCH
23688 if test -n "$PATCH"; then
23689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23690 $as_echo "$PATCH" >&6; }
23691 else
23692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23693 $as_echo "no" >&6; }
23694 fi
23695 
23696 
23697           if test "x$PATCH" = x; then
23698             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23699           fi
23700         else
23701           # Otherwise we believe it is a complete path. Use it as it is.
23702           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
23703 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
23704           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23705 $as_echo_n "checking for PATCH... " >&6; }
23706           if test ! -x "$tool_specified"; then
23707             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23708 $as_echo "not found" >&6; }
23709             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
23710           fi
23711           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23712 $as_echo "$tool_specified" >&6; }
23713         fi
23714       fi
23715     fi
23716 
23717   fi
23718 
23719 
23720   # Check if it's GNU time
23721   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
23722   if test "x$IS_GNU_TIME" != x; then
23723     IS_GNU_TIME=yes
23724   else
23725     IS_GNU_TIME=no
23726   fi
23727 
23728 
23729   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
23730 
23731 
23732 
23733   # Publish this variable in the help.
23734 
23735 
23736   if [ -z "${DSYMUTIL+x}" ]; then
23737     # The variable is not set by user, try to locate tool using the code snippet
23738     for ac_prog in dsymutil
23739 do
23740   # Extract the first word of "$ac_prog", so it can be a program name with args.
23741 set dummy $ac_prog; ac_word=$2
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23743 $as_echo_n "checking for $ac_word... " >&6; }
23744 if ${ac_cv_path_DSYMUTIL+:} false; then :
23745   $as_echo_n "(cached) " >&6
23746 else
23747   case $DSYMUTIL in
23748   [\\/]* | ?:[\\/]*)
23749   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23750   ;;
23751   *)
23752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23753 for as_dir in $PATH
23754 do
23755   IFS=$as_save_IFS
23756   test -z "$as_dir" && as_dir=.
23757     for ac_exec_ext in '' $ac_executable_extensions; do
23758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23759     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23761     break 2
23762   fi
23763 done
23764   done
23765 IFS=$as_save_IFS
23766 
23767   ;;
23768 esac
23769 fi
23770 DSYMUTIL=$ac_cv_path_DSYMUTIL
23771 if test -n "$DSYMUTIL"; then
23772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23773 $as_echo "$DSYMUTIL" >&6; }
23774 else
23775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23776 $as_echo "no" >&6; }
23777 fi
23778 
23779 
23780   test -n "$DSYMUTIL" && break
23781 done
23782 
23783   else
23784     # The variable is set, but is it from the command line or the environment?
23785 
23786     # Try to remove the string !DSYMUTIL! from our list.
23787     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
23788     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23789       # If it failed, the variable was not from the command line. Ignore it,
23790       # but warn the user (except for BASH, which is always set by the calling BASH).
23791       if test "xDSYMUTIL" != xBASH; then
23792         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
23793 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
23794       fi
23795       # Try to locate tool using the code snippet
23796       for ac_prog in dsymutil
23797 do
23798   # Extract the first word of "$ac_prog", so it can be a program name with args.
23799 set dummy $ac_prog; ac_word=$2
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23801 $as_echo_n "checking for $ac_word... " >&6; }
23802 if ${ac_cv_path_DSYMUTIL+:} false; then :
23803   $as_echo_n "(cached) " >&6
23804 else
23805   case $DSYMUTIL in
23806   [\\/]* | ?:[\\/]*)
23807   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23808   ;;
23809   *)
23810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23811 for as_dir in $PATH
23812 do
23813   IFS=$as_save_IFS
23814   test -z "$as_dir" && as_dir=.
23815     for ac_exec_ext in '' $ac_executable_extensions; do
23816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23817     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23819     break 2
23820   fi
23821 done
23822   done
23823 IFS=$as_save_IFS
23824 
23825   ;;
23826 esac
23827 fi
23828 DSYMUTIL=$ac_cv_path_DSYMUTIL
23829 if test -n "$DSYMUTIL"; then
23830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23831 $as_echo "$DSYMUTIL" >&6; }
23832 else
23833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23834 $as_echo "no" >&6; }
23835 fi
23836 
23837 
23838   test -n "$DSYMUTIL" && break
23839 done
23840 
23841     else
23842       # If it succeeded, then it was overridden by the user. We will use it
23843       # for the tool.
23844 
23845       # First remove it from the list of overridden variables, so we can test
23846       # for unknown variables in the end.
23847       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23848 
23849       # Check if we try to supply an empty value
23850       if test "x$DSYMUTIL" = x; then
23851         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
23852 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
23853         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23854 $as_echo_n "checking for DSYMUTIL... " >&6; }
23855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23856 $as_echo "disabled" >&6; }
23857       else
23858         # Check if the provided tool contains a complete path.
23859         tool_specified="$DSYMUTIL"
23860         tool_basename="${tool_specified##*/}"
23861         if test "x$tool_basename" = "x$tool_specified"; then
23862           # A command without a complete path is provided, search $PATH.
23863           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
23864 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
23865           # Extract the first word of "$tool_basename", so it can be a program name with args.
23866 set dummy $tool_basename; ac_word=$2
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23868 $as_echo_n "checking for $ac_word... " >&6; }
23869 if ${ac_cv_path_DSYMUTIL+:} false; then :
23870   $as_echo_n "(cached) " >&6
23871 else
23872   case $DSYMUTIL in
23873   [\\/]* | ?:[\\/]*)
23874   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23875   ;;
23876   *)
23877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23878 for as_dir in $PATH
23879 do
23880   IFS=$as_save_IFS
23881   test -z "$as_dir" && as_dir=.
23882     for ac_exec_ext in '' $ac_executable_extensions; do
23883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23884     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23886     break 2
23887   fi
23888 done
23889   done
23890 IFS=$as_save_IFS
23891 
23892   ;;
23893 esac
23894 fi
23895 DSYMUTIL=$ac_cv_path_DSYMUTIL
23896 if test -n "$DSYMUTIL"; then
23897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23898 $as_echo "$DSYMUTIL" >&6; }
23899 else
23900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23901 $as_echo "no" >&6; }
23902 fi
23903 
23904 
23905           if test "x$DSYMUTIL" = x; then
23906             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23907           fi
23908         else
23909           # Otherwise we believe it is a complete path. Use it as it is.
23910           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
23911 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
23912           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23913 $as_echo_n "checking for DSYMUTIL... " >&6; }
23914           if test ! -x "$tool_specified"; then
23915             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23916 $as_echo "not found" >&6; }
23917             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
23918           fi
23919           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23920 $as_echo "$tool_specified" >&6; }
23921         fi
23922       fi
23923     fi
23924 
23925   fi
23926 
23927 
23928 
23929   if test "x$DSYMUTIL" = x; then
23930     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
23931   fi
23932 
23933 
23934 
23935 
23936 
23937   # Publish this variable in the help.
23938 
23939 
23940   if [ -z "${XATTR+x}" ]; then
23941     # The variable is not set by user, try to locate tool using the code snippet
23942     for ac_prog in xattr
23943 do
23944   # Extract the first word of "$ac_prog", so it can be a program name with args.
23945 set dummy $ac_prog; ac_word=$2
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23947 $as_echo_n "checking for $ac_word... " >&6; }
23948 if ${ac_cv_path_XATTR+:} false; then :
23949   $as_echo_n "(cached) " >&6
23950 else
23951   case $XATTR in
23952   [\\/]* | ?:[\\/]*)
23953   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23954   ;;
23955   *)
23956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23957 for as_dir in $PATH
23958 do
23959   IFS=$as_save_IFS
23960   test -z "$as_dir" && as_dir=.
23961     for ac_exec_ext in '' $ac_executable_extensions; do
23962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23963     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23965     break 2
23966   fi
23967 done
23968   done
23969 IFS=$as_save_IFS
23970 
23971   ;;
23972 esac
23973 fi
23974 XATTR=$ac_cv_path_XATTR
23975 if test -n "$XATTR"; then
23976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23977 $as_echo "$XATTR" >&6; }
23978 else
23979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23980 $as_echo "no" >&6; }
23981 fi
23982 
23983 
23984   test -n "$XATTR" && break
23985 done
23986 
23987   else
23988     # The variable is set, but is it from the command line or the environment?
23989 
23990     # Try to remove the string !XATTR! from our list.
23991     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
23992     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23993       # If it failed, the variable was not from the command line. Ignore it,
23994       # but warn the user (except for BASH, which is always set by the calling BASH).
23995       if test "xXATTR" != xBASH; then
23996         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
23997 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
23998       fi
23999       # Try to locate tool using the code snippet
24000       for ac_prog in xattr
24001 do
24002   # Extract the first word of "$ac_prog", so it can be a program name with args.
24003 set dummy $ac_prog; ac_word=$2
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24005 $as_echo_n "checking for $ac_word... " >&6; }
24006 if ${ac_cv_path_XATTR+:} false; then :
24007   $as_echo_n "(cached) " >&6
24008 else
24009   case $XATTR in
24010   [\\/]* | ?:[\\/]*)
24011   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
24012   ;;
24013   *)
24014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24015 for as_dir in $PATH
24016 do
24017   IFS=$as_save_IFS
24018   test -z "$as_dir" && as_dir=.
24019     for ac_exec_ext in '' $ac_executable_extensions; do
24020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24021     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
24022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24023     break 2
24024   fi
24025 done
24026   done
24027 IFS=$as_save_IFS
24028 
24029   ;;
24030 esac
24031 fi
24032 XATTR=$ac_cv_path_XATTR
24033 if test -n "$XATTR"; then
24034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
24035 $as_echo "$XATTR" >&6; }
24036 else
24037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24038 $as_echo "no" >&6; }
24039 fi
24040 
24041 
24042   test -n "$XATTR" && break
24043 done
24044 
24045     else
24046       # If it succeeded, then it was overridden by the user. We will use it
24047       # for the tool.
24048 
24049       # First remove it from the list of overridden variables, so we can test
24050       # for unknown variables in the end.
24051       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24052 
24053       # Check if we try to supply an empty value
24054       if test "x$XATTR" = x; then
24055         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
24056 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
24057         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
24058 $as_echo_n "checking for XATTR... " >&6; }
24059         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24060 $as_echo "disabled" >&6; }
24061       else
24062         # Check if the provided tool contains a complete path.
24063         tool_specified="$XATTR"
24064         tool_basename="${tool_specified##*/}"
24065         if test "x$tool_basename" = "x$tool_specified"; then
24066           # A command without a complete path is provided, search $PATH.
24067           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
24068 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
24069           # Extract the first word of "$tool_basename", so it can be a program name with args.
24070 set dummy $tool_basename; ac_word=$2
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24072 $as_echo_n "checking for $ac_word... " >&6; }
24073 if ${ac_cv_path_XATTR+:} false; then :
24074   $as_echo_n "(cached) " >&6
24075 else
24076   case $XATTR in
24077   [\\/]* | ?:[\\/]*)
24078   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
24079   ;;
24080   *)
24081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24082 for as_dir in $PATH
24083 do
24084   IFS=$as_save_IFS
24085   test -z "$as_dir" && as_dir=.
24086     for ac_exec_ext in '' $ac_executable_extensions; do
24087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24088     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
24089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24090     break 2
24091   fi
24092 done
24093   done
24094 IFS=$as_save_IFS
24095 
24096   ;;
24097 esac
24098 fi
24099 XATTR=$ac_cv_path_XATTR
24100 if test -n "$XATTR"; then
24101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
24102 $as_echo "$XATTR" >&6; }
24103 else
24104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24105 $as_echo "no" >&6; }
24106 fi
24107 
24108 
24109           if test "x$XATTR" = x; then
24110             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24111           fi
24112         else
24113           # Otherwise we believe it is a complete path. Use it as it is.
24114           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
24115 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
24116           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
24117 $as_echo_n "checking for XATTR... " >&6; }
24118           if test ! -x "$tool_specified"; then
24119             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24120 $as_echo "not found" >&6; }
24121             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
24122           fi
24123           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24124 $as_echo "$tool_specified" >&6; }
24125         fi
24126       fi
24127     fi
24128 
24129   fi
24130 
24131 
24132 
24133   if test "x$XATTR" = x; then
24134     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
24135   fi
24136 
24137 
24138 
24139 
24140   # Publish this variable in the help.
24141 
24142 
24143   if [ -z "${CODESIGN+x}" ]; then
24144     # The variable is not set by user, try to locate tool using the code snippet
24145     for ac_prog in codesign
24146 do
24147   # Extract the first word of "$ac_prog", so it can be a program name with args.
24148 set dummy $ac_prog; ac_word=$2
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24150 $as_echo_n "checking for $ac_word... " >&6; }
24151 if ${ac_cv_path_CODESIGN+:} false; then :
24152   $as_echo_n "(cached) " >&6
24153 else
24154   case $CODESIGN in
24155   [\\/]* | ?:[\\/]*)
24156   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24157   ;;
24158   *)
24159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24160 for as_dir in $PATH
24161 do
24162   IFS=$as_save_IFS
24163   test -z "$as_dir" && as_dir=.
24164     for ac_exec_ext in '' $ac_executable_extensions; do
24165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24166     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24168     break 2
24169   fi
24170 done
24171   done
24172 IFS=$as_save_IFS
24173 
24174   ;;
24175 esac
24176 fi
24177 CODESIGN=$ac_cv_path_CODESIGN
24178 if test -n "$CODESIGN"; then
24179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24180 $as_echo "$CODESIGN" >&6; }
24181 else
24182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24183 $as_echo "no" >&6; }
24184 fi
24185 
24186 
24187   test -n "$CODESIGN" && break
24188 done
24189 
24190   else
24191     # The variable is set, but is it from the command line or the environment?
24192 
24193     # Try to remove the string !CODESIGN! from our list.
24194     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
24195     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24196       # If it failed, the variable was not from the command line. Ignore it,
24197       # but warn the user (except for BASH, which is always set by the calling BASH).
24198       if test "xCODESIGN" != xBASH; then
24199         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
24200 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
24201       fi
24202       # Try to locate tool using the code snippet
24203       for ac_prog in codesign
24204 do
24205   # Extract the first word of "$ac_prog", so it can be a program name with args.
24206 set dummy $ac_prog; ac_word=$2
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24208 $as_echo_n "checking for $ac_word... " >&6; }
24209 if ${ac_cv_path_CODESIGN+:} false; then :
24210   $as_echo_n "(cached) " >&6
24211 else
24212   case $CODESIGN in
24213   [\\/]* | ?:[\\/]*)
24214   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24215   ;;
24216   *)
24217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24218 for as_dir in $PATH
24219 do
24220   IFS=$as_save_IFS
24221   test -z "$as_dir" && as_dir=.
24222     for ac_exec_ext in '' $ac_executable_extensions; do
24223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24224     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24226     break 2
24227   fi
24228 done
24229   done
24230 IFS=$as_save_IFS
24231 
24232   ;;
24233 esac
24234 fi
24235 CODESIGN=$ac_cv_path_CODESIGN
24236 if test -n "$CODESIGN"; then
24237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24238 $as_echo "$CODESIGN" >&6; }
24239 else
24240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24241 $as_echo "no" >&6; }
24242 fi
24243 
24244 
24245   test -n "$CODESIGN" && break
24246 done
24247 
24248     else
24249       # If it succeeded, then it was overridden by the user. We will use it
24250       # for the tool.
24251 
24252       # First remove it from the list of overridden variables, so we can test
24253       # for unknown variables in the end.
24254       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24255 
24256       # Check if we try to supply an empty value
24257       if test "x$CODESIGN" = x; then
24258         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
24259 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
24260         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
24261 $as_echo_n "checking for CODESIGN... " >&6; }
24262         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24263 $as_echo "disabled" >&6; }
24264       else
24265         # Check if the provided tool contains a complete path.
24266         tool_specified="$CODESIGN"
24267         tool_basename="${tool_specified##*/}"
24268         if test "x$tool_basename" = "x$tool_specified"; then
24269           # A command without a complete path is provided, search $PATH.
24270           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
24271 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
24272           # Extract the first word of "$tool_basename", so it can be a program name with args.
24273 set dummy $tool_basename; ac_word=$2
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24275 $as_echo_n "checking for $ac_word... " >&6; }
24276 if ${ac_cv_path_CODESIGN+:} false; then :
24277   $as_echo_n "(cached) " >&6
24278 else
24279   case $CODESIGN in
24280   [\\/]* | ?:[\\/]*)
24281   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24282   ;;
24283   *)
24284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24285 for as_dir in $PATH
24286 do
24287   IFS=$as_save_IFS
24288   test -z "$as_dir" && as_dir=.
24289     for ac_exec_ext in '' $ac_executable_extensions; do
24290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24291     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24293     break 2
24294   fi
24295 done
24296   done
24297 IFS=$as_save_IFS
24298 
24299   ;;
24300 esac
24301 fi
24302 CODESIGN=$ac_cv_path_CODESIGN
24303 if test -n "$CODESIGN"; then
24304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24305 $as_echo "$CODESIGN" >&6; }
24306 else
24307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24308 $as_echo "no" >&6; }
24309 fi
24310 
24311 
24312           if test "x$CODESIGN" = x; then
24313             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24314           fi
24315         else
24316           # Otherwise we believe it is a complete path. Use it as it is.
24317           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
24318 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
24319           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
24320 $as_echo_n "checking for CODESIGN... " >&6; }
24321           if test ! -x "$tool_specified"; then
24322             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24323 $as_echo "not found" >&6; }
24324             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
24325           fi
24326           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24327 $as_echo "$tool_specified" >&6; }
24328         fi
24329       fi
24330     fi
24331 
24332   fi
24333 
24334 
24335     if test "x$CODESIGN" != "x"; then
24336       # Verify that the openjdk_codesign certificate is present
24337       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
24338 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
24339       $RM codesign-testfile
24340       $TOUCH codesign-testfile
24341       $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
24342       $RM codesign-testfile
24343       if test "x$CODESIGN" = x; then
24344         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24345 $as_echo "no" >&6; }
24346       else
24347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24348 $as_echo "yes" >&6; }
24349       fi
24350     fi
24351 
24352 
24353 
24354   # Publish this variable in the help.
24355 
24356 
24357   if [ -z "${SETFILE+x}" ]; then
24358     # The variable is not set by user, try to locate tool using the code snippet
24359     for ac_prog in SetFile
24360 do
24361   # Extract the first word of "$ac_prog", so it can be a program name with args.
24362 set dummy $ac_prog; ac_word=$2
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24364 $as_echo_n "checking for $ac_word... " >&6; }
24365 if ${ac_cv_path_SETFILE+:} false; then :
24366   $as_echo_n "(cached) " >&6
24367 else
24368   case $SETFILE in
24369   [\\/]* | ?:[\\/]*)
24370   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24371   ;;
24372   *)
24373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24374 for as_dir in $PATH
24375 do
24376   IFS=$as_save_IFS
24377   test -z "$as_dir" && as_dir=.
24378     for ac_exec_ext in '' $ac_executable_extensions; do
24379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24380     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24382     break 2
24383   fi
24384 done
24385   done
24386 IFS=$as_save_IFS
24387 
24388   ;;
24389 esac
24390 fi
24391 SETFILE=$ac_cv_path_SETFILE
24392 if test -n "$SETFILE"; then
24393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24394 $as_echo "$SETFILE" >&6; }
24395 else
24396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24397 $as_echo "no" >&6; }
24398 fi
24399 
24400 
24401   test -n "$SETFILE" && break
24402 done
24403 
24404   else
24405     # The variable is set, but is it from the command line or the environment?
24406 
24407     # Try to remove the string !SETFILE! from our list.
24408     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
24409     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24410       # If it failed, the variable was not from the command line. Ignore it,
24411       # but warn the user (except for BASH, which is always set by the calling BASH).
24412       if test "xSETFILE" != xBASH; then
24413         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
24414 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
24415       fi
24416       # Try to locate tool using the code snippet
24417       for ac_prog in SetFile
24418 do
24419   # Extract the first word of "$ac_prog", so it can be a program name with args.
24420 set dummy $ac_prog; ac_word=$2
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24422 $as_echo_n "checking for $ac_word... " >&6; }
24423 if ${ac_cv_path_SETFILE+:} false; then :
24424   $as_echo_n "(cached) " >&6
24425 else
24426   case $SETFILE in
24427   [\\/]* | ?:[\\/]*)
24428   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24429   ;;
24430   *)
24431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24432 for as_dir in $PATH
24433 do
24434   IFS=$as_save_IFS
24435   test -z "$as_dir" && as_dir=.
24436     for ac_exec_ext in '' $ac_executable_extensions; do
24437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24438     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24440     break 2
24441   fi
24442 done
24443   done
24444 IFS=$as_save_IFS
24445 
24446   ;;
24447 esac
24448 fi
24449 SETFILE=$ac_cv_path_SETFILE
24450 if test -n "$SETFILE"; then
24451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24452 $as_echo "$SETFILE" >&6; }
24453 else
24454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24455 $as_echo "no" >&6; }
24456 fi
24457 
24458 
24459   test -n "$SETFILE" && break
24460 done
24461 
24462     else
24463       # If it succeeded, then it was overridden by the user. We will use it
24464       # for the tool.
24465 
24466       # First remove it from the list of overridden variables, so we can test
24467       # for unknown variables in the end.
24468       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24469 
24470       # Check if we try to supply an empty value
24471       if test "x$SETFILE" = x; then
24472         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
24473 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
24474         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24475 $as_echo_n "checking for SETFILE... " >&6; }
24476         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24477 $as_echo "disabled" >&6; }
24478       else
24479         # Check if the provided tool contains a complete path.
24480         tool_specified="$SETFILE"
24481         tool_basename="${tool_specified##*/}"
24482         if test "x$tool_basename" = "x$tool_specified"; then
24483           # A command without a complete path is provided, search $PATH.
24484           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
24485 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
24486           # Extract the first word of "$tool_basename", so it can be a program name with args.
24487 set dummy $tool_basename; ac_word=$2
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24489 $as_echo_n "checking for $ac_word... " >&6; }
24490 if ${ac_cv_path_SETFILE+:} false; then :
24491   $as_echo_n "(cached) " >&6
24492 else
24493   case $SETFILE in
24494   [\\/]* | ?:[\\/]*)
24495   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24496   ;;
24497   *)
24498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24499 for as_dir in $PATH
24500 do
24501   IFS=$as_save_IFS
24502   test -z "$as_dir" && as_dir=.
24503     for ac_exec_ext in '' $ac_executable_extensions; do
24504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24505     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24507     break 2
24508   fi
24509 done
24510   done
24511 IFS=$as_save_IFS
24512 
24513   ;;
24514 esac
24515 fi
24516 SETFILE=$ac_cv_path_SETFILE
24517 if test -n "$SETFILE"; then
24518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24519 $as_echo "$SETFILE" >&6; }
24520 else
24521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24522 $as_echo "no" >&6; }
24523 fi
24524 
24525 
24526           if test "x$SETFILE" = x; then
24527             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24528           fi
24529         else
24530           # Otherwise we believe it is a complete path. Use it as it is.
24531           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
24532 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
24533           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24534 $as_echo_n "checking for SETFILE... " >&6; }
24535           if test ! -x "$tool_specified"; then
24536             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24537 $as_echo "not found" >&6; }
24538             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
24539           fi
24540           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24541 $as_echo "$tool_specified" >&6; }
24542         fi
24543       fi
24544     fi
24545 
24546   fi
24547 
24548 
24549 
24550   if test "x$SETFILE" = x; then
24551     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
24552   fi
24553 
24554 
24555   fi
24556 
24557 
24558   # Check bash version
24559   # Extra [ ] to stop m4 mangling
24560    BASH_VER=`$BASH --version | $SED -n  -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'`
24561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5
24562 $as_echo_n "checking bash version... " >&6; }
24563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5
24564 $as_echo "$BASH_VER" >&6; }
24565 
24566   BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1`
24567   BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2`
24568   if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then
24569     as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5
24570   fi
24571 
24572   # Test if bash supports pipefail.
24573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
24574 $as_echo_n "checking if bash supports pipefail... " >&6; }
24575   if ${BASH} -c 'set -o pipefail'; then
24576     BASH_ARGS="$BASH_ARGS -o pipefail"
24577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24578 $as_echo "yes" >&6; }
24579   else
24580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24581 $as_echo "no" >&6; }
24582   fi
24583 
24584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
24585 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
24586   if ${BASH} -e -c 'true'; then
24587     BASH_ARGS="$BASH_ARGS -e"
24588     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24589 $as_echo "yes" >&6; }
24590   else
24591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24592 $as_echo "no" >&6; }
24593   fi
24594 
24595 
24596 
24597 
24598 # Check if pkg-config is available.
24599 
24600 
24601 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24602         if test -n "$ac_tool_prefix"; then
24603   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24604 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24606 $as_echo_n "checking for $ac_word... " >&6; }
24607 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24608   $as_echo_n "(cached) " >&6
24609 else
24610   case $PKG_CONFIG in
24611   [\\/]* | ?:[\\/]*)
24612   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24613   ;;
24614   *)
24615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24616 for as_dir in $PATH
24617 do
24618   IFS=$as_save_IFS
24619   test -z "$as_dir" && as_dir=.
24620     for ac_exec_ext in '' $ac_executable_extensions; do
24621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24622     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24624     break 2
24625   fi
24626 done
24627   done
24628 IFS=$as_save_IFS
24629 
24630   ;;
24631 esac
24632 fi
24633 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24634 if test -n "$PKG_CONFIG"; then
24635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24636 $as_echo "$PKG_CONFIG" >&6; }
24637 else
24638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24639 $as_echo "no" >&6; }
24640 fi
24641 
24642 
24643 fi
24644 if test -z "$ac_cv_path_PKG_CONFIG"; then
24645   ac_pt_PKG_CONFIG=$PKG_CONFIG
24646   # Extract the first word of "pkg-config", so it can be a program name with args.
24647 set dummy pkg-config; ac_word=$2
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24649 $as_echo_n "checking for $ac_word... " >&6; }
24650 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24651   $as_echo_n "(cached) " >&6
24652 else
24653   case $ac_pt_PKG_CONFIG in
24654   [\\/]* | ?:[\\/]*)
24655   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24656   ;;
24657   *)
24658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24659 for as_dir in $PATH
24660 do
24661   IFS=$as_save_IFS
24662   test -z "$as_dir" && as_dir=.
24663     for ac_exec_ext in '' $ac_executable_extensions; do
24664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24665     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24667     break 2
24668   fi
24669 done
24670   done
24671 IFS=$as_save_IFS
24672 
24673   ;;
24674 esac
24675 fi
24676 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24677 if test -n "$ac_pt_PKG_CONFIG"; then
24678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24679 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24680 else
24681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24682 $as_echo "no" >&6; }
24683 fi
24684 
24685   if test "x$ac_pt_PKG_CONFIG" = x; then
24686     PKG_CONFIG=""
24687   else
24688     case $cross_compiling:$ac_tool_warned in
24689 yes:)
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24692 ac_tool_warned=yes ;;
24693 esac
24694     PKG_CONFIG=$ac_pt_PKG_CONFIG
24695   fi
24696 else
24697   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24698 fi
24699 
24700 fi
24701 if test -n "$PKG_CONFIG"; then
24702         _pkg_min_version=0.9.0
24703         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24704 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24705         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24706                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24707 $as_echo "yes" >&6; }
24708         else
24709                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24710 $as_echo "no" >&6; }
24711                 PKG_CONFIG=""
24712         fi
24713 
24714 fi
24715 
24716 # After basic tools have been setup, we can check build os specific details.
24717 
24718   ###############################################################################
24719 
24720   # Note that this is the build platform OS version!
24721 
24722   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
24723   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
24724   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
24725   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
24726 
24727 
24728 
24729 
24730 
24731 # Misc basic settings
24732 
24733 
24734 # Check whether --with-default-make-target was given.
24735 if test "${with_default_make_target+set}" = set; then :
24736   withval=$with_default_make_target;
24737 fi
24738 
24739   if test "x$with_default_make_target" = "x" \
24740       || test "x$with_default_make_target" = "xyes"; then
24741     DEFAULT_MAKE_TARGET="exploded-image"
24742   elif test "x$with_default_make_target" = "xno"; then
24743     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
24744   else
24745     DEFAULT_MAKE_TARGET="$with_default_make_target"
24746   fi
24747 
24748 
24749 
24750 
24751 ###############################################################################
24752 #
24753 # Determine OpenJDK variants, options and version numbers.
24754 #
24755 ###############################################################################
24756 
24757 # We need build & target for this.
24758 
24759   # Should we build a JDK without a graphical UI?
24760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5
24761 $as_echo_n "checking headless only... " >&6; }
24762   # Check whether --enable-headless-only was given.
24763 if test "${enable_headless_only+set}" = set; then :
24764   enableval=$enable_headless_only;
24765 fi
24766 
24767 
24768   if test "x$enable_headless_only" = "xyes"; then
24769     ENABLE_HEADLESS_ONLY="true"
24770     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24771 $as_echo "yes" >&6; }
24772   elif test "x$enable_headless_only" = "xno"; then
24773     ENABLE_HEADLESS_ONLY="false"
24774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24775 $as_echo "no" >&6; }
24776   elif test "x$enable_headless_only" = "x"; then
24777     ENABLE_HEADLESS_ONLY="false"
24778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24779 $as_echo "no" >&6; }
24780   else
24781     as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5
24782   fi
24783 
24784 
24785 
24786   # Should we build the complete docs, or just a lightweight version?
24787   # Check whether --enable-full-docs was given.
24788 if test "${enable_full_docs+set}" = set; then :
24789   enableval=$enable_full_docs;
24790 fi
24791 
24792 
24793   # Verify dependencies
24794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for graphviz dot" >&5
24795 $as_echo_n "checking for graphviz dot... " >&6; }
24796   if test "x$DOT" != "x"; then
24797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24798 $as_echo "yes" >&6; }
24799   else
24800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5
24801 $as_echo "no, cannot generate full docs" >&6; }
24802     FULL_DOCS_DEP_MISSING=true
24803   fi
24804 
24805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pandoc" >&5
24806 $as_echo_n "checking for pandoc... " >&6; }
24807   if test "x$PANDOC" != "x"; then
24808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24809 $as_echo "yes" >&6; }
24810   else
24811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5
24812 $as_echo "no, cannot generate full docs" >&6; }
24813     FULL_DOCS_DEP_MISSING=true
24814   fi
24815 
24816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking full docs" >&5
24817 $as_echo_n "checking full docs... " >&6; }
24818   if test "x$enable_full_docs" = xyes; then
24819     if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then
24820       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
24821 $as_echo "no, missing dependencies" >&6; }
24822 
24823   # Print a helpful message on how to acquire the necessary build dependency.
24824   # dot is the help tag: freetype, cups, alsa etc
24825   MISSING_DEPENDENCY=dot
24826 
24827   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24828     cygwin_help $MISSING_DEPENDENCY
24829   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24830     msys_help $MISSING_DEPENDENCY
24831   else
24832     PKGHANDLER_COMMAND=
24833 
24834     case $PKGHANDLER in
24835       apt-get)
24836         apt_help     $MISSING_DEPENDENCY ;;
24837       yum)
24838         yum_help     $MISSING_DEPENDENCY ;;
24839       brew)
24840         brew_help    $MISSING_DEPENDENCY ;;
24841       port)
24842         port_help    $MISSING_DEPENDENCY ;;
24843       pkgutil)
24844         pkgutil_help $MISSING_DEPENDENCY ;;
24845       pkgadd)
24846         pkgadd_help  $MISSING_DEPENDENCY ;;
24847     esac
24848 
24849     if test "x$PKGHANDLER_COMMAND" != x; then
24850       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24851     fi
24852   fi
24853 
24854       as_fn_error $? "Cannot enable full docs with missing dependencies. See above. $HELP_MSG" "$LINENO" 5
24855     else
24856       ENABLE_FULL_DOCS=true
24857       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
24858 $as_echo "yes, forced" >&6; }
24859     fi
24860   elif test "x$enable_full_docs" = xno; then
24861     ENABLE_FULL_DOCS=false
24862     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
24863 $as_echo "no, forced" >&6; }
24864   elif test "x$enable_full_docs" = x; then
24865     # Check for prerequisites
24866     if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then
24867       ENABLE_FULL_DOCS=false
24868       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
24869 $as_echo "no, missing dependencies" >&6; }
24870     else
24871       ENABLE_FULL_DOCS=true
24872       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5
24873 $as_echo "yes, dependencies present" >&6; }
24874     fi
24875   else
24876     as_fn_error $? "--enable-full-docs can only take yes or no" "$LINENO" 5
24877   fi
24878 
24879 
24880 
24881   # Choose cacerts source file
24882 
24883 # Check whether --with-cacerts-file was given.
24884 if test "${with_cacerts_file+set}" = set; then :
24885   withval=$with_cacerts_file;
24886 fi
24887 
24888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacerts file" >&5
24889 $as_echo_n "checking for cacerts file... " >&6; }
24890   if test "x$with_cacerts_file" == x; then
24891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
24892 $as_echo "default" >&6; }
24893   else
24894     CACERTS_FILE=$with_cacerts_file
24895     if test ! -f "$CACERTS_FILE"; then
24896       { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5
24897 $as_echo "fail" >&6; }
24898       as_fn_error $? "Specified cacerts file \"$CACERTS_FILE\" does not exist" "$LINENO" 5
24899     fi
24900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CACERTS_FILE" >&5
24901 $as_echo "$CACERTS_FILE" >&6; }
24902   fi
24903 
24904 
24905   # Enable or disable unlimited crypto
24906   # Check whether --enable-unlimited-crypto was given.
24907 if test "${enable_unlimited_crypto+set}" = set; then :
24908   enableval=$enable_unlimited_crypto;
24909 else
24910   enable_unlimited_crypto=yes
24911 fi
24912 
24913   if test "x$enable_unlimited_crypto" = "xyes"; then
24914     UNLIMITED_CRYPTO=true
24915   else
24916     UNLIMITED_CRYPTO=false
24917   fi
24918 
24919 
24920   # Should we build the serviceability agent (SA)?
24921   INCLUDE_SA=true
24922   if   [[ " $JVM_VARIANTS " =~ " zero " ]]  ; then
24923     INCLUDE_SA=false
24924   fi
24925   if test "x$OPENJDK_TARGET_OS" = xaix ; then
24926     INCLUDE_SA=false
24927   fi
24928 
24929 
24930   # Compress jars
24931   COMPRESS_JARS=false
24932 
24933 
24934 
24935   # Setup default copyright year. Mostly overridden when building close to a new year.
24936 
24937 # Check whether --with-copyright-year was given.
24938 if test "${with_copyright_year+set}" = set; then :
24939   withval=$with_copyright_year;
24940 fi
24941 
24942   if test "x$with_copyright_year" = xyes; then
24943     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
24944   elif test "x$with_copyright_year" != x; then
24945     COPYRIGHT_YEAR="$with_copyright_year"
24946   else
24947     COPYRIGHT_YEAR=`$DATE +'%Y'`
24948   fi
24949 
24950 
24951 
24952   # Check whether --enable-keep-packaged-modules was given.
24953 if test "${enable_keep_packaged_modules+set}" = set; then :
24954   enableval=$enable_keep_packaged_modules;
24955 fi
24956 
24957 
24958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
24959 $as_echo_n "checking if packaged modules are kept... " >&6; }
24960   if test "x$enable_keep_packaged_modules" = "xyes"; then
24961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24962 $as_echo "yes" >&6; }
24963     JLINK_KEEP_PACKAGED_MODULES=true
24964   elif test "x$enable_keep_packaged_modules" = "xno"; then
24965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24966 $as_echo "no" >&6; }
24967     JLINK_KEEP_PACKAGED_MODULES=false
24968   elif test "x$enable_keep_packaged_modules" = "x"; then
24969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
24970 $as_echo "yes (default)" >&6; }
24971     JLINK_KEEP_PACKAGED_MODULES=true
24972   else
24973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
24974 $as_echo "error" >&6; }
24975     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
24976   fi
24977 
24978 
24979 
24980 
24981   # Warn user that old version arguments are deprecated.
24982 
24983 
24984 # Check whether --with-milestone was given.
24985 if test "${with_milestone+set}" = set; then :
24986   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
24987 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
24988 fi
24989 
24990 
24991 
24992 
24993 # Check whether --with-update-version was given.
24994 if test "${with_update_version+set}" = set; then :
24995   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
24996 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
24997 fi
24998 
24999 
25000 
25001 
25002 # Check whether --with-user-release-suffix was given.
25003 if test "${with_user_release_suffix+set}" = set; then :
25004   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
25005 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
25006 fi
25007 
25008 
25009 
25010 
25011 # Check whether --with-build-number was given.
25012 if test "${with_build_number+set}" = set; then :
25013   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
25014 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
25015 fi
25016 
25017 
25018 
25019 
25020 # Check whether --with-version-major was given.
25021 if test "${with_version_major+set}" = set; then :
25022   withval=$with_version_major; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-major is deprecated and will be ignored." >&5
25023 $as_echo "$as_me: WARNING: Option --with-version-major is deprecated and will be ignored." >&2;}
25024 fi
25025 
25026 
25027 
25028 
25029 # Check whether --with-version-minor was given.
25030 if test "${with_version_minor+set}" = set; then :
25031   withval=$with_version_minor; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-minor is deprecated and will be ignored." >&5
25032 $as_echo "$as_me: WARNING: Option --with-version-minor is deprecated and will be ignored." >&2;}
25033 fi
25034 
25035 
25036 
25037 
25038 # Check whether --with-version-security was given.
25039 if test "${with_version_security+set}" = set; then :
25040   withval=$with_version_security; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-security is deprecated and will be ignored." >&5
25041 $as_echo "$as_me: WARNING: Option --with-version-security is deprecated and will be ignored." >&2;}
25042 fi
25043 
25044 
25045 
25046   # Source the version numbers file
25047   . $AUTOCONF_DIR/version-numbers
25048 
25049   # Some non-version number information is set in that file
25050 
25051 
25052 
25053 
25054 
25055 
25056 
25057 
25058 
25059   # Override version from arguments
25060 
25061   # If --with-version-string is set, process it first. It is possible to
25062   # override parts with more specific flags, since these are processed later.
25063 
25064 # Check whether --with-version-string was given.
25065 if test "${with_version_string+set}" = set; then :
25066   withval=$with_version_string;
25067 fi
25068 
25069   if test "x$with_version_string" = xyes; then
25070     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
25071   elif test "x$with_version_string" != x; then
25072     # Additional [] needed to keep m4 from mangling shell constructs.
25073     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
25074       VERSION_FEATURE=${BASH_REMATCH[1]}
25075       VERSION_INTERIM=${BASH_REMATCH[3]}
25076       VERSION_UPDATE=${BASH_REMATCH[5]}
25077       VERSION_PATCH=${BASH_REMATCH[7]}
25078       VERSION_PRE=${BASH_REMATCH[9]}
25079       version_plus_separator=${BASH_REMATCH[11]}
25080       VERSION_BUILD=${BASH_REMATCH[12]}
25081       VERSION_OPT=${BASH_REMATCH[14]}
25082       # Unspecified numerical fields are interpreted as 0.
25083       if test "x$VERSION_INTERIM" = x; then
25084         VERSION_INTERIM=0
25085       fi
25086       if test "x$VERSION_UPDATE" = x; then
25087         VERSION_UPDATE=0
25088       fi
25089       if test "x$VERSION_PATCH" = x; then
25090         VERSION_PATCH=0
25091       fi
25092       if test "x$version_plus_separator" != x \
25093           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
25094         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
25095       fi
25096       # Stop the version part process from setting default values.
25097       # We still allow them to explicitly override though.
25098       NO_DEFAULT_VERSION_PARTS=true
25099     else
25100       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
25101     fi
25102   fi
25103 
25104 
25105 # Check whether --with-version-pre was given.
25106 if test "${with_version_pre+set}" = set; then :
25107   withval=$with_version_pre; with_version_pre_present=true
25108 else
25109   with_version_pre_present=false
25110 fi
25111 
25112 
25113   if test "x$with_version_pre_present" = xtrue; then
25114     if test "x$with_version_pre" = xyes; then
25115       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
25116     elif test "x$with_version_pre" = xno; then
25117       # Interpret --without-* as empty string instead of the literal "no"
25118       VERSION_PRE=
25119     else
25120       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
25121        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
25122       if test "x$VERSION_PRE" != "x$with_version_pre"; then
25123         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
25124 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
25125       fi
25126     fi
25127   else
25128     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25129       # Default is to use "internal" as pre
25130       VERSION_PRE="internal"
25131     fi
25132   fi
25133 
25134 
25135 # Check whether --with-version-opt was given.
25136 if test "${with_version_opt+set}" = set; then :
25137   withval=$with_version_opt; with_version_opt_present=true
25138 else
25139   with_version_opt_present=false
25140 fi
25141 
25142 
25143   if test "x$with_version_opt_present" = xtrue; then
25144     if test "x$with_version_opt" = xyes; then
25145       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
25146     elif test "x$with_version_opt" = xno; then
25147       # Interpret --without-* as empty string instead of the literal "no"
25148       VERSION_OPT=
25149     else
25150       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
25151        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
25152       if test "x$VERSION_OPT" != "x$with_version_opt"; then
25153         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
25154 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
25155       fi
25156     fi
25157   else
25158     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25159       # Default is to calculate a string like this 'adhoc.<username>.<base dir name>'
25160       # Outer [ ] to quote m4.
25161        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
25162       VERSION_OPT="adhoc.$USERNAME.$basedirname"
25163     fi
25164   fi
25165 
25166 
25167 # Check whether --with-version-build was given.
25168 if test "${with_version_build+set}" = set; then :
25169   withval=$with_version_build; with_version_build_present=true
25170 else
25171   with_version_build_present=false
25172 fi
25173 
25174 
25175   if test "x$with_version_build_present" = xtrue; then
25176     if test "x$with_version_build" = xyes; then
25177       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
25178     elif test "x$with_version_build" = xno; then
25179       # Interpret --without-* as empty string instead of the literal "no"
25180       VERSION_BUILD=
25181     elif test "x$with_version_build" = x; then
25182       VERSION_BUILD=
25183     else
25184 
25185   # Additional [] needed to keep m4 from mangling shell constructs.
25186   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25187     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
25188   fi
25189   # Extract the version number without leading zeros.
25190   cleaned_value=${BASH_REMATCH[1]}
25191   if test "x$cleaned_value" = x; then
25192     # Special case for zero
25193     cleaned_value=${BASH_REMATCH[2]}
25194   fi
25195 
25196   if test $cleaned_value -gt 255; then
25197     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
25198   fi
25199   if test "x$cleaned_value" != "x$with_version_build"; then
25200     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
25201 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
25202   fi
25203   VERSION_BUILD=$cleaned_value
25204 
25205     fi
25206   else
25207     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25208       # Default is to not have a build number.
25209       VERSION_BUILD=""
25210       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
25211       VERSION_BUILD=0
25212     fi
25213   fi
25214 
25215 
25216 # Check whether --with-version-feature was given.
25217 if test "${with_version_feature+set}" = set; then :
25218   withval=$with_version_feature; with_version_feature_present=true
25219 else
25220   with_version_feature_present=false
25221 fi
25222 
25223 
25224   if test "x$with_version_feature_present" = xtrue; then
25225     if test "x$with_version_feature" = xyes; then
25226       as_fn_error $? "--with-version-feature must have a value" "$LINENO" 5
25227     else
25228 
25229   # Additional [] needed to keep m4 from mangling shell constructs.
25230   if  ! [[ "$with_version_feature" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25231     as_fn_error $? "\"$with_version_feature\" is not a valid numerical value for VERSION_FEATURE" "$LINENO" 5
25232   fi
25233   # Extract the version number without leading zeros.
25234   cleaned_value=${BASH_REMATCH[1]}
25235   if test "x$cleaned_value" = x; then
25236     # Special case for zero
25237     cleaned_value=${BASH_REMATCH[2]}
25238   fi
25239 
25240   if test $cleaned_value -gt 255; then
25241     as_fn_error $? "VERSION_FEATURE is given as $with_version_feature. This is greater than 255 which is not allowed." "$LINENO" 5
25242   fi
25243   if test "x$cleaned_value" != "x$with_version_feature"; then
25244     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&5
25245 $as_echo "$as_me: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&2;}
25246   fi
25247   VERSION_FEATURE=$cleaned_value
25248 
25249     fi
25250   else
25251     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25252       # Default is to get value from version-numbers
25253       VERSION_FEATURE="$DEFAULT_VERSION_FEATURE"
25254     fi
25255   fi
25256 
25257 
25258 # Check whether --with-version-interim was given.
25259 if test "${with_version_interim+set}" = set; then :
25260   withval=$with_version_interim; with_version_interim_present=true
25261 else
25262   with_version_interim_present=false
25263 fi
25264 
25265 
25266   if test "x$with_version_interim_present" = xtrue; then
25267     if test "x$with_version_interim" = xyes; then
25268       as_fn_error $? "--with-version-interim must have a value" "$LINENO" 5
25269     elif test "x$with_version_interim" = xno; then
25270       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25271       VERSION_INTERIM=0
25272     elif test "x$with_version_interim" = x; then
25273       VERSION_INTERIM=0
25274     else
25275 
25276   # Additional [] needed to keep m4 from mangling shell constructs.
25277   if  ! [[ "$with_version_interim" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25278     as_fn_error $? "\"$with_version_interim\" is not a valid numerical value for VERSION_INTERIM" "$LINENO" 5
25279   fi
25280   # Extract the version number without leading zeros.
25281   cleaned_value=${BASH_REMATCH[1]}
25282   if test "x$cleaned_value" = x; then
25283     # Special case for zero
25284     cleaned_value=${BASH_REMATCH[2]}
25285   fi
25286 
25287   if test $cleaned_value -gt 255; then
25288     as_fn_error $? "VERSION_INTERIM is given as $with_version_interim. This is greater than 255 which is not allowed." "$LINENO" 5
25289   fi
25290   if test "x$cleaned_value" != "x$with_version_interim"; then
25291     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&5
25292 $as_echo "$as_me: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&2;}
25293   fi
25294   VERSION_INTERIM=$cleaned_value
25295 
25296     fi
25297   else
25298     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25299       # Default is 0, if unspecified
25300       VERSION_INTERIM=$DEFAULT_VERSION_INTERIM
25301     fi
25302   fi
25303 
25304 
25305 # Check whether --with-version-update was given.
25306 if test "${with_version_update+set}" = set; then :
25307   withval=$with_version_update; with_version_update_present=true
25308 else
25309   with_version_update_present=false
25310 fi
25311 
25312 
25313   if test "x$with_version_update_present" = xtrue; then
25314     if test "x$with_version_update" = xyes; then
25315       as_fn_error $? "--with-version-update must have a value" "$LINENO" 5
25316     elif test "x$with_version_update" = xno; then
25317       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25318       VERSION_UPDATE=0
25319     elif test "x$with_version_update" = x; then
25320       VERSION_UPDATE=0
25321     else
25322 
25323   # Additional [] needed to keep m4 from mangling shell constructs.
25324   if  ! [[ "$with_version_update" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25325     as_fn_error $? "\"$with_version_update\" is not a valid numerical value for VERSION_UPDATE" "$LINENO" 5
25326   fi
25327   # Extract the version number without leading zeros.
25328   cleaned_value=${BASH_REMATCH[1]}
25329   if test "x$cleaned_value" = x; then
25330     # Special case for zero
25331     cleaned_value=${BASH_REMATCH[2]}
25332   fi
25333 
25334   if test $cleaned_value -gt 255; then
25335     as_fn_error $? "VERSION_UPDATE is given as $with_version_update. This is greater than 255 which is not allowed." "$LINENO" 5
25336   fi
25337   if test "x$cleaned_value" != "x$with_version_update"; then
25338     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&5
25339 $as_echo "$as_me: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&2;}
25340   fi
25341   VERSION_UPDATE=$cleaned_value
25342 
25343     fi
25344   else
25345     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25346       # Default is 0, if unspecified
25347       VERSION_UPDATE=$DEFAULT_VERSION_UPDATE
25348     fi
25349   fi
25350 
25351 
25352 # Check whether --with-version-patch was given.
25353 if test "${with_version_patch+set}" = set; then :
25354   withval=$with_version_patch; with_version_patch_present=true
25355 else
25356   with_version_patch_present=false
25357 fi
25358 
25359 
25360   if test "x$with_version_patch_present" = xtrue; then
25361     if test "x$with_version_patch" = xyes; then
25362       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
25363     elif test "x$with_version_patch" = xno; then
25364       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25365       VERSION_PATCH=0
25366     elif test "x$with_version_patch" = x; then
25367       VERSION_PATCH=0
25368     else
25369 
25370   # Additional [] needed to keep m4 from mangling shell constructs.
25371   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25372     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
25373   fi
25374   # Extract the version number without leading zeros.
25375   cleaned_value=${BASH_REMATCH[1]}
25376   if test "x$cleaned_value" = x; then
25377     # Special case for zero
25378     cleaned_value=${BASH_REMATCH[2]}
25379   fi
25380 
25381   if test $cleaned_value -gt 255; then
25382     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
25383   fi
25384   if test "x$cleaned_value" != "x$with_version_patch"; then
25385     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
25386 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
25387   fi
25388   VERSION_PATCH=$cleaned_value
25389 
25390     fi
25391   else
25392     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25393       # Default is 0, if unspecified
25394       VERSION_PATCH=$DEFAULT_VERSION_PATCH
25395     fi
25396   fi
25397 
25398   # Calculate derived version properties
25399 
25400   # Set VERSION_IS_GA based on if VERSION_PRE has a value
25401   if test "x$VERSION_PRE" = x; then
25402     VERSION_IS_GA=true
25403   else
25404     VERSION_IS_GA=false
25405   fi
25406 
25407   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
25408   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_FEATURE.$VERSION_INTERIM.$VERSION_UPDATE.$VERSION_PATCH
25409 
25410   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
25411   # Strip trailing zeroes from stripped_version_number
25412   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
25413   VERSION_NUMBER=$stripped_version_number
25414 
25415   # The complete version string, with additional build information
25416   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
25417     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25418   else
25419     # If either build or opt is set, we need a + separator
25420     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
25421   fi
25422 
25423   # The short version string, just VERSION_NUMBER and PRE, if present.
25424   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25425 
25426   # The version date
25427 
25428 # Check whether --with-version-date was given.
25429 if test "${with_version_date+set}" = set; then :
25430   withval=$with_version_date;
25431 fi
25432 
25433   if test "x$with_version_date" = xyes; then
25434     as_fn_error $? "--with-version-date must have a value" "$LINENO" 5
25435   elif test "x$with_version_date" != x; then
25436     if  ! [[ $with_version_date =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]] ; then
25437       as_fn_error $? "\"$with_version_date\" is not a valid version date" "$LINENO" 5
25438     else
25439       VERSION_DATE="$with_version_date"
25440     fi
25441   else
25442     VERSION_DATE="$DEFAULT_VERSION_DATE"
25443   fi
25444 
25445   # The vendor version string, if any
25446 
25447 # Check whether --with-vendor-version-string was given.
25448 if test "${with_vendor_version_string+set}" = set; then :
25449   withval=$with_vendor_version_string;
25450 fi
25451 
25452   if test "x$with_vendor_version_string" = xyes; then
25453     as_fn_error $? "--with-vendor-version-string must have a value" "$LINENO" 5
25454   elif  ! [[ $with_vendor_version_string =~ ^[[:graph:]]*$ ]] ; then
25455     as_fn_error $? "--with--vendor-version-string contains non-graphical characters: $with_vendor_version_string" "$LINENO" 5
25456   else
25457     VENDOR_VERSION_STRING="$with_vendor_version_string"
25458   fi
25459 
25460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
25461 $as_echo_n "checking for version string... " >&6; }
25462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
25463 $as_echo "$VERSION_STRING" >&6; }
25464 
25465 
25466 
25467 
25468 
25469 
25470 
25471 
25472 
25473 
25474 
25475 
25476 
25477 
25478 
25479 
25480 
25481 ###############################################################################
25482 #
25483 # Setup BootJDK, used to bootstrap the build.
25484 #
25485 ###############################################################################
25486 
25487 
25488   BOOT_JDK_FOUND=no
25489 
25490 # Check whether --with-boot-jdk was given.
25491 if test "${with_boot_jdk+set}" = set; then :
25492   withval=$with_boot_jdk;
25493 fi
25494 
25495 
25496   # We look for the Boot JDK through various means, going from more certain to
25497   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
25498   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
25499   # must check if this is indeed valid; otherwise we'll continue looking.
25500 
25501   # Test: Is bootjdk explicitly set by command line arguments?
25502 
25503   if test "x$BOOT_JDK_FOUND" = xno; then
25504     # Now execute the test
25505 
25506   if test "x$with_boot_jdk" != x; then
25507     BOOT_JDK=$with_boot_jdk
25508     BOOT_JDK_FOUND=maybe
25509     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
25510 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
25511   fi
25512 
25513 
25514     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25515     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25516       # Do we have a bin/java?
25517       if test ! -x "$BOOT_JDK/bin/java"; then
25518         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25519 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25520         BOOT_JDK_FOUND=no
25521       else
25522         # Do we have a bin/javac?
25523         if test ! -x "$BOOT_JDK/bin/javac"; then
25524           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25525 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25526           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25527 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25528           BOOT_JDK_FOUND=no
25529         else
25530           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25531           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25532 
25533           # Extra M4 quote needed to protect [] in grep expression.
25534           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
25535           if test "x$FOUND_CORRECT_VERSION" = x; then
25536             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JD