./common/autoconf/generated-configure.sh

Print this page
rev 725 : [mq]: system-icu
   1 #! /bin/sh
   2 # Guess values for system-dependent variables and create Makefiles.
   3 # Generated by GNU Autoconf 2.67 for OpenJDK jdk8.
   4 #
   5 # Report bugs to <build-dev@openjdk.java.net>.
   6 #
   7 #
   8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10 # Foundation, Inc.
  11 #
  12 #
  13 # This configure script is free software; the Free Software Foundation
  14 # gives unlimited permission to copy, distribute and modify it.
  15 ## -------------------- ##
  16 ## M4sh Initialization. ##
  17 ## -------------------- ##
  18 
  19 # Be more Bourne compatible
  20 DUALCASE=1; export DUALCASE # for MKS sh
  21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22   emulate sh
  23   NULLCMD=:


  74 fi
  75 
  76 # The user is always right.
  77 if test "${PATH_SEPARATOR+set}" != set; then
  78   PATH_SEPARATOR=:
  79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  81       PATH_SEPARATOR=';'
  82   }
  83 fi
  84 
  85 
  86 # IFS
  87 # We need space, tab and new line, in precisely that order.  Quoting is
  88 # there to prevent editors from complaining about space-tab.
  89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  90 # splitting by setting IFS to empty value.)
  91 IFS=" ""        $as_nl"
  92 
  93 # Find who we are.  Look in the path if we contain no directory separator.

  94 case $0 in #((
  95   *[\\/]* ) as_myself=$0 ;;
  96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  97 for as_dir in $PATH
  98 do
  99   IFS=$as_save_IFS
 100   test -z "$as_dir" && as_dir=.
 101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 102   done
 103 IFS=$as_save_IFS
 104 
 105      ;;
 106 esac
 107 # We did not find ourselves, most probably we were run as `sh COMMAND'
 108 # in which case we are not to be found in the path.
 109 if test "x$as_myself" = x; then
 110   as_myself=$0
 111 fi
 112 if test ! -f "$as_myself"; then
 113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2


 199   CONFIG_SHELL=$as_shell as_have_required=yes
 200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 201   break 2
 202 fi
 203 fi
 204            done;;
 205        esac
 206   as_found=false
 207 done
 208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 210   CONFIG_SHELL=$SHELL as_have_required=yes
 211 fi; }
 212 IFS=$as_save_IFS
 213 
 214 
 215       if test "x$CONFIG_SHELL" != x; then :
 216   # We cannot yet assume a decent shell, so we have to provide a
 217         # neutralization value for shells without unset; and this also
 218         # works around shells that cannot unset nonexistent variables.

 219         BASH_ENV=/dev/null
 220         ENV=/dev/null
 221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 222         export CONFIG_SHELL
 223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}






 224 fi
 225 
 226     if test x$as_have_required = xno; then :
 227   $as_echo "$0: This script requires a shell more modern than all"
 228   $as_echo "$0: the shells that I found on your system."
 229   if test x${ZSH_VERSION+set} = xset ; then
 230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 232   else
 233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 234 $0: build-dev@openjdk.java.net about your system, including
 235 $0: any error possibly output before this message. Then
 236 $0: install a modern shell, or manually run the script
 237 $0: under such a shell if you do have one."
 238   fi
 239   exit 1
 240 fi
 241 fi
 242 fi
 243 SHELL=${CONFIG_SHELL-/bin/sh}


 610 LIBCXX
 611 LLVM_LIBS
 612 LLVM_LDFLAGS
 613 LLVM_CFLAGS
 614 LLVM_CONFIG
 615 LIBFFI_LIBS
 616 LIBFFI_CFLAGS
 617 STATIC_CXX_SETTING
 618 LIBDL
 619 LIBM
 620 LIBZIP_CAN_USE_MMAP
 621 USE_EXTERNAL_LIBZ
 622 USE_EXTERNAL_LIBGIF
 623 USE_EXTERNAL_LIBJPEG
 624 ALSA_LIBS
 625 ALSA_CFLAGS
 626 FREETYPE2_LIB_PATH
 627 USING_SYSTEM_FT_LIB
 628 FREETYPE2_LIBS
 629 FREETYPE2_CFLAGS



 630 CUPS_CFLAGS
 631 OPENWIN_HOME
 632 X_EXTRA_LIBS
 633 X_LIBS
 634 X_PRE_LIBS
 635 X_CFLAGS
 636 XMKMF
 637 CXXFLAGS_DEBUG_SYMBOLS
 638 CFLAGS_DEBUG_SYMBOLS
 639 ZIP_DEBUGINFO_FILES
 640 ENABLE_DEBUG_SYMBOLS
 641 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 642 ZERO_ARCHFLAG
 643 LDFLAGS_CXX_JDK
 644 LDFLAGS_JDKEXE_SUFFIX
 645 LDFLAGS_JDKLIB_SUFFIX
 646 LDFLAGS_JDKEXE
 647 LDFLAGS_JDKLIB
 648 CXXFLAGS_JDKEXE
 649 CXXFLAGS_JDKLIB


1000 with_override_corba
1001 with_override_jaxp
1002 with_override_jaxws
1003 with_override_hotspot
1004 with_override_jdk
1005 with_import_hotspot
1006 with_msvcr_dll
1007 with_dxsdk
1008 with_dxsdk_lib
1009 with_dxsdk_include
1010 with_jtreg
1011 with_extra_cflags
1012 with_extra_cxxflags
1013 with_extra_ldflags
1014 enable_debug_symbols
1015 enable_zip_debug_info
1016 enable_macosx_runtime_support
1017 with_x
1018 with_cups
1019 with_cups_include

1020 with_freetype
1021 with_alsa
1022 with_alsa_include
1023 with_alsa_lib
1024 with_giflib
1025 with_zlib
1026 with_stdc__lib
1027 with_num_cores
1028 with_memory_size
1029 with_jobs
1030 with_sjavac_server_java
1031 enable_sjavac
1032 enable_precompiled_headers
1033 enable_ccache
1034 with_ccache_dir
1035 '
1036       ac_precious_vars='build_alias
1037 host_alias
1038 target_alias
1039 PKG_CONFIG
1040 CC
1041 CFLAGS
1042 LDFLAGS
1043 LIBS
1044 CPPFLAGS
1045 CXX
1046 CXXFLAGS
1047 CCC
1048 OBJC
1049 OBJCFLAGS
1050 CPP
1051 CXXCPP
1052 XMKMF


1053 FREETYPE2_CFLAGS
1054 FREETYPE2_LIBS
1055 ALSA_CFLAGS
1056 ALSA_LIBS
1057 LIBFFI_CFLAGS
1058 LIBFFI_LIBS'
1059 
1060 
1061 # Initialize some variables set by options.
1062 ac_init_help=
1063 ac_init_version=false
1064 ac_unrecognized_opts=
1065 ac_unrecognized_sep=
1066 # The variables have the same names as the options, with
1067 # dashes changed to underlines.
1068 cache_file=/dev/null
1069 exec_prefix=NONE
1070 no_create=
1071 no_recursion=
1072 prefix=NONE


1443 
1444   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1445 Try \`$0 --help' for more information"
1446     ;;
1447 
1448   *=*)
1449     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1450     # Reject names that are not valid shell variable names.
1451     case $ac_envvar in #(
1452       '' | [0-9]* | *[!_$as_cr_alnum]* )
1453       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1454     esac
1455     eval $ac_envvar=\$ac_optarg
1456     export $ac_envvar ;;
1457 
1458   *)
1459     # FIXME: should be removed in autoconf 3.0.
1460     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1461     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1462       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1463     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1464     ;;
1465 
1466   esac
1467 done
1468 
1469 if test -n "$ac_prev"; then
1470   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1471   as_fn_error $? "missing argument to $ac_option"
1472 fi
1473 
1474 if test -n "$ac_unrecognized_opts"; then
1475   case $enable_option_checking in
1476     no) ;;
1477     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1478     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1479   esac
1480 fi
1481 
1482 # Check all directory arguments for consistency.
1483 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \


1758   --with-override-hotspot use this hotspot dir for the build
1759   --with-override-jdk     use this jdk dir for the build
1760   --with-import-hotspot   import hotspot binaries from this jdk image or
1761                           hotspot build dist dir instead of building from
1762                           source
1763   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1764                           only) [probed]
1765   --with-dxsdk            the DirectX SDK (Windows only) [probed]
1766   --with-dxsdk-lib        the DirectX SDK lib directory (Windows only)
1767                           [probed]
1768   --with-dxsdk-include    the DirectX SDK include directory (Windows only)
1769                           [probed]
1770   --with-jtreg            Regression Test Harness [probed]
1771   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1772   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1773   --with-extra-ldflags    extra flags to be used when linking jdk
1774   --with-x                use the X Window System
1775   --with-cups             specify prefix directory for the cups package
1776                           (expecting the headers under PATH/include)
1777   --with-cups-include     specify directory for the cups include files


1778   --with-freetype         specify prefix directory for the freetype2 package
1779                           (expecting the libraries under PATH/lib and the
1780                           headers under PATH/include)
1781   --with-alsa             specify prefix directory for the alsa package
1782                           (expecting the libraries under PATH/lib and the
1783                           headers under PATH/include)
1784   --with-alsa-include     specify directory for the alsa include files
1785   --with-alsa-lib         specify directory for the alsa library
1786   --with-giflib           use giflib from build system or OpenJDK source
1787                           (system, bundled) [bundled]
1788   --with-zlib             use zlib from build system or OpenJDK source
1789                           (system, bundled) [bundled]
1790   --with-stdc++lib=<static>,<dynamic>,<default>
1791                           force linking of the C++ runtime on Linux to either
1792                           static or dynamic, default is static with dynamic as
1793                           fallback
1794   --with-num-cores        number of cores in the build system, e.g.
1795                           --with-num-cores=8 [probed]
1796   --with-memory-size      memory (in MB) available in the build system, e.g.
1797                           --with-memory-size=1024 [probed]


1801                           use this java binary for running the sjavac
1802                           background server [Boot JDK java]
1803   --with-ccache-dir       where to store ccache files [~/.ccache]
1804 
1805 Some influential environment variables:
1806   PKG_CONFIG  path to pkg-config utility
1807   CC          C compiler command
1808   CFLAGS      C compiler flags
1809   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1810               nonstandard directory <lib dir>
1811   LIBS        libraries to pass to the linker, e.g. -l<library>
1812   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1813               you have headers in a nonstandard directory <include dir>
1814   CXX         C++ compiler command
1815   CXXFLAGS    C++ compiler flags
1816   OBJC        Objective C compiler command
1817   OBJCFLAGS   Objective C compiler flags
1818   CPP         C preprocessor
1819   CXXCPP      C++ preprocessor
1820   XMKMF       Path to xmkmf, Makefile generator for X Window System



1821   FREETYPE2_CFLAGS
1822               C compiler flags for FREETYPE2, overriding pkg-config
1823   FREETYPE2_LIBS
1824               linker flags for FREETYPE2, overriding pkg-config
1825   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1826   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
1827   LIBFFI_CFLAGS
1828               C compiler flags for LIBFFI, overriding pkg-config
1829   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1830 
1831 Use these variables to override the choices made by `configure' or to help
1832 it to find libraries and programs with nonstandard names/locations.
1833 
1834 Report bugs to <build-dev@openjdk.java.net>.
1835 OpenJDK home page: <http://openjdk.java.net>.
1836 _ACEOF
1837 ac_status=$?
1838 fi
1839 
1840 if test "$ac_init_help" = "recursive"; then


1879 
1880     cd "$ac_dir" || { ac_status=$?; continue; }
1881     # Check for guested configure.
1882     if test -f "$ac_srcdir/configure.gnu"; then
1883       echo &&
1884       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1885     elif test -f "$ac_srcdir/configure"; then
1886       echo &&
1887       $SHELL "$ac_srcdir/configure" --help=recursive
1888     else
1889       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1890     fi || ac_status=$?
1891     cd "$ac_pwd" || { ac_status=$?; break; }
1892   done
1893 fi
1894 
1895 test -n "$ac_init_help" && exit $ac_status
1896 if $ac_init_version; then
1897   cat <<\_ACEOF
1898 OpenJDK configure jdk8
1899 generated by GNU Autoconf 2.67
1900 
1901 Copyright (C) 2010 Free Software Foundation, Inc.
1902 This configure script is free software; the Free Software Foundation
1903 gives unlimited permission to copy, distribute and modify it.
1904 _ACEOF
1905   exit
1906 fi
1907 
1908 ## ------------------------ ##
1909 ## Autoconf initialization. ##
1910 ## ------------------------ ##
1911 
1912 # ac_fn_c_try_compile LINENO
1913 # --------------------------
1914 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1915 ac_fn_c_try_compile ()
1916 {
1917   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918   rm -f conftest.$ac_objext
1919   if { { ac_try="$ac_compile"


1925 $as_echo "$ac_try_echo"; } >&5
1926   (eval "$ac_compile") 2>conftest.err
1927   ac_status=$?
1928   if test -s conftest.err; then
1929     grep -v '^ *+' conftest.err >conftest.er1
1930     cat conftest.er1 >&5
1931     mv -f conftest.er1 conftest.err
1932   fi
1933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934   test $ac_status = 0; } && {
1935          test -z "$ac_c_werror_flag" ||
1936          test ! -s conftest.err
1937        } && test -s conftest.$ac_objext; then :
1938   ac_retval=0
1939 else
1940   $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1942 
1943         ac_retval=1
1944 fi
1945   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946   as_fn_set_status $ac_retval
1947 
1948 } # ac_fn_c_try_compile
1949 
1950 # ac_fn_cxx_try_compile LINENO
1951 # ----------------------------
1952 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_cxx_try_compile ()
1954 {
1955   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956   rm -f conftest.$ac_objext
1957   if { { ac_try="$ac_compile"
1958 case "(($ac_try" in
1959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960   *) ac_try_echo=$ac_try;;
1961 esac
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964   (eval "$ac_compile") 2>conftest.err
1965   ac_status=$?
1966   if test -s conftest.err; then
1967     grep -v '^ *+' conftest.err >conftest.er1
1968     cat conftest.er1 >&5
1969     mv -f conftest.er1 conftest.err
1970   fi
1971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972   test $ac_status = 0; } && {
1973          test -z "$ac_cxx_werror_flag" ||
1974          test ! -s conftest.err
1975        } && test -s conftest.$ac_objext; then :
1976   ac_retval=0
1977 else
1978   $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980 
1981         ac_retval=1
1982 fi
1983   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984   as_fn_set_status $ac_retval
1985 
1986 } # ac_fn_cxx_try_compile
1987 
1988 # ac_fn_objc_try_compile LINENO
1989 # -----------------------------
1990 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_objc_try_compile ()
1992 {
1993   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994   rm -f conftest.$ac_objext
1995   if { { ac_try="$ac_compile"
1996 case "(($ac_try" in
1997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998   *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002   (eval "$ac_compile") 2>conftest.err
2003   ac_status=$?
2004   if test -s conftest.err; then
2005     grep -v '^ *+' conftest.err >conftest.er1
2006     cat conftest.er1 >&5
2007     mv -f conftest.er1 conftest.err
2008   fi
2009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010   test $ac_status = 0; } && {
2011          test -z "$ac_objc_werror_flag" ||
2012          test ! -s conftest.err
2013        } && test -s conftest.$ac_objext; then :
2014   ac_retval=0
2015 else
2016   $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2018 
2019         ac_retval=1
2020 fi
2021   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022   as_fn_set_status $ac_retval
2023 
2024 } # ac_fn_objc_try_compile
2025 
2026 # ac_fn_c_try_cpp LINENO
2027 # ----------------------
2028 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2029 ac_fn_c_try_cpp ()
2030 {
2031   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032   if { { ac_try="$ac_cpp conftest.$ac_ext"
2033 case "(($ac_try" in
2034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035   *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2040   ac_status=$?
2041   if test -s conftest.err; then
2042     grep -v '^ *+' conftest.err >conftest.er1
2043     cat conftest.er1 >&5
2044     mv -f conftest.er1 conftest.err
2045   fi
2046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047   test $ac_status = 0; } > conftest.i && {
2048          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2049          test ! -s conftest.err
2050        }; then :
2051   ac_retval=0
2052 else
2053   $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2055 
2056     ac_retval=1
2057 fi
2058   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059   as_fn_set_status $ac_retval
2060 
2061 } # ac_fn_c_try_cpp
2062 
2063 # ac_fn_cxx_try_cpp LINENO
2064 # ------------------------
2065 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2066 ac_fn_cxx_try_cpp ()
2067 {
2068   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069   if { { ac_try="$ac_cpp conftest.$ac_ext"
2070 case "(($ac_try" in
2071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072   *) ac_try_echo=$ac_try;;
2073 esac
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2077   ac_status=$?
2078   if test -s conftest.err; then
2079     grep -v '^ *+' conftest.err >conftest.er1
2080     cat conftest.er1 >&5
2081     mv -f conftest.er1 conftest.err
2082   fi
2083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2084   test $ac_status = 0; } > conftest.i && {
2085          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2086          test ! -s conftest.err
2087        }; then :
2088   ac_retval=0
2089 else
2090   $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2092 
2093     ac_retval=1
2094 fi
2095   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2096   as_fn_set_status $ac_retval
2097 
2098 } # ac_fn_cxx_try_cpp
2099 
2100 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2101 # ---------------------------------------------------------
2102 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2103 # the include files in INCLUDES and setting the cache variable VAR
2104 # accordingly.
2105 ac_fn_cxx_check_header_mongrel ()
2106 {
2107   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108   if eval "test \"\${$3+set}\"" = set; then :
2109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2110 $as_echo_n "checking for $2... " >&6; }
2111 if eval "test \"\${$3+set}\"" = set; then :
2112   $as_echo_n "(cached) " >&6
2113 fi
2114 eval ac_res=\$$3
2115                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 else
2118   # Is the header compilable?
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2120 $as_echo_n "checking $2 usability... " >&6; }
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h.  */
2123 $4
2124 #include <$2>
2125 _ACEOF
2126 if ac_fn_cxx_try_compile "$LINENO"; then :
2127   ac_header_compiler=yes
2128 else
2129   ac_header_compiler=no
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


2158     ;;
2159   no:yes:* )
2160     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2161 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2162     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2163 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2164     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2165 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2166     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2167 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2168     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2169 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2170 ( $as_echo "## ----------------------------------------- ##
2171 ## Report this to build-dev@openjdk.java.net ##
2172 ## ----------------------------------------- ##"
2173      ) | sed "s/^/$as_me: WARNING:     /" >&2
2174     ;;
2175 esac
2176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2177 $as_echo_n "checking for $2... " >&6; }
2178 if eval "test \"\${$3+set}\"" = set; then :
2179   $as_echo_n "(cached) " >&6
2180 else
2181   eval "$3=\$ac_header_compiler"
2182 fi
2183 eval ac_res=\$$3
2184                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 $as_echo "$ac_res" >&6; }
2186 fi
2187   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2188 
2189 } # ac_fn_cxx_check_header_mongrel
2190 
2191 # ac_fn_cxx_try_run LINENO
2192 # ------------------------
2193 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2194 # that executables *can* be run.
2195 ac_fn_cxx_try_run ()
2196 {
2197   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198   if { { ac_try="$ac_link"
2199 case "(($ac_try" in
2200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201   *) ac_try_echo=$ac_try;;
2202 esac
2203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2204 $as_echo "$ac_try_echo"; } >&5
2205   (eval "$ac_link") 2>&5
2206   ac_status=$?
2207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2209   { { case "(($ac_try" in
2210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211   *) ac_try_echo=$ac_try;;
2212 esac
2213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2214 $as_echo "$ac_try_echo"; } >&5
2215   (eval "$ac_try") 2>&5
2216   ac_status=$?
2217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2218   test $ac_status = 0; }; }; then :
2219   ac_retval=0
2220 else
2221   $as_echo "$as_me: program exited with status $ac_status" >&5
2222        $as_echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2224 
2225        ac_retval=$ac_status
2226 fi
2227   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2228   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2229   as_fn_set_status $ac_retval
2230 
2231 } # ac_fn_cxx_try_run
2232 
2233 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2234 # ---------------------------------------------------------
2235 # Tests whether HEADER exists and can be compiled using the include files in
2236 # INCLUDES, setting the cache variable VAR accordingly.
2237 ac_fn_cxx_check_header_compile ()
2238 {
2239   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if eval "test \"\${$3+set}\"" = set; then :
2243   $as_echo_n "(cached) " >&6
2244 else
2245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h.  */
2247 $4
2248 #include <$2>
2249 _ACEOF
2250 if ac_fn_cxx_try_compile "$LINENO"; then :
2251   eval "$3=yes"
2252 else
2253   eval "$3=no"
2254 fi
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 fi
2257 eval ac_res=\$$3
2258                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261 
2262 } # ac_fn_cxx_check_header_compile
2263 
2264 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2265 # ----------------------------------------------
2266 # Tries to find the compile-time value of EXPR in a program that includes
2267 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2268 # computed
2269 ac_fn_cxx_compute_int ()
2270 {
2271   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272   if test "$cross_compiling" = yes; then
2273     # Depending upon the size, compute the lo and hi bounds.
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h.  */
2276 $4
2277 int
2278 main ()
2279 {
2280 static int test_array [1 - 2 * !(($2) >= 0)];


2417       fprintf (f, "%lu", i);
2418     }
2419   /* Do not output a trailing newline, as this causes \r\n confusion
2420      on some platforms.  */
2421   return ferror (f) || fclose (f) != 0;
2422 
2423   ;
2424   return 0;
2425 }
2426 _ACEOF
2427 if ac_fn_cxx_try_run "$LINENO"; then :
2428   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2429 else
2430   ac_retval=1
2431 fi
2432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2433   conftest.$ac_objext conftest.beam conftest.$ac_ext
2434 rm -f conftest.val
2435 
2436   fi
2437   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2438   as_fn_set_status $ac_retval
2439 
2440 } # ac_fn_cxx_compute_int
2441 
2442 # ac_fn_cxx_try_link LINENO
2443 # -------------------------
2444 # Try to link conftest.$ac_ext, and return whether this succeeded.
2445 ac_fn_cxx_try_link ()
2446 {
2447   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2448   rm -f conftest.$ac_objext conftest$ac_exeext
2449   if { { ac_try="$ac_link"
2450 case "(($ac_try" in
2451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452   *) ac_try_echo=$ac_try;;
2453 esac
2454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2455 $as_echo "$ac_try_echo"; } >&5
2456   (eval "$ac_link") 2>conftest.err
2457   ac_status=$?


2463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2464   test $ac_status = 0; } && {
2465          test -z "$ac_cxx_werror_flag" ||
2466          test ! -s conftest.err
2467        } && test -s conftest$ac_exeext && {
2468          test "$cross_compiling" = yes ||
2469          $as_test_x conftest$ac_exeext
2470        }; then :
2471   ac_retval=0
2472 else
2473   $as_echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2475 
2476         ac_retval=1
2477 fi
2478   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2479   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2480   # interfere with the next link command; also delete a directory that is
2481   # left behind by Apple's compiler.  We do this before executing the actions.
2482   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2483   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484   as_fn_set_status $ac_retval
2485 
2486 } # ac_fn_cxx_try_link
2487 
2488 # ac_fn_cxx_check_func LINENO FUNC VAR
2489 # ------------------------------------
2490 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2491 ac_fn_cxx_check_func ()
2492 {
2493   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2495 $as_echo_n "checking for $2... " >&6; }
2496 if eval "test \"\${$3+set}\"" = set; then :
2497   $as_echo_n "(cached) " >&6
2498 else
2499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h.  */
2501 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2503 #define $2 innocuous_$2
2504 
2505 /* System header to define __stub macros and hopefully few prototypes,
2506     which can conflict with char $2 (); below.
2507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2508     <limits.h> exists even on freestanding compilers.  */
2509 
2510 #ifdef __STDC__
2511 # include <limits.h>
2512 #else
2513 # include <assert.h>
2514 #endif
2515 
2516 #undef $2


2531 
2532 int
2533 main ()
2534 {
2535 return $2 ();
2536   ;
2537   return 0;
2538 }
2539 _ACEOF
2540 if ac_fn_cxx_try_link "$LINENO"; then :
2541   eval "$3=yes"
2542 else
2543   eval "$3=no"
2544 fi
2545 rm -f core conftest.err conftest.$ac_objext \
2546     conftest$ac_exeext conftest.$ac_ext
2547 fi
2548 eval ac_res=\$$3
2549                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2550 $as_echo "$ac_res" >&6; }
2551   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2552 
2553 } # ac_fn_cxx_check_func
2554 
2555 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2556 # -------------------------------------------------------
2557 # Tests whether HEADER exists and can be compiled using the include files in
2558 # INCLUDES, setting the cache variable VAR accordingly.
2559 ac_fn_c_check_header_compile ()
2560 {
2561   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2563 $as_echo_n "checking for $2... " >&6; }
2564 if eval "test \"\${$3+set}\"" = set; then :
2565   $as_echo_n "(cached) " >&6
2566 else
2567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h.  */
2569 $4
2570 #include <$2>
2571 _ACEOF
2572 if ac_fn_c_try_compile "$LINENO"; then :
2573   eval "$3=yes"
2574 else
2575   eval "$3=no"
2576 fi
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 fi
2579 eval ac_res=\$$3
2580                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2581 $as_echo "$ac_res" >&6; }
2582   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2583 
2584 } # ac_fn_c_check_header_compile
2585 cat >config.log <<_ACEOF
2586 This file contains any messages produced by compilers while
2587 running configure, to aid debugging if configure makes a mistake.
2588 
2589 It was created by OpenJDK $as_me jdk8, which was
2590 generated by GNU Autoconf 2.67.  Invocation command line was
2591 
2592   $ $0 $@
2593 
2594 _ACEOF
2595 exec 5>>config.log
2596 {
2597 cat <<_ASUNAME
2598 ## --------- ##
2599 ## Platform. ##
2600 ## --------- ##
2601 
2602 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2603 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2604 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2605 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2606 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2607 
2608 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2609 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2610 


2828     *)   ac_site_file1=./$CONFIG_SITE;;
2829   esac
2830 elif test "x$prefix" != xNONE; then
2831   ac_site_file1=$prefix/share/config.site
2832   ac_site_file2=$prefix/etc/config.site
2833 else
2834   ac_site_file1=$ac_default_prefix/share/config.site
2835   ac_site_file2=$ac_default_prefix/etc/config.site
2836 fi
2837 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2838 do
2839   test "x$ac_site_file" = xNONE && continue
2840   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2841     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2842 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2843     sed 's/^/| /' "$ac_site_file" >&5
2844     . "$ac_site_file" \
2845       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2847 as_fn_error $? "failed to load site script $ac_site_file
2848 See \`config.log' for more details" "$LINENO" 5 ; }
2849   fi
2850 done
2851 
2852 if test -r "$cache_file"; then
2853   # Some versions of bash will fail to source /dev/null (special files
2854   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2855   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2856     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2857 $as_echo "$as_me: loading cache $cache_file" >&6;}
2858     case $cache_file in
2859       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2860       *)                      . "./$cache_file";;
2861     esac
2862   fi
2863 else
2864   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2865 $as_echo "$as_me: creating cache $cache_file" >&6;}
2866   >$cache_file
2867 fi
2868 


3557 #
3558 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3559 # or visit www.oracle.com if you need additional information or have any
3560 # questions.
3561 #
3562 
3563 
3564 
3565 
3566 
3567 
3568 
3569 
3570 
3571 
3572 
3573 
3574 
3575 
3576 


3577 #
3578 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3579 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3580 #
3581 # This code is free software; you can redistribute it and/or modify it
3582 # under the terms of the GNU General Public License version 2 only, as
3583 # published by the Free Software Foundation.  Oracle designates this
3584 # particular file as subject to the "Classpath" exception as provided
3585 # by Oracle in the LICENSE file that accompanied this code.
3586 #
3587 # This code is distributed in the hope that it will be useful, but WITHOUT
3588 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3589 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3590 # version 2 for more details (a copy is included in the LICENSE file that
3591 # accompanied this code).
3592 #
3593 # You should have received a copy of the GNU General Public License version
3594 # 2 along with this work; if not, write to the Free Software Foundation,
3595 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3596 #


3765 
3766 # Check if the VS env variables were setup prior to running configure.
3767 # If not, then find vcvarsall.bat and run it automatically, and integrate
3768 # the set env variables into the spec file.
3769 
3770 
3771 
3772 # Setup the DXSDK paths
3773 
3774 
3775 
3776 
3777 
3778 
3779 # This line needs to be here, verbatim, after all includes and the dummy hook
3780 # definitions. It is replaced with custom functionality when building
3781 # custom sources.
3782 #CUSTOM_AUTOCONF_INCLUDE
3783 
3784 # Do not change or remove the following line, it is needed for consistency checks:
3785 DATE_WHEN_GENERATED=1370334570
3786 
3787 ###############################################################################
3788 #
3789 # Initialization / Boot-strapping
3790 #
3791 # The bootstrapping process needs to solve the "chicken or the egg" problem,
3792 # thus it jumps back and forth, each time gaining something needed later on.
3793 #
3794 ###############################################################################
3795 
3796 # Basic initialization that must happen first of all
3797 
3798 # Save the original command line. This is passed to us by the wrapper configure script.
3799 
3800 DATE_WHEN_CONFIGURED=`LANG=C date`
3801 
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
3803 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
3805 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
3806 
3807 
3808 
3809 # Start with tools that do not need have cross compilation support
3810 # and can be expected to be found in the default PATH. These tools are
3811 # used by configure. Nor are these tools expected to be found in the
3812 # devkit from the builddeps server either, since they are
3813 # needed to download the devkit.
3814 
3815 # First are all the simple required tools.
3816 
3817     for ac_prog in basename
3818 do
3819   # Extract the first word of "$ac_prog", so it can be a program name with args.
3820 set dummy $ac_prog; ac_word=$2
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822 $as_echo_n "checking for $ac_word... " >&6; }
3823 if test "${ac_cv_path_BASENAME+set}" = set; then :
3824   $as_echo_n "(cached) " >&6
3825 else
3826   case $BASENAME in
3827   [\\/]* | ?:[\\/]*)
3828   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
3829   ;;
3830   *)
3831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3833 do
3834   IFS=$as_save_IFS
3835   test -z "$as_dir" && as_dir=.
3836     for ac_exec_ext in '' $ac_executable_extensions; do
3837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3838     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
3839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840     break 2
3841   fi
3842 done
3843   done


3862 
3863     if test "x$BASENAME" = x; then
3864         if test "xbasename" = x; then
3865           PROG_NAME=basename
3866         else
3867           PROG_NAME=basename
3868         fi
3869         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3870 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3871         as_fn_error $? "Cannot continue" "$LINENO" 5
3872     fi
3873 
3874 
3875 
3876     for ac_prog in bash
3877 do
3878   # Extract the first word of "$ac_prog", so it can be a program name with args.
3879 set dummy $ac_prog; ac_word=$2
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881 $as_echo_n "checking for $ac_word... " >&6; }
3882 if test "${ac_cv_path_BASH+set}" = set; then :
3883   $as_echo_n "(cached) " >&6
3884 else
3885   case $BASH in
3886   [\\/]* | ?:[\\/]*)
3887   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3888   ;;
3889   *)
3890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH
3892 do
3893   IFS=$as_save_IFS
3894   test -z "$as_dir" && as_dir=.
3895     for ac_exec_ext in '' $ac_executable_extensions; do
3896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3897     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899     break 2
3900   fi
3901 done
3902   done


3921 
3922     if test "x$BASH" = x; then
3923         if test "xbash" = x; then
3924           PROG_NAME=bash
3925         else
3926           PROG_NAME=bash
3927         fi
3928         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3929 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3930         as_fn_error $? "Cannot continue" "$LINENO" 5
3931     fi
3932 
3933 
3934 
3935     for ac_prog in cat
3936 do
3937   # Extract the first word of "$ac_prog", so it can be a program name with args.
3938 set dummy $ac_prog; ac_word=$2
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 $as_echo_n "checking for $ac_word... " >&6; }
3941 if test "${ac_cv_path_CAT+set}" = set; then :
3942   $as_echo_n "(cached) " >&6
3943 else
3944   case $CAT in
3945   [\\/]* | ?:[\\/]*)
3946   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3947   ;;
3948   *)
3949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952   IFS=$as_save_IFS
3953   test -z "$as_dir" && as_dir=.
3954     for ac_exec_ext in '' $ac_executable_extensions; do
3955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958     break 2
3959   fi
3960 done
3961   done


3980 
3981     if test "x$CAT" = x; then
3982         if test "xcat" = x; then
3983           PROG_NAME=cat
3984         else
3985           PROG_NAME=cat
3986         fi
3987         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3988 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3989         as_fn_error $? "Cannot continue" "$LINENO" 5
3990     fi
3991 
3992 
3993 
3994     for ac_prog in chmod
3995 do
3996   # Extract the first word of "$ac_prog", so it can be a program name with args.
3997 set dummy $ac_prog; ac_word=$2
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 $as_echo_n "checking for $ac_word... " >&6; }
4000 if test "${ac_cv_path_CHMOD+set}" = set; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003   case $CHMOD in
4004   [\\/]* | ?:[\\/]*)
4005   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4006   ;;
4007   *)
4008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH
4010 do
4011   IFS=$as_save_IFS
4012   test -z "$as_dir" && as_dir=.
4013     for ac_exec_ext in '' $ac_executable_extensions; do
4014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4015     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017     break 2
4018   fi
4019 done
4020   done


4039 
4040     if test "x$CHMOD" = x; then
4041         if test "xchmod" = x; then
4042           PROG_NAME=chmod
4043         else
4044           PROG_NAME=chmod
4045         fi
4046         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4047 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4048         as_fn_error $? "Cannot continue" "$LINENO" 5
4049     fi
4050 
4051 
4052 
4053     for ac_prog in cmp
4054 do
4055   # Extract the first word of "$ac_prog", so it can be a program name with args.
4056 set dummy $ac_prog; ac_word=$2
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058 $as_echo_n "checking for $ac_word... " >&6; }
4059 if test "${ac_cv_path_CMP+set}" = set; then :
4060   $as_echo_n "(cached) " >&6
4061 else
4062   case $CMP in
4063   [\\/]* | ?:[\\/]*)
4064   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4065   ;;
4066   *)
4067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4069 do
4070   IFS=$as_save_IFS
4071   test -z "$as_dir" && as_dir=.
4072     for ac_exec_ext in '' $ac_executable_extensions; do
4073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4074     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4076     break 2
4077   fi
4078 done
4079   done


4098 
4099     if test "x$CMP" = x; then
4100         if test "xcmp" = x; then
4101           PROG_NAME=cmp
4102         else
4103           PROG_NAME=cmp
4104         fi
4105         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4106 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4107         as_fn_error $? "Cannot continue" "$LINENO" 5
4108     fi
4109 
4110 
4111 
4112     for ac_prog in comm
4113 do
4114   # Extract the first word of "$ac_prog", so it can be a program name with args.
4115 set dummy $ac_prog; ac_word=$2
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117 $as_echo_n "checking for $ac_word... " >&6; }
4118 if test "${ac_cv_path_COMM+set}" = set; then :
4119   $as_echo_n "(cached) " >&6
4120 else
4121   case $COMM in
4122   [\\/]* | ?:[\\/]*)
4123   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
4124   ;;
4125   *)
4126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129   IFS=$as_save_IFS
4130   test -z "$as_dir" && as_dir=.
4131     for ac_exec_ext in '' $ac_executable_extensions; do
4132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
4134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4135     break 2
4136   fi
4137 done
4138   done


4157 
4158     if test "x$COMM" = x; then
4159         if test "xcomm" = x; then
4160           PROG_NAME=comm
4161         else
4162           PROG_NAME=comm
4163         fi
4164         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4165 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4166         as_fn_error $? "Cannot continue" "$LINENO" 5
4167     fi
4168 
4169 
4170 
4171     for ac_prog in cp
4172 do
4173   # Extract the first word of "$ac_prog", so it can be a program name with args.
4174 set dummy $ac_prog; ac_word=$2
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176 $as_echo_n "checking for $ac_word... " >&6; }
4177 if test "${ac_cv_path_CP+set}" = set; then :
4178   $as_echo_n "(cached) " >&6
4179 else
4180   case $CP in
4181   [\\/]* | ?:[\\/]*)
4182   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4183   ;;
4184   *)
4185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188   IFS=$as_save_IFS
4189   test -z "$as_dir" && as_dir=.
4190     for ac_exec_ext in '' $ac_executable_extensions; do
4191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4192     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4194     break 2
4195   fi
4196 done
4197   done


4216 
4217     if test "x$CP" = x; then
4218         if test "xcp" = x; then
4219           PROG_NAME=cp
4220         else
4221           PROG_NAME=cp
4222         fi
4223         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4224 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4225         as_fn_error $? "Cannot continue" "$LINENO" 5
4226     fi
4227 
4228 
4229 
4230     for ac_prog in cpio
4231 do
4232   # Extract the first word of "$ac_prog", so it can be a program name with args.
4233 set dummy $ac_prog; ac_word=$2
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235 $as_echo_n "checking for $ac_word... " >&6; }
4236 if test "${ac_cv_path_CPIO+set}" = set; then :
4237   $as_echo_n "(cached) " >&6
4238 else
4239   case $CPIO in
4240   [\\/]* | ?:[\\/]*)
4241   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
4242   ;;
4243   *)
4244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247   IFS=$as_save_IFS
4248   test -z "$as_dir" && as_dir=.
4249     for ac_exec_ext in '' $ac_executable_extensions; do
4250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
4252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253     break 2
4254   fi
4255 done
4256   done


4275 
4276     if test "x$CPIO" = x; then
4277         if test "xcpio" = x; then
4278           PROG_NAME=cpio
4279         else
4280           PROG_NAME=cpio
4281         fi
4282         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4283 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4284         as_fn_error $? "Cannot continue" "$LINENO" 5
4285     fi
4286 
4287 
4288 
4289     for ac_prog in cut
4290 do
4291   # Extract the first word of "$ac_prog", so it can be a program name with args.
4292 set dummy $ac_prog; ac_word=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if test "${ac_cv_path_CUT+set}" = set; then :
4296   $as_echo_n "(cached) " >&6
4297 else
4298   case $CUT in
4299   [\\/]* | ?:[\\/]*)
4300   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
4301   ;;
4302   *)
4303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4305 do
4306   IFS=$as_save_IFS
4307   test -z "$as_dir" && as_dir=.
4308     for ac_exec_ext in '' $ac_executable_extensions; do
4309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4310     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
4311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4312     break 2
4313   fi
4314 done
4315   done


4334 
4335     if test "x$CUT" = x; then
4336         if test "xcut" = x; then
4337           PROG_NAME=cut
4338         else
4339           PROG_NAME=cut
4340         fi
4341         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4342 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4343         as_fn_error $? "Cannot continue" "$LINENO" 5
4344     fi
4345 
4346 
4347 
4348     for ac_prog in date
4349 do
4350   # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy $ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if test "${ac_cv_path_DATE+set}" = set; then :
4355   $as_echo_n "(cached) " >&6
4356 else
4357   case $DATE in
4358   [\\/]* | ?:[\\/]*)
4359   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4360   ;;
4361   *)
4362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365   IFS=$as_save_IFS
4366   test -z "$as_dir" && as_dir=.
4367     for ac_exec_ext in '' $ac_executable_extensions; do
4368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371     break 2
4372   fi
4373 done
4374   done


4393 
4394     if test "x$DATE" = x; then
4395         if test "xdate" = x; then
4396           PROG_NAME=date
4397         else
4398           PROG_NAME=date
4399         fi
4400         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4401 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4402         as_fn_error $? "Cannot continue" "$LINENO" 5
4403     fi
4404 
4405 
4406 
4407     for ac_prog in gdiff diff
4408 do
4409   # Extract the first word of "$ac_prog", so it can be a program name with args.
4410 set dummy $ac_prog; ac_word=$2
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4412 $as_echo_n "checking for $ac_word... " >&6; }
4413 if test "${ac_cv_path_DIFF+set}" = set; then :
4414   $as_echo_n "(cached) " >&6
4415 else
4416   case $DIFF in
4417   [\\/]* | ?:[\\/]*)
4418   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
4419   ;;
4420   *)
4421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424   IFS=$as_save_IFS
4425   test -z "$as_dir" && as_dir=.
4426     for ac_exec_ext in '' $ac_executable_extensions; do
4427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
4429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430     break 2
4431   fi
4432 done
4433   done


4452 
4453     if test "x$DIFF" = x; then
4454         if test "xgdiff diff" = x; then
4455           PROG_NAME=diff
4456         else
4457           PROG_NAME=gdiff diff
4458         fi
4459         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4460 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4461         as_fn_error $? "Cannot continue" "$LINENO" 5
4462     fi
4463 
4464 
4465 
4466     for ac_prog in dirname
4467 do
4468   # Extract the first word of "$ac_prog", so it can be a program name with args.
4469 set dummy $ac_prog; ac_word=$2
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4471 $as_echo_n "checking for $ac_word... " >&6; }
4472 if test "${ac_cv_path_DIRNAME+set}" = set; then :
4473   $as_echo_n "(cached) " >&6
4474 else
4475   case $DIRNAME in
4476   [\\/]* | ?:[\\/]*)
4477   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4478   ;;
4479   *)
4480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485     for ac_exec_ext in '' $ac_executable_extensions; do
4486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492   done


4511 
4512     if test "x$DIRNAME" = x; then
4513         if test "xdirname" = x; then
4514           PROG_NAME=dirname
4515         else
4516           PROG_NAME=dirname
4517         fi
4518         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4519 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4520         as_fn_error $? "Cannot continue" "$LINENO" 5
4521     fi
4522 
4523 
4524 
4525     for ac_prog in echo
4526 do
4527   # Extract the first word of "$ac_prog", so it can be a program name with args.
4528 set dummy $ac_prog; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if test "${ac_cv_path_ECHO+set}" = set; then :
4532   $as_echo_n "(cached) " >&6
4533 else
4534   case $ECHO in
4535   [\\/]* | ?:[\\/]*)
4536   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4537   ;;
4538   *)
4539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4541 do
4542   IFS=$as_save_IFS
4543   test -z "$as_dir" && as_dir=.
4544     for ac_exec_ext in '' $ac_executable_extensions; do
4545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548     break 2
4549   fi
4550 done
4551   done


4570 
4571     if test "x$ECHO" = x; then
4572         if test "xecho" = x; then
4573           PROG_NAME=echo
4574         else
4575           PROG_NAME=echo
4576         fi
4577         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4578 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4579         as_fn_error $? "Cannot continue" "$LINENO" 5
4580     fi
4581 
4582 
4583 
4584     for ac_prog in expr
4585 do
4586   # Extract the first word of "$ac_prog", so it can be a program name with args.
4587 set dummy $ac_prog; ac_word=$2
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589 $as_echo_n "checking for $ac_word... " >&6; }
4590 if test "${ac_cv_path_EXPR+set}" = set; then :
4591   $as_echo_n "(cached) " >&6
4592 else
4593   case $EXPR in
4594   [\\/]* | ?:[\\/]*)
4595   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
4596   ;;
4597   *)
4598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4600 do
4601   IFS=$as_save_IFS
4602   test -z "$as_dir" && as_dir=.
4603     for ac_exec_ext in '' $ac_executable_extensions; do
4604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
4606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607     break 2
4608   fi
4609 done
4610   done


4629 
4630     if test "x$EXPR" = x; then
4631         if test "xexpr" = x; then
4632           PROG_NAME=expr
4633         else
4634           PROG_NAME=expr
4635         fi
4636         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4637 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4638         as_fn_error $? "Cannot continue" "$LINENO" 5
4639     fi
4640 
4641 
4642 
4643     for ac_prog in file
4644 do
4645   # Extract the first word of "$ac_prog", so it can be a program name with args.
4646 set dummy $ac_prog; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_path_FILE+set}" = set; then :
4650   $as_echo_n "(cached) " >&6
4651 else
4652   case $FILE in
4653   [\\/]* | ?:[\\/]*)
4654   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
4655   ;;
4656   *)
4657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660   IFS=$as_save_IFS
4661   test -z "$as_dir" && as_dir=.
4662     for ac_exec_ext in '' $ac_executable_extensions; do
4663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
4665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666     break 2
4667   fi
4668 done
4669   done


4688 
4689     if test "x$FILE" = x; then
4690         if test "xfile" = x; then
4691           PROG_NAME=file
4692         else
4693           PROG_NAME=file
4694         fi
4695         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4696 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4697         as_fn_error $? "Cannot continue" "$LINENO" 5
4698     fi
4699 
4700 
4701 
4702     for ac_prog in find
4703 do
4704   # Extract the first word of "$ac_prog", so it can be a program name with args.
4705 set dummy $ac_prog; ac_word=$2
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if test "${ac_cv_path_FIND+set}" = set; then :
4709   $as_echo_n "(cached) " >&6
4710 else
4711   case $FIND in
4712   [\\/]* | ?:[\\/]*)
4713   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4714   ;;
4715   *)
4716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719   IFS=$as_save_IFS
4720   test -z "$as_dir" && as_dir=.
4721     for ac_exec_ext in '' $ac_executable_extensions; do
4722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725     break 2
4726   fi
4727 done
4728   done


4747 
4748     if test "x$FIND" = x; then
4749         if test "xfind" = x; then
4750           PROG_NAME=find
4751         else
4752           PROG_NAME=find
4753         fi
4754         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4755 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4756         as_fn_error $? "Cannot continue" "$LINENO" 5
4757     fi
4758 
4759 
4760 
4761     for ac_prog in head
4762 do
4763   # Extract the first word of "$ac_prog", so it can be a program name with args.
4764 set dummy $ac_prog; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_path_HEAD+set}" = set; then :
4768   $as_echo_n "(cached) " >&6
4769 else
4770   case $HEAD in
4771   [\\/]* | ?:[\\/]*)
4772   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
4773   ;;
4774   *)
4775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4777 do
4778   IFS=$as_save_IFS
4779   test -z "$as_dir" && as_dir=.
4780     for ac_exec_ext in '' $ac_executable_extensions; do
4781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
4783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784     break 2
4785   fi
4786 done
4787   done


4806 
4807     if test "x$HEAD" = x; then
4808         if test "xhead" = x; then
4809           PROG_NAME=head
4810         else
4811           PROG_NAME=head
4812         fi
4813         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4814 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4815         as_fn_error $? "Cannot continue" "$LINENO" 5
4816     fi
4817 
4818 
4819 
4820     for ac_prog in ln
4821 do
4822   # Extract the first word of "$ac_prog", so it can be a program name with args.
4823 set dummy $ac_prog; ac_word=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if test "${ac_cv_path_LN+set}" = set; then :
4827   $as_echo_n "(cached) " >&6
4828 else
4829   case $LN in
4830   [\\/]* | ?:[\\/]*)
4831   ac_cv_path_LN="$LN" # Let the user override the test with a path.
4832   ;;
4833   *)
4834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837   IFS=$as_save_IFS
4838   test -z "$as_dir" && as_dir=.
4839     for ac_exec_ext in '' $ac_executable_extensions; do
4840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843     break 2
4844   fi
4845 done
4846   done


4865 
4866     if test "x$LN" = x; then
4867         if test "xln" = x; then
4868           PROG_NAME=ln
4869         else
4870           PROG_NAME=ln
4871         fi
4872         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4873 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4874         as_fn_error $? "Cannot continue" "$LINENO" 5
4875     fi
4876 
4877 
4878 
4879     for ac_prog in ls
4880 do
4881   # Extract the first word of "$ac_prog", so it can be a program name with args.
4882 set dummy $ac_prog; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if test "${ac_cv_path_LS+set}" = set; then :
4886   $as_echo_n "(cached) " >&6
4887 else
4888   case $LS in
4889   [\\/]* | ?:[\\/]*)
4890   ac_cv_path_LS="$LS" # Let the user override the test with a path.
4891   ;;
4892   *)
4893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4895 do
4896   IFS=$as_save_IFS
4897   test -z "$as_dir" && as_dir=.
4898     for ac_exec_ext in '' $ac_executable_extensions; do
4899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
4901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902     break 2
4903   fi
4904 done
4905   done


4924 
4925     if test "x$LS" = x; then
4926         if test "xls" = x; then
4927           PROG_NAME=ls
4928         else
4929           PROG_NAME=ls
4930         fi
4931         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4932 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4933         as_fn_error $? "Cannot continue" "$LINENO" 5
4934     fi
4935 
4936 
4937 
4938     for ac_prog in mkdir
4939 do
4940   # Extract the first word of "$ac_prog", so it can be a program name with args.
4941 set dummy $ac_prog; ac_word=$2
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 $as_echo_n "checking for $ac_word... " >&6; }
4944 if test "${ac_cv_path_MKDIR+set}" = set; then :
4945   $as_echo_n "(cached) " >&6
4946 else
4947   case $MKDIR in
4948   [\\/]* | ?:[\\/]*)
4949   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4950   ;;
4951   *)
4952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955   IFS=$as_save_IFS
4956   test -z "$as_dir" && as_dir=.
4957     for ac_exec_ext in '' $ac_executable_extensions; do
4958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4959     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961     break 2
4962   fi
4963 done
4964   done


4983 
4984     if test "x$MKDIR" = x; then
4985         if test "xmkdir" = x; then
4986           PROG_NAME=mkdir
4987         else
4988           PROG_NAME=mkdir
4989         fi
4990         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4991 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4992         as_fn_error $? "Cannot continue" "$LINENO" 5
4993     fi
4994 
4995 
4996 
4997     for ac_prog in mktemp
4998 do
4999   # Extract the first word of "$ac_prog", so it can be a program name with args.
5000 set dummy $ac_prog; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if test "${ac_cv_path_MKTEMP+set}" = set; then :
5004   $as_echo_n "(cached) " >&6
5005 else
5006   case $MKTEMP in
5007   [\\/]* | ?:[\\/]*)
5008   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5009   ;;
5010   *)
5011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014   IFS=$as_save_IFS
5015   test -z "$as_dir" && as_dir=.
5016     for ac_exec_ext in '' $ac_executable_extensions; do
5017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020     break 2
5021   fi
5022 done
5023   done


5042 
5043     if test "x$MKTEMP" = x; then
5044         if test "xmktemp" = x; then
5045           PROG_NAME=mktemp
5046         else
5047           PROG_NAME=mktemp
5048         fi
5049         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5050 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5051         as_fn_error $? "Cannot continue" "$LINENO" 5
5052     fi
5053 
5054 
5055 
5056     for ac_prog in mv
5057 do
5058   # Extract the first word of "$ac_prog", so it can be a program name with args.
5059 set dummy $ac_prog; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if test "${ac_cv_path_MV+set}" = set; then :
5063   $as_echo_n "(cached) " >&6
5064 else
5065   case $MV in
5066   [\\/]* | ?:[\\/]*)
5067   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5068   ;;
5069   *)
5070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075     for ac_exec_ext in '' $ac_executable_extensions; do
5076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079     break 2
5080   fi
5081 done
5082   done


5101 
5102     if test "x$MV" = x; then
5103         if test "xmv" = x; then
5104           PROG_NAME=mv
5105         else
5106           PROG_NAME=mv
5107         fi
5108         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5109 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5110         as_fn_error $? "Cannot continue" "$LINENO" 5
5111     fi
5112 
5113 
5114 
5115     for ac_prog in printf
5116 do
5117   # Extract the first word of "$ac_prog", so it can be a program name with args.
5118 set dummy $ac_prog; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if test "${ac_cv_path_PRINTF+set}" = set; then :
5122   $as_echo_n "(cached) " >&6
5123 else
5124   case $PRINTF in
5125   [\\/]* | ?:[\\/]*)
5126   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
5127   ;;
5128   *)
5129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132   IFS=$as_save_IFS
5133   test -z "$as_dir" && as_dir=.
5134     for ac_exec_ext in '' $ac_executable_extensions; do
5135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
5137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138     break 2
5139   fi
5140 done
5141   done


5160 
5161     if test "x$PRINTF" = x; then
5162         if test "xprintf" = x; then
5163           PROG_NAME=printf
5164         else
5165           PROG_NAME=printf
5166         fi
5167         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5168 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5169         as_fn_error $? "Cannot continue" "$LINENO" 5
5170     fi
5171 
5172 
5173 
5174     for ac_prog in rm
5175 do
5176   # Extract the first word of "$ac_prog", so it can be a program name with args.
5177 set dummy $ac_prog; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if test "${ac_cv_path_RM+set}" = set; then :
5181   $as_echo_n "(cached) " >&6
5182 else
5183   case $RM in
5184   [\\/]* | ?:[\\/]*)
5185   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5186   ;;
5187   *)
5188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191   IFS=$as_save_IFS
5192   test -z "$as_dir" && as_dir=.
5193     for ac_exec_ext in '' $ac_executable_extensions; do
5194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197     break 2
5198   fi
5199 done
5200   done


5219 
5220     if test "x$RM" = x; then
5221         if test "xrm" = x; then
5222           PROG_NAME=rm
5223         else
5224           PROG_NAME=rm
5225         fi
5226         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5227 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5228         as_fn_error $? "Cannot continue" "$LINENO" 5
5229     fi
5230 
5231 
5232 
5233     for ac_prog in sh
5234 do
5235   # Extract the first word of "$ac_prog", so it can be a program name with args.
5236 set dummy $ac_prog; ac_word=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if test "${ac_cv_path_SH+set}" = set; then :
5240   $as_echo_n "(cached) " >&6
5241 else
5242   case $SH in
5243   [\\/]* | ?:[\\/]*)
5244   ac_cv_path_SH="$SH" # Let the user override the test with a path.
5245   ;;
5246   *)
5247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5249 do
5250   IFS=$as_save_IFS
5251   test -z "$as_dir" && as_dir=.
5252     for ac_exec_ext in '' $ac_executable_extensions; do
5253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5254     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256     break 2
5257   fi
5258 done
5259   done


5278 
5279     if test "x$SH" = x; then
5280         if test "xsh" = x; then
5281           PROG_NAME=sh
5282         else
5283           PROG_NAME=sh
5284         fi
5285         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5286 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5287         as_fn_error $? "Cannot continue" "$LINENO" 5
5288     fi
5289 
5290 
5291 
5292     for ac_prog in sort
5293 do
5294   # Extract the first word of "$ac_prog", so it can be a program name with args.
5295 set dummy $ac_prog; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if test "${ac_cv_path_SORT+set}" = set; then :
5299   $as_echo_n "(cached) " >&6
5300 else
5301   case $SORT in
5302   [\\/]* | ?:[\\/]*)
5303   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
5304   ;;
5305   *)
5306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5308 do
5309   IFS=$as_save_IFS
5310   test -z "$as_dir" && as_dir=.
5311     for ac_exec_ext in '' $ac_executable_extensions; do
5312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
5314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315     break 2
5316   fi
5317 done
5318   done


5337 
5338     if test "x$SORT" = x; then
5339         if test "xsort" = x; then
5340           PROG_NAME=sort
5341         else
5342           PROG_NAME=sort
5343         fi
5344         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5345 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5346         as_fn_error $? "Cannot continue" "$LINENO" 5
5347     fi
5348 
5349 
5350 
5351     for ac_prog in tail
5352 do
5353   # Extract the first word of "$ac_prog", so it can be a program name with args.
5354 set dummy $ac_prog; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if test "${ac_cv_path_TAIL+set}" = set; then :
5358   $as_echo_n "(cached) " >&6
5359 else
5360   case $TAIL in
5361   [\\/]* | ?:[\\/]*)
5362   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
5363   ;;
5364   *)
5365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368   IFS=$as_save_IFS
5369   test -z "$as_dir" && as_dir=.
5370     for ac_exec_ext in '' $ac_executable_extensions; do
5371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
5373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374     break 2
5375   fi
5376 done
5377   done


5396 
5397     if test "x$TAIL" = x; then
5398         if test "xtail" = x; then
5399           PROG_NAME=tail
5400         else
5401           PROG_NAME=tail
5402         fi
5403         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5404 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5405         as_fn_error $? "Cannot continue" "$LINENO" 5
5406     fi
5407 
5408 
5409 
5410     for ac_prog in tar
5411 do
5412   # Extract the first word of "$ac_prog", so it can be a program name with args.
5413 set dummy $ac_prog; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if test "${ac_cv_path_TAR+set}" = set; then :
5417   $as_echo_n "(cached) " >&6
5418 else
5419   case $TAR in
5420   [\\/]* | ?:[\\/]*)
5421   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5422   ;;
5423   *)
5424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5426 do
5427   IFS=$as_save_IFS
5428   test -z "$as_dir" && as_dir=.
5429     for ac_exec_ext in '' $ac_executable_extensions; do
5430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5431     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433     break 2
5434   fi
5435 done
5436   done


5455 
5456     if test "x$TAR" = x; then
5457         if test "xtar" = x; then
5458           PROG_NAME=tar
5459         else
5460           PROG_NAME=tar
5461         fi
5462         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5463 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5464         as_fn_error $? "Cannot continue" "$LINENO" 5
5465     fi
5466 
5467 
5468 
5469     for ac_prog in tee
5470 do
5471   # Extract the first word of "$ac_prog", so it can be a program name with args.
5472 set dummy $ac_prog; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if test "${ac_cv_path_TEE+set}" = set; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   case $TEE in
5479   [\\/]* | ?:[\\/]*)
5480   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
5481   ;;
5482   *)
5483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486   IFS=$as_save_IFS
5487   test -z "$as_dir" && as_dir=.
5488     for ac_exec_ext in '' $ac_executable_extensions; do
5489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
5491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492     break 2
5493   fi
5494 done
5495   done


5514 
5515     if test "x$TEE" = x; then
5516         if test "xtee" = x; then
5517           PROG_NAME=tee
5518         else
5519           PROG_NAME=tee
5520         fi
5521         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5522 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5523         as_fn_error $? "Cannot continue" "$LINENO" 5
5524     fi
5525 
5526 
5527 
5528     for ac_prog in touch
5529 do
5530   # Extract the first word of "$ac_prog", so it can be a program name with args.
5531 set dummy $ac_prog; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if test "${ac_cv_path_TOUCH+set}" = set; then :
5535   $as_echo_n "(cached) " >&6
5536 else
5537   case $TOUCH in
5538   [\\/]* | ?:[\\/]*)
5539   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5540   ;;
5541   *)
5542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545   IFS=$as_save_IFS
5546   test -z "$as_dir" && as_dir=.
5547     for ac_exec_ext in '' $ac_executable_extensions; do
5548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5549     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551     break 2
5552   fi
5553 done
5554   done


5573 
5574     if test "x$TOUCH" = x; then
5575         if test "xtouch" = x; then
5576           PROG_NAME=touch
5577         else
5578           PROG_NAME=touch
5579         fi
5580         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5581 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5582         as_fn_error $? "Cannot continue" "$LINENO" 5
5583     fi
5584 
5585 
5586 
5587     for ac_prog in tr
5588 do
5589   # Extract the first word of "$ac_prog", so it can be a program name with args.
5590 set dummy $ac_prog; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if test "${ac_cv_path_TR+set}" = set; then :
5594   $as_echo_n "(cached) " >&6
5595 else
5596   case $TR in
5597   [\\/]* | ?:[\\/]*)
5598   ac_cv_path_TR="$TR" # Let the user override the test with a path.
5599   ;;
5600   *)
5601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 for as_dir in $PATH
5603 do
5604   IFS=$as_save_IFS
5605   test -z "$as_dir" && as_dir=.
5606     for ac_exec_ext in '' $ac_executable_extensions; do
5607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5608     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
5609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610     break 2
5611   fi
5612 done
5613   done


5632 
5633     if test "x$TR" = x; then
5634         if test "xtr" = x; then
5635           PROG_NAME=tr
5636         else
5637           PROG_NAME=tr
5638         fi
5639         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5640 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5641         as_fn_error $? "Cannot continue" "$LINENO" 5
5642     fi
5643 
5644 
5645 
5646     for ac_prog in uname
5647 do
5648   # Extract the first word of "$ac_prog", so it can be a program name with args.
5649 set dummy $ac_prog; ac_word=$2
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651 $as_echo_n "checking for $ac_word... " >&6; }
5652 if test "${ac_cv_path_UNAME+set}" = set; then :
5653   $as_echo_n "(cached) " >&6
5654 else
5655   case $UNAME in
5656   [\\/]* | ?:[\\/]*)
5657   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
5658   ;;
5659   *)
5660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5662 do
5663   IFS=$as_save_IFS
5664   test -z "$as_dir" && as_dir=.
5665     for ac_exec_ext in '' $ac_executable_extensions; do
5666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
5668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669     break 2
5670   fi
5671 done
5672   done


5691 
5692     if test "x$UNAME" = x; then
5693         if test "xuname" = x; then
5694           PROG_NAME=uname
5695         else
5696           PROG_NAME=uname
5697         fi
5698         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5699 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5700         as_fn_error $? "Cannot continue" "$LINENO" 5
5701     fi
5702 
5703 
5704 
5705     for ac_prog in uniq
5706 do
5707   # Extract the first word of "$ac_prog", so it can be a program name with args.
5708 set dummy $ac_prog; ac_word=$2
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if test "${ac_cv_path_UNIQ+set}" = set; then :
5712   $as_echo_n "(cached) " >&6
5713 else
5714   case $UNIQ in
5715   [\\/]* | ?:[\\/]*)
5716   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
5717   ;;
5718   *)
5719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5721 do
5722   IFS=$as_save_IFS
5723   test -z "$as_dir" && as_dir=.
5724     for ac_exec_ext in '' $ac_executable_extensions; do
5725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5726     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
5727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728     break 2
5729   fi
5730 done
5731   done


5750 
5751     if test "x$UNIQ" = x; then
5752         if test "xuniq" = x; then
5753           PROG_NAME=uniq
5754         else
5755           PROG_NAME=uniq
5756         fi
5757         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5758 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5759         as_fn_error $? "Cannot continue" "$LINENO" 5
5760     fi
5761 
5762 
5763 
5764     for ac_prog in wc
5765 do
5766   # Extract the first word of "$ac_prog", so it can be a program name with args.
5767 set dummy $ac_prog; ac_word=$2
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769 $as_echo_n "checking for $ac_word... " >&6; }
5770 if test "${ac_cv_path_WC+set}" = set; then :
5771   $as_echo_n "(cached) " >&6
5772 else
5773   case $WC in
5774   [\\/]* | ?:[\\/]*)
5775   ac_cv_path_WC="$WC" # Let the user override the test with a path.
5776   ;;
5777   *)
5778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5780 do
5781   IFS=$as_save_IFS
5782   test -z "$as_dir" && as_dir=.
5783     for ac_exec_ext in '' $ac_executable_extensions; do
5784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5785     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
5786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787     break 2
5788   fi
5789 done
5790   done


5809 
5810     if test "x$WC" = x; then
5811         if test "xwc" = x; then
5812           PROG_NAME=wc
5813         else
5814           PROG_NAME=wc
5815         fi
5816         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5817 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5818         as_fn_error $? "Cannot continue" "$LINENO" 5
5819     fi
5820 
5821 
5822 
5823     for ac_prog in which
5824 do
5825   # Extract the first word of "$ac_prog", so it can be a program name with args.
5826 set dummy $ac_prog; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if test "${ac_cv_path_WHICH+set}" = set; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   case $WHICH in
5833   [\\/]* | ?:[\\/]*)
5834   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
5835   ;;
5836   *)
5837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5839 do
5840   IFS=$as_save_IFS
5841   test -z "$as_dir" && as_dir=.
5842     for ac_exec_ext in '' $ac_executable_extensions; do
5843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5844     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
5845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846     break 2
5847   fi
5848 done
5849   done


5868 
5869     if test "x$WHICH" = x; then
5870         if test "xwhich" = x; then
5871           PROG_NAME=which
5872         else
5873           PROG_NAME=which
5874         fi
5875         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5876 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5877         as_fn_error $? "Cannot continue" "$LINENO" 5
5878     fi
5879 
5880 
5881 
5882     for ac_prog in xargs
5883 do
5884   # Extract the first word of "$ac_prog", so it can be a program name with args.
5885 set dummy $ac_prog; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if test "${ac_cv_path_XARGS+set}" = set; then :
5889   $as_echo_n "(cached) " >&6
5890 else
5891   case $XARGS in
5892   [\\/]* | ?:[\\/]*)
5893   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
5894   ;;
5895   *)
5896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899   IFS=$as_save_IFS
5900   test -z "$as_dir" && as_dir=.
5901     for ac_exec_ext in '' $ac_executable_extensions; do
5902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
5904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905     break 2
5906   fi
5907 done
5908   done


5928     if test "x$XARGS" = x; then
5929         if test "xxargs" = x; then
5930           PROG_NAME=xargs
5931         else
5932           PROG_NAME=xargs
5933         fi
5934         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5935 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5936         as_fn_error $? "Cannot continue" "$LINENO" 5
5937     fi
5938 
5939 
5940 
5941 # Then required tools that require some special treatment.
5942 for ac_prog in gawk mawk nawk awk
5943 do
5944   # Extract the first word of "$ac_prog", so it can be a program name with args.
5945 set dummy $ac_prog; ac_word=$2
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947 $as_echo_n "checking for $ac_word... " >&6; }
5948 if test "${ac_cv_prog_AWK+set}" = set; then :
5949   $as_echo_n "(cached) " >&6
5950 else
5951   if test -n "$AWK"; then
5952   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957   IFS=$as_save_IFS
5958   test -z "$as_dir" && as_dir=.
5959     for ac_exec_ext in '' $ac_executable_extensions; do
5960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5961     ac_cv_prog_AWK="$ac_prog"
5962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963     break 2
5964   fi
5965 done
5966   done
5967 IFS=$as_save_IFS
5968 


5978 fi
5979 
5980 
5981   test -n "$AWK" && break
5982 done
5983 
5984 
5985     if test "x$AWK" = x; then
5986         if test "x" = x; then
5987           PROG_NAME=awk
5988         else
5989           PROG_NAME=
5990         fi
5991         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5992 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5993         as_fn_error $? "Cannot continue" "$LINENO" 5
5994     fi
5995 
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5997 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5998 if test "${ac_cv_path_GREP+set}" = set; then :
5999   $as_echo_n "(cached) " >&6
6000 else
6001   if test -z "$GREP"; then
6002   ac_path_GREP_found=false
6003   # Loop through the user's path and test for each of PROGNAME-LIST
6004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6006 do
6007   IFS=$as_save_IFS
6008   test -z "$as_dir" && as_dir=.
6009     for ac_prog in grep ggrep; do
6010     for ac_exec_ext in '' $ac_executable_extensions; do
6011       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6012       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6013 # Check for GNU ac_path_GREP and select it if it is found.
6014   # Check for GNU $ac_path_GREP
6015 case `"$ac_path_GREP" --version 2>&1` in
6016 *GNU*)
6017   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6018 *)


6053 fi
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6055 $as_echo "$ac_cv_path_GREP" >&6; }
6056  GREP="$ac_cv_path_GREP"
6057 
6058 
6059 
6060     if test "x$GREP" = x; then
6061         if test "x" = x; then
6062           PROG_NAME=grep
6063         else
6064           PROG_NAME=
6065         fi
6066         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6067 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6068         as_fn_error $? "Cannot continue" "$LINENO" 5
6069     fi
6070 
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6072 $as_echo_n "checking for egrep... " >&6; }
6073 if test "${ac_cv_path_EGREP+set}" = set; then :
6074   $as_echo_n "(cached) " >&6
6075 else
6076   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6077    then ac_cv_path_EGREP="$GREP -E"
6078    else
6079      if test -z "$EGREP"; then
6080   ac_path_EGREP_found=false
6081   # Loop through the user's path and test for each of PROGNAME-LIST
6082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6084 do
6085   IFS=$as_save_IFS
6086   test -z "$as_dir" && as_dir=.
6087     for ac_prog in egrep; do
6088     for ac_exec_ext in '' $ac_executable_extensions; do
6089       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6090       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6091 # Check for GNU ac_path_EGREP and select it if it is found.
6092   # Check for GNU $ac_path_EGREP
6093 case `"$ac_path_EGREP" --version 2>&1` in


6132 fi
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6134 $as_echo "$ac_cv_path_EGREP" >&6; }
6135  EGREP="$ac_cv_path_EGREP"
6136 
6137 
6138 
6139     if test "x$EGREP" = x; then
6140         if test "x" = x; then
6141           PROG_NAME=egrep
6142         else
6143           PROG_NAME=
6144         fi
6145         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6146 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6147         as_fn_error $? "Cannot continue" "$LINENO" 5
6148     fi
6149 
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6151 $as_echo_n "checking for fgrep... " >&6; }
6152 if test "${ac_cv_path_FGREP+set}" = set; then :
6153   $as_echo_n "(cached) " >&6
6154 else
6155   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6156    then ac_cv_path_FGREP="$GREP -F"
6157    else
6158      if test -z "$FGREP"; then
6159   ac_path_FGREP_found=false
6160   # Loop through the user's path and test for each of PROGNAME-LIST
6161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6163 do
6164   IFS=$as_save_IFS
6165   test -z "$as_dir" && as_dir=.
6166     for ac_prog in fgrep; do
6167     for ac_exec_ext in '' $ac_executable_extensions; do
6168       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6169       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6170 # Check for GNU ac_path_FGREP and select it if it is found.
6171   # Check for GNU $ac_path_FGREP
6172 case `"$ac_path_FGREP" --version 2>&1` in


6211 fi
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6213 $as_echo "$ac_cv_path_FGREP" >&6; }
6214  FGREP="$ac_cv_path_FGREP"
6215 
6216 
6217 
6218     if test "x$FGREP" = x; then
6219         if test "x" = x; then
6220           PROG_NAME=fgrep
6221         else
6222           PROG_NAME=
6223         fi
6224         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6225 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6226         as_fn_error $? "Cannot continue" "$LINENO" 5
6227     fi
6228 
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6230 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6231 if test "${ac_cv_path_SED+set}" = set; then :
6232   $as_echo_n "(cached) " >&6
6233 else
6234             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6235      for ac_i in 1 2 3 4 5 6 7; do
6236        ac_script="$ac_script$as_nl$ac_script"
6237      done
6238      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6239      { ac_script=; unset ac_script;}
6240      if test -z "$SED"; then
6241   ac_path_SED_found=false
6242   # Loop through the user's path and test for each of PROGNAME-LIST
6243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246   IFS=$as_save_IFS
6247   test -z "$as_dir" && as_dir=.
6248     for ac_prog in sed gsed; do
6249     for ac_exec_ext in '' $ac_executable_extensions; do
6250       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6251       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue


6297 
6298 
6299     if test "x$SED" = x; then
6300         if test "x" = x; then
6301           PROG_NAME=sed
6302         else
6303           PROG_NAME=
6304         fi
6305         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6306 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6307         as_fn_error $? "Cannot continue" "$LINENO" 5
6308     fi
6309 
6310 
6311 for ac_prog in nawk gawk awk
6312 do
6313   # Extract the first word of "$ac_prog", so it can be a program name with args.
6314 set dummy $ac_prog; ac_word=$2
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if test "${ac_cv_path_NAWK+set}" = set; then :
6318   $as_echo_n "(cached) " >&6
6319 else
6320   case $NAWK in
6321   [\\/]* | ?:[\\/]*)
6322   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
6323   ;;
6324   *)
6325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6327 do
6328   IFS=$as_save_IFS
6329   test -z "$as_dir" && as_dir=.
6330     for ac_exec_ext in '' $ac_executable_extensions; do
6331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6332     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
6333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334     break 2
6335   fi
6336 done
6337   done


6361           PROG_NAME=
6362         fi
6363         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6364 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6365         as_fn_error $? "Cannot continue" "$LINENO" 5
6366     fi
6367 
6368 
6369 # Always force rm.
6370 RM="$RM -f"
6371 
6372 # pwd behaves differently on various platforms and some don't support the -L flag.
6373 # Always use the bash builtin pwd to get uniform behavior.
6374 THEPWDCMD=pwd
6375 
6376 # These are not required on all platforms
6377 # Extract the first word of "cygpath", so it can be a program name with args.
6378 set dummy cygpath; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if test "${ac_cv_path_CYGPATH+set}" = set; then :
6382   $as_echo_n "(cached) " >&6
6383 else
6384   case $CYGPATH in
6385   [\\/]* | ?:[\\/]*)
6386   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
6387   ;;
6388   *)
6389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392   IFS=$as_save_IFS
6393   test -z "$as_dir" && as_dir=.
6394     for ac_exec_ext in '' $ac_executable_extensions; do
6395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
6397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398     break 2
6399   fi
6400 done
6401   done
6402 IFS=$as_save_IFS
6403 
6404   ;;
6405 esac
6406 fi
6407 CYGPATH=$ac_cv_path_CYGPATH
6408 if test -n "$CYGPATH"; then
6409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
6410 $as_echo "$CYGPATH" >&6; }
6411 else
6412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6414 fi
6415 
6416 
6417 # Extract the first word of "readlink", so it can be a program name with args.
6418 set dummy readlink; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if test "${ac_cv_path_READLINK+set}" = set; then :
6422   $as_echo_n "(cached) " >&6
6423 else
6424   case $READLINK in
6425   [\\/]* | ?:[\\/]*)
6426   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
6427   ;;
6428   *)
6429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432   IFS=$as_save_IFS
6433   test -z "$as_dir" && as_dir=.
6434     for ac_exec_ext in '' $ac_executable_extensions; do
6435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
6437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438     break 2
6439   fi
6440 done
6441   done
6442 IFS=$as_save_IFS
6443 
6444   ;;
6445 esac
6446 fi
6447 READLINK=$ac_cv_path_READLINK
6448 if test -n "$READLINK"; then
6449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
6450 $as_echo "$READLINK" >&6; }
6451 else
6452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6454 fi
6455 
6456 
6457 # Extract the first word of "df", so it can be a program name with args.
6458 set dummy df; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if test "${ac_cv_path_DF+set}" = set; then :
6462   $as_echo_n "(cached) " >&6
6463 else
6464   case $DF in
6465   [\\/]* | ?:[\\/]*)
6466   ac_cv_path_DF="$DF" # Let the user override the test with a path.
6467   ;;
6468   *)
6469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472   IFS=$as_save_IFS
6473   test -z "$as_dir" && as_dir=.
6474     for ac_exec_ext in '' $ac_executable_extensions; do
6475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
6477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478     break 2
6479   fi
6480 done
6481   done
6482 IFS=$as_save_IFS
6483 
6484   ;;
6485 esac
6486 fi
6487 DF=$ac_cv_path_DF
6488 if test -n "$DF"; then
6489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
6490 $as_echo "$DF" >&6; }
6491 else
6492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 $as_echo "no" >&6; }
6494 fi
6495 
6496 
6497 # Extract the first word of "SetFile", so it can be a program name with args.
6498 set dummy SetFile; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if test "${ac_cv_path_SETFILE+set}" = set; then :
6502   $as_echo_n "(cached) " >&6
6503 else
6504   case $SETFILE in
6505   [\\/]* | ?:[\\/]*)
6506   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
6507   ;;
6508   *)
6509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512   IFS=$as_save_IFS
6513   test -z "$as_dir" && as_dir=.
6514     for ac_exec_ext in '' $ac_executable_extensions; do
6515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
6517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518     break 2
6519   fi
6520 done
6521   done


6527 SETFILE=$ac_cv_path_SETFILE
6528 if test -n "$SETFILE"; then
6529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
6530 $as_echo "$SETFILE" >&6; }
6531 else
6532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6534 fi
6535 
6536 
6537 
6538 
6539 # Now we can determine OpenJDK build and target platforms. This is required to
6540 # have early on.
6541 # Make sure we can run config.sub.
6542 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6543   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6544 
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6546 $as_echo_n "checking build system type... " >&6; }
6547 if test "${ac_cv_build+set}" = set; then :
6548   $as_echo_n "(cached) " >&6
6549 else
6550   ac_build_alias=$build_alias
6551 test "x$ac_build_alias" = x &&
6552   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6553 test "x$ac_build_alias" = x &&
6554   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6555 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6556   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6557 
6558 fi
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6560 $as_echo "$ac_cv_build" >&6; }
6561 case $ac_cv_build in
6562 *-*-*) ;;
6563 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
6564 esac
6565 build=$ac_cv_build
6566 ac_save_IFS=$IFS; IFS='-'
6567 set x $ac_cv_build
6568 shift
6569 build_cpu=$1
6570 build_vendor=$2
6571 shift; shift
6572 # Remember, the first character of IFS is used to create $*,
6573 # except with old shells:
6574 build_os=$*
6575 IFS=$ac_save_IFS
6576 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6577 
6578 
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6580 $as_echo_n "checking host system type... " >&6; }
6581 if test "${ac_cv_host+set}" = set; then :
6582   $as_echo_n "(cached) " >&6
6583 else
6584   if test "x$host_alias" = x; then
6585   ac_cv_host=$ac_cv_build
6586 else
6587   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6588     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6589 fi
6590 
6591 fi
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6593 $as_echo "$ac_cv_host" >&6; }
6594 case $ac_cv_host in
6595 *-*-*) ;;
6596 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
6597 esac
6598 host=$ac_cv_host
6599 ac_save_IFS=$IFS; IFS='-'
6600 set x $ac_cv_host
6601 shift
6602 host_cpu=$1
6603 host_vendor=$2
6604 shift; shift
6605 # Remember, the first character of IFS is used to create $*,
6606 # except with old shells:
6607 host_os=$*
6608 IFS=$ac_save_IFS
6609 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6610 
6611 
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6613 $as_echo_n "checking target system type... " >&6; }
6614 if test "${ac_cv_target+set}" = set; then :
6615   $as_echo_n "(cached) " >&6
6616 else
6617   if test "x$target_alias" = x; then
6618   ac_cv_target=$ac_cv_host
6619 else
6620   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6621     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6622 fi
6623 
6624 fi
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6626 $as_echo "$ac_cv_target" >&6; }
6627 case $ac_cv_target in
6628 *-*-*) ;;
6629 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
6630 esac
6631 target=$ac_cv_target
6632 ac_save_IFS=$IFS; IFS='-'
6633 set x $ac_cv_target
6634 shift
6635 target_cpu=$1
6636 target_vendor=$2
6637 shift; shift
6638 # Remember, the first character of IFS is used to create $*,
6639 # except with old shells:
6640 target_os=$*
6641 IFS=$ac_save_IFS
6642 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6643 
6644 
6645 # The aliases save the names the user supplied, while $host etc.
6646 # will get canonicalized.
6647 test -n "$target_alias" &&
6648   test "$program_prefix$program_suffix$program_transform_name" = \
6649     NONENONEs,x,x, &&


8006 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
8007 
8008 # The generated Makefile knows where the spec.gmk is and where the source is.
8009 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
8010 # which will look for generated configurations
8011 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
8012 
8013 
8014 # Save the arguments given to us
8015 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
8016 
8017 
8018 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
8019 
8020     for ac_prog in apt-get yum port pkgutil pkgadd
8021 do
8022   # Extract the first word of "$ac_prog", so it can be a program name with args.
8023 set dummy $ac_prog; ac_word=$2
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025 $as_echo_n "checking for $ac_word... " >&6; }
8026 if test "${ac_cv_prog_PKGHANDLER+set}" = set; then :
8027   $as_echo_n "(cached) " >&6
8028 else
8029   if test -n "$PKGHANDLER"; then
8030   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
8031 else
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 for as_dir in $PATH
8034 do
8035   IFS=$as_save_IFS
8036   test -z "$as_dir" && as_dir=.
8037     for ac_exec_ext in '' $ac_executable_extensions; do
8038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039     ac_cv_prog_PKGHANDLER="$ac_prog"
8040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041     break 2
8042   fi
8043 done
8044   done
8045 IFS=$as_save_IFS
8046 


8371       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8372 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8373     fi
8374 
8375         fi
8376       fi
8377     fi
8378   fi
8379 
8380     if test "x$FOUND_MAKE" = x; then
8381       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
8382     fi
8383   else
8384     # Try our hardest to locate a correct version of GNU make
8385     for ac_prog in gmake
8386 do
8387   # Extract the first word of "$ac_prog", so it can be a program name with args.
8388 set dummy $ac_prog; ac_word=$2
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390 $as_echo_n "checking for $ac_word... " >&6; }
8391 if test "${ac_cv_path_CHECK_GMAKE+set}" = set; then :
8392   $as_echo_n "(cached) " >&6
8393 else
8394   case $CHECK_GMAKE in
8395   [\\/]* | ?:[\\/]*)
8396   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
8397   ;;
8398   *)
8399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $PATH
8401 do
8402   IFS=$as_save_IFS
8403   test -z "$as_dir" && as_dir=.
8404     for ac_exec_ext in '' $ac_executable_extensions; do
8405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8406     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
8407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8408     break 2
8409   fi
8410 done
8411   done


8725 
8726   if test "x$complete" != "x$new_complete"; then
8727       FOUND_MAKE="$new_complete"
8728       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8729 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8730     fi
8731 
8732         fi
8733       fi
8734     fi
8735   fi
8736 
8737 
8738     if test "x$FOUND_MAKE" = x; then
8739       for ac_prog in make
8740 do
8741   # Extract the first word of "$ac_prog", so it can be a program name with args.
8742 set dummy $ac_prog; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if test "${ac_cv_path_CHECK_MAKE+set}" = set; then :
8746   $as_echo_n "(cached) " >&6
8747 else
8748   case $CHECK_MAKE in
8749   [\\/]* | ?:[\\/]*)
8750   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
8751   ;;
8752   *)
8753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 for as_dir in $PATH
8755 do
8756   IFS=$as_save_IFS
8757   test -z "$as_dir" && as_dir=.
8758     for ac_exec_ext in '' $ac_executable_extensions; do
8759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8760     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
8761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8762     break 2
8763   fi
8764 done
8765   done


9084     fi
9085 
9086         fi
9087       fi
9088     fi
9089   fi
9090 
9091     fi
9092 
9093     if test "x$FOUND_MAKE" = x; then
9094       if test "x$TOOLS_DIR" != x; then
9095         # We have a tools-dir, check that as well before giving up.
9096         OLD_PATH=$PATH
9097         PATH=$TOOLS_DIR:$PATH
9098         for ac_prog in gmake
9099 do
9100   # Extract the first word of "$ac_prog", so it can be a program name with args.
9101 set dummy $ac_prog; ac_word=$2
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103 $as_echo_n "checking for $ac_word... " >&6; }
9104 if test "${ac_cv_path_CHECK_TOOLSDIR_GMAKE+set}" = set; then :
9105   $as_echo_n "(cached) " >&6
9106 else
9107   case $CHECK_TOOLSDIR_GMAKE in
9108   [\\/]* | ?:[\\/]*)
9109   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
9110   ;;
9111   *)
9112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113 for as_dir in $PATH
9114 do
9115   IFS=$as_save_IFS
9116   test -z "$as_dir" && as_dir=.
9117     for ac_exec_ext in '' $ac_executable_extensions; do
9118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9119     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
9120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9121     break 2
9122   fi
9123 done
9124   done


9437       fi
9438 
9439   if test "x$complete" != "x$new_complete"; then
9440       FOUND_MAKE="$new_complete"
9441       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
9442 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
9443     fi
9444 
9445         fi
9446       fi
9447     fi
9448   fi
9449 
9450         if test "x$FOUND_MAKE" = x; then
9451           for ac_prog in make
9452 do
9453   # Extract the first word of "$ac_prog", so it can be a program name with args.
9454 set dummy $ac_prog; ac_word=$2
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9456 $as_echo_n "checking for $ac_word... " >&6; }
9457 if test "${ac_cv_path_CHECK_TOOLSDIR_MAKE+set}" = set; then :
9458   $as_echo_n "(cached) " >&6
9459 else
9460   case $CHECK_TOOLSDIR_MAKE in
9461   [\\/]* | ?:[\\/]*)
9462   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
9463   ;;
9464   *)
9465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9466 for as_dir in $PATH
9467 do
9468   IFS=$as_save_IFS
9469   test -z "$as_dir" && as_dir=.
9470     for ac_exec_ext in '' $ac_executable_extensions; do
9471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9472     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
9473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9474     break 2
9475   fi
9476 done
9477   done


9833         FIND_DELETE="-exec rm \{\} \+"
9834         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835 $as_echo "no" >&6; }
9836     else
9837         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9838 $as_echo "yes" >&6; }
9839     fi
9840     rmdir $DELETEDIR
9841 
9842 
9843 
9844 # These tools might not be installed by default,
9845 # need hint on how to install them.
9846 
9847     for ac_prog in unzip
9848 do
9849   # Extract the first word of "$ac_prog", so it can be a program name with args.
9850 set dummy $ac_prog; ac_word=$2
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9852 $as_echo_n "checking for $ac_word... " >&6; }
9853 if test "${ac_cv_path_UNZIP+set}" = set; then :
9854   $as_echo_n "(cached) " >&6
9855 else
9856   case $UNZIP in
9857   [\\/]* | ?:[\\/]*)
9858   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
9859   ;;
9860   *)
9861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862 for as_dir in $PATH
9863 do
9864   IFS=$as_save_IFS
9865   test -z "$as_dir" && as_dir=.
9866     for ac_exec_ext in '' $ac_executable_extensions; do
9867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9868     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
9869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9870     break 2
9871   fi
9872 done
9873   done


9892 
9893     if test "x$UNZIP" = x; then
9894         if test "xunzip" = x; then
9895           PROG_NAME=unzip
9896         else
9897           PROG_NAME=unzip
9898         fi
9899         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
9900 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
9901         as_fn_error $? "Cannot continue" "$LINENO" 5
9902     fi
9903 
9904 
9905 
9906     for ac_prog in zip
9907 do
9908   # Extract the first word of "$ac_prog", so it can be a program name with args.
9909 set dummy $ac_prog; ac_word=$2
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9911 $as_echo_n "checking for $ac_word... " >&6; }
9912 if test "${ac_cv_path_ZIP+set}" = set; then :
9913   $as_echo_n "(cached) " >&6
9914 else
9915   case $ZIP in
9916   [\\/]* | ?:[\\/]*)
9917   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
9918   ;;
9919   *)
9920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921 for as_dir in $PATH
9922 do
9923   IFS=$as_save_IFS
9924   test -z "$as_dir" && as_dir=.
9925     for ac_exec_ext in '' $ac_executable_extensions; do
9926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9927     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
9928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9929     break 2
9930   fi
9931 done
9932   done


9951 
9952     if test "x$ZIP" = x; then
9953         if test "xzip" = x; then
9954           PROG_NAME=zip
9955         else
9956           PROG_NAME=zip
9957         fi
9958         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
9959 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
9960         as_fn_error $? "Cannot continue" "$LINENO" 5
9961     fi
9962 
9963 
9964 
9965 # Non-required basic tools
9966 
9967 # Extract the first word of "ldd", so it can be a program name with args.
9968 set dummy ldd; ac_word=$2
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9970 $as_echo_n "checking for $ac_word... " >&6; }
9971 if test "${ac_cv_path_LDD+set}" = set; then :
9972   $as_echo_n "(cached) " >&6
9973 else
9974   case $LDD in
9975   [\\/]* | ?:[\\/]*)
9976   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
9977   ;;
9978   *)
9979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9980 for as_dir in $PATH
9981 do
9982   IFS=$as_save_IFS
9983   test -z "$as_dir" && as_dir=.
9984     for ac_exec_ext in '' $ac_executable_extensions; do
9985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9986     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
9987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9988     break 2
9989   fi
9990 done
9991   done


9997 LDD=$ac_cv_path_LDD
9998 if test -n "$LDD"; then
9999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
10000 $as_echo "$LDD" >&6; }
10001 else
10002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003 $as_echo "no" >&6; }
10004 fi
10005 
10006 
10007 if test "x$LDD" = "x"; then
10008     # List shared lib dependencies is used for
10009     # debug output and checking for forbidden dependencies.
10010     # We can build without it.
10011     LDD="true"
10012 fi
10013 # Extract the first word of "otool", so it can be a program name with args.
10014 set dummy otool; ac_word=$2
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10016 $as_echo_n "checking for $ac_word... " >&6; }
10017 if test "${ac_cv_path_OTOOL+set}" = set; then :
10018   $as_echo_n "(cached) " >&6
10019 else
10020   case $OTOOL in
10021   [\\/]* | ?:[\\/]*)
10022   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
10023   ;;
10024   *)
10025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026 for as_dir in $PATH
10027 do
10028   IFS=$as_save_IFS
10029   test -z "$as_dir" && as_dir=.
10030     for ac_exec_ext in '' $ac_executable_extensions; do
10031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10032     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
10033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10034     break 2
10035   fi
10036 done
10037   done


10042 fi
10043 OTOOL=$ac_cv_path_OTOOL
10044 if test -n "$OTOOL"; then
10045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10046 $as_echo "$OTOOL" >&6; }
10047 else
10048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10049 $as_echo "no" >&6; }
10050 fi
10051 
10052 
10053 if test "x$OTOOL" = "x"; then
10054    OTOOL="true"
10055 fi
10056 for ac_prog in readelf greadelf
10057 do
10058   # Extract the first word of "$ac_prog", so it can be a program name with args.
10059 set dummy $ac_prog; ac_word=$2
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061 $as_echo_n "checking for $ac_word... " >&6; }
10062 if test "${ac_cv_path_READELF+set}" = set; then :
10063   $as_echo_n "(cached) " >&6
10064 else
10065   case $READELF in
10066   [\\/]* | ?:[\\/]*)
10067   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
10068   ;;
10069   *)
10070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071 for as_dir in $PATH
10072 do
10073   IFS=$as_save_IFS
10074   test -z "$as_dir" && as_dir=.
10075     for ac_exec_ext in '' $ac_executable_extensions; do
10076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10077     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
10078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10079     break 2
10080   fi
10081 done
10082   done


10085   ;;
10086 esac
10087 fi
10088 READELF=$ac_cv_path_READELF
10089 if test -n "$READELF"; then
10090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10091 $as_echo "$READELF" >&6; }
10092 else
10093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10095 fi
10096 
10097 
10098   test -n "$READELF" && break
10099 done
10100 
10101 # Extract the first word of "hg", so it can be a program name with args.
10102 set dummy hg; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if test "${ac_cv_path_HG+set}" = set; then :
10106   $as_echo_n "(cached) " >&6
10107 else
10108   case $HG in
10109   [\\/]* | ?:[\\/]*)
10110   ac_cv_path_HG="$HG" # Let the user override the test with a path.
10111   ;;
10112   *)
10113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114 for as_dir in $PATH
10115 do
10116   IFS=$as_save_IFS
10117   test -z "$as_dir" && as_dir=.
10118     for ac_exec_ext in '' $ac_executable_extensions; do
10119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10120     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
10121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10122     break 2
10123   fi
10124 done
10125   done
10126 IFS=$as_save_IFS
10127 
10128   ;;
10129 esac
10130 fi
10131 HG=$ac_cv_path_HG
10132 if test -n "$HG"; then
10133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
10134 $as_echo "$HG" >&6; }
10135 else
10136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10138 fi
10139 
10140 
10141 # Extract the first word of "stat", so it can be a program name with args.
10142 set dummy stat; ac_word=$2
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144 $as_echo_n "checking for $ac_word... " >&6; }
10145 if test "${ac_cv_path_STAT+set}" = set; then :
10146   $as_echo_n "(cached) " >&6
10147 else
10148   case $STAT in
10149   [\\/]* | ?:[\\/]*)
10150   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
10151   ;;
10152   *)
10153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10154 for as_dir in $PATH
10155 do
10156   IFS=$as_save_IFS
10157   test -z "$as_dir" && as_dir=.
10158     for ac_exec_ext in '' $ac_executable_extensions; do
10159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10160     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
10161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10162     break 2
10163   fi
10164 done
10165   done
10166 IFS=$as_save_IFS
10167 
10168   ;;
10169 esac
10170 fi
10171 STAT=$ac_cv_path_STAT
10172 if test -n "$STAT"; then
10173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
10174 $as_echo "$STAT" >&6; }
10175 else
10176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10178 fi
10179 
10180 
10181 # Extract the first word of "time", so it can be a program name with args.
10182 set dummy time; ac_word=$2
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10184 $as_echo_n "checking for $ac_word... " >&6; }
10185 if test "${ac_cv_path_TIME+set}" = set; then :
10186   $as_echo_n "(cached) " >&6
10187 else
10188   case $TIME in
10189   [\\/]* | ?:[\\/]*)
10190   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
10191   ;;
10192   *)
10193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10195 do
10196   IFS=$as_save_IFS
10197   test -z "$as_dir" && as_dir=.
10198     for ac_exec_ext in '' $ac_executable_extensions; do
10199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10200     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
10201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10202     break 2
10203   fi
10204 done
10205   done


10210 fi
10211 TIME=$ac_cv_path_TIME
10212 if test -n "$TIME"; then
10213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10214 $as_echo "$TIME" >&6; }
10215 else
10216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217 $as_echo "no" >&6; }
10218 fi
10219 
10220 
10221 
10222 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
10223 
10224     for ac_prog in comm
10225 do
10226   # Extract the first word of "$ac_prog", so it can be a program name with args.
10227 set dummy $ac_prog; ac_word=$2
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229 $as_echo_n "checking for $ac_word... " >&6; }
10230 if test "${ac_cv_path_COMM+set}" = set; then :
10231   $as_echo_n "(cached) " >&6
10232 else
10233   case $COMM in
10234   [\\/]* | ?:[\\/]*)
10235   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
10236   ;;
10237   *)
10238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239 for as_dir in $PATH
10240 do
10241   IFS=$as_save_IFS
10242   test -z "$as_dir" && as_dir=.
10243     for ac_exec_ext in '' $ac_executable_extensions; do
10244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10245     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
10246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10247     break 2
10248   fi
10249 done
10250   done


10272           PROG_NAME=comm
10273         else
10274           PROG_NAME=comm
10275         fi
10276         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10277 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10278         as_fn_error $? "Cannot continue" "$LINENO" 5
10279     fi
10280 
10281 
10282 fi
10283 
10284 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
10285 
10286     for ac_prog in xattr
10287 do
10288   # Extract the first word of "$ac_prog", so it can be a program name with args.
10289 set dummy $ac_prog; ac_word=$2
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10291 $as_echo_n "checking for $ac_word... " >&6; }
10292 if test "${ac_cv_path_XATTR+set}" = set; then :
10293   $as_echo_n "(cached) " >&6
10294 else
10295   case $XATTR in
10296   [\\/]* | ?:[\\/]*)
10297   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
10298   ;;
10299   *)
10300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10301 for as_dir in $PATH
10302 do
10303   IFS=$as_save_IFS
10304   test -z "$as_dir" && as_dir=.
10305     for ac_exec_ext in '' $ac_executable_extensions; do
10306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10307     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
10308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10309     break 2
10310   fi
10311 done
10312   done


10328   test -n "$XATTR" && break
10329 done
10330 
10331 
10332     if test "x$XATTR" = x; then
10333         if test "xxattr" = x; then
10334           PROG_NAME=xattr
10335         else
10336           PROG_NAME=xattr
10337         fi
10338         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10339 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10340         as_fn_error $? "Cannot continue" "$LINENO" 5
10341     fi
10342 
10343 
10344   # Extract the first word of "codesign", so it can be a program name with args.
10345 set dummy codesign; ac_word=$2
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10347 $as_echo_n "checking for $ac_word... " >&6; }
10348 if test "${ac_cv_path_CODESIGN+set}" = set; then :
10349   $as_echo_n "(cached) " >&6
10350 else
10351   case $CODESIGN in
10352   [\\/]* | ?:[\\/]*)
10353   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
10354   ;;
10355   *)
10356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357 for as_dir in $PATH
10358 do
10359   IFS=$as_save_IFS
10360   test -z "$as_dir" && as_dir=.
10361     for ac_exec_ext in '' $ac_executable_extensions; do
10362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10363     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
10364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10365     break 2
10366   fi
10367 done
10368   done


10392     if test "x$CODESIGN" = x; then
10393       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 $as_echo "no" >&6; }
10395     else
10396       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10397 $as_echo "yes" >&6; }
10398     fi
10399   fi
10400 fi
10401 
10402 
10403 # Check if pkg-config is available.
10404 
10405 
10406 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10407         if test -n "$ac_tool_prefix"; then
10408   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10409 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10411 $as_echo_n "checking for $ac_word... " >&6; }
10412 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10413   $as_echo_n "(cached) " >&6
10414 else
10415   case $PKG_CONFIG in
10416   [\\/]* | ?:[\\/]*)
10417   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10418   ;;
10419   *)
10420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421 for as_dir in $PATH
10422 do
10423   IFS=$as_save_IFS
10424   test -z "$as_dir" && as_dir=.
10425     for ac_exec_ext in '' $ac_executable_extensions; do
10426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10427     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10429     break 2
10430   fi
10431 done
10432   done


10435   ;;
10436 esac
10437 fi
10438 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10439 if test -n "$PKG_CONFIG"; then
10440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10441 $as_echo "$PKG_CONFIG" >&6; }
10442 else
10443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10444 $as_echo "no" >&6; }
10445 fi
10446 
10447 
10448 fi
10449 if test -z "$ac_cv_path_PKG_CONFIG"; then
10450   ac_pt_PKG_CONFIG=$PKG_CONFIG
10451   # Extract the first word of "pkg-config", so it can be a program name with args.
10452 set dummy pkg-config; ac_word=$2
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10454 $as_echo_n "checking for $ac_word... " >&6; }
10455 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10456   $as_echo_n "(cached) " >&6
10457 else
10458   case $ac_pt_PKG_CONFIG in
10459   [\\/]* | ?:[\\/]*)
10460   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10461   ;;
10462   *)
10463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464 for as_dir in $PATH
10465 do
10466   IFS=$as_save_IFS
10467   test -z "$as_dir" && as_dir=.
10468     for ac_exec_ext in '' $ac_executable_extensions; do
10469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10470     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10472     break 2
10473   fi
10474 done
10475   done


10608             echo Build stays the same $rewritten_build
10609         else
10610             echo Rewriting build for builddeps into $rewritten_build
10611         fi
10612         eval rewritten_target=\${REWRITE_${target_var}}
10613         if test "x$rewritten_target" = x; then
10614             rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
10615             echo Target stays the same $rewritten_target
10616         else
10617             echo Rewriting target for builddeps into $rewritten_target
10618         fi
10619         rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
10620         rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
10621     fi
10622     for ac_prog in 7z unzip
10623 do
10624   # Extract the first word of "$ac_prog", so it can be a program name with args.
10625 set dummy $ac_prog; ac_word=$2
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10627 $as_echo_n "checking for $ac_word... " >&6; }
10628 if test "${ac_cv_prog_BDEPS_UNZIP+set}" = set; then :
10629   $as_echo_n "(cached) " >&6
10630 else
10631   if test -n "$BDEPS_UNZIP"; then
10632   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
10633 else
10634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10635 for as_dir in $PATH
10636 do
10637   IFS=$as_save_IFS
10638   test -z "$as_dir" && as_dir=.
10639     for ac_exec_ext in '' $ac_executable_extensions; do
10640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10641     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
10642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10643     break 2
10644   fi
10645 done
10646   done
10647 IFS=$as_save_IFS
10648 


10654 $as_echo "$BDEPS_UNZIP" >&6; }
10655 else
10656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; }
10658 fi
10659 
10660 
10661   test -n "$BDEPS_UNZIP" && break
10662 done
10663 
10664     if test "x$BDEPS_UNZIP" = x7z; then
10665         BDEPS_UNZIP="7z x"
10666     fi
10667 
10668     for ac_prog in wget lftp ftp
10669 do
10670   # Extract the first word of "$ac_prog", so it can be a program name with args.
10671 set dummy $ac_prog; ac_word=$2
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10673 $as_echo_n "checking for $ac_word... " >&6; }
10674 if test "${ac_cv_prog_BDEPS_FTP+set}" = set; then :
10675   $as_echo_n "(cached) " >&6
10676 else
10677   if test -n "$BDEPS_FTP"; then
10678   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
10679 else
10680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681 for as_dir in $PATH
10682 do
10683   IFS=$as_save_IFS
10684   test -z "$as_dir" && as_dir=.
10685     for ac_exec_ext in '' $ac_executable_extensions; do
10686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10687     ac_cv_prog_BDEPS_FTP="$ac_prog"
10688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10689     break 2
10690   fi
10691 done
10692   done
10693 IFS=$as_save_IFS
10694 


11954               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
11955               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
11956 $as_echo "$BOOT_JDK_VERSION" >&6; }
11957             fi # end check jdk version
11958           fi # end check rt.jar
11959         fi # end check javac
11960       fi # end check java
11961     fi # end check boot jdk found
11962   fi
11963 
11964 
11965 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
11966 
11967   if test "x$BOOT_JDK_FOUND" = xno; then
11968     # Now execute the test
11969 
11970     # Extract the first word of "javac", so it can be a program name with args.
11971 set dummy javac; ac_word=$2
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11973 $as_echo_n "checking for $ac_word... " >&6; }
11974 if test "${ac_cv_path_JAVAC_CHECK+set}" = set; then :
11975   $as_echo_n "(cached) " >&6
11976 else
11977   case $JAVAC_CHECK in
11978   [\\/]* | ?:[\\/]*)
11979   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
11980   ;;
11981   *)
11982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983 for as_dir in $PATH
11984 do
11985   IFS=$as_save_IFS
11986   test -z "$as_dir" && as_dir=.
11987     for ac_exec_ext in '' $ac_executable_extensions; do
11988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11989     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
11990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11991     break 2
11992   fi
11993 done
11994   done
11995 IFS=$as_save_IFS
11996 
11997   ;;
11998 esac
11999 fi
12000 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
12001 if test -n "$JAVAC_CHECK"; then
12002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
12003 $as_echo "$JAVAC_CHECK" >&6; }
12004 else
12005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006 $as_echo "no" >&6; }
12007 fi
12008 
12009 
12010     # Extract the first word of "java", so it can be a program name with args.
12011 set dummy java; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if test "${ac_cv_path_JAVA_CHECK+set}" = set; then :
12015   $as_echo_n "(cached) " >&6
12016 else
12017   case $JAVA_CHECK in
12018   [\\/]* | ?:[\\/]*)
12019   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
12020   ;;
12021   *)
12022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12024 do
12025   IFS=$as_save_IFS
12026   test -z "$as_dir" && as_dir=.
12027     for ac_exec_ext in '' $ac_executable_extensions; do
12028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12029     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
12030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12031     break 2
12032   fi
12033 done
12034   done


16323 
16324 
16325       # jtreg win32 script works for everybody
16326       JTREGEXE="$JT_HOME/win32/bin/jtreg"
16327 
16328       if test ! -f "$JTREGEXE"; then
16329         as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5
16330       fi
16331 
16332       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
16333 $as_echo "$JTREGEXE" >&6; }
16334     else
16335       # try to find jtreg on path
16336 
16337     for ac_prog in jtreg
16338 do
16339   # Extract the first word of "$ac_prog", so it can be a program name with args.
16340 set dummy $ac_prog; ac_word=$2
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16342 $as_echo_n "checking for $ac_word... " >&6; }
16343 if test "${ac_cv_path_JTREGEXE+set}" = set; then :
16344   $as_echo_n "(cached) " >&6
16345 else
16346   case $JTREGEXE in
16347   [\\/]* | ?:[\\/]*)
16348   ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
16349   ;;
16350   *)
16351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16352 for as_dir in $PATH
16353 do
16354   IFS=$as_save_IFS
16355   test -z "$as_dir" && as_dir=.
16356     for ac_exec_ext in '' $ac_executable_extensions; do
16357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16358     ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
16359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16360     break 2
16361   fi
16362 done
16363   done


16391         as_fn_error $? "Cannot continue" "$LINENO" 5
16392     fi
16393 
16394 
16395       JT_HOME="`$DIRNAME $JTREGEXE`"
16396     fi
16397   fi
16398 
16399 
16400 
16401 
16402 
16403 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16404 
16405   # Store path to cygwin link.exe to help excluding it when searching for
16406   # VS linker. This must be done before changing the PATH when looking for VS.
16407   # Extract the first word of "link", so it can be a program name with args.
16408 set dummy link; ac_word=$2
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16410 $as_echo_n "checking for $ac_word... " >&6; }
16411 if test "${ac_cv_path_CYGWIN_LINK+set}" = set; then :
16412   $as_echo_n "(cached) " >&6
16413 else
16414   case $CYGWIN_LINK in
16415   [\\/]* | ?:[\\/]*)
16416   ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path.
16417   ;;
16418   *)
16419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16420 for as_dir in $PATH
16421 do
16422   IFS=$as_save_IFS
16423   test -z "$as_dir" && as_dir=.
16424     for ac_exec_ext in '' $ac_executable_extensions; do
16425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16426     ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext"
16427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16428     break 2
16429   fi
16430 done
16431   done


17818 # For example the binary i686-sun-solaris2.10-gcc
17819 # will cross compile for i686-sun-solaris2.10
17820 # If neither of build and host is not set, then build=host and the
17821 # default compiler found in the path will be used.
17822 # Setting only --host, does not seem to be really supported.
17823 # Please set both --build and --host if you want to cross compile.
17824 
17825 if test "x$COMPILE_TYPE" = "xcross"; then
17826     # Now we to find a C/C++ compiler that can build executables for the build
17827     # platform. We can't use the AC_PROG_CC macro, since it can only be used
17828     # once. Also, we need to do this before adding a tools dir to the path,
17829     # otherwise we might pick up cross-compilers which don't use standard naming.
17830     # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have
17831     # to wait until they are properly discovered.
17832     for ac_prog in cl cc gcc
17833 do
17834   # Extract the first word of "$ac_prog", so it can be a program name with args.
17835 set dummy $ac_prog; ac_word=$2
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17837 $as_echo_n "checking for $ac_word... " >&6; }
17838 if test "${ac_cv_path_BUILD_CC+set}" = set; then :
17839   $as_echo_n "(cached) " >&6
17840 else
17841   case $BUILD_CC in
17842   [\\/]* | ?:[\\/]*)
17843   ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
17844   ;;
17845   *)
17846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17847 for as_dir in $PATH
17848 do
17849   IFS=$as_save_IFS
17850   test -z "$as_dir" && as_dir=.
17851     for ac_exec_ext in '' $ac_executable_extensions; do
17852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17853     ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
17854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17855     break 2
17856   fi
17857 done
17858   done


18129 
18130       # Now join together the path and the arguments once again
18131       if test "x$arguments" != xEOL; then
18132         new_complete="$new_path ${arguments% *}"
18133       else
18134         new_complete="$new_path"
18135       fi
18136 
18137   if test "x$complete" != "x$new_complete"; then
18138       BUILD_CC="$new_complete"
18139       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5
18140 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;}
18141     fi
18142 
18143     for ac_prog in cl CC g++
18144 do
18145   # Extract the first word of "$ac_prog", so it can be a program name with args.
18146 set dummy $ac_prog; ac_word=$2
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18148 $as_echo_n "checking for $ac_word... " >&6; }
18149 if test "${ac_cv_path_BUILD_CXX+set}" = set; then :
18150   $as_echo_n "(cached) " >&6
18151 else
18152   case $BUILD_CXX in
18153   [\\/]* | ?:[\\/]*)
18154   ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
18155   ;;
18156   *)
18157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18158 for as_dir in $PATH
18159 do
18160   IFS=$as_save_IFS
18161   test -z "$as_dir" && as_dir=.
18162     for ac_exec_ext in '' $ac_executable_extensions; do
18163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18164     ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
18165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18166     break 2
18167   fi
18168 done
18169   done


18438       fi
18439   fi
18440 
18441       # Now join together the path and the arguments once again
18442       if test "x$arguments" != xEOL; then
18443         new_complete="$new_path ${arguments% *}"
18444       else
18445         new_complete="$new_path"
18446       fi
18447 
18448   if test "x$complete" != "x$new_complete"; then
18449       BUILD_CXX="$new_complete"
18450       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5
18451 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;}
18452     fi
18453 
18454     # Extract the first word of "ld", so it can be a program name with args.
18455 set dummy ld; ac_word=$2
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18457 $as_echo_n "checking for $ac_word... " >&6; }
18458 if test "${ac_cv_path_BUILD_LD+set}" = set; then :
18459   $as_echo_n "(cached) " >&6
18460 else
18461   case $BUILD_LD in
18462   [\\/]* | ?:[\\/]*)
18463   ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
18464   ;;
18465   *)
18466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18467 for as_dir in $PATH
18468 do
18469   IFS=$as_save_IFS
18470   test -z "$as_dir" && as_dir=.
18471     for ac_exec_ext in '' $ac_executable_extensions; do
18472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18473     ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
18474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18475     break 2
18476   fi
18477 done
18478   done


18954   COMPILER_CHECK_LIST="cc gcc"
18955 else
18956   COMPILER_CHECK_LIST="gcc cc"
18957 fi
18958 
18959 
18960   COMPILER_NAME=C
18961 
18962   CC=
18963   # If TOOLS_DIR is set, check for all compiler names in there first
18964   # before checking the rest of the PATH.
18965   if test -n "$TOOLS_DIR"; then
18966     PATH_save="$PATH"
18967     PATH="$TOOLS_DIR"
18968     for ac_prog in $COMPILER_CHECK_LIST
18969 do
18970   # Extract the first word of "$ac_prog", so it can be a program name with args.
18971 set dummy $ac_prog; ac_word=$2
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18973 $as_echo_n "checking for $ac_word... " >&6; }
18974 if test "${ac_cv_path_TOOLS_DIR_CC+set}" = set; then :
18975   $as_echo_n "(cached) " >&6
18976 else
18977   case $TOOLS_DIR_CC in
18978   [\\/]* | ?:[\\/]*)
18979   ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path.
18980   ;;
18981   *)
18982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18983 for as_dir in $PATH
18984 do
18985   IFS=$as_save_IFS
18986   test -z "$as_dir" && as_dir=.
18987     for ac_exec_ext in '' $ac_executable_extensions; do
18988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18989     ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext"
18990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18991     break 2
18992   fi
18993 done
18994   done


19006 $as_echo "no" >&6; }
19007 fi
19008 
19009 
19010   test -n "$TOOLS_DIR_CC" && break
19011 done
19012 
19013     CC=$TOOLS_DIR_CC
19014     PATH="$PATH_save"
19015   fi
19016 
19017   # AC_PATH_PROGS can't be run multiple times with the same variable,
19018   # so create a new name for this run.
19019   if test "x$CC" = x; then
19020     for ac_prog in $COMPILER_CHECK_LIST
19021 do
19022   # Extract the first word of "$ac_prog", so it can be a program name with args.
19023 set dummy $ac_prog; ac_word=$2
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19025 $as_echo_n "checking for $ac_word... " >&6; }
19026 if test "${ac_cv_path_POTENTIAL_CC+set}" = set; then :
19027   $as_echo_n "(cached) " >&6
19028 else
19029   case $POTENTIAL_CC in
19030   [\\/]* | ?:[\\/]*)
19031   ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
19032   ;;
19033   *)
19034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19035 for as_dir in $PATH
19036 do
19037   IFS=$as_save_IFS
19038   test -z "$as_dir" && as_dir=.
19039     for ac_exec_ext in '' $ac_executable_extensions; do
19040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19041     ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
19042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19043     break 2
19044   fi
19045 done
19046   done


19419   if test "x$COMPILER_BASENAME" = "xccache"; then
19420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
19421 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
19422     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
19423     # We want to control ccache invocation ourselves, so ignore this cc and try
19424     # searching again.
19425 
19426     # Remove the path to the fake ccache cc from the PATH
19427     RETRY_COMPILER_SAVED_PATH="$PATH"
19428     COMPILER_DIRNAME=`$DIRNAME $CC`
19429     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
19430 
19431     # Try again looking for our compiler
19432     if test -n "$ac_tool_prefix"; then
19433   for ac_prog in $COMPILER_CHECK_LIST
19434   do
19435     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19438 $as_echo_n "checking for $ac_word... " >&6; }
19439 if test "${ac_cv_prog_PROPER_COMPILER_CC+set}" = set; then :
19440   $as_echo_n "(cached) " >&6
19441 else
19442   if test -n "$PROPER_COMPILER_CC"; then
19443   ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test.
19444 else
19445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19446 for as_dir in $PATH
19447 do
19448   IFS=$as_save_IFS
19449   test -z "$as_dir" && as_dir=.
19450     for ac_exec_ext in '' $ac_executable_extensions; do
19451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19452     ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog"
19453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19454     break 2
19455   fi
19456 done
19457   done
19458 IFS=$as_save_IFS
19459 


19463 if test -n "$PROPER_COMPILER_CC"; then
19464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
19465 $as_echo "$PROPER_COMPILER_CC" >&6; }
19466 else
19467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19468 $as_echo "no" >&6; }
19469 fi
19470 
19471 
19472     test -n "$PROPER_COMPILER_CC" && break
19473   done
19474 fi
19475 if test -z "$PROPER_COMPILER_CC"; then
19476   ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC
19477   for ac_prog in $COMPILER_CHECK_LIST
19478 do
19479   # Extract the first word of "$ac_prog", so it can be a program name with args.
19480 set dummy $ac_prog; ac_word=$2
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19482 $as_echo_n "checking for $ac_word... " >&6; }
19483 if test "${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+set}" = set; then :
19484   $as_echo_n "(cached) " >&6
19485 else
19486   if test -n "$ac_ct_PROPER_COMPILER_CC"; then
19487   ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test.
19488 else
19489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19490 for as_dir in $PATH
19491 do
19492   IFS=$as_save_IFS
19493   test -z "$as_dir" && as_dir=.
19494     for ac_exec_ext in '' $ac_executable_extensions; do
19495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19496     ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog"
19497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19498     break 2
19499   fi
19500 done
19501   done
19502 IFS=$as_save_IFS
19503 


19913   # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
19914   CC_VENDOR="$COMPILER_VENDOR"
19915 
19916   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
19917 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
19918 
19919 
19920 # Now that we have resolved CC ourself, let autoconf have its go at it
19921 ac_ext=c
19922 ac_cpp='$CPP $CPPFLAGS'
19923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19926 if test -n "$ac_tool_prefix"; then
19927   for ac_prog in $CC
19928   do
19929     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19932 $as_echo_n "checking for $ac_word... " >&6; }
19933 if test "${ac_cv_prog_CC+set}" = set; then :
19934   $as_echo_n "(cached) " >&6
19935 else
19936   if test -n "$CC"; then
19937   ac_cv_prog_CC="$CC" # Let the user override the test.
19938 else
19939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19940 for as_dir in $PATH
19941 do
19942   IFS=$as_save_IFS
19943   test -z "$as_dir" && as_dir=.
19944     for ac_exec_ext in '' $ac_executable_extensions; do
19945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19946     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19948     break 2
19949   fi
19950 done
19951   done
19952 IFS=$as_save_IFS
19953 


19957 if test -n "$CC"; then
19958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19959 $as_echo "$CC" >&6; }
19960 else
19961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19962 $as_echo "no" >&6; }
19963 fi
19964 
19965 
19966     test -n "$CC" && break
19967   done
19968 fi
19969 if test -z "$CC"; then
19970   ac_ct_CC=$CC
19971   for ac_prog in $CC
19972 do
19973   # Extract the first word of "$ac_prog", so it can be a program name with args.
19974 set dummy $ac_prog; ac_word=$2
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19976 $as_echo_n "checking for $ac_word... " >&6; }
19977 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
19978   $as_echo_n "(cached) " >&6
19979 else
19980   if test -n "$ac_ct_CC"; then
19981   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19982 else
19983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19984 for as_dir in $PATH
19985 do
19986   IFS=$as_save_IFS
19987   test -z "$as_dir" && as_dir=.
19988     for ac_exec_ext in '' $ac_executable_extensions; do
19989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19990     ac_cv_prog_ac_ct_CC="$ac_prog"
19991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19992     break 2
19993   fi
19994 done
19995   done
19996 IFS=$as_save_IFS
19997 


20010   test -n "$ac_ct_CC" && break
20011 done
20012 
20013   if test "x$ac_ct_CC" = x; then
20014     CC=""
20015   else
20016     case $cross_compiling:$ac_tool_warned in
20017 yes:)
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20020 ac_tool_warned=yes ;;
20021 esac
20022     CC=$ac_ct_CC
20023   fi
20024 fi
20025 
20026 
20027 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20029 as_fn_error $? "no acceptable C compiler found in \$PATH
20030 See \`config.log' for more details" "$LINENO" 5 ; }
20031 
20032 # Provide some information about the compiler.
20033 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
20034 set X $ac_compile
20035 ac_compiler=$2
20036 for ac_option in --version -v -V -qversion; do
20037   { { ac_try="$ac_compiler $ac_option >&5"
20038 case "(($ac_try" in
20039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040   *) ac_try_echo=$ac_try;;
20041 esac
20042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20043 $as_echo "$ac_try_echo"; } >&5
20044   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
20045   ac_status=$?
20046   if test -s conftest.err; then
20047     sed '10a\
20048 ... rest of stderr output deleted ...
20049          10q' conftest.err >conftest.er1
20050     cat conftest.er1 >&5


20125         # actually working.
20126         break;;
20127     * )
20128         break;;
20129   esac
20130 done
20131 test "$ac_cv_exeext" = no && ac_cv_exeext=
20132 
20133 else
20134   ac_file=''
20135 fi
20136 if test -z "$ac_file"; then :
20137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20138 $as_echo "no" >&6; }
20139 $as_echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20141 
20142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20144 as_fn_error 77 "C compiler cannot create executables
20145 See \`config.log' for more details" "$LINENO" 5 ; }
20146 else
20147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20148 $as_echo "yes" >&6; }
20149 fi
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
20151 $as_echo_n "checking for C compiler default output file name... " >&6; }
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
20153 $as_echo "$ac_file" >&6; }
20154 ac_exeext=$ac_cv_exeext
20155 
20156 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
20157 ac_clean_files=$ac_clean_files_save
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
20159 $as_echo_n "checking for suffix of executables... " >&6; }
20160 if { { ac_try="$ac_link"
20161 case "(($ac_try" in
20162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163   *) ac_try_echo=$ac_try;;
20164 esac
20165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""


20168   ac_status=$?
20169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20170   test $ac_status = 0; }; then :
20171   # If both `conftest.exe' and `conftest' are `present' (well, observable)
20172 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
20173 # work properly (i.e., refer to `conftest.exe'), while it won't with
20174 # `rm'.
20175 for ac_file in conftest.exe conftest conftest.*; do
20176   test -f "$ac_file" || continue
20177   case $ac_file in
20178     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
20179     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
20180           break;;
20181     * ) break;;
20182   esac
20183 done
20184 else
20185   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20187 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
20188 See \`config.log' for more details" "$LINENO" 5 ; }
20189 fi
20190 rm -f conftest conftest$ac_cv_exeext
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
20192 $as_echo "$ac_cv_exeext" >&6; }
20193 
20194 rm -f conftest.$ac_ext
20195 EXEEXT=$ac_cv_exeext
20196 ac_exeext=$EXEEXT
20197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20198 /* end confdefs.h.  */
20199 #include <stdio.h>
20200 int
20201 main ()
20202 {
20203 FILE *f = fopen ("conftest.out", "w");
20204  return ferror (f) || fclose (f) != 0;
20205 
20206   ;
20207   return 0;
20208 }


20227   if { ac_try='./conftest$ac_cv_exeext'
20228   { { case "(($ac_try" in
20229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230   *) ac_try_echo=$ac_try;;
20231 esac
20232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20233 $as_echo "$ac_try_echo"; } >&5
20234   (eval "$ac_try") 2>&5
20235   ac_status=$?
20236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20237   test $ac_status = 0; }; }; then
20238     cross_compiling=no
20239   else
20240     if test "$cross_compiling" = maybe; then
20241         cross_compiling=yes
20242     else
20243         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20245 as_fn_error $? "cannot run C compiled programs.
20246 If you meant to cross compile, use \`--host'.
20247 See \`config.log' for more details" "$LINENO" 5 ; }
20248     fi
20249   fi
20250 fi
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
20252 $as_echo "$cross_compiling" >&6; }
20253 
20254 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
20255 ac_clean_files=$ac_clean_files_save
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
20257 $as_echo_n "checking for suffix of object files... " >&6; }
20258 if test "${ac_cv_objext+set}" = set; then :
20259   $as_echo_n "(cached) " >&6
20260 else
20261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20262 /* end confdefs.h.  */
20263 
20264 int
20265 main ()
20266 {
20267 
20268   ;
20269   return 0;
20270 }
20271 _ACEOF
20272 rm -f conftest.o conftest.obj
20273 if { { ac_try="$ac_compile"
20274 case "(($ac_try" in
20275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276   *) ac_try_echo=$ac_try;;
20277 esac
20278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20279 $as_echo "$ac_try_echo"; } >&5
20280   (eval "$ac_compile") 2>&5
20281   ac_status=$?
20282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20283   test $ac_status = 0; }; then :
20284   for ac_file in conftest.o conftest.obj conftest.*; do
20285   test -f "$ac_file" || continue;
20286   case $ac_file in
20287     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
20288     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
20289        break;;
20290   esac
20291 done
20292 else
20293   $as_echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20295 
20296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20298 as_fn_error $? "cannot compute suffix of object files: cannot compile
20299 See \`config.log' for more details" "$LINENO" 5 ; }
20300 fi
20301 rm -f conftest.$ac_cv_objext conftest.$ac_ext
20302 fi
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
20304 $as_echo "$ac_cv_objext" >&6; }
20305 OBJEXT=$ac_cv_objext
20306 ac_objext=$OBJEXT
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
20308 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20309 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
20310   $as_echo_n "(cached) " >&6
20311 else
20312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20313 /* end confdefs.h.  */
20314 
20315 int
20316 main ()
20317 {
20318 #ifndef __GNUC__
20319        choke me
20320 #endif
20321 
20322   ;
20323   return 0;
20324 }
20325 _ACEOF
20326 if ac_fn_c_try_compile "$LINENO"; then :
20327   ac_compiler_gnu=yes
20328 else
20329   ac_compiler_gnu=no
20330 fi
20331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20332 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20333 
20334 fi
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
20336 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20337 if test $ac_compiler_gnu = yes; then
20338   GCC=yes
20339 else
20340   GCC=
20341 fi
20342 ac_test_CFLAGS=${CFLAGS+set}
20343 ac_save_CFLAGS=$CFLAGS
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
20345 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20346 if test "${ac_cv_prog_cc_g+set}" = set; then :
20347   $as_echo_n "(cached) " >&6
20348 else
20349   ac_save_c_werror_flag=$ac_c_werror_flag
20350    ac_c_werror_flag=yes
20351    ac_cv_prog_cc_g=no
20352    CFLAGS="-g"
20353    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20354 /* end confdefs.h.  */
20355 
20356 int
20357 main ()
20358 {
20359 
20360   ;
20361   return 0;
20362 }
20363 _ACEOF
20364 if ac_fn_c_try_compile "$LINENO"; then :
20365   ac_cv_prog_cc_g=yes
20366 else


20404 fi
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
20406 $as_echo "$ac_cv_prog_cc_g" >&6; }
20407 if test "$ac_test_CFLAGS" = set; then
20408   CFLAGS=$ac_save_CFLAGS
20409 elif test $ac_cv_prog_cc_g = yes; then
20410   if test "$GCC" = yes; then
20411     CFLAGS="-g -O2"
20412   else
20413     CFLAGS="-g"
20414   fi
20415 else
20416   if test "$GCC" = yes; then
20417     CFLAGS="-O2"
20418   else
20419     CFLAGS=
20420   fi
20421 fi
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
20423 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20424 if test "${ac_cv_prog_cc_c89+set}" = set; then :
20425   $as_echo_n "(cached) " >&6
20426 else
20427   ac_cv_prog_cc_c89=no
20428 ac_save_CC=$CC
20429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20430 /* end confdefs.h.  */
20431 #include <stdarg.h>
20432 #include <stdio.h>
20433 #include <sys/types.h>
20434 #include <sys/stat.h>
20435 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20436 struct buf { int x; };
20437 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20438 static char *e (p, i)
20439      char **p;
20440      int i;
20441 {
20442   return p[i];
20443 }
20444 static char *f (char * (*g) (char **, int), char **p, ...)


20527   COMPILER_CHECK_LIST="CC g++"
20528 else
20529   COMPILER_CHECK_LIST="g++ CC"
20530 fi
20531 
20532 
20533   COMPILER_NAME=C++
20534 
20535   CXX=
20536   # If TOOLS_DIR is set, check for all compiler names in there first
20537   # before checking the rest of the PATH.
20538   if test -n "$TOOLS_DIR"; then
20539     PATH_save="$PATH"
20540     PATH="$TOOLS_DIR"
20541     for ac_prog in $COMPILER_CHECK_LIST
20542 do
20543   # Extract the first word of "$ac_prog", so it can be a program name with args.
20544 set dummy $ac_prog; ac_word=$2
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20546 $as_echo_n "checking for $ac_word... " >&6; }
20547 if test "${ac_cv_path_TOOLS_DIR_CXX+set}" = set; then :
20548   $as_echo_n "(cached) " >&6
20549 else
20550   case $TOOLS_DIR_CXX in
20551   [\\/]* | ?:[\\/]*)
20552   ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path.
20553   ;;
20554   *)
20555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20556 for as_dir in $PATH
20557 do
20558   IFS=$as_save_IFS
20559   test -z "$as_dir" && as_dir=.
20560     for ac_exec_ext in '' $ac_executable_extensions; do
20561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20562     ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext"
20563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20564     break 2
20565   fi
20566 done
20567   done


20579 $as_echo "no" >&6; }
20580 fi
20581 
20582 
20583   test -n "$TOOLS_DIR_CXX" && break
20584 done
20585 
20586     CXX=$TOOLS_DIR_CXX
20587     PATH="$PATH_save"
20588   fi
20589 
20590   # AC_PATH_PROGS can't be run multiple times with the same variable,
20591   # so create a new name for this run.
20592   if test "x$CXX" = x; then
20593     for ac_prog in $COMPILER_CHECK_LIST
20594 do
20595   # Extract the first word of "$ac_prog", so it can be a program name with args.
20596 set dummy $ac_prog; ac_word=$2
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20598 $as_echo_n "checking for $ac_word... " >&6; }
20599 if test "${ac_cv_path_POTENTIAL_CXX+set}" = set; then :
20600   $as_echo_n "(cached) " >&6
20601 else
20602   case $POTENTIAL_CXX in
20603   [\\/]* | ?:[\\/]*)
20604   ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
20605   ;;
20606   *)
20607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20608 for as_dir in $PATH
20609 do
20610   IFS=$as_save_IFS
20611   test -z "$as_dir" && as_dir=.
20612     for ac_exec_ext in '' $ac_executable_extensions; do
20613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20614     ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
20615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20616     break 2
20617   fi
20618 done
20619   done


20992   if test "x$COMPILER_BASENAME" = "xccache"; then
20993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
20994 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
20995     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
20996     # We want to control ccache invocation ourselves, so ignore this cc and try
20997     # searching again.
20998 
20999     # Remove the path to the fake ccache cc from the PATH
21000     RETRY_COMPILER_SAVED_PATH="$PATH"
21001     COMPILER_DIRNAME=`$DIRNAME $CXX`
21002     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
21003 
21004     # Try again looking for our compiler
21005     if test -n "$ac_tool_prefix"; then
21006   for ac_prog in $COMPILER_CHECK_LIST
21007   do
21008     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21011 $as_echo_n "checking for $ac_word... " >&6; }
21012 if test "${ac_cv_prog_PROPER_COMPILER_CXX+set}" = set; then :
21013   $as_echo_n "(cached) " >&6
21014 else
21015   if test -n "$PROPER_COMPILER_CXX"; then
21016   ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test.
21017 else
21018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21019 for as_dir in $PATH
21020 do
21021   IFS=$as_save_IFS
21022   test -z "$as_dir" && as_dir=.
21023     for ac_exec_ext in '' $ac_executable_extensions; do
21024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21025     ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog"
21026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21027     break 2
21028   fi
21029 done
21030   done
21031 IFS=$as_save_IFS
21032 


21036 if test -n "$PROPER_COMPILER_CXX"; then
21037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
21038 $as_echo "$PROPER_COMPILER_CXX" >&6; }
21039 else
21040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21041 $as_echo "no" >&6; }
21042 fi
21043 
21044 
21045     test -n "$PROPER_COMPILER_CXX" && break
21046   done
21047 fi
21048 if test -z "$PROPER_COMPILER_CXX"; then
21049   ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX
21050   for ac_prog in $COMPILER_CHECK_LIST
21051 do
21052   # Extract the first word of "$ac_prog", so it can be a program name with args.
21053 set dummy $ac_prog; ac_word=$2
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21055 $as_echo_n "checking for $ac_word... " >&6; }
21056 if test "${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+set}" = set; then :
21057   $as_echo_n "(cached) " >&6
21058 else
21059   if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
21060   ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test.
21061 else
21062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21063 for as_dir in $PATH
21064 do
21065   IFS=$as_save_IFS
21066   test -z "$as_dir" && as_dir=.
21067     for ac_exec_ext in '' $ac_executable_extensions; do
21068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21069     ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog"
21070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21071     break 2
21072   fi
21073 done
21074   done
21075 IFS=$as_save_IFS
21076 


21490 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
21491 
21492 
21493 # Now that we have resolved CXX ourself, let autoconf have its go at it
21494 ac_ext=cpp
21495 ac_cpp='$CXXCPP $CPPFLAGS'
21496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21499 if test -z "$CXX"; then
21500   if test -n "$CCC"; then
21501     CXX=$CCC
21502   else
21503     if test -n "$ac_tool_prefix"; then
21504   for ac_prog in $CXX
21505   do
21506     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21509 $as_echo_n "checking for $ac_word... " >&6; }
21510 if test "${ac_cv_prog_CXX+set}" = set; then :
21511   $as_echo_n "(cached) " >&6
21512 else
21513   if test -n "$CXX"; then
21514   ac_cv_prog_CXX="$CXX" # Let the user override the test.
21515 else
21516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21517 for as_dir in $PATH
21518 do
21519   IFS=$as_save_IFS
21520   test -z "$as_dir" && as_dir=.
21521     for ac_exec_ext in '' $ac_executable_extensions; do
21522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21523     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
21524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21525     break 2
21526   fi
21527 done
21528   done
21529 IFS=$as_save_IFS
21530 


21534 if test -n "$CXX"; then
21535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
21536 $as_echo "$CXX" >&6; }
21537 else
21538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21539 $as_echo "no" >&6; }
21540 fi
21541 
21542 
21543     test -n "$CXX" && break
21544   done
21545 fi
21546 if test -z "$CXX"; then
21547   ac_ct_CXX=$CXX
21548   for ac_prog in $CXX
21549 do
21550   # Extract the first word of "$ac_prog", so it can be a program name with args.
21551 set dummy $ac_prog; ac_word=$2
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21553 $as_echo_n "checking for $ac_word... " >&6; }
21554 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
21555   $as_echo_n "(cached) " >&6
21556 else
21557   if test -n "$ac_ct_CXX"; then
21558   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
21559 else
21560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21561 for as_dir in $PATH
21562 do
21563   IFS=$as_save_IFS
21564   test -z "$as_dir" && as_dir=.
21565     for ac_exec_ext in '' $ac_executable_extensions; do
21566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21567     ac_cv_prog_ac_ct_CXX="$ac_prog"
21568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21569     break 2
21570   fi
21571 done
21572   done
21573 IFS=$as_save_IFS
21574 


21612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613   *) ac_try_echo=$ac_try;;
21614 esac
21615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21616 $as_echo "$ac_try_echo"; } >&5
21617   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
21618   ac_status=$?
21619   if test -s conftest.err; then
21620     sed '10a\
21621 ... rest of stderr output deleted ...
21622          10q' conftest.err >conftest.er1
21623     cat conftest.er1 >&5
21624   fi
21625   rm -f conftest.er1 conftest.err
21626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21627   test $ac_status = 0; }
21628 done
21629 
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
21631 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
21632 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
21633   $as_echo_n "(cached) " >&6
21634 else
21635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21636 /* end confdefs.h.  */
21637 
21638 int
21639 main ()
21640 {
21641 #ifndef __GNUC__
21642        choke me
21643 #endif
21644 
21645   ;
21646   return 0;
21647 }
21648 _ACEOF
21649 if ac_fn_cxx_try_compile "$LINENO"; then :
21650   ac_compiler_gnu=yes
21651 else
21652   ac_compiler_gnu=no
21653 fi
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
21656 
21657 fi
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
21659 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
21660 if test $ac_compiler_gnu = yes; then
21661   GXX=yes
21662 else
21663   GXX=
21664 fi
21665 ac_test_CXXFLAGS=${CXXFLAGS+set}
21666 ac_save_CXXFLAGS=$CXXFLAGS
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
21668 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
21669 if test "${ac_cv_prog_cxx_g+set}" = set; then :
21670   $as_echo_n "(cached) " >&6
21671 else
21672   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
21673    ac_cxx_werror_flag=yes
21674    ac_cv_prog_cxx_g=no
21675    CXXFLAGS="-g"
21676    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21677 /* end confdefs.h.  */
21678 
21679 int
21680 main ()
21681 {
21682 
21683   ;
21684   return 0;
21685 }
21686 _ACEOF
21687 if ac_fn_cxx_try_compile "$LINENO"; then :
21688   ac_cv_prog_cxx_g=yes
21689 else


21747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21750 
21751 
21752 ### Locate other tools
21753 
21754 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
21755     ac_ext=m
21756 ac_cpp='$OBJCPP $CPPFLAGS'
21757 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21758 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21759 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
21760 if test -n "$ac_tool_prefix"; then
21761   for ac_prog in gcc objcc objc cc CC
21762   do
21763     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21766 $as_echo_n "checking for $ac_word... " >&6; }
21767 if test "${ac_cv_prog_OBJC+set}" = set; then :
21768   $as_echo_n "(cached) " >&6
21769 else
21770   if test -n "$OBJC"; then
21771   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
21772 else
21773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21774 for as_dir in $PATH
21775 do
21776   IFS=$as_save_IFS
21777   test -z "$as_dir" && as_dir=.
21778     for ac_exec_ext in '' $ac_executable_extensions; do
21779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21780     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
21781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21782     break 2
21783   fi
21784 done
21785   done
21786 IFS=$as_save_IFS
21787 


21791 if test -n "$OBJC"; then
21792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
21793 $as_echo "$OBJC" >&6; }
21794 else
21795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21796 $as_echo "no" >&6; }
21797 fi
21798 
21799 
21800     test -n "$OBJC" && break
21801   done
21802 fi
21803 if test -z "$OBJC"; then
21804   ac_ct_OBJC=$OBJC
21805   for ac_prog in gcc objcc objc cc CC
21806 do
21807   # Extract the first word of "$ac_prog", so it can be a program name with args.
21808 set dummy $ac_prog; ac_word=$2
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21810 $as_echo_n "checking for $ac_word... " >&6; }
21811 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then :
21812   $as_echo_n "(cached) " >&6
21813 else
21814   if test -n "$ac_ct_OBJC"; then
21815   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
21816 else
21817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21818 for as_dir in $PATH
21819 do
21820   IFS=$as_save_IFS
21821   test -z "$as_dir" && as_dir=.
21822     for ac_exec_ext in '' $ac_executable_extensions; do
21823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21824     ac_cv_prog_ac_ct_OBJC="$ac_prog"
21825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21826     break 2
21827   fi
21828 done
21829   done
21830 IFS=$as_save_IFS
21831 


21867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21868   *) ac_try_echo=$ac_try;;
21869 esac
21870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21871 $as_echo "$ac_try_echo"; } >&5
21872   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
21873   ac_status=$?
21874   if test -s conftest.err; then
21875     sed '10a\
21876 ... rest of stderr output deleted ...
21877          10q' conftest.err >conftest.er1
21878     cat conftest.er1 >&5
21879   fi
21880   rm -f conftest.er1 conftest.err
21881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21882   test $ac_status = 0; }
21883 done
21884 
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
21886 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
21887 if test "${ac_cv_objc_compiler_gnu+set}" = set; then :
21888   $as_echo_n "(cached) " >&6
21889 else
21890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21891 /* end confdefs.h.  */
21892 
21893 int
21894 main ()
21895 {
21896 #ifndef __GNUC__
21897        choke me
21898 #endif
21899 
21900   ;
21901   return 0;
21902 }
21903 _ACEOF
21904 if ac_fn_objc_try_compile "$LINENO"; then :
21905   ac_compiler_gnu=yes
21906 else
21907   ac_compiler_gnu=no
21908 fi
21909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21910 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
21911 
21912 fi
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
21914 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
21915 if test $ac_compiler_gnu = yes; then
21916   GOBJC=yes
21917 else
21918   GOBJC=
21919 fi
21920 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
21921 ac_save_OBJCFLAGS=$OBJCFLAGS
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
21923 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
21924 if test "${ac_cv_prog_objc_g+set}" = set; then :
21925   $as_echo_n "(cached) " >&6
21926 else
21927   ac_save_objc_werror_flag=$ac_objc_werror_flag
21928    ac_objc_werror_flag=yes
21929    ac_cv_prog_objc_g=no
21930    OBJCFLAGS="-g"
21931    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21932 /* end confdefs.h.  */
21933 
21934 int
21935 main ()
21936 {
21937 
21938   ;
21939   return 0;
21940 }
21941 _ACEOF
21942 if ac_fn_objc_try_compile "$LINENO"; then :
21943   ac_cv_prog_objc_g=yes
21944 else


22280 OBJCFLAGS="$ORG_OBJCFLAGS"
22281 
22282 LD="$CC"
22283 LDEXE="$CC"
22284 LDCXX="$CXX"
22285 LDEXECXX="$CXX"
22286 
22287 # LDEXE is the linker to use, when creating executables.
22288 
22289 # Linking C++ libraries.
22290 
22291 # Linking C++ executables.
22292 
22293 
22294 if test "x$OPENJDK_TARGET_OS" != xwindows; then
22295     if test -n "$ac_tool_prefix"; then
22296   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
22297 set dummy ${ac_tool_prefix}ar; ac_word=$2
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22299 $as_echo_n "checking for $ac_word... " >&6; }
22300 if test "${ac_cv_prog_AR+set}" = set; then :
22301   $as_echo_n "(cached) " >&6
22302 else
22303   if test -n "$AR"; then
22304   ac_cv_prog_AR="$AR" # Let the user override the test.
22305 else
22306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22307 for as_dir in $PATH
22308 do
22309   IFS=$as_save_IFS
22310   test -z "$as_dir" && as_dir=.
22311     for ac_exec_ext in '' $ac_executable_extensions; do
22312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22313     ac_cv_prog_AR="${ac_tool_prefix}ar"
22314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22315     break 2
22316   fi
22317 done
22318   done
22319 IFS=$as_save_IFS
22320 
22321 fi
22322 fi
22323 AR=$ac_cv_prog_AR
22324 if test -n "$AR"; then
22325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
22326 $as_echo "$AR" >&6; }
22327 else
22328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22329 $as_echo "no" >&6; }
22330 fi
22331 
22332 
22333 fi
22334 if test -z "$ac_cv_prog_AR"; then
22335   ac_ct_AR=$AR
22336   # Extract the first word of "ar", so it can be a program name with args.
22337 set dummy ar; ac_word=$2
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22339 $as_echo_n "checking for $ac_word... " >&6; }
22340 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
22341   $as_echo_n "(cached) " >&6
22342 else
22343   if test -n "$ac_ct_AR"; then
22344   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
22345 else
22346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22347 for as_dir in $PATH
22348 do
22349   IFS=$as_save_IFS
22350   test -z "$as_dir" && as_dir=.
22351     for ac_exec_ext in '' $ac_executable_extensions; do
22352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22353     ac_cv_prog_ac_ct_AR="ar"
22354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22355     break 2
22356   fi
22357 done
22358   done
22359 IFS=$as_save_IFS
22360 


22662 HOTSPOT_CXX="$CXX"
22663 HOTSPOT_LD="$LD"
22664 
22665 
22666 
22667 COMPILER_NAME=gcc
22668 COMPILER_TYPE=CC
22669 if test "x$OPENJDK_TARGET_OS" = xwindows; then :
22670 
22671     # For now, assume that we are always compiling using cl.exe.
22672     CC_OUT_OPTION=-Fo
22673     EXE_OUT_OPTION=-out:
22674     LD_OUT_OPTION=-out:
22675     AR_OUT_OPTION=-out:
22676     # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin
22677     # program for something completely different.
22678     # Extract the first word of "link", so it can be a program name with args.
22679 set dummy link; ac_word=$2
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22681 $as_echo_n "checking for $ac_word... " >&6; }
22682 if test "${ac_cv_prog_WINLD+set}" = set; then :
22683   $as_echo_n "(cached) " >&6
22684 else
22685   if test -n "$WINLD"; then
22686   ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
22687 else
22688   ac_prog_rejected=no
22689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22690 for as_dir in $PATH
22691 do
22692   IFS=$as_save_IFS
22693   test -z "$as_dir" && as_dir=.
22694     for ac_exec_ext in '' $ac_executable_extensions; do
22695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22696     if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then
22697        ac_prog_rejected=yes
22698        continue
22699      fi
22700     ac_cv_prog_WINLD="link"
22701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22702     break 2


23001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5
23002 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; }
23003     "$WINLD" --version > /dev/null
23004     if test $? -eq 0 ; then
23005       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23006 $as_echo "no" >&6; }
23007       as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5
23008     else
23009       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23010 $as_echo "yes" >&6; }
23011     fi
23012     LD="$WINLD"
23013     LDEXE="$WINLD"
23014     LDCXX="$WINLD"
23015     LDEXECXX="$WINLD"
23016 
23017     # Extract the first word of "mt", so it can be a program name with args.
23018 set dummy mt; ac_word=$2
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23020 $as_echo_n "checking for $ac_word... " >&6; }
23021 if test "${ac_cv_prog_MT+set}" = set; then :
23022   $as_echo_n "(cached) " >&6
23023 else
23024   if test -n "$MT"; then
23025   ac_cv_prog_MT="$MT" # Let the user override the test.
23026 else
23027   ac_prog_rejected=no
23028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23029 for as_dir in $PATH
23030 do
23031   IFS=$as_save_IFS
23032   test -z "$as_dir" && as_dir=.
23033     for ac_exec_ext in '' $ac_executable_extensions; do
23034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23035     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
23036        ac_prog_rejected=yes
23037        continue
23038      fi
23039     ac_cv_prog_MT="mt"
23040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23041     break 2


23322   fi
23323 
23324       # Now join together the path and the arguments once again
23325       if test "x$arguments" != xEOL; then
23326         new_complete="$new_path ${arguments% *}"
23327       else
23328         new_complete="$new_path"
23329       fi
23330 
23331   if test "x$complete" != "x$new_complete"; then
23332       MT="$new_complete"
23333       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5
23334 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;}
23335     fi
23336 
23337     # The resource compiler
23338     # Extract the first word of "rc", so it can be a program name with args.
23339 set dummy rc; ac_word=$2
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23341 $as_echo_n "checking for $ac_word... " >&6; }
23342 if test "${ac_cv_prog_RC+set}" = set; then :
23343   $as_echo_n "(cached) " >&6
23344 else
23345   if test -n "$RC"; then
23346   ac_cv_prog_RC="$RC" # Let the user override the test.
23347 else
23348   ac_prog_rejected=no
23349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23350 for as_dir in $PATH
23351 do
23352   IFS=$as_save_IFS
23353   test -z "$as_dir" && as_dir=.
23354     for ac_exec_ext in '' $ac_executable_extensions; do
23355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23356     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
23357        ac_prog_rejected=yes
23358        continue
23359      fi
23360     ac_cv_prog_RC="rc"
23361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23362     break 2


23713 fi
23714     JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION
23715     if test "x$JDK_UPDATE_VERSION" = x; then :
23716 
23717         JDK_UPDATE_VERSION_NOTNULL=0
23718 
23719 fi
23720     RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\""
23721     RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\""
23722     RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\""
23723     RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\""
23724     RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\""
23725     RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\""
23726     RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\""
23727 
23728     # lib.exe is used to create static libraries.
23729     # Extract the first word of "lib", so it can be a program name with args.
23730 set dummy lib; ac_word=$2
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23732 $as_echo_n "checking for $ac_word... " >&6; }
23733 if test "${ac_cv_prog_WINAR+set}" = set; then :
23734   $as_echo_n "(cached) " >&6
23735 else
23736   if test -n "$WINAR"; then
23737   ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
23738 else
23739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23740 for as_dir in $PATH
23741 do
23742   IFS=$as_save_IFS
23743   test -z "$as_dir" && as_dir=.
23744     for ac_exec_ext in '' $ac_executable_extensions; do
23745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23746     ac_cv_prog_WINAR="lib"
23747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23748     break 2
23749   fi
23750 done
23751   done
23752 IFS=$as_save_IFS
23753 


24019       # Now join together the path and the arguments once again
24020       if test "x$arguments" != xEOL; then
24021         new_complete="$new_path ${arguments% *}"
24022       else
24023         new_complete="$new_path"
24024       fi
24025 
24026   if test "x$complete" != "x$new_complete"; then
24027       WINAR="$new_complete"
24028       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5
24029 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;}
24030     fi
24031 
24032     AR="$WINAR"
24033     ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
24034 
24035     # Extract the first word of "dumpbin", so it can be a program name with args.
24036 set dummy dumpbin; ac_word=$2
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24038 $as_echo_n "checking for $ac_word... " >&6; }
24039 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
24040   $as_echo_n "(cached) " >&6
24041 else
24042   if test -n "$DUMPBIN"; then
24043   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
24044 else
24045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24046 for as_dir in $PATH
24047 do
24048   IFS=$as_save_IFS
24049   test -z "$as_dir" && as_dir=.
24050     for ac_exec_ext in '' $ac_executable_extensions; do
24051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24052     ac_cv_prog_DUMPBIN="dumpbin"
24053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24054     break 2
24055   fi
24056 done
24057   done
24058 IFS=$as_save_IFS
24059 


24338 
24339     COMPILER_TYPE=CL
24340     CCXXFLAGS="$CCXXFLAGS -nologo"
24341 
24342 fi
24343 
24344 
24345 
24346 ac_ext=c
24347 ac_cpp='$CPP $CPPFLAGS'
24348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
24352 $as_echo_n "checking how to run the C preprocessor... " >&6; }
24353 # On Suns, sometimes $CPP names a directory.
24354 if test -n "$CPP" && test -d "$CPP"; then
24355   CPP=
24356 fi
24357 if test -z "$CPP"; then
24358   if test "${ac_cv_prog_CPP+set}" = set; then :
24359   $as_echo_n "(cached) " >&6
24360 else
24361       # Double quotes because CPP needs to be expanded
24362     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
24363     do
24364       ac_preproc_ok=false
24365 for ac_c_preproc_warn_flag in '' yes
24366 do
24367   # Use a header file that comes with gcc, so configuring glibc
24368   # with a fresh cross-compiler works.
24369   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24370   # <limits.h> exists even on freestanding compilers.
24371   # On the NeXT, cc -E runs the code through the compiler's parser,
24372   # not just through cpp. "Syntax error" is here to catch this case.
24373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24374 /* end confdefs.h.  */
24375 #ifdef __STDC__
24376 # include <limits.h>
24377 #else
24378 # include <assert.h>


24454 _ACEOF
24455 if ac_fn_c_try_cpp "$LINENO"; then :
24456   # Broken: success on invalid input.
24457 continue
24458 else
24459   # Passes both tests.
24460 ac_preproc_ok=:
24461 break
24462 fi
24463 rm -f conftest.err conftest.i conftest.$ac_ext
24464 
24465 done
24466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24467 rm -f conftest.i conftest.err conftest.$ac_ext
24468 if $ac_preproc_ok; then :
24469 
24470 else
24471   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24473 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
24474 See \`config.log' for more details" "$LINENO" 5 ; }
24475 fi
24476 
24477 ac_ext=cpp
24478 ac_cpp='$CXXCPP $CPPFLAGS'
24479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24482 
24483 
24484   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24485 
24486   # First separate the path from the arguments. This will split at the first
24487   # space.
24488   complete="$CPP"
24489   path="${complete%% *}"
24490   tmp="$complete EOL"
24491   arguments="${tmp#* }"
24492 
24493   # Input might be given as Windows format, start by converting to
24494   # unix format.


24738         new_complete="$new_path ${arguments% *}"
24739       else
24740         new_complete="$new_path"
24741       fi
24742 
24743   if test "x$complete" != "x$new_complete"; then
24744       CPP="$new_complete"
24745       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5
24746 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;}
24747     fi
24748 
24749 
24750 ac_ext=cpp
24751 ac_cpp='$CXXCPP $CPPFLAGS'
24752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
24756 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
24757 if test -z "$CXXCPP"; then
24758   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
24759   $as_echo_n "(cached) " >&6
24760 else
24761       # Double quotes because CXXCPP needs to be expanded
24762     for CXXCPP in "$CXX -E" "/lib/cpp"
24763     do
24764       ac_preproc_ok=false
24765 for ac_cxx_preproc_warn_flag in '' yes
24766 do
24767   # Use a header file that comes with gcc, so configuring glibc
24768   # with a fresh cross-compiler works.
24769   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24770   # <limits.h> exists even on freestanding compilers.
24771   # On the NeXT, cc -E runs the code through the compiler's parser,
24772   # not just through cpp. "Syntax error" is here to catch this case.
24773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24774 /* end confdefs.h.  */
24775 #ifdef __STDC__
24776 # include <limits.h>
24777 #else
24778 # include <assert.h>


24854 _ACEOF
24855 if ac_fn_cxx_try_cpp "$LINENO"; then :
24856   # Broken: success on invalid input.
24857 continue
24858 else
24859   # Passes both tests.
24860 ac_preproc_ok=:
24861 break
24862 fi
24863 rm -f conftest.err conftest.i conftest.$ac_ext
24864 
24865 done
24866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24867 rm -f conftest.i conftest.err conftest.$ac_ext
24868 if $ac_preproc_ok; then :
24869 
24870 else
24871   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24873 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
24874 See \`config.log' for more details" "$LINENO" 5 ; }
24875 fi
24876 
24877 ac_ext=cpp
24878 ac_cpp='$CXXCPP $CPPFLAGS'
24879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24882 
24883 
24884   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24885 
24886   # First separate the path from the arguments. This will split at the first
24887   # space.
24888   complete="$CXXCPP"
24889   path="${complete%% *}"
24890   tmp="$complete EOL"
24891   arguments="${tmp#* }"
24892 
24893   # Input might be given as Windows format, start by converting to
24894   # unix format.


25156     BUILD_CXX="$CXX"
25157     BUILD_LD="$LD"
25158 fi
25159 
25160 # for solaris we really need solaris tools, and not gnu equivalent
25161 #   these seems to normally reside in /usr/ccs/bin so add that to path before
25162 #   starting to probe
25163 #
25164 #   NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH
25165 #         so that it can be overriden --with-tools-dir
25166 if test "x$OPENJDK_BUILD_OS" = xsolaris; then
25167     PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}"
25168 fi
25169 
25170 # Find the right assembler.
25171 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
25172     # Extract the first word of "as", so it can be a program name with args.
25173 set dummy as; ac_word=$2
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25175 $as_echo_n "checking for $ac_word... " >&6; }
25176 if test "${ac_cv_path_AS+set}" = set; then :
25177   $as_echo_n "(cached) " >&6
25178 else
25179   case $AS in
25180   [\\/]* | ?:[\\/]*)
25181   ac_cv_path_AS="$AS" # Let the user override the test with a path.
25182   ;;
25183   *)
25184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25185 for as_dir in $PATH
25186 do
25187   IFS=$as_save_IFS
25188   test -z "$as_dir" && as_dir=.
25189     for ac_exec_ext in '' $ac_executable_extensions; do
25190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25191     ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
25192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25193     break 2
25194   fi
25195 done
25196   done


25468       else
25469         new_complete="$new_path"
25470       fi
25471 
25472   if test "x$complete" != "x$new_complete"; then
25473       AS="$new_complete"
25474       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5
25475 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;}
25476     fi
25477 
25478 else
25479     AS="$CC -c"
25480 fi
25481 
25482 
25483 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
25484     # Extract the first word of "nm", so it can be a program name with args.
25485 set dummy nm; ac_word=$2
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25487 $as_echo_n "checking for $ac_word... " >&6; }
25488 if test "${ac_cv_path_NM+set}" = set; then :
25489   $as_echo_n "(cached) " >&6
25490 else
25491   case $NM in
25492   [\\/]* | ?:[\\/]*)
25493   ac_cv_path_NM="$NM" # Let the user override the test with a path.
25494   ;;
25495   *)
25496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25497 for as_dir in $PATH
25498 do
25499   IFS=$as_save_IFS
25500   test -z "$as_dir" && as_dir=.
25501     for ac_exec_ext in '' $ac_executable_extensions; do
25502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25503     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
25504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25505     break 2
25506   fi
25507 done
25508   done


25774       fi
25775   fi
25776 
25777       # Now join together the path and the arguments once again
25778       if test "x$arguments" != xEOL; then
25779         new_complete="$new_path ${arguments% *}"
25780       else
25781         new_complete="$new_path"
25782       fi
25783 
25784   if test "x$complete" != "x$new_complete"; then
25785       NM="$new_complete"
25786       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
25787 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
25788     fi
25789 
25790     # Extract the first word of "gnm", so it can be a program name with args.
25791 set dummy gnm; ac_word=$2
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25793 $as_echo_n "checking for $ac_word... " >&6; }
25794 if test "${ac_cv_path_GNM+set}" = set; then :
25795   $as_echo_n "(cached) " >&6
25796 else
25797   case $GNM in
25798   [\\/]* | ?:[\\/]*)
25799   ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
25800   ;;
25801   *)
25802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25803 for as_dir in $PATH
25804 do
25805   IFS=$as_save_IFS
25806   test -z "$as_dir" && as_dir=.
25807     for ac_exec_ext in '' $ac_executable_extensions; do
25808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25809     ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
25810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25811     break 2
25812   fi
25813 done
25814   done


26080       fi
26081   fi
26082 
26083       # Now join together the path and the arguments once again
26084       if test "x$arguments" != xEOL; then
26085         new_complete="$new_path ${arguments% *}"
26086       else
26087         new_complete="$new_path"
26088       fi
26089 
26090   if test "x$complete" != "x$new_complete"; then
26091       GNM="$new_complete"
26092       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5
26093 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;}
26094     fi
26095 
26096     # Extract the first word of "strip", so it can be a program name with args.
26097 set dummy strip; ac_word=$2
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26099 $as_echo_n "checking for $ac_word... " >&6; }
26100 if test "${ac_cv_path_STRIP+set}" = set; then :
26101   $as_echo_n "(cached) " >&6
26102 else
26103   case $STRIP in
26104   [\\/]* | ?:[\\/]*)
26105   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
26106   ;;
26107   *)
26108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26109 for as_dir in $PATH
26110 do
26111   IFS=$as_save_IFS
26112   test -z "$as_dir" && as_dir=.
26113     for ac_exec_ext in '' $ac_executable_extensions; do
26114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26115     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
26116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26117     break 2
26118   fi
26119 done
26120   done


26386       fi
26387   fi
26388 
26389       # Now join together the path and the arguments once again
26390       if test "x$arguments" != xEOL; then
26391         new_complete="$new_path ${arguments% *}"
26392       else
26393         new_complete="$new_path"
26394       fi
26395 
26396   if test "x$complete" != "x$new_complete"; then
26397       STRIP="$new_complete"
26398       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
26399 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
26400     fi
26401 
26402     # Extract the first word of "mcs", so it can be a program name with args.
26403 set dummy mcs; ac_word=$2
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26405 $as_echo_n "checking for $ac_word... " >&6; }
26406 if test "${ac_cv_path_MCS+set}" = set; then :
26407   $as_echo_n "(cached) " >&6
26408 else
26409   case $MCS in
26410   [\\/]* | ?:[\\/]*)
26411   ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
26412   ;;
26413   *)
26414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26415 for as_dir in $PATH
26416 do
26417   IFS=$as_save_IFS
26418   test -z "$as_dir" && as_dir=.
26419     for ac_exec_ext in '' $ac_executable_extensions; do
26420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26421     ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
26422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26423     break 2
26424   fi
26425 done
26426   done


26694 
26695       # Now join together the path and the arguments once again
26696       if test "x$arguments" != xEOL; then
26697         new_complete="$new_path ${arguments% *}"
26698       else
26699         new_complete="$new_path"
26700       fi
26701 
26702   if test "x$complete" != "x$new_complete"; then
26703       MCS="$new_complete"
26704       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
26705 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
26706     fi
26707 
26708 elif test "x$OPENJDK_TARGET_OS" != xwindows; then
26709     if test -n "$ac_tool_prefix"; then
26710   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
26711 set dummy ${ac_tool_prefix}nm; ac_word=$2
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26713 $as_echo_n "checking for $ac_word... " >&6; }
26714 if test "${ac_cv_prog_NM+set}" = set; then :
26715   $as_echo_n "(cached) " >&6
26716 else
26717   if test -n "$NM"; then
26718   ac_cv_prog_NM="$NM" # Let the user override the test.
26719 else
26720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26721 for as_dir in $PATH
26722 do
26723   IFS=$as_save_IFS
26724   test -z "$as_dir" && as_dir=.
26725     for ac_exec_ext in '' $ac_executable_extensions; do
26726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26727     ac_cv_prog_NM="${ac_tool_prefix}nm"
26728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26729     break 2
26730   fi
26731 done
26732   done
26733 IFS=$as_save_IFS
26734 
26735 fi
26736 fi
26737 NM=$ac_cv_prog_NM
26738 if test -n "$NM"; then
26739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
26740 $as_echo "$NM" >&6; }
26741 else
26742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26743 $as_echo "no" >&6; }
26744 fi
26745 
26746 
26747 fi
26748 if test -z "$ac_cv_prog_NM"; then
26749   ac_ct_NM=$NM
26750   # Extract the first word of "nm", so it can be a program name with args.
26751 set dummy nm; ac_word=$2
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26753 $as_echo_n "checking for $ac_word... " >&6; }
26754 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
26755   $as_echo_n "(cached) " >&6
26756 else
26757   if test -n "$ac_ct_NM"; then
26758   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
26759 else
26760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26761 for as_dir in $PATH
26762 do
26763   IFS=$as_save_IFS
26764   test -z "$as_dir" && as_dir=.
26765     for ac_exec_ext in '' $ac_executable_extensions; do
26766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26767     ac_cv_prog_ac_ct_NM="nm"
26768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26769     break 2
26770   fi
26771 done
26772   done
26773 IFS=$as_save_IFS
26774 


27054       # Now join together the path and the arguments once again
27055       if test "x$arguments" != xEOL; then
27056         new_complete="$new_path ${arguments% *}"
27057       else
27058         new_complete="$new_path"
27059       fi
27060 
27061   if test "x$complete" != "x$new_complete"; then
27062       NM="$new_complete"
27063       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
27064 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
27065     fi
27066 
27067     GNM="$NM"
27068 
27069     if test -n "$ac_tool_prefix"; then
27070   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
27071 set dummy ${ac_tool_prefix}strip; ac_word=$2
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27073 $as_echo_n "checking for $ac_word... " >&6; }
27074 if test "${ac_cv_prog_STRIP+set}" = set; then :
27075   $as_echo_n "(cached) " >&6
27076 else
27077   if test -n "$STRIP"; then
27078   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
27079 else
27080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27081 for as_dir in $PATH
27082 do
27083   IFS=$as_save_IFS
27084   test -z "$as_dir" && as_dir=.
27085     for ac_exec_ext in '' $ac_executable_extensions; do
27086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27087     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
27088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27089     break 2
27090   fi
27091 done
27092   done
27093 IFS=$as_save_IFS
27094 
27095 fi
27096 fi
27097 STRIP=$ac_cv_prog_STRIP
27098 if test -n "$STRIP"; then
27099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
27100 $as_echo "$STRIP" >&6; }
27101 else
27102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27103 $as_echo "no" >&6; }
27104 fi
27105 
27106 
27107 fi
27108 if test -z "$ac_cv_prog_STRIP"; then
27109   ac_ct_STRIP=$STRIP
27110   # Extract the first word of "strip", so it can be a program name with args.
27111 set dummy strip; ac_word=$2
27112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27113 $as_echo_n "checking for $ac_word... " >&6; }
27114 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
27115   $as_echo_n "(cached) " >&6
27116 else
27117   if test -n "$ac_ct_STRIP"; then
27118   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
27119 else
27120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27121 for as_dir in $PATH
27122 do
27123   IFS=$as_save_IFS
27124   test -z "$as_dir" && as_dir=.
27125     for ac_exec_ext in '' $ac_executable_extensions; do
27126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27127     ac_cv_prog_ac_ct_STRIP="strip"
27128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27129     break 2
27130   fi
27131 done
27132   done
27133 IFS=$as_save_IFS
27134 


27419       fi
27420 
27421   if test "x$complete" != "x$new_complete"; then
27422       STRIP="$new_complete"
27423       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
27424 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
27425     fi
27426 
27427 fi
27428 
27429 # objcopy is used for moving debug symbols to separate files when
27430 # full debug symbols are enabled.
27431 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
27432     if test -n "$ac_tool_prefix"; then
27433   for ac_prog in gobjcopy objcopy
27434   do
27435     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27438 $as_echo_n "checking for $ac_word... " >&6; }
27439 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
27440   $as_echo_n "(cached) " >&6
27441 else
27442   if test -n "$OBJCOPY"; then
27443   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
27444 else
27445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27446 for as_dir in $PATH
27447 do
27448   IFS=$as_save_IFS
27449   test -z "$as_dir" && as_dir=.
27450     for ac_exec_ext in '' $ac_executable_extensions; do
27451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27452     ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
27453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27454     break 2
27455   fi
27456 done
27457   done
27458 IFS=$as_save_IFS
27459 


27463 if test -n "$OBJCOPY"; then
27464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
27465 $as_echo "$OBJCOPY" >&6; }
27466 else
27467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27468 $as_echo "no" >&6; }
27469 fi
27470 
27471 
27472     test -n "$OBJCOPY" && break
27473   done
27474 fi
27475 if test -z "$OBJCOPY"; then
27476   ac_ct_OBJCOPY=$OBJCOPY
27477   for ac_prog in gobjcopy objcopy
27478 do
27479   # Extract the first word of "$ac_prog", so it can be a program name with args.
27480 set dummy $ac_prog; ac_word=$2
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27482 $as_echo_n "checking for $ac_word... " >&6; }
27483 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
27484   $as_echo_n "(cached) " >&6
27485 else
27486   if test -n "$ac_ct_OBJCOPY"; then
27487   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
27488 else
27489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27490 for as_dir in $PATH
27491 do
27492   IFS=$as_save_IFS
27493   test -z "$as_dir" && as_dir=.
27494     for ac_exec_ext in '' $ac_executable_extensions; do
27495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27496     ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
27497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27498     break 2
27499   fi
27500 done
27501   done
27502 IFS=$as_save_IFS
27503 


27790       else
27791         new_complete="$new_path"
27792       fi
27793 
27794   if test "x$complete" != "x$new_complete"; then
27795       OBJCOPY="$new_complete"
27796       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5
27797 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;}
27798     fi
27799 
27800     fi
27801 fi
27802 
27803 if test -n "$ac_tool_prefix"; then
27804   for ac_prog in gobjdump objdump
27805   do
27806     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27809 $as_echo_n "checking for $ac_word... " >&6; }
27810 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
27811   $as_echo_n "(cached) " >&6
27812 else
27813   if test -n "$OBJDUMP"; then
27814   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
27815 else
27816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27817 for as_dir in $PATH
27818 do
27819   IFS=$as_save_IFS
27820   test -z "$as_dir" && as_dir=.
27821     for ac_exec_ext in '' $ac_executable_extensions; do
27822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27823     ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
27824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27825     break 2
27826   fi
27827 done
27828   done
27829 IFS=$as_save_IFS
27830 


27834 if test -n "$OBJDUMP"; then
27835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
27836 $as_echo "$OBJDUMP" >&6; }
27837 else
27838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27839 $as_echo "no" >&6; }
27840 fi
27841 
27842 
27843     test -n "$OBJDUMP" && break
27844   done
27845 fi
27846 if test -z "$OBJDUMP"; then
27847   ac_ct_OBJDUMP=$OBJDUMP
27848   for ac_prog in gobjdump objdump
27849 do
27850   # Extract the first word of "$ac_prog", so it can be a program name with args.
27851 set dummy $ac_prog; ac_word=$2
27852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27853 $as_echo_n "checking for $ac_word... " >&6; }
27854 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
27855   $as_echo_n "(cached) " >&6
27856 else
27857   if test -n "$ac_ct_OBJDUMP"; then
27858   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
27859 else
27860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27861 for as_dir in $PATH
27862 do
27863   IFS=$as_save_IFS
27864   test -z "$as_dir" && as_dir=.
27865     for ac_exec_ext in '' $ac_executable_extensions; do
27866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27867     ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
27868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27869     break 2
27870   fi
27871 done
27872   done
27873 IFS=$as_save_IFS
27874 


28158       # Now join together the path and the arguments once again
28159       if test "x$arguments" != xEOL; then
28160         new_complete="$new_path ${arguments% *}"
28161       else
28162         new_complete="$new_path"
28163       fi
28164 
28165   if test "x$complete" != "x$new_complete"; then
28166       OBJDUMP="$new_complete"
28167       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
28168 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
28169     fi
28170 
28171 fi
28172 
28173 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
28174    # Extract the first word of "lipo", so it can be a program name with args.
28175 set dummy lipo; ac_word=$2
28176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28177 $as_echo_n "checking for $ac_word... " >&6; }
28178 if test "${ac_cv_path_LIPO+set}" = set; then :
28179   $as_echo_n "(cached) " >&6
28180 else
28181   case $LIPO in
28182   [\\/]* | ?:[\\/]*)
28183   ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
28184   ;;
28185   *)
28186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28187 for as_dir in $PATH
28188 do
28189   IFS=$as_save_IFS
28190   test -z "$as_dir" && as_dir=.
28191     for ac_exec_ext in '' $ac_executable_extensions; do
28192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28193     ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
28194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28195     break 2
28196   fi
28197 done
28198   done


28475       LIPO="$new_complete"
28476       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5
28477 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;}
28478     fi
28479 
28480 fi
28481 
28482 
28483 
28484 # Restore old path without tools dir
28485 PATH="$OLD_PATH"
28486 
28487 
28488 # FIXME: Currently we must test this after paths but before flags. Fix!
28489 
28490 # And we can test some aspects on the target using configure macros.
28491 
28492 
28493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
28494 $as_echo_n "checking for ANSI C header files... " >&6; }
28495 if test "${ac_cv_header_stdc+set}" = set; then :
28496   $as_echo_n "(cached) " >&6
28497 else
28498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28499 /* end confdefs.h.  */
28500 #include <stdlib.h>
28501 #include <stdarg.h>
28502 #include <string.h>
28503 #include <float.h>
28504 
28505 int
28506 main ()
28507 {
28508 
28509   ;
28510   return 0;
28511 }
28512 _ACEOF
28513 if ac_fn_cxx_try_compile "$LINENO"; then :
28514   ac_cv_header_stdc=yes
28515 else


28652   #   to prevent emitting warning...
28653   ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28654   ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28655   ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28656 
28657   CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
28658   CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
28659   LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
28660 
28661   CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
28662   CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
28663   LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
28664 
28665   fi
28666 fi
28667 
28668 # Make compilation sanity check
28669 for ac_header in stdio.h
28670 do :
28671   ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
28672 if test "x$ac_cv_header_stdio_h" = x""yes; then :
28673   cat >>confdefs.h <<_ACEOF
28674 #define HAVE_STDIO_H 1
28675 _ACEOF
28676 
28677 else
28678 
28679   { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5
28680 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;}
28681   if test "x$COMPILE_TYPE" = xreduced; then
28682     { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5
28683 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;}
28684   elif test "x$COMPILE_TYPE" = xcross; then
28685     { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5
28686 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;}
28687   fi
28688   as_fn_error $? "Cannot continue." "$LINENO" 5
28689 
28690 fi
28691 
28692 done
28693 
28694 
28695 # The cast to long int works around a bug in the HP C Compiler
28696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28698 # This bug is HP SR number 8606223364.
28699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
28700 $as_echo_n "checking size of int *... " >&6; }
28701 if test "${ac_cv_sizeof_int_p+set}" = set; then :
28702   $as_echo_n "(cached) " >&6
28703 else
28704   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
28705 
28706 else
28707   if test "$ac_cv_type_int_p" = yes; then
28708      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28710 as_fn_error 77 "cannot compute sizeof (int *)
28711 See \`config.log' for more details" "$LINENO" 5 ; }
28712    else
28713      ac_cv_sizeof_int_p=0
28714    fi
28715 fi
28716 
28717 fi
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
28719 $as_echo "$ac_cv_sizeof_int_p" >&6; }
28720 
28721 
28722 
28723 cat >>confdefs.h <<_ACEOF
28724 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28725 _ACEOF
28726 
28727 
28728 
28729 if test "x$SIZEOF_INT_P" != "x$ac_cv_sizeof_int_p"; then
28730   # Workaround autoconf bug, see http://lists.gnu.org/archive/html/autoconf/2010-07/msg00004.html
28731   SIZEOF_INT_P="$ac_cv_sizeof_int_p"


28738 else
28739     TESTED_TARGET_CPU_BITS=`expr 8 \* $SIZEOF_INT_P`
28740 
28741     if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
28742         as_fn_error $? "The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)" "$LINENO" 5
28743     fi
28744 fi
28745 
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5
28747 $as_echo_n "checking for target address size... " >&6; }
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5
28749 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; }
28750 
28751 
28752 ###############################################################################
28753 #
28754 # Is the target little of big endian?
28755 #
28756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
28757 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28758 if test "${ac_cv_c_bigendian+set}" = set; then :
28759   $as_echo_n "(cached) " >&6
28760 else
28761   ac_cv_c_bigendian=unknown
28762     # See if we're dealing with a universal compiler.
28763     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28764 /* end confdefs.h.  */
28765 #ifndef __APPLE_CC__
28766                not a universal capable compiler
28767              #endif
28768              typedef int dummy;
28769 
28770 _ACEOF
28771 if ac_fn_cxx_try_compile "$LINENO"; then :
28772 
28773         # Check for potential -arch flags.  It is not universal unless
28774         # there are at least two -arch flags with different values.
28775         ac_arch=
28776         ac_prev=
28777         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28778          if test -n "$ac_prev"; then


29905     fi
29906   fi
29907 fi
29908 
29909 # Now let autoconf do it's magic
29910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
29911 $as_echo_n "checking for X... " >&6; }
29912 
29913 
29914 # Check whether --with-x was given.
29915 if test "${with_x+set}" = set; then :
29916   withval=$with_x;
29917 fi
29918 
29919 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29920 if test "x$with_x" = xno; then
29921   # The user explicitly disabled X.
29922   have_x=disabled
29923 else
29924   case $x_includes,$x_libraries in #(
29925     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
29926     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
29927   $as_echo_n "(cached) " >&6
29928 else
29929   # One or both of the vars are not set, and there is no cached value.
29930 ac_x_includes=no ac_x_libraries=no
29931 rm -f -r conftest.dir
29932 if mkdir conftest.dir; then
29933   cd conftest.dir
29934   cat >Imakefile <<'_ACEOF'
29935 incroot:
29936         @echo incroot='${INCROOT}'
29937 usrlibdir:
29938         @echo usrlibdir='${USRLIBDIR}'
29939 libdir:
29940         @echo libdir='${LIBDIR}'
29941 _ACEOF
29942   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29943     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29944     for ac_var in incroot usrlibdir libdir; do
29945       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29946     done


30183 /* Override any GCC internal prototype to avoid an error.
30184    Use char because int might match the return type of a GCC
30185    builtin and then its argument prototype would still apply.  */
30186 #ifdef __cplusplus
30187 extern "C"
30188 #endif
30189 char XOpenDisplay ();
30190 int
30191 main ()
30192 {
30193 return XOpenDisplay ();
30194   ;
30195   return 0;
30196 }
30197 _ACEOF
30198 if ac_fn_cxx_try_link "$LINENO"; then :
30199 
30200 else
30201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
30202 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
30203 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
30204   $as_echo_n "(cached) " >&6
30205 else
30206   ac_check_lib_save_LIBS=$LIBS
30207 LIBS="-ldnet  $LIBS"
30208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30209 /* end confdefs.h.  */
30210 
30211 /* Override any GCC internal prototype to avoid an error.
30212    Use char because int might match the return type of a GCC
30213    builtin and then its argument prototype would still apply.  */
30214 #ifdef __cplusplus
30215 extern "C"
30216 #endif
30217 char dnet_ntoa ();
30218 int
30219 main ()
30220 {
30221 return dnet_ntoa ();
30222   ;
30223   return 0;
30224 }
30225 _ACEOF
30226 if ac_fn_cxx_try_link "$LINENO"; then :
30227   ac_cv_lib_dnet_dnet_ntoa=yes
30228 else
30229   ac_cv_lib_dnet_dnet_ntoa=no
30230 fi
30231 rm -f core conftest.err conftest.$ac_objext \
30232     conftest$ac_exeext conftest.$ac_ext
30233 LIBS=$ac_check_lib_save_LIBS
30234 fi
30235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30236 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30237 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
30238   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30239 fi
30240 
30241     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30242       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
30243 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
30244 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
30245   $as_echo_n "(cached) " >&6
30246 else
30247   ac_check_lib_save_LIBS=$LIBS
30248 LIBS="-ldnet_stub  $LIBS"
30249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30250 /* end confdefs.h.  */
30251 
30252 /* Override any GCC internal prototype to avoid an error.
30253    Use char because int might match the return type of a GCC
30254    builtin and then its argument prototype would still apply.  */
30255 #ifdef __cplusplus
30256 extern "C"
30257 #endif
30258 char dnet_ntoa ();
30259 int
30260 main ()
30261 {
30262 return dnet_ntoa ();
30263   ;
30264   return 0;
30265 }
30266 _ACEOF
30267 if ac_fn_cxx_try_link "$LINENO"; then :
30268   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30269 else
30270   ac_cv_lib_dnet_stub_dnet_ntoa=no
30271 fi
30272 rm -f core conftest.err conftest.$ac_objext \
30273     conftest$ac_exeext conftest.$ac_ext
30274 LIBS=$ac_check_lib_save_LIBS
30275 fi
30276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30277 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30278 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
30279   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30280 fi
30281 
30282     fi
30283 fi
30284 rm -f core conftest.err conftest.$ac_objext \
30285     conftest$ac_exeext conftest.$ac_ext
30286     LIBS="$ac_xsave_LIBS"
30287 
30288     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30289     # to get the SysV transport functions.
30290     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30291     # needs -lnsl.
30292     # The nsl library prevents programs from opening the X display
30293     # on Irix 5.2, according to T.E. Dickey.
30294     # The functions gethostbyname, getservbyname, and inet_addr are
30295     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30296     ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
30297 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
30298 
30299 fi
30300 
30301     if test $ac_cv_func_gethostbyname = no; then
30302       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
30303 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
30304 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
30305   $as_echo_n "(cached) " >&6
30306 else
30307   ac_check_lib_save_LIBS=$LIBS
30308 LIBS="-lnsl  $LIBS"
30309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30310 /* end confdefs.h.  */
30311 
30312 /* Override any GCC internal prototype to avoid an error.
30313    Use char because int might match the return type of a GCC
30314    builtin and then its argument prototype would still apply.  */
30315 #ifdef __cplusplus
30316 extern "C"
30317 #endif
30318 char gethostbyname ();
30319 int
30320 main ()
30321 {
30322 return gethostbyname ();
30323   ;
30324   return 0;
30325 }
30326 _ACEOF
30327 if ac_fn_cxx_try_link "$LINENO"; then :
30328   ac_cv_lib_nsl_gethostbyname=yes
30329 else
30330   ac_cv_lib_nsl_gethostbyname=no
30331 fi
30332 rm -f core conftest.err conftest.$ac_objext \
30333     conftest$ac_exeext conftest.$ac_ext
30334 LIBS=$ac_check_lib_save_LIBS
30335 fi
30336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
30337 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
30338 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
30339   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30340 fi
30341 
30342       if test $ac_cv_lib_nsl_gethostbyname = no; then
30343         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
30344 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
30345 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
30346   $as_echo_n "(cached) " >&6
30347 else
30348   ac_check_lib_save_LIBS=$LIBS
30349 LIBS="-lbsd  $LIBS"
30350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30351 /* end confdefs.h.  */
30352 
30353 /* Override any GCC internal prototype to avoid an error.
30354    Use char because int might match the return type of a GCC
30355    builtin and then its argument prototype would still apply.  */
30356 #ifdef __cplusplus
30357 extern "C"
30358 #endif
30359 char gethostbyname ();
30360 int
30361 main ()
30362 {
30363 return gethostbyname ();
30364   ;
30365   return 0;
30366 }
30367 _ACEOF
30368 if ac_fn_cxx_try_link "$LINENO"; then :
30369   ac_cv_lib_bsd_gethostbyname=yes
30370 else
30371   ac_cv_lib_bsd_gethostbyname=no
30372 fi
30373 rm -f core conftest.err conftest.$ac_objext \
30374     conftest$ac_exeext conftest.$ac_ext
30375 LIBS=$ac_check_lib_save_LIBS
30376 fi
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
30378 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
30379 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
30380   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30381 fi
30382 
30383       fi
30384     fi
30385 
30386     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30387     # socket/setsockopt and other routines are undefined under SCO ODT
30388     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30389     # on later versions), says Simon Leinen: it contains gethostby*
30390     # variants that don't use the name server (or something).  -lsocket
30391     # must be given before -lnsl if both are needed.  We assume that
30392     # if connect needs -lnsl, so does gethostbyname.
30393     ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
30394 if test "x$ac_cv_func_connect" = x""yes; then :
30395 
30396 fi
30397 
30398     if test $ac_cv_func_connect = no; then
30399       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
30400 $as_echo_n "checking for connect in -lsocket... " >&6; }
30401 if test "${ac_cv_lib_socket_connect+set}" = set; then :
30402   $as_echo_n "(cached) " >&6
30403 else
30404   ac_check_lib_save_LIBS=$LIBS
30405 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30407 /* end confdefs.h.  */
30408 
30409 /* Override any GCC internal prototype to avoid an error.
30410    Use char because int might match the return type of a GCC
30411    builtin and then its argument prototype would still apply.  */
30412 #ifdef __cplusplus
30413 extern "C"
30414 #endif
30415 char connect ();
30416 int
30417 main ()
30418 {
30419 return connect ();
30420   ;
30421   return 0;
30422 }
30423 _ACEOF
30424 if ac_fn_cxx_try_link "$LINENO"; then :
30425   ac_cv_lib_socket_connect=yes
30426 else
30427   ac_cv_lib_socket_connect=no
30428 fi
30429 rm -f core conftest.err conftest.$ac_objext \
30430     conftest$ac_exeext conftest.$ac_ext
30431 LIBS=$ac_check_lib_save_LIBS
30432 fi
30433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
30434 $as_echo "$ac_cv_lib_socket_connect" >&6; }
30435 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
30436   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30437 fi
30438 
30439     fi
30440 
30441     # Guillermo Gomez says -lposix is necessary on A/UX.
30442     ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
30443 if test "x$ac_cv_func_remove" = x""yes; then :
30444 
30445 fi
30446 
30447     if test $ac_cv_func_remove = no; then
30448       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
30449 $as_echo_n "checking for remove in -lposix... " >&6; }
30450 if test "${ac_cv_lib_posix_remove+set}" = set; then :
30451   $as_echo_n "(cached) " >&6
30452 else
30453   ac_check_lib_save_LIBS=$LIBS
30454 LIBS="-lposix  $LIBS"
30455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30456 /* end confdefs.h.  */
30457 
30458 /* Override any GCC internal prototype to avoid an error.
30459    Use char because int might match the return type of a GCC
30460    builtin and then its argument prototype would still apply.  */
30461 #ifdef __cplusplus
30462 extern "C"
30463 #endif
30464 char remove ();
30465 int
30466 main ()
30467 {
30468 return remove ();
30469   ;
30470   return 0;
30471 }
30472 _ACEOF
30473 if ac_fn_cxx_try_link "$LINENO"; then :
30474   ac_cv_lib_posix_remove=yes
30475 else
30476   ac_cv_lib_posix_remove=no
30477 fi
30478 rm -f core conftest.err conftest.$ac_objext \
30479     conftest$ac_exeext conftest.$ac_ext
30480 LIBS=$ac_check_lib_save_LIBS
30481 fi
30482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
30483 $as_echo "$ac_cv_lib_posix_remove" >&6; }
30484 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
30485   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30486 fi
30487 
30488     fi
30489 
30490     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30491     ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
30492 if test "x$ac_cv_func_shmat" = x""yes; then :
30493 
30494 fi
30495 
30496     if test $ac_cv_func_shmat = no; then
30497       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
30498 $as_echo_n "checking for shmat in -lipc... " >&6; }
30499 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
30500   $as_echo_n "(cached) " >&6
30501 else
30502   ac_check_lib_save_LIBS=$LIBS
30503 LIBS="-lipc  $LIBS"
30504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30505 /* end confdefs.h.  */
30506 
30507 /* Override any GCC internal prototype to avoid an error.
30508    Use char because int might match the return type of a GCC
30509    builtin and then its argument prototype would still apply.  */
30510 #ifdef __cplusplus
30511 extern "C"
30512 #endif
30513 char shmat ();
30514 int
30515 main ()
30516 {
30517 return shmat ();
30518   ;
30519   return 0;
30520 }
30521 _ACEOF
30522 if ac_fn_cxx_try_link "$LINENO"; then :
30523   ac_cv_lib_ipc_shmat=yes
30524 else
30525   ac_cv_lib_ipc_shmat=no
30526 fi
30527 rm -f core conftest.err conftest.$ac_objext \
30528     conftest$ac_exeext conftest.$ac_ext
30529 LIBS=$ac_check_lib_save_LIBS
30530 fi
30531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
30532 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
30533 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
30534   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30535 fi
30536 
30537     fi
30538   fi
30539 
30540   # Check for libraries that X11R6 Xt/Xaw programs need.
30541   ac_save_LDFLAGS=$LDFLAGS
30542   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30543   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30544   # check for ICE first), but we must link in the order -lSM -lICE or
30545   # we get undefined symbols.  So assume we have SM if we have ICE.
30546   # These have to be linked with before -lX11, unlike the other
30547   # libraries we check for below, so use a different variable.
30548   # John Interrante, Karl Berry
30549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
30550 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
30551 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
30552   $as_echo_n "(cached) " >&6
30553 else
30554   ac_check_lib_save_LIBS=$LIBS
30555 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30557 /* end confdefs.h.  */
30558 
30559 /* Override any GCC internal prototype to avoid an error.
30560    Use char because int might match the return type of a GCC
30561    builtin and then its argument prototype would still apply.  */
30562 #ifdef __cplusplus
30563 extern "C"
30564 #endif
30565 char IceConnectionNumber ();
30566 int
30567 main ()
30568 {
30569 return IceConnectionNumber ();
30570   ;
30571   return 0;
30572 }
30573 _ACEOF
30574 if ac_fn_cxx_try_link "$LINENO"; then :
30575   ac_cv_lib_ICE_IceConnectionNumber=yes
30576 else
30577   ac_cv_lib_ICE_IceConnectionNumber=no
30578 fi
30579 rm -f core conftest.err conftest.$ac_objext \
30580     conftest$ac_exeext conftest.$ac_ext
30581 LIBS=$ac_check_lib_save_LIBS
30582 fi
30583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30584 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30585 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
30586   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30587 fi
30588 
30589   LDFLAGS=$ac_save_LDFLAGS
30590 
30591 fi
30592 
30593 
30594 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
30595 # this doesn't make sense so we remove it.
30596 if test "x$COMPILE_TYPE" = xcross; then
30597   X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'`
30598 fi
30599 
30600 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
30601 
30602     # Print a helpful message on how to acquire the necessary build dependency.
30603     # x11 is the help tag: freetyp2, cups, pulse, alsa etc
30604     MISSING_DEPENDENCY=x11
30605     PKGHANDLER_COMMAND=


30963                 pkgadd_help  $MISSING_DEPENDENCY ;;
30964     * )
30965       break ;;
30966     esac
30967 
30968     if test "x$PKGHANDLER_COMMAND" != x; then
30969         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
30970     fi
30971 
30972             as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5
30973         fi
30974 fi
30975 
30976 
30977 
30978 
30979 
30980 
30981 ###############################################################################
30982 #
































































































































30983 # The ubiquitous freetype2 library is used to render fonts.
30984 #
30985 
30986 # Check whether --with-freetype was given.
30987 if test "${with_freetype+set}" = set; then :
30988   withval=$with_freetype;
30989 fi
30990 
30991 
30992 # If we are using the OS installed system lib for freetype, then we do not need to copy it to the build tree
30993 USING_SYSTEM_FT_LIB=false
30994 
30995 if test "x$FREETYPE2_NOT_NEEDED" = xyes; then
30996         if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
30997                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5
30998 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;}
30999         fi
31000         FREETYPE2_CFLAGS=
31001         FREETYPE2_LIBS=
31002         FREETYPE2_LIB_PATH=


31584                 pkgutil_help $MISSING_DEPENDENCY ;;
31585         pkgadd)
31586                 pkgadd_help  $MISSING_DEPENDENCY ;;
31587     * )
31588       break ;;
31589     esac
31590 
31591     if test "x$PKGHANDLER_COMMAND" != x; then
31592         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
31593     fi
31594 
31595                 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
31596         fi
31597 
31598         if test "x$OPENJDK_TARGET_OS" != xwindows; then
31599             # AC_CHECK_LIB does not support use of cl.exe
31600             PREV_LDFLAGS="$LDFLAGS"
31601             LDFLAGS="$FREETYPE2_LIBS"
31602             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
31603 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
31604 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
31605   $as_echo_n "(cached) " >&6
31606 else
31607   ac_check_lib_save_LIBS=$LIBS
31608 LIBS="-lfreetype  $LIBS"
31609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31610 /* end confdefs.h.  */
31611 
31612 /* Override any GCC internal prototype to avoid an error.
31613    Use char because int might match the return type of a GCC
31614    builtin and then its argument prototype would still apply.  */
31615 #ifdef __cplusplus
31616 extern "C"
31617 #endif
31618 char FT_Init_FreeType ();
31619 int
31620 main ()
31621 {
31622 return FT_Init_FreeType ();
31623   ;
31624   return 0;
31625 }
31626 _ACEOF
31627 if ac_fn_cxx_try_link "$LINENO"; then :
31628   ac_cv_lib_freetype_FT_Init_FreeType=yes
31629 else
31630   ac_cv_lib_freetype_FT_Init_FreeType=no
31631 fi
31632 rm -f core conftest.err conftest.$ac_objext \
31633     conftest$ac_exeext conftest.$ac_ext
31634 LIBS=$ac_check_lib_save_LIBS
31635 fi
31636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
31637 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
31638 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
31639   FREETYPE2_FOUND=true
31640 else
31641   as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
31642 fi
31643 
31644             LDFLAGS="$PREV_LDFLAGS"
31645         fi
31646 fi
31647 
31648 
31649 
31650 
31651 
31652 
31653 
31654 
31655 
31656 ###############################################################################
31657 #
31658 # Check for alsa headers and libraries. Used on Linux/GNU systems.


31906         # Put the nasty error message in config.log where it belongs
31907         echo "$ALSA_PKG_ERRORS" >&5
31908 
31909         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31910 $as_echo "no" >&6; }
31911                 ALSA_FOUND=no
31912 elif test $pkg_failed = untried; then
31913         ALSA_FOUND=no
31914 else
31915         ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
31916         ALSA_LIBS=$pkg_cv_ALSA_LIBS
31917         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31918 $as_echo "yes" >&6; }
31919         ALSA_FOUND=yes
31920 fi
31921         fi
31922         if test "x$ALSA_FOUND" = xno; then
31923             for ac_header in alsa/asoundlib.h
31924 do :
31925   ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
31926 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
31927   cat >>confdefs.h <<_ACEOF
31928 #define HAVE_ALSA_ASOUNDLIB_H 1
31929 _ACEOF
31930  ALSA_FOUND=yes
31931                               ALSA_CFLAGS=-Iignoreme
31932                               ALSA_LIBS=-lasound
31933                               DEFAULT_ALSA=yes
31934 else
31935   ALSA_FOUND=no
31936 fi
31937 
31938 done
31939 
31940         fi
31941         if test "x$ALSA_FOUND" = xno; then
31942 
31943     # Print a helpful message on how to acquire the necessary build dependency.
31944     # alsa is the help tag: freetyp2, cups, pulse, alsa etc
31945     MISSING_DEPENDENCY=alsa
31946     PKGHANDLER_COMMAND=


31965     fi
31966 
31967             as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
31968         fi
31969 fi
31970 
31971 
31972 
31973 
31974 
31975 
31976 
31977 ###############################################################################
31978 #
31979 # Check for the jpeg library
31980 #
31981 
31982 USE_EXTERNAL_LIBJPEG=true
31983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
31984 $as_echo_n "checking for main in -ljpeg... " >&6; }
31985 if test "${ac_cv_lib_jpeg_main+set}" = set; then :
31986   $as_echo_n "(cached) " >&6
31987 else
31988   ac_check_lib_save_LIBS=$LIBS
31989 LIBS="-ljpeg  $LIBS"
31990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31991 /* end confdefs.h.  */
31992 
31993 
31994 int
31995 main ()
31996 {
31997 return main ();
31998   ;
31999   return 0;
32000 }
32001 _ACEOF
32002 if ac_fn_cxx_try_link "$LINENO"; then :
32003   ac_cv_lib_jpeg_main=yes
32004 else
32005   ac_cv_lib_jpeg_main=no
32006 fi
32007 rm -f core conftest.err conftest.$ac_objext \
32008     conftest$ac_exeext conftest.$ac_ext
32009 LIBS=$ac_check_lib_save_LIBS
32010 fi
32011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
32012 $as_echo "$ac_cv_lib_jpeg_main" >&6; }
32013 if test "x$ac_cv_lib_jpeg_main" = x""yes; then :
32014   cat >>confdefs.h <<_ACEOF
32015 #define HAVE_LIBJPEG 1
32016 _ACEOF
32017 
32018   LIBS="-ljpeg $LIBS"
32019 
32020 else
32021    USE_EXTERNAL_LIBJPEG=false
32022                { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
32023 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
32024 
32025 fi
32026 
32027 
32028 
32029 ###############################################################################
32030 #
32031 # Check for the gif library
32032 #
32033 


32042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5
32043 $as_echo_n "checking for which giflib to use... " >&6; }
32044 
32045 # default is bundled
32046 DEFAULT_GIFLIB=bundled
32047 
32048 #
32049 # if user didn't specify, use DEFAULT_GIFLIB
32050 #
32051 if test "x${with_giflib}" = "x"; then
32052     with_giflib=${DEFAULT_GIFLIB}
32053 fi
32054 
32055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5
32056 $as_echo "${with_giflib}" >&6; }
32057 
32058 if test "x${with_giflib}" = "xbundled"; then
32059     USE_EXTERNAL_LIBGIF=false
32060 elif test "x${with_giflib}" = "xsystem"; then
32061     ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
32062 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
32063 
32064 else
32065    as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5
32066 fi
32067 
32068 
32069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5
32070 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; }
32071 if test "${ac_cv_lib_gif_DGifGetCode+set}" = set; then :
32072   $as_echo_n "(cached) " >&6
32073 else
32074   ac_check_lib_save_LIBS=$LIBS
32075 LIBS="-lgif  $LIBS"
32076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32077 /* end confdefs.h.  */
32078 
32079 /* Override any GCC internal prototype to avoid an error.
32080    Use char because int might match the return type of a GCC
32081    builtin and then its argument prototype would still apply.  */
32082 #ifdef __cplusplus
32083 extern "C"
32084 #endif
32085 char DGifGetCode ();
32086 int
32087 main ()
32088 {
32089 return DGifGetCode ();
32090   ;
32091   return 0;
32092 }
32093 _ACEOF
32094 if ac_fn_cxx_try_link "$LINENO"; then :
32095   ac_cv_lib_gif_DGifGetCode=yes
32096 else
32097   ac_cv_lib_gif_DGifGetCode=no
32098 fi
32099 rm -f core conftest.err conftest.$ac_objext \
32100     conftest$ac_exeext conftest.$ac_ext
32101 LIBS=$ac_check_lib_save_LIBS
32102 fi
32103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
32104 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
32105 if test "x$ac_cv_lib_gif_DGifGetCode" = x""yes; then :
32106   cat >>confdefs.h <<_ACEOF
32107 #define HAVE_LIBGIF 1
32108 _ACEOF
32109 
32110   LIBS="-lgif $LIBS"
32111 
32112 else
32113    as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
32114 fi
32115 
32116 
32117     USE_EXTERNAL_LIBGIF=true
32118 else
32119     as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
32120 fi
32121 
32122 
32123 ###############################################################################
32124 #
32125 # Check for the zlib library
32126 #
32127 
32128 
32129 # Check whether --with-zlib was given.
32130 if test "${with_zlib+set}" = set; then :
32131   withval=$with_zlib;
32132 fi
32133 
32134 
32135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
32136 $as_echo_n "checking for compress in -lz... " >&6; }
32137 if test "${ac_cv_lib_z_compress+set}" = set; then :
32138   $as_echo_n "(cached) " >&6
32139 else
32140   ac_check_lib_save_LIBS=$LIBS
32141 LIBS="-lz  $LIBS"
32142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32143 /* end confdefs.h.  */
32144 
32145 /* Override any GCC internal prototype to avoid an error.
32146    Use char because int might match the return type of a GCC
32147    builtin and then its argument prototype would still apply.  */
32148 #ifdef __cplusplus
32149 extern "C"
32150 #endif
32151 char compress ();
32152 int
32153 main ()
32154 {
32155 return compress ();
32156   ;
32157   return 0;
32158 }
32159 _ACEOF
32160 if ac_fn_cxx_try_link "$LINENO"; then :
32161   ac_cv_lib_z_compress=yes
32162 else
32163   ac_cv_lib_z_compress=no
32164 fi
32165 rm -f core conftest.err conftest.$ac_objext \
32166     conftest$ac_exeext conftest.$ac_ext
32167 LIBS=$ac_check_lib_save_LIBS
32168 fi
32169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
32170 $as_echo "$ac_cv_lib_z_compress" >&6; }
32171 if test "x$ac_cv_lib_z_compress" = x""yes; then :
32172    ZLIB_FOUND=yes
32173 else
32174    ZLIB_FOUND=no
32175 fi
32176 
32177 
32178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5
32179 $as_echo_n "checking for which zlib to use... " >&6; }
32180 
32181 DEFAULT_ZLIB=bundled
32182 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
32183 #
32184 # On macosx default is system...on others default is
32185 #
32186     DEFAULT_ZLIB=system
32187 fi
32188 
32189 if test "x${ZLIB_FOUND}" != "xyes"; then
32190 #
32191 # If we don't find any system...set default to bundled


32244 if ac_fn_cxx_try_link "$LINENO"; then :
32245   has_altzone=yes
32246 else
32247   has_altzone=no
32248 fi
32249 rm -f core conftest.err conftest.$ac_objext \
32250     conftest$ac_exeext conftest.$ac_ext
32251 if test "x$has_altzone" = xyes; then
32252 
32253 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
32254 
32255 fi
32256 
32257 ###############################################################################
32258 #
32259 # Check the maths library
32260 #
32261 
32262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
32263 $as_echo_n "checking for cos in -lm... " >&6; }
32264 if test "${ac_cv_lib_m_cos+set}" = set; then :
32265   $as_echo_n "(cached) " >&6
32266 else
32267   ac_check_lib_save_LIBS=$LIBS
32268 LIBS="-lm  $LIBS"
32269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32270 /* end confdefs.h.  */
32271 
32272 /* Override any GCC internal prototype to avoid an error.
32273    Use char because int might match the return type of a GCC
32274    builtin and then its argument prototype would still apply.  */
32275 #ifdef __cplusplus
32276 extern "C"
32277 #endif
32278 char cos ();
32279 int
32280 main ()
32281 {
32282 return cos ();
32283   ;
32284   return 0;
32285 }
32286 _ACEOF
32287 if ac_fn_cxx_try_link "$LINENO"; then :
32288   ac_cv_lib_m_cos=yes
32289 else
32290   ac_cv_lib_m_cos=no
32291 fi
32292 rm -f core conftest.err conftest.$ac_objext \
32293     conftest$ac_exeext conftest.$ac_ext
32294 LIBS=$ac_check_lib_save_LIBS
32295 fi
32296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
32297 $as_echo "$ac_cv_lib_m_cos" >&6; }
32298 if test "x$ac_cv_lib_m_cos" = x""yes; then :
32299   cat >>confdefs.h <<_ACEOF
32300 #define HAVE_LIBM 1
32301 _ACEOF
32302 
32303   LIBS="-lm $LIBS"
32304 
32305 else
32306 
32307                   { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
32308 $as_echo "$as_me: Maths library was not found" >&6;}
32309 
32310 fi
32311 
32312 
32313 
32314 ###############################################################################
32315 #
32316 # Check for libdl.so
32317 
32318 save_LIBS="$LIBS"
32319 LIBS=""
32320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
32321 $as_echo_n "checking for dlopen in -ldl... " >&6; }
32322 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
32323   $as_echo_n "(cached) " >&6
32324 else
32325   ac_check_lib_save_LIBS=$LIBS
32326 LIBS="-ldl  $LIBS"
32327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32328 /* end confdefs.h.  */
32329 
32330 /* Override any GCC internal prototype to avoid an error.
32331    Use char because int might match the return type of a GCC
32332    builtin and then its argument prototype would still apply.  */
32333 #ifdef __cplusplus
32334 extern "C"
32335 #endif
32336 char dlopen ();
32337 int
32338 main ()
32339 {
32340 return dlopen ();
32341   ;
32342   return 0;
32343 }
32344 _ACEOF
32345 if ac_fn_cxx_try_link "$LINENO"; then :
32346   ac_cv_lib_dl_dlopen=yes
32347 else
32348   ac_cv_lib_dl_dlopen=no
32349 fi
32350 rm -f core conftest.err conftest.$ac_objext \
32351     conftest$ac_exeext conftest.$ac_ext
32352 LIBS=$ac_check_lib_save_LIBS
32353 fi
32354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
32355 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
32356 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
32357   cat >>confdefs.h <<_ACEOF
32358 #define HAVE_LIBDL 1
32359 _ACEOF
32360 
32361   LIBS="-ldl $LIBS"
32362 
32363 fi
32364 
32365 LIBDL="$LIBS"
32366 
32367 LIBS="$save_LIBS"
32368 
32369 
32370 
32371 ###############################################################################
32372 #
32373 # statically link libstdc++ before C++ ABI is stablized on Linux unless
32374 # dynamic build is configured on command line.
32375 #
32376 


32566 
32567 Consider adjusting the PKG_CONFIG_PATH environment variable if you
32568 installed software in a non-standard prefix.
32569 
32570 Alternatively, you may set the environment variables LIBFFI_CFLAGS
32571 and LIBFFI_LIBS to avoid the need to call pkg-config.
32572 See the pkg-config man page for more details.
32573 " "$LINENO" 5
32574 elif test $pkg_failed = untried; then
32575         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32577 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
32578 is in your PATH or set the PKG_CONFIG environment variable to the full
32579 path to pkg-config.
32580 
32581 Alternatively, you may set the environment variables LIBFFI_CFLAGS
32582 and LIBFFI_LIBS to avoid the need to call pkg-config.
32583 See the pkg-config man page for more details.
32584 
32585 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32586 See \`config.log' for more details" "$LINENO" 5 ; }
32587 else
32588         LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
32589         LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
32590         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32591 $as_echo "yes" >&6; }
32592         :
32593 fi
32594 
32595 fi
32596 
32597 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
32598     # Extract the first word of "llvm-config", so it can be a program name with args.
32599 set dummy llvm-config; ac_word=$2
32600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32601 $as_echo_n "checking for $ac_word... " >&6; }
32602 if test "${ac_cv_prog_LLVM_CONFIG+set}" = set; then :
32603   $as_echo_n "(cached) " >&6
32604 else
32605   if test -n "$LLVM_CONFIG"; then
32606   ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test.
32607 else
32608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32609 for as_dir in $PATH
32610 do
32611   IFS=$as_save_IFS
32612   test -z "$as_dir" && as_dir=.
32613     for ac_exec_ext in '' $ac_executable_extensions; do
32614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32615     ac_cv_prog_LLVM_CONFIG="llvm-config"
32616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32617     break 2
32618   fi
32619 done
32620   done
32621 IFS=$as_save_IFS
32622 


33194     fi
33195 fi
33196 
33197 
33198 
33199 
33200 # Setup use of ccache, if available
33201 
33202     # Check whether --enable-ccache was given.
33203 if test "${enable_ccache+set}" = set; then :
33204   enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache}
33205 else
33206   ENABLE_CCACHE=yes
33207 fi
33208 
33209     if test "x$ENABLE_CCACHE" = xyes; then
33210         # Extract the first word of "ccache", so it can be a program name with args.
33211 set dummy ccache; ac_word=$2
33212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33213 $as_echo_n "checking for $ac_word... " >&6; }
33214 if test "${ac_cv_path_CCACHE+set}" = set; then :
33215   $as_echo_n "(cached) " >&6
33216 else
33217   case $CCACHE in
33218   [\\/]* | ?:[\\/]*)
33219   ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
33220   ;;
33221   *)
33222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33223 for as_dir in $PATH
33224 do
33225   IFS=$as_save_IFS
33226   test -z "$as_dir" && as_dir=.
33227     for ac_exec_ext in '' $ac_executable_extensions; do
33228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33229     ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
33230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33231     break 2
33232   fi
33233 done
33234   done


33455         "s/'/'\\\\''/g;
33456           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33457       ;; #(
33458     *)
33459       # `set' quotes correctly as required by POSIX, so do not add quotes.
33460       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33461       ;;
33462     esac |
33463     sort
33464 ) |
33465   sed '
33466      /^ac_cv_env_/b end
33467      t clear
33468      :clear
33469      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33470      t end
33471      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33472      :end' >>confcache
33473 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33474   if test -w "$cache_file"; then
33475     test "x$cache_file" != "x/dev/null" &&
33476       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33477 $as_echo "$as_me: updating cache $cache_file" >&6;}
33478     cat confcache >$cache_file











33479   else
33480     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33481 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33482   fi
33483 fi
33484 rm -f confcache
33485 
33486 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33487 # Let make expand exec_prefix.
33488 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33489 
33490 DEFS=-DHAVE_CONFIG_H
33491 
33492 ac_libobjs=
33493 ac_ltlibobjs=
33494 U=
33495 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33496   # 1. Remove the extension, and $U if already installed.
33497   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33498   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33499   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33500   #    will be set to the directory where LIBOBJS objects are built.
33501   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33502   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33503 done
33504 LIBOBJS=$ac_libobjs
33505 
33506 LTLIBOBJS=$ac_ltlibobjs
33507 
33508 
33509 
33510 : ${CONFIG_STATUS=./config.status}
33511 ac_write_fail=0
33512 ac_clean_files_save=$ac_clean_files
33513 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33514 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33515 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33516 as_write_fail=0
33517 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33518 #! $SHELL
33519 # Generated by $as_me.
33520 # Run this file to recreate the current configuration.
33521 # Compiler output produced by configure, useful for debugging
33522 # configure, is in config.log if it exists.
33523 
33524 debug=false
33525 ac_cs_recheck=false
33526 ac_cs_silent=false
33527 
33528 SHELL=\${CONFIG_SHELL-$SHELL}
33529 export SHELL
33530 _ASEOF


33591 fi
33592 
33593 # The user is always right.
33594 if test "${PATH_SEPARATOR+set}" != set; then
33595   PATH_SEPARATOR=:
33596   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33597     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33598       PATH_SEPARATOR=';'
33599   }
33600 fi
33601 
33602 
33603 # IFS
33604 # We need space, tab and new line, in precisely that order.  Quoting is
33605 # there to prevent editors from complaining about space-tab.
33606 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33607 # splitting by setting IFS to empty value.)
33608 IFS=" ""        $as_nl"
33609 
33610 # Find who we are.  Look in the path if we contain no directory separator.

33611 case $0 in #((
33612   *[\\/]* ) as_myself=$0 ;;
33613   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33614 for as_dir in $PATH
33615 do
33616   IFS=$as_save_IFS
33617   test -z "$as_dir" && as_dir=.
33618     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33619   done
33620 IFS=$as_save_IFS
33621 
33622      ;;
33623 esac
33624 # We did not find ourselves, most probably we were run as `sh COMMAND'
33625 # in which case we are not to be found in the path.
33626 if test "x$as_myself" = x; then
33627   as_myself=$0
33628 fi
33629 if test ! -f "$as_myself"; then
33630   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2


33898 # Sed expression to map a string onto a valid CPP name.
33899 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33900 
33901 # Sed expression to map a string onto a valid variable name.
33902 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33903 
33904 
33905 exec 6>&1
33906 ## ----------------------------------- ##
33907 ## Main body of $CONFIG_STATUS script. ##
33908 ## ----------------------------------- ##
33909 _ASEOF
33910 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33911 
33912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33913 # Save the log message, to keep $0 and so on meaningful, and to
33914 # report actual input values of CONFIG_FILES etc. instead of their
33915 # values after options handling.
33916 ac_log="
33917 This file was extended by OpenJDK $as_me jdk8, which was
33918 generated by GNU Autoconf 2.67.  Invocation command line was
33919 
33920   CONFIG_FILES    = $CONFIG_FILES
33921   CONFIG_HEADERS  = $CONFIG_HEADERS
33922   CONFIG_LINKS    = $CONFIG_LINKS
33923   CONFIG_COMMANDS = $CONFIG_COMMANDS
33924   $ $0 $@
33925 
33926 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33927 "
33928 
33929 _ACEOF
33930 
33931 case $ac_config_files in *"
33932 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33933 esac
33934 
33935 case $ac_config_headers in *"
33936 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33937 esac
33938 


33961       --recheck    update $as_me by reconfiguring in the same conditions
33962       --file=FILE[:TEMPLATE]
33963                    instantiate the configuration file FILE
33964       --header=FILE[:TEMPLATE]
33965                    instantiate the configuration header FILE
33966 
33967 Configuration files:
33968 $config_files
33969 
33970 Configuration headers:
33971 $config_headers
33972 
33973 Report bugs to <build-dev@openjdk.java.net>.
33974 OpenJDK home page: <http://openjdk.java.net>."
33975 
33976 _ACEOF
33977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33978 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33979 ac_cs_version="\\
33980 OpenJDK config.status jdk8
33981 configured by $0, generated by GNU Autoconf 2.67,
33982   with options \\"\$ac_cs_config\\"
33983 
33984 Copyright (C) 2010 Free Software Foundation, Inc.
33985 This config.status script is free software; the Free Software Foundation
33986 gives unlimited permission to copy, distribute and modify it."
33987 
33988 ac_pwd='$ac_pwd'
33989 srcdir='$srcdir'
33990 AWK='$AWK'
33991 test -n "\$AWK" || AWK=awk
33992 _ACEOF
33993 
33994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33995 # The default lists apply if the user does not specify any file.
33996 ac_need_defaults=:
33997 while test $# != 0
33998 do
33999   case $1 in
34000   --*=?*)
34001     ac_option=`expr "X$1" : 'X\([^=]*\)='`


34090 } >&5
34091 
34092 _ACEOF
34093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34094 _ACEOF
34095 
34096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34097 
34098 # Handling of arguments.
34099 for ac_config_target in $ac_config_targets
34100 do
34101   case $ac_config_target in
34102     "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;;
34103     "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;;
34104     "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;;
34105     "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;;
34106     "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;;
34107     "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;;
34108     "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;;
34109 
34110   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
34111   esac
34112 done
34113 
34114 
34115 # If the user did not use the arguments to specify the items to instantiate,
34116 # then the envvar interface is used.  Set only those that are not.
34117 # We use the long form for the default assignment because of an extremely
34118 # bizarre bug on SunOS 4.1.3.
34119 if $ac_need_defaults; then
34120   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34121   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34122 fi
34123 
34124 # Have a temporary directory for convenience.  Make it in the build tree
34125 # simply because there is no reason against having it here, and in addition,
34126 # creating and moving files from /tmp can sometimes cause problems.
34127 # Hook for its removal unless debugging.
34128 # Note that there is a small window in which the directory will not be cleaned:
34129 # after its creation but before its name has been assigned to `$tmp'.
34130 $debug ||
34131 {
34132   tmp=
34133   trap 'exit_status=$?
34134   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status

34135 ' 0
34136   trap 'as_fn_exit 1' 1 2 13 15
34137 }
34138 # Create a (secure) tmp directory for tmp files.
34139 
34140 {
34141   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34142   test -n "$tmp" && test -d "$tmp"
34143 }  ||
34144 {
34145   tmp=./conf$$-$RANDOM
34146   (umask 077 && mkdir "$tmp")
34147 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5

34148 
34149 # Set up the scripts for CONFIG_FILES section.
34150 # No need to generate them if there are no CONFIG_FILES.
34151 # This happens for instance with `./config.status config.h'.
34152 if test -n "$CONFIG_FILES"; then
34153 
34154 
34155 ac_cr=`echo X | tr X '\015'`
34156 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34157 # But we know of no other shell where ac_cr would be empty at this
34158 # point, so we can use a bashism as a fallback.
34159 if test "x$ac_cr" = x; then
34160   eval ac_cr=\$\'\\r\'
34161 fi
34162 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34163 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34164   ac_cs_awk_cr='\\r'
34165 else
34166   ac_cs_awk_cr=$ac_cr
34167 fi
34168 
34169 echo 'BEGIN {' >"$tmp/subs1.awk" &&
34170 _ACEOF
34171 
34172 
34173 {
34174   echo "cat >conf$$subs.awk <<_ACEOF" &&
34175   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34176   echo "_ACEOF"
34177 } >conf$$subs.sh ||
34178   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34179 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34180 ac_delim='%!_!# '
34181 for ac_last_try in false false false false false :; do
34182   . ./conf$$subs.sh ||
34183     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34184 
34185   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34186   if test $ac_delim_n = $ac_delim_num; then
34187     break
34188   elif $ac_last_try; then
34189     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34190   else
34191     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34192   fi
34193 done
34194 rm -f conf$$subs.sh
34195 
34196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34197 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34198 _ACEOF
34199 sed -n '
34200 h
34201 s/^/S["/; s/!.*/"]=/
34202 p
34203 g
34204 s/^[^!]*!//
34205 :repl
34206 t repl
34207 s/'"$ac_delim"'$//
34208 t delim
34209 :nl
34210 h
34211 s/\(.\{148\}\)..*/\1/
34212 t more1
34213 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34214 p
34215 n
34216 b repl
34217 :more1


34225 s/\(.\{148\}\)..*/\1/
34226 t more2
34227 s/["\\]/\\&/g; s/^/"/; s/$/"/
34228 p
34229 b
34230 :more2
34231 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34232 p
34233 g
34234 s/.\{148\}//
34235 t delim
34236 ' <conf$$subs.awk | sed '
34237 /^[^""]/{
34238   N
34239   s/\n//
34240 }
34241 ' >>$CONFIG_STATUS || ac_write_fail=1
34242 rm -f conf$$subs.awk
34243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34244 _ACAWK
34245 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34246   for (key in S) S_is_set[key] = 1
34247   FS = ""
34248 
34249 }
34250 {
34251   line = $ 0
34252   nfields = split(line, field, "@")
34253   substed = 0
34254   len = length(field[1])
34255   for (i = 2; i < nfields; i++) {
34256     key = field[i]
34257     keylen = length(key)
34258     if (S_is_set[key]) {
34259       value = S[key]
34260       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34261       len += length(value) + length(field[++i])
34262       substed = 1
34263     } else
34264       len += 1 + keylen
34265   }
34266 
34267   print line
34268 }
34269 
34270 _ACAWK
34271 _ACEOF
34272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34273 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34274   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34275 else
34276   cat
34277 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34278   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34279 _ACEOF
34280 
34281 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34282 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34283 # trailing colons and then remove the whole line if VPATH becomes empty
34284 # (actually we leave an empty line to preserve line numbers).
34285 if test "x$srcdir" = x.; then
34286   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
34287 h
34288 s///
34289 s/^/:/
34290 s/[      ]*$/:/
34291 s/:\$(srcdir):/:/g
34292 s/:\${srcdir}:/:/g
34293 s/:@srcdir@:/:/g
34294 s/^:*//
34295 s/:*$//
34296 x
34297 s/\(=[   ]*\).*/\1/
34298 G
34299 s/\n//
34300 s/^[^=]*=[       ]*$//
34301 }'
34302 fi
34303 
34304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34305 fi # test -n "$CONFIG_FILES"
34306 
34307 # Set up the scripts for CONFIG_HEADERS section.
34308 # No need to generate them if there are no CONFIG_HEADERS.
34309 # This happens for instance with `./config.status Makefile'.
34310 if test -n "$CONFIG_HEADERS"; then
34311 cat >"$tmp/defines.awk" <<\_ACAWK ||
34312 BEGIN {
34313 _ACEOF
34314 
34315 # Transform confdefs.h into an awk script `defines.awk', embedded as
34316 # here-document in config.status, that substitutes the proper values into
34317 # config.h.in to produce config.h.
34318 
34319 # Create a delimiter string that does not exist in confdefs.h, to ease
34320 # handling of long lines.
34321 ac_delim='%!_!# '
34322 for ac_last_try in false false :; do
34323   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34324   if test -z "$ac_t"; then
34325     break
34326   elif $ac_last_try; then
34327     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34328   else
34329     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34330   fi
34331 done
34332 
34333 # For the awk script, D is an array of macro values keyed by name,
34334 # likewise P contains macro parameters if any.  Preserve backslash
34335 # newline sequences.
34336 
34337 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34338 sed -n '
34339 s/.\{148\}/&'"$ac_delim"'/g
34340 t rset
34341 :rset
34342 s/^[     ]*#[    ]*define[       ][      ]*/ /
34343 t def
34344 d


34405     }
34406   }
34407 }
34408 { print }
34409 _ACAWK
34410 _ACEOF
34411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34412   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34413 fi # test -n "$CONFIG_HEADERS"
34414 
34415 
34416 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
34417 shift
34418 for ac_tag
34419 do
34420   case $ac_tag in
34421   :[FHLC]) ac_mode=$ac_tag; continue;;
34422   esac
34423   case $ac_mode$ac_tag in
34424   :[FHL]*:*);;
34425   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
34426   :[FH]-) ac_tag=-:-;;
34427   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34428   esac
34429   ac_save_IFS=$IFS
34430   IFS=:
34431   set x $ac_tag
34432   IFS=$ac_save_IFS
34433   shift
34434   ac_file=$1
34435   shift
34436 
34437   case $ac_mode in
34438   :L) ac_source=$1;;
34439   :[FH])
34440     ac_file_inputs=
34441     for ac_f
34442     do
34443       case $ac_f in
34444       -) ac_f="$tmp/stdin";;
34445       *) # Look for the file first in the build tree, then in the source tree
34446          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34447          # because $ac_f cannot contain `:'.
34448          test -f "$ac_f" ||
34449            case $ac_f in
34450            [\\/$]*) false;;
34451            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34452            esac ||
34453            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
34454       esac
34455       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34456       as_fn_append ac_file_inputs " '$ac_f'"
34457     done
34458 
34459     # Let's still pretend it is `configure' which instantiates (i.e., don't
34460     # use $as_me), people would be surprised to read:
34461     #    /* config.h.  Generated by config.status.  */
34462     configure_input='Generated from '`
34463           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34464         `' by configure.'
34465     if test x"$ac_file" != x-; then
34466       configure_input="$ac_file.  $configure_input"
34467       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34468 $as_echo "$as_me: creating $ac_file" >&6;}
34469     fi
34470     # Neutralize special characters interpreted by sed in replacement strings.
34471     case $configure_input in #(
34472     *\&* | *\|* | *\\* )
34473        ac_sed_conf_input=`$as_echo "$configure_input" |
34474        sed 's/[\\\\&|]/\\\\&/g'`;; #(
34475     *) ac_sed_conf_input=$configure_input;;
34476     esac
34477 
34478     case $ac_tag in
34479     *:-:* | *:-) cat >"$tmp/stdin" \
34480       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
34481     esac
34482     ;;
34483   esac
34484 
34485   ac_dir=`$as_dirname -- "$ac_file" ||
34486 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34487          X"$ac_file" : 'X\(//\)[^/]' \| \
34488          X"$ac_file" : 'X\(//\)$' \| \
34489          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34490 $as_echo X"$ac_file" |
34491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34492             s//\1/
34493             q
34494           }
34495           /^X\(\/\/\)[^/].*/{
34496             s//\1/
34497             q
34498           }
34499           /^X\(\/\/\)$/{


34585 # FIXME: do we really want to maintain this feature?
34586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34587 ac_sed_extra="$ac_vpsub
34588 $extrasub
34589 _ACEOF
34590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34591 :t
34592 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34593 s|@configure_input@|$ac_sed_conf_input|;t t
34594 s&@top_builddir@&$ac_top_builddir_sub&;t t
34595 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34596 s&@srcdir@&$ac_srcdir&;t t
34597 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34598 s&@top_srcdir@&$ac_top_srcdir&;t t
34599 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34600 s&@builddir@&$ac_builddir&;t t
34601 s&@abs_builddir@&$ac_abs_builddir&;t t
34602 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34603 $ac_datarootdir_hack
34604 "
34605 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34606   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34607 
34608 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34609   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34610   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&

34611   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34612 which seems to be undefined.  Please make sure it is defined" >&5
34613 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34614 which seems to be undefined.  Please make sure it is defined" >&2;}
34615 
34616   rm -f "$tmp/stdin"
34617   case $ac_file in
34618   -) cat "$tmp/out" && rm -f "$tmp/out";;
34619   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34620   esac \
34621   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34622  ;;
34623   :H)
34624   #
34625   # CONFIG_HEADER
34626   #
34627   if test x"$ac_file" != x-; then
34628     {
34629       $as_echo "/* $configure_input  */" \
34630       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34631     } >"$tmp/config.h" \
34632       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34633     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34634       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34635 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34636     else
34637       rm -f "$ac_file"
34638       mv "$tmp/config.h" "$ac_file" \
34639         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34640     fi
34641   else
34642     $as_echo "/* $configure_input  */" \
34643       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34644       || as_fn_error $? "could not create -" "$LINENO" 5
34645   fi
34646  ;;
34647 
34648 
34649   esac
34650 
34651 done # for ac_tag
34652 
34653 
34654 as_fn_exit 0
34655 _ACEOF
34656 ac_clean_files=$ac_clean_files_save
34657 
34658 test $ac_write_fail = 0 ||
34659   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34660 
34661 
34662 # configure is writing to config.log, and then calls config.status.
34663 # config.status does its own redirection, appending to config.log.


   1 #! /bin/sh
   2 # Guess values for system-dependent variables and create Makefiles.
   3 # Generated by GNU Autoconf 2.68 for OpenJDK jdk8.
   4 #
   5 # Report bugs to <build-dev@openjdk.java.net>.
   6 #
   7 #
   8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10 # Foundation, Inc.
  11 #
  12 #
  13 # This configure script is free software; the Free Software Foundation
  14 # gives unlimited permission to copy, distribute and modify it.
  15 ## -------------------- ##
  16 ## M4sh Initialization. ##
  17 ## -------------------- ##
  18 
  19 # Be more Bourne compatible
  20 DUALCASE=1; export DUALCASE # for MKS sh
  21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22   emulate sh
  23   NULLCMD=:


  74 fi
  75 
  76 # The user is always right.
  77 if test "${PATH_SEPARATOR+set}" != set; then
  78   PATH_SEPARATOR=:
  79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  81       PATH_SEPARATOR=';'
  82   }
  83 fi
  84 
  85 
  86 # IFS
  87 # We need space, tab and new line, in precisely that order.  Quoting is
  88 # there to prevent editors from complaining about space-tab.
  89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  90 # splitting by setting IFS to empty value.)
  91 IFS=" ""        $as_nl"
  92 
  93 # Find who we are.  Look in the path if we contain no directory separator.
  94 as_myself=
  95 case $0 in #((
  96   *[\\/]* ) as_myself=$0 ;;
  97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98 for as_dir in $PATH
  99 do
 100   IFS=$as_save_IFS
 101   test -z "$as_dir" && as_dir=.
 102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 103   done
 104 IFS=$as_save_IFS
 105 
 106      ;;
 107 esac
 108 # We did not find ourselves, most probably we were run as `sh COMMAND'
 109 # in which case we are not to be found in the path.
 110 if test "x$as_myself" = x; then
 111   as_myself=$0
 112 fi
 113 if test ! -f "$as_myself"; then
 114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2


 200   CONFIG_SHELL=$as_shell as_have_required=yes
 201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 202   break 2
 203 fi
 204 fi
 205            done;;
 206        esac
 207   as_found=false
 208 done
 209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 211   CONFIG_SHELL=$SHELL as_have_required=yes
 212 fi; }
 213 IFS=$as_save_IFS
 214 
 215 
 216       if test "x$CONFIG_SHELL" != x; then :
 217   # We cannot yet assume a decent shell, so we have to provide a
 218         # neutralization value for shells without unset; and this also
 219         # works around shells that cannot unset nonexistent variables.
 220         # Preserve -v and -x to the replacement shell.
 221         BASH_ENV=/dev/null
 222         ENV=/dev/null
 223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 224         export CONFIG_SHELL
 225         case $- in # ((((
 226           *v*x* | *x*v* ) as_opts=-vx ;;
 227           *v* ) as_opts=-v ;;
 228           *x* ) as_opts=-x ;;
 229           * ) as_opts= ;;
 230         esac
 231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
 232 fi
 233 
 234     if test x$as_have_required = xno; then :
 235   $as_echo "$0: This script requires a shell more modern than all"
 236   $as_echo "$0: the shells that I found on your system."
 237   if test x${ZSH_VERSION+set} = xset ; then
 238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 240   else
 241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 242 $0: build-dev@openjdk.java.net about your system, including
 243 $0: any error possibly output before this message. Then
 244 $0: install a modern shell, or manually run the script
 245 $0: under such a shell if you do have one."
 246   fi
 247   exit 1
 248 fi
 249 fi
 250 fi
 251 SHELL=${CONFIG_SHELL-/bin/sh}


 618 LIBCXX
 619 LLVM_LIBS
 620 LLVM_LDFLAGS
 621 LLVM_CFLAGS
 622 LLVM_CONFIG
 623 LIBFFI_LIBS
 624 LIBFFI_CFLAGS
 625 STATIC_CXX_SETTING
 626 LIBDL
 627 LIBM
 628 LIBZIP_CAN_USE_MMAP
 629 USE_EXTERNAL_LIBZ
 630 USE_EXTERNAL_LIBGIF
 631 USE_EXTERNAL_LIBJPEG
 632 ALSA_LIBS
 633 ALSA_CFLAGS
 634 FREETYPE2_LIB_PATH
 635 USING_SYSTEM_FT_LIB
 636 FREETYPE2_LIBS
 637 FREETYPE2_CFLAGS
 638 USE_EXTERNAL_ICU_LE
 639 ICU_LE_LIBS
 640 ICU_LE_CFLAGS
 641 CUPS_CFLAGS
 642 OPENWIN_HOME
 643 X_EXTRA_LIBS
 644 X_LIBS
 645 X_PRE_LIBS
 646 X_CFLAGS
 647 XMKMF
 648 CXXFLAGS_DEBUG_SYMBOLS
 649 CFLAGS_DEBUG_SYMBOLS
 650 ZIP_DEBUGINFO_FILES
 651 ENABLE_DEBUG_SYMBOLS
 652 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 653 ZERO_ARCHFLAG
 654 LDFLAGS_CXX_JDK
 655 LDFLAGS_JDKEXE_SUFFIX
 656 LDFLAGS_JDKLIB_SUFFIX
 657 LDFLAGS_JDKEXE
 658 LDFLAGS_JDKLIB
 659 CXXFLAGS_JDKEXE
 660 CXXFLAGS_JDKLIB


1011 with_override_corba
1012 with_override_jaxp
1013 with_override_jaxws
1014 with_override_hotspot
1015 with_override_jdk
1016 with_import_hotspot
1017 with_msvcr_dll
1018 with_dxsdk
1019 with_dxsdk_lib
1020 with_dxsdk_include
1021 with_jtreg
1022 with_extra_cflags
1023 with_extra_cxxflags
1024 with_extra_ldflags
1025 enable_debug_symbols
1026 enable_zip_debug_info
1027 enable_macosx_runtime_support
1028 with_x
1029 with_cups
1030 with_cups_include
1031 with_icu_le
1032 with_freetype
1033 with_alsa
1034 with_alsa_include
1035 with_alsa_lib
1036 with_giflib
1037 with_zlib
1038 with_stdc__lib
1039 with_num_cores
1040 with_memory_size
1041 with_jobs
1042 with_sjavac_server_java
1043 enable_sjavac
1044 enable_precompiled_headers
1045 enable_ccache
1046 with_ccache_dir
1047 '
1048       ac_precious_vars='build_alias
1049 host_alias
1050 target_alias
1051 PKG_CONFIG
1052 CC
1053 CFLAGS
1054 LDFLAGS
1055 LIBS
1056 CPPFLAGS
1057 CXX
1058 CXXFLAGS
1059 CCC
1060 OBJC
1061 OBJCFLAGS
1062 CPP
1063 CXXCPP
1064 XMKMF
1065 ICU_LE_CFLAGS
1066 ICU_LE_LIBS
1067 FREETYPE2_CFLAGS
1068 FREETYPE2_LIBS
1069 ALSA_CFLAGS
1070 ALSA_LIBS
1071 LIBFFI_CFLAGS
1072 LIBFFI_LIBS'
1073 
1074 
1075 # Initialize some variables set by options.
1076 ac_init_help=
1077 ac_init_version=false
1078 ac_unrecognized_opts=
1079 ac_unrecognized_sep=
1080 # The variables have the same names as the options, with
1081 # dashes changed to underlines.
1082 cache_file=/dev/null
1083 exec_prefix=NONE
1084 no_create=
1085 no_recursion=
1086 prefix=NONE


1457 
1458   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1459 Try \`$0 --help' for more information"
1460     ;;
1461 
1462   *=*)
1463     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1464     # Reject names that are not valid shell variable names.
1465     case $ac_envvar in #(
1466       '' | [0-9]* | *[!_$as_cr_alnum]* )
1467       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1468     esac
1469     eval $ac_envvar=\$ac_optarg
1470     export $ac_envvar ;;
1471 
1472   *)
1473     # FIXME: should be removed in autoconf 3.0.
1474     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1475     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1476       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1477     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1478     ;;
1479 
1480   esac
1481 done
1482 
1483 if test -n "$ac_prev"; then
1484   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1485   as_fn_error $? "missing argument to $ac_option"
1486 fi
1487 
1488 if test -n "$ac_unrecognized_opts"; then
1489   case $enable_option_checking in
1490     no) ;;
1491     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1492     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1493   esac
1494 fi
1495 
1496 # Check all directory arguments for consistency.
1497 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \


1772   --with-override-hotspot use this hotspot dir for the build
1773   --with-override-jdk     use this jdk dir for the build
1774   --with-import-hotspot   import hotspot binaries from this jdk image or
1775                           hotspot build dist dir instead of building from
1776                           source
1777   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1778                           only) [probed]
1779   --with-dxsdk            the DirectX SDK (Windows only) [probed]
1780   --with-dxsdk-lib        the DirectX SDK lib directory (Windows only)
1781                           [probed]
1782   --with-dxsdk-include    the DirectX SDK include directory (Windows only)
1783                           [probed]
1784   --with-jtreg            Regression Test Harness [probed]
1785   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1786   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1787   --with-extra-ldflags    extra flags to be used when linking jdk
1788   --with-x                use the X Window System
1789   --with-cups             specify prefix directory for the cups package
1790                           (expecting the headers under PATH/include)
1791   --with-cups-include     specify directory for the cups include files
1792   --with-icu-le           use icu-le from build system or OpenJDK source
1793                           (system, bundled) [bundled]
1794   --with-freetype         specify prefix directory for the freetype2 package
1795                           (expecting the libraries under PATH/lib and the
1796                           headers under PATH/include)
1797   --with-alsa             specify prefix directory for the alsa package
1798                           (expecting the libraries under PATH/lib and the
1799                           headers under PATH/include)
1800   --with-alsa-include     specify directory for the alsa include files
1801   --with-alsa-lib         specify directory for the alsa library
1802   --with-giflib           use giflib from build system or OpenJDK source
1803                           (system, bundled) [bundled]
1804   --with-zlib             use zlib from build system or OpenJDK source
1805                           (system, bundled) [bundled]
1806   --with-stdc++lib=<static>,<dynamic>,<default>
1807                           force linking of the C++ runtime on Linux to either
1808                           static or dynamic, default is static with dynamic as
1809                           fallback
1810   --with-num-cores        number of cores in the build system, e.g.
1811                           --with-num-cores=8 [probed]
1812   --with-memory-size      memory (in MB) available in the build system, e.g.
1813                           --with-memory-size=1024 [probed]


1817                           use this java binary for running the sjavac
1818                           background server [Boot JDK java]
1819   --with-ccache-dir       where to store ccache files [~/.ccache]
1820 
1821 Some influential environment variables:
1822   PKG_CONFIG  path to pkg-config utility
1823   CC          C compiler command
1824   CFLAGS      C compiler flags
1825   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1826               nonstandard directory <lib dir>
1827   LIBS        libraries to pass to the linker, e.g. -l<library>
1828   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1829               you have headers in a nonstandard directory <include dir>
1830   CXX         C++ compiler command
1831   CXXFLAGS    C++ compiler flags
1832   OBJC        Objective C compiler command
1833   OBJCFLAGS   Objective C compiler flags
1834   CPP         C preprocessor
1835   CXXCPP      C++ preprocessor
1836   XMKMF       Path to xmkmf, Makefile generator for X Window System
1837   ICU_LE_CFLAGS
1838               C compiler flags for ICU_LE, overriding pkg-config
1839   ICU_LE_LIBS linker flags for ICU_LE, overriding pkg-config
1840   FREETYPE2_CFLAGS
1841               C compiler flags for FREETYPE2, overriding pkg-config
1842   FREETYPE2_LIBS
1843               linker flags for FREETYPE2, overriding pkg-config
1844   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1845   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
1846   LIBFFI_CFLAGS
1847               C compiler flags for LIBFFI, overriding pkg-config
1848   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1849 
1850 Use these variables to override the choices made by `configure' or to help
1851 it to find libraries and programs with nonstandard names/locations.
1852 
1853 Report bugs to <build-dev@openjdk.java.net>.
1854 OpenJDK home page: <http://openjdk.java.net>.
1855 _ACEOF
1856 ac_status=$?
1857 fi
1858 
1859 if test "$ac_init_help" = "recursive"; then


1898 
1899     cd "$ac_dir" || { ac_status=$?; continue; }
1900     # Check for guested configure.
1901     if test -f "$ac_srcdir/configure.gnu"; then
1902       echo &&
1903       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1904     elif test -f "$ac_srcdir/configure"; then
1905       echo &&
1906       $SHELL "$ac_srcdir/configure" --help=recursive
1907     else
1908       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1909     fi || ac_status=$?
1910     cd "$ac_pwd" || { ac_status=$?; break; }
1911   done
1912 fi
1913 
1914 test -n "$ac_init_help" && exit $ac_status
1915 if $ac_init_version; then
1916   cat <<\_ACEOF
1917 OpenJDK configure jdk8
1918 generated by GNU Autoconf 2.68
1919 
1920 Copyright (C) 2010 Free Software Foundation, Inc.
1921 This configure script is free software; the Free Software Foundation
1922 gives unlimited permission to copy, distribute and modify it.
1923 _ACEOF
1924   exit
1925 fi
1926 
1927 ## ------------------------ ##
1928 ## Autoconf initialization. ##
1929 ## ------------------------ ##
1930 
1931 # ac_fn_c_try_compile LINENO
1932 # --------------------------
1933 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_c_try_compile ()
1935 {
1936   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937   rm -f conftest.$ac_objext
1938   if { { ac_try="$ac_compile"


1944 $as_echo "$ac_try_echo"; } >&5
1945   (eval "$ac_compile") 2>conftest.err
1946   ac_status=$?
1947   if test -s conftest.err; then
1948     grep -v '^ *+' conftest.err >conftest.er1
1949     cat conftest.er1 >&5
1950     mv -f conftest.er1 conftest.err
1951   fi
1952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953   test $ac_status = 0; } && {
1954          test -z "$ac_c_werror_flag" ||
1955          test ! -s conftest.err
1956        } && test -s conftest.$ac_objext; then :
1957   ac_retval=0
1958 else
1959   $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961 
1962         ac_retval=1
1963 fi
1964   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965   as_fn_set_status $ac_retval
1966 
1967 } # ac_fn_c_try_compile
1968 
1969 # ac_fn_cxx_try_compile LINENO
1970 # ----------------------------
1971 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1972 ac_fn_cxx_try_compile ()
1973 {
1974   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975   rm -f conftest.$ac_objext
1976   if { { ac_try="$ac_compile"
1977 case "(($ac_try" in
1978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979   *) ac_try_echo=$ac_try;;
1980 esac
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 $as_echo "$ac_try_echo"; } >&5
1983   (eval "$ac_compile") 2>conftest.err
1984   ac_status=$?
1985   if test -s conftest.err; then
1986     grep -v '^ *+' conftest.err >conftest.er1
1987     cat conftest.er1 >&5
1988     mv -f conftest.er1 conftest.err
1989   fi
1990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991   test $ac_status = 0; } && {
1992          test -z "$ac_cxx_werror_flag" ||
1993          test ! -s conftest.err
1994        } && test -s conftest.$ac_objext; then :
1995   ac_retval=0
1996 else
1997   $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
1999 
2000         ac_retval=1
2001 fi
2002   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003   as_fn_set_status $ac_retval
2004 
2005 } # ac_fn_cxx_try_compile
2006 
2007 # ac_fn_objc_try_compile LINENO
2008 # -----------------------------
2009 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2010 ac_fn_objc_try_compile ()
2011 {
2012   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013   rm -f conftest.$ac_objext
2014   if { { ac_try="$ac_compile"
2015 case "(($ac_try" in
2016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017   *) ac_try_echo=$ac_try;;
2018 esac
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021   (eval "$ac_compile") 2>conftest.err
2022   ac_status=$?
2023   if test -s conftest.err; then
2024     grep -v '^ *+' conftest.err >conftest.er1
2025     cat conftest.er1 >&5
2026     mv -f conftest.er1 conftest.err
2027   fi
2028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029   test $ac_status = 0; } && {
2030          test -z "$ac_objc_werror_flag" ||
2031          test ! -s conftest.err
2032        } && test -s conftest.$ac_objext; then :
2033   ac_retval=0
2034 else
2035   $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2037 
2038         ac_retval=1
2039 fi
2040   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041   as_fn_set_status $ac_retval
2042 
2043 } # ac_fn_objc_try_compile
2044 
2045 # ac_fn_c_try_cpp LINENO
2046 # ----------------------
2047 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2048 ac_fn_c_try_cpp ()
2049 {
2050   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051   if { { ac_try="$ac_cpp conftest.$ac_ext"
2052 case "(($ac_try" in
2053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054   *) ac_try_echo=$ac_try;;
2055 esac
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2059   ac_status=$?
2060   if test -s conftest.err; then
2061     grep -v '^ *+' conftest.err >conftest.er1
2062     cat conftest.er1 >&5
2063     mv -f conftest.er1 conftest.err
2064   fi
2065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066   test $ac_status = 0; } > conftest.i && {
2067          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2068          test ! -s conftest.err
2069        }; then :
2070   ac_retval=0
2071 else
2072   $as_echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2074 
2075     ac_retval=1
2076 fi
2077   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078   as_fn_set_status $ac_retval
2079 
2080 } # ac_fn_c_try_cpp
2081 
2082 # ac_fn_cxx_try_cpp LINENO
2083 # ------------------------
2084 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2085 ac_fn_cxx_try_cpp ()
2086 {
2087   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088   if { { ac_try="$ac_cpp conftest.$ac_ext"
2089 case "(($ac_try" in
2090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091   *) ac_try_echo=$ac_try;;
2092 esac
2093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094 $as_echo "$ac_try_echo"; } >&5
2095   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2096   ac_status=$?
2097   if test -s conftest.err; then
2098     grep -v '^ *+' conftest.err >conftest.er1
2099     cat conftest.er1 >&5
2100     mv -f conftest.er1 conftest.err
2101   fi
2102   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2103   test $ac_status = 0; } > conftest.i && {
2104          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2105          test ! -s conftest.err
2106        }; then :
2107   ac_retval=0
2108 else
2109   $as_echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2111 
2112     ac_retval=1
2113 fi
2114   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115   as_fn_set_status $ac_retval
2116 
2117 } # ac_fn_cxx_try_cpp
2118 
2119 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2120 # ---------------------------------------------------------
2121 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2122 # the include files in INCLUDES and setting the cache variable VAR
2123 # accordingly.
2124 ac_fn_cxx_check_header_mongrel ()
2125 {
2126   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127   if eval \${$3+:} false; then :
2128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if eval \${$3+:} false; then :
2131   $as_echo_n "(cached) " >&6
2132 fi
2133 eval ac_res=\$$3
2134                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 else
2137   # Is the header compilable?
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2139 $as_echo_n "checking $2 usability... " >&6; }
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h.  */
2142 $4
2143 #include <$2>
2144 _ACEOF
2145 if ac_fn_cxx_try_compile "$LINENO"; then :
2146   ac_header_compiler=yes
2147 else
2148   ac_header_compiler=no
2149 fi
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


2177     ;;
2178   no:yes:* )
2179     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2180 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2181     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2182 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2183     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2184 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2185     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2186 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2187     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2188 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2189 ( $as_echo "## ----------------------------------------- ##
2190 ## Report this to build-dev@openjdk.java.net ##
2191 ## ----------------------------------------- ##"
2192      ) | sed "s/^/$as_me: WARNING:     /" >&2
2193     ;;
2194 esac
2195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196 $as_echo_n "checking for $2... " >&6; }
2197 if eval \${$3+:} false; then :
2198   $as_echo_n "(cached) " >&6
2199 else
2200   eval "$3=\$ac_header_compiler"
2201 fi
2202 eval ac_res=\$$3
2203                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 $as_echo "$ac_res" >&6; }
2205 fi
2206   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 
2208 } # ac_fn_cxx_check_header_mongrel
2209 
2210 # ac_fn_cxx_try_run LINENO
2211 # ------------------------
2212 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2213 # that executables *can* be run.
2214 ac_fn_cxx_try_run ()
2215 {
2216   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217   if { { ac_try="$ac_link"
2218 case "(($ac_try" in
2219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220   *) ac_try_echo=$ac_try;;
2221 esac
2222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223 $as_echo "$ac_try_echo"; } >&5
2224   (eval "$ac_link") 2>&5
2225   ac_status=$?
2226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2228   { { case "(($ac_try" in
2229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230   *) ac_try_echo=$ac_try;;
2231 esac
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 $as_echo "$ac_try_echo"; } >&5
2234   (eval "$ac_try") 2>&5
2235   ac_status=$?
2236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237   test $ac_status = 0; }; }; then :
2238   ac_retval=0
2239 else
2240   $as_echo "$as_me: program exited with status $ac_status" >&5
2241        $as_echo "$as_me: failed program was:" >&5
2242 sed 's/^/| /' conftest.$ac_ext >&5
2243 
2244        ac_retval=$ac_status
2245 fi
2246   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2247   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248   as_fn_set_status $ac_retval
2249 
2250 } # ac_fn_cxx_try_run
2251 
2252 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2253 # ---------------------------------------------------------
2254 # Tests whether HEADER exists and can be compiled using the include files in
2255 # INCLUDES, setting the cache variable VAR accordingly.
2256 ac_fn_cxx_check_header_compile ()
2257 {
2258   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2260 $as_echo_n "checking for $2... " >&6; }
2261 if eval \${$3+:} false; then :
2262   $as_echo_n "(cached) " >&6
2263 else
2264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h.  */
2266 $4
2267 #include <$2>
2268 _ACEOF
2269 if ac_fn_cxx_try_compile "$LINENO"; then :
2270   eval "$3=yes"
2271 else
2272   eval "$3=no"
2273 fi
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 fi
2276 eval ac_res=\$$3
2277                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2279   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 
2281 } # ac_fn_cxx_check_header_compile
2282 
2283 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2284 # ----------------------------------------------
2285 # Tries to find the compile-time value of EXPR in a program that includes
2286 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2287 # computed
2288 ac_fn_cxx_compute_int ()
2289 {
2290   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291   if test "$cross_compiling" = yes; then
2292     # Depending upon the size, compute the lo and hi bounds.
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h.  */
2295 $4
2296 int
2297 main ()
2298 {
2299 static int test_array [1 - 2 * !(($2) >= 0)];


2436       fprintf (f, "%lu", i);
2437     }
2438   /* Do not output a trailing newline, as this causes \r\n confusion
2439      on some platforms.  */
2440   return ferror (f) || fclose (f) != 0;
2441 
2442   ;
2443   return 0;
2444 }
2445 _ACEOF
2446 if ac_fn_cxx_try_run "$LINENO"; then :
2447   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2448 else
2449   ac_retval=1
2450 fi
2451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2452   conftest.$ac_objext conftest.beam conftest.$ac_ext
2453 rm -f conftest.val
2454 
2455   fi
2456   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2457   as_fn_set_status $ac_retval
2458 
2459 } # ac_fn_cxx_compute_int
2460 
2461 # ac_fn_cxx_try_link LINENO
2462 # -------------------------
2463 # Try to link conftest.$ac_ext, and return whether this succeeded.
2464 ac_fn_cxx_try_link ()
2465 {
2466   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467   rm -f conftest.$ac_objext conftest$ac_exeext
2468   if { { ac_try="$ac_link"
2469 case "(($ac_try" in
2470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471   *) ac_try_echo=$ac_try;;
2472 esac
2473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2474 $as_echo "$ac_try_echo"; } >&5
2475   (eval "$ac_link") 2>conftest.err
2476   ac_status=$?


2482   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2483   test $ac_status = 0; } && {
2484          test -z "$ac_cxx_werror_flag" ||
2485          test ! -s conftest.err
2486        } && test -s conftest$ac_exeext && {
2487          test "$cross_compiling" = yes ||
2488          $as_test_x conftest$ac_exeext
2489        }; then :
2490   ac_retval=0
2491 else
2492   $as_echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494 
2495         ac_retval=1
2496 fi
2497   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2498   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2499   # interfere with the next link command; also delete a directory that is
2500   # left behind by Apple's compiler.  We do this before executing the actions.
2501   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2502   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2503   as_fn_set_status $ac_retval
2504 
2505 } # ac_fn_cxx_try_link
2506 
2507 # ac_fn_cxx_check_func LINENO FUNC VAR
2508 # ------------------------------------
2509 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2510 ac_fn_cxx_check_func ()
2511 {
2512   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2514 $as_echo_n "checking for $2... " >&6; }
2515 if eval \${$3+:} false; then :
2516   $as_echo_n "(cached) " >&6
2517 else
2518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h.  */
2520 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2522 #define $2 innocuous_$2
2523 
2524 /* System header to define __stub macros and hopefully few prototypes,
2525     which can conflict with char $2 (); below.
2526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2527     <limits.h> exists even on freestanding compilers.  */
2528 
2529 #ifdef __STDC__
2530 # include <limits.h>
2531 #else
2532 # include <assert.h>
2533 #endif
2534 
2535 #undef $2


2550 
2551 int
2552 main ()
2553 {
2554 return $2 ();
2555   ;
2556   return 0;
2557 }
2558 _ACEOF
2559 if ac_fn_cxx_try_link "$LINENO"; then :
2560   eval "$3=yes"
2561 else
2562   eval "$3=no"
2563 fi
2564 rm -f core conftest.err conftest.$ac_objext \
2565     conftest$ac_exeext conftest.$ac_ext
2566 fi
2567 eval ac_res=\$$3
2568                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2569 $as_echo "$ac_res" >&6; }
2570   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2571 
2572 } # ac_fn_cxx_check_func
2573 
2574 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2575 # -------------------------------------------------------
2576 # Tests whether HEADER exists and can be compiled using the include files in
2577 # INCLUDES, setting the cache variable VAR accordingly.
2578 ac_fn_c_check_header_compile ()
2579 {
2580   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2582 $as_echo_n "checking for $2... " >&6; }
2583 if eval \${$3+:} false; then :
2584   $as_echo_n "(cached) " >&6
2585 else
2586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587 /* end confdefs.h.  */
2588 $4
2589 #include <$2>
2590 _ACEOF
2591 if ac_fn_c_try_compile "$LINENO"; then :
2592   eval "$3=yes"
2593 else
2594   eval "$3=no"
2595 fi
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 fi
2598 eval ac_res=\$$3
2599                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2600 $as_echo "$ac_res" >&6; }
2601   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2602 
2603 } # ac_fn_c_check_header_compile
2604 cat >config.log <<_ACEOF
2605 This file contains any messages produced by compilers while
2606 running configure, to aid debugging if configure makes a mistake.
2607 
2608 It was created by OpenJDK $as_me jdk8, which was
2609 generated by GNU Autoconf 2.68.  Invocation command line was
2610 
2611   $ $0 $@
2612 
2613 _ACEOF
2614 exec 5>>config.log
2615 {
2616 cat <<_ASUNAME
2617 ## --------- ##
2618 ## Platform. ##
2619 ## --------- ##
2620 
2621 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2622 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2623 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2624 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2625 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2626 
2627 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2628 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2629 


2847     *)   ac_site_file1=./$CONFIG_SITE;;
2848   esac
2849 elif test "x$prefix" != xNONE; then
2850   ac_site_file1=$prefix/share/config.site
2851   ac_site_file2=$prefix/etc/config.site
2852 else
2853   ac_site_file1=$ac_default_prefix/share/config.site
2854   ac_site_file2=$ac_default_prefix/etc/config.site
2855 fi
2856 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2857 do
2858   test "x$ac_site_file" = xNONE && continue
2859   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2860     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2861 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2862     sed 's/^/| /' "$ac_site_file" >&5
2863     . "$ac_site_file" \
2864       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2866 as_fn_error $? "failed to load site script $ac_site_file
2867 See \`config.log' for more details" "$LINENO" 5; }
2868   fi
2869 done
2870 
2871 if test -r "$cache_file"; then
2872   # Some versions of bash will fail to source /dev/null (special files
2873   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2874   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2875     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2876 $as_echo "$as_me: loading cache $cache_file" >&6;}
2877     case $cache_file in
2878       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2879       *)                      . "./$cache_file";;
2880     esac
2881   fi
2882 else
2883   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2884 $as_echo "$as_me: creating cache $cache_file" >&6;}
2885   >$cache_file
2886 fi
2887 


3576 #
3577 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3578 # or visit www.oracle.com if you need additional information or have any
3579 # questions.
3580 #
3581 
3582 
3583 
3584 
3585 
3586 
3587 
3588 
3589 
3590 
3591 
3592 
3593 
3594 
3595 
3596 
3597 
3598 #
3599 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3600 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3601 #
3602 # This code is free software; you can redistribute it and/or modify it
3603 # under the terms of the GNU General Public License version 2 only, as
3604 # published by the Free Software Foundation.  Oracle designates this
3605 # particular file as subject to the "Classpath" exception as provided
3606 # by Oracle in the LICENSE file that accompanied this code.
3607 #
3608 # This code is distributed in the hope that it will be useful, but WITHOUT
3609 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3610 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3611 # version 2 for more details (a copy is included in the LICENSE file that
3612 # accompanied this code).
3613 #
3614 # You should have received a copy of the GNU General Public License version
3615 # 2 along with this work; if not, write to the Free Software Foundation,
3616 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3617 #


3786 
3787 # Check if the VS env variables were setup prior to running configure.
3788 # If not, then find vcvarsall.bat and run it automatically, and integrate
3789 # the set env variables into the spec file.
3790 
3791 
3792 
3793 # Setup the DXSDK paths
3794 
3795 
3796 
3797 
3798 
3799 
3800 # This line needs to be here, verbatim, after all includes and the dummy hook
3801 # definitions. It is replaced with custom functionality when building
3802 # custom sources.
3803 #CUSTOM_AUTOCONF_INCLUDE
3804 
3805 # Do not change or remove the following line, it is needed for consistency checks:
3806 DATE_WHEN_GENERATED=1370373382
3807 
3808 ###############################################################################
3809 #
3810 # Initialization / Boot-strapping
3811 #
3812 # The bootstrapping process needs to solve the "chicken or the egg" problem,
3813 # thus it jumps back and forth, each time gaining something needed later on.
3814 #
3815 ###############################################################################
3816 
3817 # Basic initialization that must happen first of all
3818 
3819 # Save the original command line. This is passed to us by the wrapper configure script.
3820 
3821 DATE_WHEN_CONFIGURED=`LANG=C date`
3822 
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
3824 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
3826 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
3827 
3828 
3829 
3830 # Start with tools that do not need have cross compilation support
3831 # and can be expected to be found in the default PATH. These tools are
3832 # used by configure. Nor are these tools expected to be found in the
3833 # devkit from the builddeps server either, since they are
3834 # needed to download the devkit.
3835 
3836 # First are all the simple required tools.
3837 
3838     for ac_prog in basename
3839 do
3840   # Extract the first word of "$ac_prog", so it can be a program name with args.
3841 set dummy $ac_prog; ac_word=$2
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843 $as_echo_n "checking for $ac_word... " >&6; }
3844 if ${ac_cv_path_BASENAME+:} false; then :
3845   $as_echo_n "(cached) " >&6
3846 else
3847   case $BASENAME in
3848   [\\/]* | ?:[\\/]*)
3849   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
3850   ;;
3851   *)
3852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3854 do
3855   IFS=$as_save_IFS
3856   test -z "$as_dir" && as_dir=.
3857     for ac_exec_ext in '' $ac_executable_extensions; do
3858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3859     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
3860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861     break 2
3862   fi
3863 done
3864   done


3883 
3884     if test "x$BASENAME" = x; then
3885         if test "xbasename" = x; then
3886           PROG_NAME=basename
3887         else
3888           PROG_NAME=basename
3889         fi
3890         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3891 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3892         as_fn_error $? "Cannot continue" "$LINENO" 5
3893     fi
3894 
3895 
3896 
3897     for ac_prog in bash
3898 do
3899   # Extract the first word of "$ac_prog", so it can be a program name with args.
3900 set dummy $ac_prog; ac_word=$2
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 $as_echo_n "checking for $ac_word... " >&6; }
3903 if ${ac_cv_path_BASH+:} false; then :
3904   $as_echo_n "(cached) " >&6
3905 else
3906   case $BASH in
3907   [\\/]* | ?:[\\/]*)
3908   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3909   ;;
3910   *)
3911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3913 do
3914   IFS=$as_save_IFS
3915   test -z "$as_dir" && as_dir=.
3916     for ac_exec_ext in '' $ac_executable_extensions; do
3917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3918     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920     break 2
3921   fi
3922 done
3923   done


3942 
3943     if test "x$BASH" = x; then
3944         if test "xbash" = x; then
3945           PROG_NAME=bash
3946         else
3947           PROG_NAME=bash
3948         fi
3949         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3950 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3951         as_fn_error $? "Cannot continue" "$LINENO" 5
3952     fi
3953 
3954 
3955 
3956     for ac_prog in cat
3957 do
3958   # Extract the first word of "$ac_prog", so it can be a program name with args.
3959 set dummy $ac_prog; ac_word=$2
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961 $as_echo_n "checking for $ac_word... " >&6; }
3962 if ${ac_cv_path_CAT+:} false; then :
3963   $as_echo_n "(cached) " >&6
3964 else
3965   case $CAT in
3966   [\\/]* | ?:[\\/]*)
3967   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3968   ;;
3969   *)
3970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3972 do
3973   IFS=$as_save_IFS
3974   test -z "$as_dir" && as_dir=.
3975     for ac_exec_ext in '' $ac_executable_extensions; do
3976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3977     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979     break 2
3980   fi
3981 done
3982   done


4001 
4002     if test "x$CAT" = x; then
4003         if test "xcat" = x; then
4004           PROG_NAME=cat
4005         else
4006           PROG_NAME=cat
4007         fi
4008         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4009 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4010         as_fn_error $? "Cannot continue" "$LINENO" 5
4011     fi
4012 
4013 
4014 
4015     for ac_prog in chmod
4016 do
4017   # Extract the first word of "$ac_prog", so it can be a program name with args.
4018 set dummy $ac_prog; ac_word=$2
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020 $as_echo_n "checking for $ac_word... " >&6; }
4021 if ${ac_cv_path_CHMOD+:} false; then :
4022   $as_echo_n "(cached) " >&6
4023 else
4024   case $CHMOD in
4025   [\\/]* | ?:[\\/]*)
4026   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4027   ;;
4028   *)
4029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032   IFS=$as_save_IFS
4033   test -z "$as_dir" && as_dir=.
4034     for ac_exec_ext in '' $ac_executable_extensions; do
4035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4036     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4038     break 2
4039   fi
4040 done
4041   done


4060 
4061     if test "x$CHMOD" = x; then
4062         if test "xchmod" = x; then
4063           PROG_NAME=chmod
4064         else
4065           PROG_NAME=chmod
4066         fi
4067         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4068 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4069         as_fn_error $? "Cannot continue" "$LINENO" 5
4070     fi
4071 
4072 
4073 
4074     for ac_prog in cmp
4075 do
4076   # Extract the first word of "$ac_prog", so it can be a program name with args.
4077 set dummy $ac_prog; ac_word=$2
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 $as_echo_n "checking for $ac_word... " >&6; }
4080 if ${ac_cv_path_CMP+:} false; then :
4081   $as_echo_n "(cached) " >&6
4082 else
4083   case $CMP in
4084   [\\/]* | ?:[\\/]*)
4085   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4086   ;;
4087   *)
4088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4090 do
4091   IFS=$as_save_IFS
4092   test -z "$as_dir" && as_dir=.
4093     for ac_exec_ext in '' $ac_executable_extensions; do
4094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4095     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097     break 2
4098   fi
4099 done
4100   done


4119 
4120     if test "x$CMP" = x; then
4121         if test "xcmp" = x; then
4122           PROG_NAME=cmp
4123         else
4124           PROG_NAME=cmp
4125         fi
4126         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4127 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4128         as_fn_error $? "Cannot continue" "$LINENO" 5
4129     fi
4130 
4131 
4132 
4133     for ac_prog in comm
4134 do
4135   # Extract the first word of "$ac_prog", so it can be a program name with args.
4136 set dummy $ac_prog; ac_word=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if ${ac_cv_path_COMM+:} false; then :
4140   $as_echo_n "(cached) " >&6
4141 else
4142   case $COMM in
4143   [\\/]* | ?:[\\/]*)
4144   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
4145   ;;
4146   *)
4147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150   IFS=$as_save_IFS
4151   test -z "$as_dir" && as_dir=.
4152     for ac_exec_ext in '' $ac_executable_extensions; do
4153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
4155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156     break 2
4157   fi
4158 done
4159   done


4178 
4179     if test "x$COMM" = x; then
4180         if test "xcomm" = x; then
4181           PROG_NAME=comm
4182         else
4183           PROG_NAME=comm
4184         fi
4185         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4186 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4187         as_fn_error $? "Cannot continue" "$LINENO" 5
4188     fi
4189 
4190 
4191 
4192     for ac_prog in cp
4193 do
4194   # Extract the first word of "$ac_prog", so it can be a program name with args.
4195 set dummy $ac_prog; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_path_CP+:} false; then :
4199   $as_echo_n "(cached) " >&6
4200 else
4201   case $CP in
4202   [\\/]* | ?:[\\/]*)
4203   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4204   ;;
4205   *)
4206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211     for ac_exec_ext in '' $ac_executable_extensions; do
4212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218   done


4237 
4238     if test "x$CP" = x; then
4239         if test "xcp" = x; then
4240           PROG_NAME=cp
4241         else
4242           PROG_NAME=cp
4243         fi
4244         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4245 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4246         as_fn_error $? "Cannot continue" "$LINENO" 5
4247     fi
4248 
4249 
4250 
4251     for ac_prog in cpio
4252 do
4253   # Extract the first word of "$ac_prog", so it can be a program name with args.
4254 set dummy $ac_prog; ac_word=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if ${ac_cv_path_CPIO+:} false; then :
4258   $as_echo_n "(cached) " >&6
4259 else
4260   case $CPIO in
4261   [\\/]* | ?:[\\/]*)
4262   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
4263   ;;
4264   *)
4265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268   IFS=$as_save_IFS
4269   test -z "$as_dir" && as_dir=.
4270     for ac_exec_ext in '' $ac_executable_extensions; do
4271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
4273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274     break 2
4275   fi
4276 done
4277   done


4296 
4297     if test "x$CPIO" = x; then
4298         if test "xcpio" = x; then
4299           PROG_NAME=cpio
4300         else
4301           PROG_NAME=cpio
4302         fi
4303         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4304 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4305         as_fn_error $? "Cannot continue" "$LINENO" 5
4306     fi
4307 
4308 
4309 
4310     for ac_prog in cut
4311 do
4312   # Extract the first word of "$ac_prog", so it can be a program name with args.
4313 set dummy $ac_prog; ac_word=$2
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 $as_echo_n "checking for $ac_word... " >&6; }
4316 if ${ac_cv_path_CUT+:} false; then :
4317   $as_echo_n "(cached) " >&6
4318 else
4319   case $CUT in
4320   [\\/]* | ?:[\\/]*)
4321   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
4322   ;;
4323   *)
4324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327   IFS=$as_save_IFS
4328   test -z "$as_dir" && as_dir=.
4329     for ac_exec_ext in '' $ac_executable_extensions; do
4330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
4332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333     break 2
4334   fi
4335 done
4336   done


4355 
4356     if test "x$CUT" = x; then
4357         if test "xcut" = x; then
4358           PROG_NAME=cut
4359         else
4360           PROG_NAME=cut
4361         fi
4362         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4363 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4364         as_fn_error $? "Cannot continue" "$LINENO" 5
4365     fi
4366 
4367 
4368 
4369     for ac_prog in date
4370 do
4371   # Extract the first word of "$ac_prog", so it can be a program name with args.
4372 set dummy $ac_prog; ac_word=$2
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4374 $as_echo_n "checking for $ac_word... " >&6; }
4375 if ${ac_cv_path_DATE+:} false; then :
4376   $as_echo_n "(cached) " >&6
4377 else
4378   case $DATE in
4379   [\\/]* | ?:[\\/]*)
4380   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4381   ;;
4382   *)
4383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386   IFS=$as_save_IFS
4387   test -z "$as_dir" && as_dir=.
4388     for ac_exec_ext in '' $ac_executable_extensions; do
4389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392     break 2
4393   fi
4394 done
4395   done


4414 
4415     if test "x$DATE" = x; then
4416         if test "xdate" = x; then
4417           PROG_NAME=date
4418         else
4419           PROG_NAME=date
4420         fi
4421         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4422 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4423         as_fn_error $? "Cannot continue" "$LINENO" 5
4424     fi
4425 
4426 
4427 
4428     for ac_prog in gdiff diff
4429 do
4430   # Extract the first word of "$ac_prog", so it can be a program name with args.
4431 set dummy $ac_prog; ac_word=$2
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if ${ac_cv_path_DIFF+:} false; then :
4435   $as_echo_n "(cached) " >&6
4436 else
4437   case $DIFF in
4438   [\\/]* | ?:[\\/]*)
4439   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
4440   ;;
4441   *)
4442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445   IFS=$as_save_IFS
4446   test -z "$as_dir" && as_dir=.
4447     for ac_exec_ext in '' $ac_executable_extensions; do
4448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
4450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451     break 2
4452   fi
4453 done
4454   done


4473 
4474     if test "x$DIFF" = x; then
4475         if test "xgdiff diff" = x; then
4476           PROG_NAME=diff
4477         else
4478           PROG_NAME=gdiff diff
4479         fi
4480         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4481 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4482         as_fn_error $? "Cannot continue" "$LINENO" 5
4483     fi
4484 
4485 
4486 
4487     for ac_prog in dirname
4488 do
4489   # Extract the first word of "$ac_prog", so it can be a program name with args.
4490 set dummy $ac_prog; ac_word=$2
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4492 $as_echo_n "checking for $ac_word... " >&6; }
4493 if ${ac_cv_path_DIRNAME+:} false; then :
4494   $as_echo_n "(cached) " >&6
4495 else
4496   case $DIRNAME in
4497   [\\/]* | ?:[\\/]*)
4498   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4499   ;;
4500   *)
4501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504   IFS=$as_save_IFS
4505   test -z "$as_dir" && as_dir=.
4506     for ac_exec_ext in '' $ac_executable_extensions; do
4507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4508     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510     break 2
4511   fi
4512 done
4513   done


4532 
4533     if test "x$DIRNAME" = x; then
4534         if test "xdirname" = x; then
4535           PROG_NAME=dirname
4536         else
4537           PROG_NAME=dirname
4538         fi
4539         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4540 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4541         as_fn_error $? "Cannot continue" "$LINENO" 5
4542     fi
4543 
4544 
4545 
4546     for ac_prog in echo
4547 do
4548   # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 set dummy $ac_prog; ac_word=$2
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551 $as_echo_n "checking for $ac_word... " >&6; }
4552 if ${ac_cv_path_ECHO+:} false; then :
4553   $as_echo_n "(cached) " >&6
4554 else
4555   case $ECHO in
4556   [\\/]* | ?:[\\/]*)
4557   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4558   ;;
4559   *)
4560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563   IFS=$as_save_IFS
4564   test -z "$as_dir" && as_dir=.
4565     for ac_exec_ext in '' $ac_executable_extensions; do
4566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569     break 2
4570   fi
4571 done
4572   done


4591 
4592     if test "x$ECHO" = x; then
4593         if test "xecho" = x; then
4594           PROG_NAME=echo
4595         else
4596           PROG_NAME=echo
4597         fi
4598         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4599 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4600         as_fn_error $? "Cannot continue" "$LINENO" 5
4601     fi
4602 
4603 
4604 
4605     for ac_prog in expr
4606 do
4607   # Extract the first word of "$ac_prog", so it can be a program name with args.
4608 set dummy $ac_prog; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if ${ac_cv_path_EXPR+:} false; then :
4612   $as_echo_n "(cached) " >&6
4613 else
4614   case $EXPR in
4615   [\\/]* | ?:[\\/]*)
4616   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
4617   ;;
4618   *)
4619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4621 do
4622   IFS=$as_save_IFS
4623   test -z "$as_dir" && as_dir=.
4624     for ac_exec_ext in '' $ac_executable_extensions; do
4625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
4627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628     break 2
4629   fi
4630 done
4631   done


4650 
4651     if test "x$EXPR" = x; then
4652         if test "xexpr" = x; then
4653           PROG_NAME=expr
4654         else
4655           PROG_NAME=expr
4656         fi
4657         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4658 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4659         as_fn_error $? "Cannot continue" "$LINENO" 5
4660     fi
4661 
4662 
4663 
4664     for ac_prog in file
4665 do
4666   # Extract the first word of "$ac_prog", so it can be a program name with args.
4667 set dummy $ac_prog; ac_word=$2
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4669 $as_echo_n "checking for $ac_word... " >&6; }
4670 if ${ac_cv_path_FILE+:} false; then :
4671   $as_echo_n "(cached) " >&6
4672 else
4673   case $FILE in
4674   [\\/]* | ?:[\\/]*)
4675   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
4676   ;;
4677   *)
4678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681   IFS=$as_save_IFS
4682   test -z "$as_dir" && as_dir=.
4683     for ac_exec_ext in '' $ac_executable_extensions; do
4684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
4686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687     break 2
4688   fi
4689 done
4690   done


4709 
4710     if test "x$FILE" = x; then
4711         if test "xfile" = x; then
4712           PROG_NAME=file
4713         else
4714           PROG_NAME=file
4715         fi
4716         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4717 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4718         as_fn_error $? "Cannot continue" "$LINENO" 5
4719     fi
4720 
4721 
4722 
4723     for ac_prog in find
4724 do
4725   # Extract the first word of "$ac_prog", so it can be a program name with args.
4726 set dummy $ac_prog; ac_word=$2
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if ${ac_cv_path_FIND+:} false; then :
4730   $as_echo_n "(cached) " >&6
4731 else
4732   case $FIND in
4733   [\\/]* | ?:[\\/]*)
4734   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4735   ;;
4736   *)
4737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740   IFS=$as_save_IFS
4741   test -z "$as_dir" && as_dir=.
4742     for ac_exec_ext in '' $ac_executable_extensions; do
4743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746     break 2
4747   fi
4748 done
4749   done


4768 
4769     if test "x$FIND" = x; then
4770         if test "xfind" = x; then
4771           PROG_NAME=find
4772         else
4773           PROG_NAME=find
4774         fi
4775         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4776 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4777         as_fn_error $? "Cannot continue" "$LINENO" 5
4778     fi
4779 
4780 
4781 
4782     for ac_prog in head
4783 do
4784   # Extract the first word of "$ac_prog", so it can be a program name with args.
4785 set dummy $ac_prog; ac_word=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if ${ac_cv_path_HEAD+:} false; then :
4789   $as_echo_n "(cached) " >&6
4790 else
4791   case $HEAD in
4792   [\\/]* | ?:[\\/]*)
4793   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
4794   ;;
4795   *)
4796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4798 do
4799   IFS=$as_save_IFS
4800   test -z "$as_dir" && as_dir=.
4801     for ac_exec_ext in '' $ac_executable_extensions; do
4802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4803     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
4804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805     break 2
4806   fi
4807 done
4808   done


4827 
4828     if test "x$HEAD" = x; then
4829         if test "xhead" = x; then
4830           PROG_NAME=head
4831         else
4832           PROG_NAME=head
4833         fi
4834         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4835 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4836         as_fn_error $? "Cannot continue" "$LINENO" 5
4837     fi
4838 
4839 
4840 
4841     for ac_prog in ln
4842 do
4843   # Extract the first word of "$ac_prog", so it can be a program name with args.
4844 set dummy $ac_prog; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if ${ac_cv_path_LN+:} false; then :
4848   $as_echo_n "(cached) " >&6
4849 else
4850   case $LN in
4851   [\\/]* | ?:[\\/]*)
4852   ac_cv_path_LN="$LN" # Let the user override the test with a path.
4853   ;;
4854   *)
4855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4857 do
4858   IFS=$as_save_IFS
4859   test -z "$as_dir" && as_dir=.
4860     for ac_exec_ext in '' $ac_executable_extensions; do
4861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864     break 2
4865   fi
4866 done
4867   done


4886 
4887     if test "x$LN" = x; then
4888         if test "xln" = x; then
4889           PROG_NAME=ln
4890         else
4891           PROG_NAME=ln
4892         fi
4893         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4894 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4895         as_fn_error $? "Cannot continue" "$LINENO" 5
4896     fi
4897 
4898 
4899 
4900     for ac_prog in ls
4901 do
4902   # Extract the first word of "$ac_prog", so it can be a program name with args.
4903 set dummy $ac_prog; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if ${ac_cv_path_LS+:} false; then :
4907   $as_echo_n "(cached) " >&6
4908 else
4909   case $LS in
4910   [\\/]* | ?:[\\/]*)
4911   ac_cv_path_LS="$LS" # Let the user override the test with a path.
4912   ;;
4913   *)
4914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917   IFS=$as_save_IFS
4918   test -z "$as_dir" && as_dir=.
4919     for ac_exec_ext in '' $ac_executable_extensions; do
4920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
4922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923     break 2
4924   fi
4925 done
4926   done


4945 
4946     if test "x$LS" = x; then
4947         if test "xls" = x; then
4948           PROG_NAME=ls
4949         else
4950           PROG_NAME=ls
4951         fi
4952         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4953 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4954         as_fn_error $? "Cannot continue" "$LINENO" 5
4955     fi
4956 
4957 
4958 
4959     for ac_prog in mkdir
4960 do
4961   # Extract the first word of "$ac_prog", so it can be a program name with args.
4962 set dummy $ac_prog; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_path_MKDIR+:} false; then :
4966   $as_echo_n "(cached) " >&6
4967 else
4968   case $MKDIR in
4969   [\\/]* | ?:[\\/]*)
4970   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4971   ;;
4972   *)
4973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4975 do
4976   IFS=$as_save_IFS
4977   test -z "$as_dir" && as_dir=.
4978     for ac_exec_ext in '' $ac_executable_extensions; do
4979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982     break 2
4983   fi
4984 done
4985   done


5004 
5005     if test "x$MKDIR" = x; then
5006         if test "xmkdir" = x; then
5007           PROG_NAME=mkdir
5008         else
5009           PROG_NAME=mkdir
5010         fi
5011         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5012 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5013         as_fn_error $? "Cannot continue" "$LINENO" 5
5014     fi
5015 
5016 
5017 
5018     for ac_prog in mktemp
5019 do
5020   # Extract the first word of "$ac_prog", so it can be a program name with args.
5021 set dummy $ac_prog; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if ${ac_cv_path_MKTEMP+:} false; then :
5025   $as_echo_n "(cached) " >&6
5026 else
5027   case $MKTEMP in
5028   [\\/]* | ?:[\\/]*)
5029   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5030   ;;
5031   *)
5032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035   IFS=$as_save_IFS
5036   test -z "$as_dir" && as_dir=.
5037     for ac_exec_ext in '' $ac_executable_extensions; do
5038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041     break 2
5042   fi
5043 done
5044   done


5063 
5064     if test "x$MKTEMP" = x; then
5065         if test "xmktemp" = x; then
5066           PROG_NAME=mktemp
5067         else
5068           PROG_NAME=mktemp
5069         fi
5070         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5071 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5072         as_fn_error $? "Cannot continue" "$LINENO" 5
5073     fi
5074 
5075 
5076 
5077     for ac_prog in mv
5078 do
5079   # Extract the first word of "$ac_prog", so it can be a program name with args.
5080 set dummy $ac_prog; ac_word=$2
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if ${ac_cv_path_MV+:} false; then :
5084   $as_echo_n "(cached) " >&6
5085 else
5086   case $MV in
5087   [\\/]* | ?:[\\/]*)
5088   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5089   ;;
5090   *)
5091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5093 do
5094   IFS=$as_save_IFS
5095   test -z "$as_dir" && as_dir=.
5096     for ac_exec_ext in '' $ac_executable_extensions; do
5097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100     break 2
5101   fi
5102 done
5103   done


5122 
5123     if test "x$MV" = x; then
5124         if test "xmv" = x; then
5125           PROG_NAME=mv
5126         else
5127           PROG_NAME=mv
5128         fi
5129         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5130 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5131         as_fn_error $? "Cannot continue" "$LINENO" 5
5132     fi
5133 
5134 
5135 
5136     for ac_prog in printf
5137 do
5138   # Extract the first word of "$ac_prog", so it can be a program name with args.
5139 set dummy $ac_prog; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_path_PRINTF+:} false; then :
5143   $as_echo_n "(cached) " >&6
5144 else
5145   case $PRINTF in
5146   [\\/]* | ?:[\\/]*)
5147   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
5148   ;;
5149   *)
5150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153   IFS=$as_save_IFS
5154   test -z "$as_dir" && as_dir=.
5155     for ac_exec_ext in '' $ac_executable_extensions; do
5156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
5158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159     break 2
5160   fi
5161 done
5162   done


5181 
5182     if test "x$PRINTF" = x; then
5183         if test "xprintf" = x; then
5184           PROG_NAME=printf
5185         else
5186           PROG_NAME=printf
5187         fi
5188         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5189 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5190         as_fn_error $? "Cannot continue" "$LINENO" 5
5191     fi
5192 
5193 
5194 
5195     for ac_prog in rm
5196 do
5197   # Extract the first word of "$ac_prog", so it can be a program name with args.
5198 set dummy $ac_prog; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if ${ac_cv_path_RM+:} false; then :
5202   $as_echo_n "(cached) " >&6
5203 else
5204   case $RM in
5205   [\\/]* | ?:[\\/]*)
5206   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5207   ;;
5208   *)
5209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212   IFS=$as_save_IFS
5213   test -z "$as_dir" && as_dir=.
5214     for ac_exec_ext in '' $ac_executable_extensions; do
5215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5216     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218     break 2
5219   fi
5220 done
5221   done


5240 
5241     if test "x$RM" = x; then
5242         if test "xrm" = x; then
5243           PROG_NAME=rm
5244         else
5245           PROG_NAME=rm
5246         fi
5247         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5248 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5249         as_fn_error $? "Cannot continue" "$LINENO" 5
5250     fi
5251 
5252 
5253 
5254     for ac_prog in sh
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_SH+:} false; then :
5261   $as_echo_n "(cached) " >&6
5262 else
5263   case $SH in
5264   [\\/]* | ?:[\\/]*)
5265   ac_cv_path_SH="$SH" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275     ac_cv_path_SH="$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


5299 
5300     if test "x$SH" = x; then
5301         if test "xsh" = x; then
5302           PROG_NAME=sh
5303         else
5304           PROG_NAME=sh
5305         fi
5306         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5307 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5308         as_fn_error $? "Cannot continue" "$LINENO" 5
5309     fi
5310 
5311 
5312 
5313     for ac_prog in sort
5314 do
5315   # Extract the first word of "$ac_prog", so it can be a program name with args.
5316 set dummy $ac_prog; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if ${ac_cv_path_SORT+:} false; then :
5320   $as_echo_n "(cached) " >&6
5321 else
5322   case $SORT in
5323   [\\/]* | ?:[\\/]*)
5324   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
5325   ;;
5326   *)
5327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5329 do
5330   IFS=$as_save_IFS
5331   test -z "$as_dir" && as_dir=.
5332     for ac_exec_ext in '' $ac_executable_extensions; do
5333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
5335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336     break 2
5337   fi
5338 done
5339   done


5358 
5359     if test "x$SORT" = x; then
5360         if test "xsort" = x; then
5361           PROG_NAME=sort
5362         else
5363           PROG_NAME=sort
5364         fi
5365         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5366 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5367         as_fn_error $? "Cannot continue" "$LINENO" 5
5368     fi
5369 
5370 
5371 
5372     for ac_prog in tail
5373 do
5374   # Extract the first word of "$ac_prog", so it can be a program name with args.
5375 set dummy $ac_prog; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if ${ac_cv_path_TAIL+:} false; then :
5379   $as_echo_n "(cached) " >&6
5380 else
5381   case $TAIL in
5382   [\\/]* | ?:[\\/]*)
5383   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
5384   ;;
5385   *)
5386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5388 do
5389   IFS=$as_save_IFS
5390   test -z "$as_dir" && as_dir=.
5391     for ac_exec_ext in '' $ac_executable_extensions; do
5392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
5394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395     break 2
5396   fi
5397 done
5398   done


5417 
5418     if test "x$TAIL" = x; then
5419         if test "xtail" = x; then
5420           PROG_NAME=tail
5421         else
5422           PROG_NAME=tail
5423         fi
5424         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5425 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5426         as_fn_error $? "Cannot continue" "$LINENO" 5
5427     fi
5428 
5429 
5430 
5431     for ac_prog in tar
5432 do
5433   # Extract the first word of "$ac_prog", so it can be a program name with args.
5434 set dummy $ac_prog; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if ${ac_cv_path_TAR+:} false; then :
5438   $as_echo_n "(cached) " >&6
5439 else
5440   case $TAR in
5441   [\\/]* | ?:[\\/]*)
5442   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5443   ;;
5444   *)
5445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in $PATH
5447 do
5448   IFS=$as_save_IFS
5449   test -z "$as_dir" && as_dir=.
5450     for ac_exec_ext in '' $ac_executable_extensions; do
5451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454     break 2
5455   fi
5456 done
5457   done


5476 
5477     if test "x$TAR" = x; then
5478         if test "xtar" = x; then
5479           PROG_NAME=tar
5480         else
5481           PROG_NAME=tar
5482         fi
5483         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5484 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5485         as_fn_error $? "Cannot continue" "$LINENO" 5
5486     fi
5487 
5488 
5489 
5490     for ac_prog in tee
5491 do
5492   # Extract the first word of "$ac_prog", so it can be a program name with args.
5493 set dummy $ac_prog; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_path_TEE+:} false; then :
5497   $as_echo_n "(cached) " >&6
5498 else
5499   case $TEE in
5500   [\\/]* | ?:[\\/]*)
5501   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
5502   ;;
5503   *)
5504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507   IFS=$as_save_IFS
5508   test -z "$as_dir" && as_dir=.
5509     for ac_exec_ext in '' $ac_executable_extensions; do
5510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
5512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513     break 2
5514   fi
5515 done
5516   done


5535 
5536     if test "x$TEE" = x; then
5537         if test "xtee" = x; then
5538           PROG_NAME=tee
5539         else
5540           PROG_NAME=tee
5541         fi
5542         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5543 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5544         as_fn_error $? "Cannot continue" "$LINENO" 5
5545     fi
5546 
5547 
5548 
5549     for ac_prog in touch
5550 do
5551   # Extract the first word of "$ac_prog", so it can be a program name with args.
5552 set dummy $ac_prog; ac_word=$2
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554 $as_echo_n "checking for $ac_word... " >&6; }
5555 if ${ac_cv_path_TOUCH+:} false; then :
5556   $as_echo_n "(cached) " >&6
5557 else
5558   case $TOUCH in
5559   [\\/]* | ?:[\\/]*)
5560   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5561   ;;
5562   *)
5563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5565 do
5566   IFS=$as_save_IFS
5567   test -z "$as_dir" && as_dir=.
5568     for ac_exec_ext in '' $ac_executable_extensions; do
5569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572     break 2
5573   fi
5574 done
5575   done


5594 
5595     if test "x$TOUCH" = x; then
5596         if test "xtouch" = x; then
5597           PROG_NAME=touch
5598         else
5599           PROG_NAME=touch
5600         fi
5601         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5602 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5603         as_fn_error $? "Cannot continue" "$LINENO" 5
5604     fi
5605 
5606 
5607 
5608     for ac_prog in tr
5609 do
5610   # Extract the first word of "$ac_prog", so it can be a program name with args.
5611 set dummy $ac_prog; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_path_TR+:} false; then :
5615   $as_echo_n "(cached) " >&6
5616 else
5617   case $TR in
5618   [\\/]* | ?:[\\/]*)
5619   ac_cv_path_TR="$TR" # Let the user override the test with a path.
5620   ;;
5621   *)
5622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 for as_dir in $PATH
5624 do
5625   IFS=$as_save_IFS
5626   test -z "$as_dir" && as_dir=.
5627     for ac_exec_ext in '' $ac_executable_extensions; do
5628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5629     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
5630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631     break 2
5632   fi
5633 done
5634   done


5653 
5654     if test "x$TR" = x; then
5655         if test "xtr" = x; then
5656           PROG_NAME=tr
5657         else
5658           PROG_NAME=tr
5659         fi
5660         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5661 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5662         as_fn_error $? "Cannot continue" "$LINENO" 5
5663     fi
5664 
5665 
5666 
5667     for ac_prog in uname
5668 do
5669   # Extract the first word of "$ac_prog", so it can be a program name with args.
5670 set dummy $ac_prog; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if ${ac_cv_path_UNAME+:} false; then :
5674   $as_echo_n "(cached) " >&6
5675 else
5676   case $UNAME in
5677   [\\/]* | ?:[\\/]*)
5678   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
5679   ;;
5680   *)
5681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684   IFS=$as_save_IFS
5685   test -z "$as_dir" && as_dir=.
5686     for ac_exec_ext in '' $ac_executable_extensions; do
5687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5688     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
5689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690     break 2
5691   fi
5692 done
5693   done


5712 
5713     if test "x$UNAME" = x; then
5714         if test "xuname" = x; then
5715           PROG_NAME=uname
5716         else
5717           PROG_NAME=uname
5718         fi
5719         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5720 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5721         as_fn_error $? "Cannot continue" "$LINENO" 5
5722     fi
5723 
5724 
5725 
5726     for ac_prog in uniq
5727 do
5728   # Extract the first word of "$ac_prog", so it can be a program name with args.
5729 set dummy $ac_prog; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if ${ac_cv_path_UNIQ+:} false; then :
5733   $as_echo_n "(cached) " >&6
5734 else
5735   case $UNIQ in
5736   [\\/]* | ?:[\\/]*)
5737   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
5738   ;;
5739   *)
5740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5742 do
5743   IFS=$as_save_IFS
5744   test -z "$as_dir" && as_dir=.
5745     for ac_exec_ext in '' $ac_executable_extensions; do
5746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
5748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749     break 2
5750   fi
5751 done
5752   done


5771 
5772     if test "x$UNIQ" = x; then
5773         if test "xuniq" = x; then
5774           PROG_NAME=uniq
5775         else
5776           PROG_NAME=uniq
5777         fi
5778         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5779 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5780         as_fn_error $? "Cannot continue" "$LINENO" 5
5781     fi
5782 
5783 
5784 
5785     for ac_prog in wc
5786 do
5787   # Extract the first word of "$ac_prog", so it can be a program name with args.
5788 set dummy $ac_prog; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if ${ac_cv_path_WC+:} false; then :
5792   $as_echo_n "(cached) " >&6
5793 else
5794   case $WC in
5795   [\\/]* | ?:[\\/]*)
5796   ac_cv_path_WC="$WC" # Let the user override the test with a path.
5797   ;;
5798   *)
5799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804     for ac_exec_ext in '' $ac_executable_extensions; do
5805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
5807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808     break 2
5809   fi
5810 done
5811   done


5830 
5831     if test "x$WC" = x; then
5832         if test "xwc" = x; then
5833           PROG_NAME=wc
5834         else
5835           PROG_NAME=wc
5836         fi
5837         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5838 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5839         as_fn_error $? "Cannot continue" "$LINENO" 5
5840     fi
5841 
5842 
5843 
5844     for ac_prog in which
5845 do
5846   # Extract the first word of "$ac_prog", so it can be a program name with args.
5847 set dummy $ac_prog; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if ${ac_cv_path_WHICH+:} false; then :
5851   $as_echo_n "(cached) " >&6
5852 else
5853   case $WHICH in
5854   [\\/]* | ?:[\\/]*)
5855   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
5856   ;;
5857   *)
5858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863     for ac_exec_ext in '' $ac_executable_extensions; do
5864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
5866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870   done


5889 
5890     if test "x$WHICH" = x; then
5891         if test "xwhich" = x; then
5892           PROG_NAME=which
5893         else
5894           PROG_NAME=which
5895         fi
5896         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5897 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5898         as_fn_error $? "Cannot continue" "$LINENO" 5
5899     fi
5900 
5901 
5902 
5903     for ac_prog in xargs
5904 do
5905   # Extract the first word of "$ac_prog", so it can be a program name with args.
5906 set dummy $ac_prog; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if ${ac_cv_path_XARGS+:} false; then :
5910   $as_echo_n "(cached) " >&6
5911 else
5912   case $XARGS in
5913   [\\/]* | ?:[\\/]*)
5914   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
5915   ;;
5916   *)
5917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920   IFS=$as_save_IFS
5921   test -z "$as_dir" && as_dir=.
5922     for ac_exec_ext in '' $ac_executable_extensions; do
5923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
5925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926     break 2
5927   fi
5928 done
5929   done


5949     if test "x$XARGS" = x; then
5950         if test "xxargs" = x; then
5951           PROG_NAME=xargs
5952         else
5953           PROG_NAME=xargs
5954         fi
5955         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5956 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5957         as_fn_error $? "Cannot continue" "$LINENO" 5
5958     fi
5959 
5960 
5961 
5962 # Then required tools that require some special treatment.
5963 for ac_prog in gawk mawk nawk awk
5964 do
5965   # Extract the first word of "$ac_prog", so it can be a program name with args.
5966 set dummy $ac_prog; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if ${ac_cv_prog_AWK+:} false; then :
5970   $as_echo_n "(cached) " >&6
5971 else
5972   if test -n "$AWK"; then
5973   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980     for ac_exec_ext in '' $ac_executable_extensions; do
5981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5982     ac_cv_prog_AWK="$ac_prog"
5983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987   done
5988 IFS=$as_save_IFS
5989 


5999 fi
6000 
6001 
6002   test -n "$AWK" && break
6003 done
6004 
6005 
6006     if test "x$AWK" = x; then
6007         if test "x" = x; then
6008           PROG_NAME=awk
6009         else
6010           PROG_NAME=
6011         fi
6012         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6013 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6014         as_fn_error $? "Cannot continue" "$LINENO" 5
6015     fi
6016 
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6018 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6019 if ${ac_cv_path_GREP+:} false; then :
6020   $as_echo_n "(cached) " >&6
6021 else
6022   if test -z "$GREP"; then
6023   ac_path_GREP_found=false
6024   # Loop through the user's path and test for each of PROGNAME-LIST
6025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6027 do
6028   IFS=$as_save_IFS
6029   test -z "$as_dir" && as_dir=.
6030     for ac_prog in grep ggrep; do
6031     for ac_exec_ext in '' $ac_executable_extensions; do
6032       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6033       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6034 # Check for GNU ac_path_GREP and select it if it is found.
6035   # Check for GNU $ac_path_GREP
6036 case `"$ac_path_GREP" --version 2>&1` in
6037 *GNU*)
6038   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6039 *)


6074 fi
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6076 $as_echo "$ac_cv_path_GREP" >&6; }
6077  GREP="$ac_cv_path_GREP"
6078 
6079 
6080 
6081     if test "x$GREP" = x; then
6082         if test "x" = x; then
6083           PROG_NAME=grep
6084         else
6085           PROG_NAME=
6086         fi
6087         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6088 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6089         as_fn_error $? "Cannot continue" "$LINENO" 5
6090     fi
6091 
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6093 $as_echo_n "checking for egrep... " >&6; }
6094 if ${ac_cv_path_EGREP+:} false; then :
6095   $as_echo_n "(cached) " >&6
6096 else
6097   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6098    then ac_cv_path_EGREP="$GREP -E"
6099    else
6100      if test -z "$EGREP"; then
6101   ac_path_EGREP_found=false
6102   # Loop through the user's path and test for each of PROGNAME-LIST
6103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6105 do
6106   IFS=$as_save_IFS
6107   test -z "$as_dir" && as_dir=.
6108     for ac_prog in egrep; do
6109     for ac_exec_ext in '' $ac_executable_extensions; do
6110       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6111       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6112 # Check for GNU ac_path_EGREP and select it if it is found.
6113   # Check for GNU $ac_path_EGREP
6114 case `"$ac_path_EGREP" --version 2>&1` in


6153 fi
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6155 $as_echo "$ac_cv_path_EGREP" >&6; }
6156  EGREP="$ac_cv_path_EGREP"
6157 
6158 
6159 
6160     if test "x$EGREP" = x; then
6161         if test "x" = x; then
6162           PROG_NAME=egrep
6163         else
6164           PROG_NAME=
6165         fi
6166         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6167 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6168         as_fn_error $? "Cannot continue" "$LINENO" 5
6169     fi
6170 
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6172 $as_echo_n "checking for fgrep... " >&6; }
6173 if ${ac_cv_path_FGREP+:} false; then :
6174   $as_echo_n "(cached) " >&6
6175 else
6176   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6177    then ac_cv_path_FGREP="$GREP -F"
6178    else
6179      if test -z "$FGREP"; then
6180   ac_path_FGREP_found=false
6181   # Loop through the user's path and test for each of PROGNAME-LIST
6182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6184 do
6185   IFS=$as_save_IFS
6186   test -z "$as_dir" && as_dir=.
6187     for ac_prog in fgrep; do
6188     for ac_exec_ext in '' $ac_executable_extensions; do
6189       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6190       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6191 # Check for GNU ac_path_FGREP and select it if it is found.
6192   # Check for GNU $ac_path_FGREP
6193 case `"$ac_path_FGREP" --version 2>&1` in


6232 fi
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6234 $as_echo "$ac_cv_path_FGREP" >&6; }
6235  FGREP="$ac_cv_path_FGREP"
6236 
6237 
6238 
6239     if test "x$FGREP" = x; then
6240         if test "x" = x; then
6241           PROG_NAME=fgrep
6242         else
6243           PROG_NAME=
6244         fi
6245         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6246 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6247         as_fn_error $? "Cannot continue" "$LINENO" 5
6248     fi
6249 
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6251 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6252 if ${ac_cv_path_SED+:} false; then :
6253   $as_echo_n "(cached) " >&6
6254 else
6255             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6256      for ac_i in 1 2 3 4 5 6 7; do
6257        ac_script="$ac_script$as_nl$ac_script"
6258      done
6259      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6260      { ac_script=; unset ac_script;}
6261      if test -z "$SED"; then
6262   ac_path_SED_found=false
6263   # Loop through the user's path and test for each of PROGNAME-LIST
6264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6266 do
6267   IFS=$as_save_IFS
6268   test -z "$as_dir" && as_dir=.
6269     for ac_prog in sed gsed; do
6270     for ac_exec_ext in '' $ac_executable_extensions; do
6271       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6272       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue


6318 
6319 
6320     if test "x$SED" = x; then
6321         if test "x" = x; then
6322           PROG_NAME=sed
6323         else
6324           PROG_NAME=
6325         fi
6326         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6327 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6328         as_fn_error $? "Cannot continue" "$LINENO" 5
6329     fi
6330 
6331 
6332 for ac_prog in nawk gawk awk
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_NAWK+:} false; then :
6339   $as_echo_n "(cached) " >&6
6340 else
6341   case $NAWK in
6342   [\\/]* | ?:[\\/]*)
6343   ac_cv_path_NAWK="$NAWK" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6353     ac_cv_path_NAWK="$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


6382           PROG_NAME=
6383         fi
6384         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6385 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6386         as_fn_error $? "Cannot continue" "$LINENO" 5
6387     fi
6388 
6389 
6390 # Always force rm.
6391 RM="$RM -f"
6392 
6393 # pwd behaves differently on various platforms and some don't support the -L flag.
6394 # Always use the bash builtin pwd to get uniform behavior.
6395 THEPWDCMD=pwd
6396 
6397 # These are not required on all platforms
6398 # Extract the first word of "cygpath", so it can be a program name with args.
6399 set dummy cygpath; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if ${ac_cv_path_CYGPATH+:} false; then :
6403   $as_echo_n "(cached) " >&6
6404 else
6405   case $CYGPATH in
6406   [\\/]* | ?:[\\/]*)
6407   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
6408   ;;
6409   *)
6410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $PATH
6412 do
6413   IFS=$as_save_IFS
6414   test -z "$as_dir" && as_dir=.
6415     for ac_exec_ext in '' $ac_executable_extensions; do
6416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6417     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
6418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419     break 2
6420   fi
6421 done
6422   done
6423 IFS=$as_save_IFS
6424 
6425   ;;
6426 esac
6427 fi
6428 CYGPATH=$ac_cv_path_CYGPATH
6429 if test -n "$CYGPATH"; then
6430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
6431 $as_echo "$CYGPATH" >&6; }
6432 else
6433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6435 fi
6436 
6437 
6438 # Extract the first word of "readlink", so it can be a program name with args.
6439 set dummy readlink; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_path_READLINK+:} false; then :
6443   $as_echo_n "(cached) " >&6
6444 else
6445   case $READLINK in
6446   [\\/]* | ?:[\\/]*)
6447   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
6448   ;;
6449   *)
6450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453   IFS=$as_save_IFS
6454   test -z "$as_dir" && as_dir=.
6455     for ac_exec_ext in '' $ac_executable_extensions; do
6456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
6458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459     break 2
6460   fi
6461 done
6462   done
6463 IFS=$as_save_IFS
6464 
6465   ;;
6466 esac
6467 fi
6468 READLINK=$ac_cv_path_READLINK
6469 if test -n "$READLINK"; then
6470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
6471 $as_echo "$READLINK" >&6; }
6472 else
6473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6475 fi
6476 
6477 
6478 # Extract the first word of "df", so it can be a program name with args.
6479 set dummy df; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if ${ac_cv_path_DF+:} false; then :
6483   $as_echo_n "(cached) " >&6
6484 else
6485   case $DF in
6486   [\\/]* | ?:[\\/]*)
6487   ac_cv_path_DF="$DF" # Let the user override the test with a path.
6488   ;;
6489   *)
6490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493   IFS=$as_save_IFS
6494   test -z "$as_dir" && as_dir=.
6495     for ac_exec_ext in '' $ac_executable_extensions; do
6496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
6498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499     break 2
6500   fi
6501 done
6502   done
6503 IFS=$as_save_IFS
6504 
6505   ;;
6506 esac
6507 fi
6508 DF=$ac_cv_path_DF
6509 if test -n "$DF"; then
6510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
6511 $as_echo "$DF" >&6; }
6512 else
6513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6515 fi
6516 
6517 
6518 # Extract the first word of "SetFile", so it can be a program name with args.
6519 set dummy SetFile; ac_word=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if ${ac_cv_path_SETFILE+:} false; then :
6523   $as_echo_n "(cached) " >&6
6524 else
6525   case $SETFILE in
6526   [\\/]* | ?:[\\/]*)
6527   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
6528   ;;
6529   *)
6530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6532 do
6533   IFS=$as_save_IFS
6534   test -z "$as_dir" && as_dir=.
6535     for ac_exec_ext in '' $ac_executable_extensions; do
6536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
6538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539     break 2
6540   fi
6541 done
6542   done


6548 SETFILE=$ac_cv_path_SETFILE
6549 if test -n "$SETFILE"; then
6550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
6551 $as_echo "$SETFILE" >&6; }
6552 else
6553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 $as_echo "no" >&6; }
6555 fi
6556 
6557 
6558 
6559 
6560 # Now we can determine OpenJDK build and target platforms. This is required to
6561 # have early on.
6562 # Make sure we can run config.sub.
6563 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6564   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6565 
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6567 $as_echo_n "checking build system type... " >&6; }
6568 if ${ac_cv_build+:} false; then :
6569   $as_echo_n "(cached) " >&6
6570 else
6571   ac_build_alias=$build_alias
6572 test "x$ac_build_alias" = x &&
6573   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6574 test "x$ac_build_alias" = x &&
6575   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6576 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6577   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6578 
6579 fi
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6581 $as_echo "$ac_cv_build" >&6; }
6582 case $ac_cv_build in
6583 *-*-*) ;;
6584 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6585 esac
6586 build=$ac_cv_build
6587 ac_save_IFS=$IFS; IFS='-'
6588 set x $ac_cv_build
6589 shift
6590 build_cpu=$1
6591 build_vendor=$2
6592 shift; shift
6593 # Remember, the first character of IFS is used to create $*,
6594 # except with old shells:
6595 build_os=$*
6596 IFS=$ac_save_IFS
6597 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6598 
6599 
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6601 $as_echo_n "checking host system type... " >&6; }
6602 if ${ac_cv_host+:} false; then :
6603   $as_echo_n "(cached) " >&6
6604 else
6605   if test "x$host_alias" = x; then
6606   ac_cv_host=$ac_cv_build
6607 else
6608   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6609     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6610 fi
6611 
6612 fi
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6614 $as_echo "$ac_cv_host" >&6; }
6615 case $ac_cv_host in
6616 *-*-*) ;;
6617 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6618 esac
6619 host=$ac_cv_host
6620 ac_save_IFS=$IFS; IFS='-'
6621 set x $ac_cv_host
6622 shift
6623 host_cpu=$1
6624 host_vendor=$2
6625 shift; shift
6626 # Remember, the first character of IFS is used to create $*,
6627 # except with old shells:
6628 host_os=$*
6629 IFS=$ac_save_IFS
6630 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6631 
6632 
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6634 $as_echo_n "checking target system type... " >&6; }
6635 if ${ac_cv_target+:} false; then :
6636   $as_echo_n "(cached) " >&6
6637 else
6638   if test "x$target_alias" = x; then
6639   ac_cv_target=$ac_cv_host
6640 else
6641   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6642     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6643 fi
6644 
6645 fi
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6647 $as_echo "$ac_cv_target" >&6; }
6648 case $ac_cv_target in
6649 *-*-*) ;;
6650 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6651 esac
6652 target=$ac_cv_target
6653 ac_save_IFS=$IFS; IFS='-'
6654 set x $ac_cv_target
6655 shift
6656 target_cpu=$1
6657 target_vendor=$2
6658 shift; shift
6659 # Remember, the first character of IFS is used to create $*,
6660 # except with old shells:
6661 target_os=$*
6662 IFS=$ac_save_IFS
6663 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6664 
6665 
6666 # The aliases save the names the user supplied, while $host etc.
6667 # will get canonicalized.
6668 test -n "$target_alias" &&
6669   test "$program_prefix$program_suffix$program_transform_name" = \
6670     NONENONEs,x,x, &&


8027 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
8028 
8029 # The generated Makefile knows where the spec.gmk is and where the source is.
8030 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
8031 # which will look for generated configurations
8032 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
8033 
8034 
8035 # Save the arguments given to us
8036 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
8037 
8038 
8039 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
8040 
8041     for ac_prog in apt-get yum port pkgutil pkgadd
8042 do
8043   # Extract the first word of "$ac_prog", so it can be a program name with args.
8044 set dummy $ac_prog; ac_word=$2
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8046 $as_echo_n "checking for $ac_word... " >&6; }
8047 if ${ac_cv_prog_PKGHANDLER+:} false; then :
8048   $as_echo_n "(cached) " >&6
8049 else
8050   if test -n "$PKGHANDLER"; then
8051   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
8052 else
8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 for as_dir in $PATH
8055 do
8056   IFS=$as_save_IFS
8057   test -z "$as_dir" && as_dir=.
8058     for ac_exec_ext in '' $ac_executable_extensions; do
8059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8060     ac_cv_prog_PKGHANDLER="$ac_prog"
8061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8062     break 2
8063   fi
8064 done
8065   done
8066 IFS=$as_save_IFS
8067 


8392       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8393 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8394     fi
8395 
8396         fi
8397       fi
8398     fi
8399   fi
8400 
8401     if test "x$FOUND_MAKE" = x; then
8402       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
8403     fi
8404   else
8405     # Try our hardest to locate a correct version of GNU make
8406     for ac_prog in gmake
8407 do
8408   # Extract the first word of "$ac_prog", so it can be a program name with args.
8409 set dummy $ac_prog; ac_word=$2
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411 $as_echo_n "checking for $ac_word... " >&6; }
8412 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
8413   $as_echo_n "(cached) " >&6
8414 else
8415   case $CHECK_GMAKE in
8416   [\\/]* | ?:[\\/]*)
8417   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
8418   ;;
8419   *)
8420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421 for as_dir in $PATH
8422 do
8423   IFS=$as_save_IFS
8424   test -z "$as_dir" && as_dir=.
8425     for ac_exec_ext in '' $ac_executable_extensions; do
8426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8427     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
8428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8429     break 2
8430   fi
8431 done
8432   done


8746 
8747   if test "x$complete" != "x$new_complete"; then
8748       FOUND_MAKE="$new_complete"
8749       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8750 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8751     fi
8752 
8753         fi
8754       fi
8755     fi
8756   fi
8757 
8758 
8759     if test "x$FOUND_MAKE" = x; then
8760       for ac_prog in make
8761 do
8762   # Extract the first word of "$ac_prog", so it can be a program name with args.
8763 set dummy $ac_prog; ac_word=$2
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8765 $as_echo_n "checking for $ac_word... " >&6; }
8766 if ${ac_cv_path_CHECK_MAKE+:} false; then :
8767   $as_echo_n "(cached) " >&6
8768 else
8769   case $CHECK_MAKE in
8770   [\\/]* | ?:[\\/]*)
8771   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
8772   ;;
8773   *)
8774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH
8776 do
8777   IFS=$as_save_IFS
8778   test -z "$as_dir" && as_dir=.
8779     for ac_exec_ext in '' $ac_executable_extensions; do
8780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8781     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
8782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8783     break 2
8784   fi
8785 done
8786   done


9105     fi
9106 
9107         fi
9108       fi
9109     fi
9110   fi
9111 
9112     fi
9113 
9114     if test "x$FOUND_MAKE" = x; then
9115       if test "x$TOOLS_DIR" != x; then
9116         # We have a tools-dir, check that as well before giving up.
9117         OLD_PATH=$PATH
9118         PATH=$TOOLS_DIR:$PATH
9119         for ac_prog in gmake
9120 do
9121   # Extract the first word of "$ac_prog", so it can be a program name with args.
9122 set dummy $ac_prog; ac_word=$2
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9124 $as_echo_n "checking for $ac_word... " >&6; }
9125 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
9126   $as_echo_n "(cached) " >&6
9127 else
9128   case $CHECK_TOOLSDIR_GMAKE in
9129   [\\/]* | ?:[\\/]*)
9130   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
9131   ;;
9132   *)
9133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9134 for as_dir in $PATH
9135 do
9136   IFS=$as_save_IFS
9137   test -z "$as_dir" && as_dir=.
9138     for ac_exec_ext in '' $ac_executable_extensions; do
9139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9140     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
9141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9142     break 2
9143   fi
9144 done
9145   done


9458       fi
9459 
9460   if test "x$complete" != "x$new_complete"; then
9461       FOUND_MAKE="$new_complete"
9462       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
9463 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
9464     fi
9465 
9466         fi
9467       fi
9468     fi
9469   fi
9470 
9471         if test "x$FOUND_MAKE" = x; then
9472           for ac_prog in make
9473 do
9474   # Extract the first word of "$ac_prog", so it can be a program name with args.
9475 set dummy $ac_prog; ac_word=$2
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477 $as_echo_n "checking for $ac_word... " >&6; }
9478 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
9479   $as_echo_n "(cached) " >&6
9480 else
9481   case $CHECK_TOOLSDIR_MAKE in
9482   [\\/]* | ?:[\\/]*)
9483   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
9484   ;;
9485   *)
9486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9487 for as_dir in $PATH
9488 do
9489   IFS=$as_save_IFS
9490   test -z "$as_dir" && as_dir=.
9491     for ac_exec_ext in '' $ac_executable_extensions; do
9492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9493     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
9494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9495     break 2
9496   fi
9497 done
9498   done


9854         FIND_DELETE="-exec rm \{\} \+"
9855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856 $as_echo "no" >&6; }
9857     else
9858         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9859 $as_echo "yes" >&6; }
9860     fi
9861     rmdir $DELETEDIR
9862 
9863 
9864 
9865 # These tools might not be installed by default,
9866 # need hint on how to install them.
9867 
9868     for ac_prog in unzip
9869 do
9870   # Extract the first word of "$ac_prog", so it can be a program name with args.
9871 set dummy $ac_prog; ac_word=$2
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9873 $as_echo_n "checking for $ac_word... " >&6; }
9874 if ${ac_cv_path_UNZIP+:} false; then :
9875   $as_echo_n "(cached) " >&6
9876 else
9877   case $UNZIP in
9878   [\\/]* | ?:[\\/]*)
9879   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
9880   ;;
9881   *)
9882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9883 for as_dir in $PATH
9884 do
9885   IFS=$as_save_IFS
9886   test -z "$as_dir" && as_dir=.
9887     for ac_exec_ext in '' $ac_executable_extensions; do
9888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9889     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
9890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9891     break 2
9892   fi
9893 done
9894   done


9913 
9914     if test "x$UNZIP" = x; then
9915         if test "xunzip" = x; then
9916           PROG_NAME=unzip
9917         else
9918           PROG_NAME=unzip
9919         fi
9920         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
9921 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
9922         as_fn_error $? "Cannot continue" "$LINENO" 5
9923     fi
9924 
9925 
9926 
9927     for ac_prog in zip
9928 do
9929   # Extract the first word of "$ac_prog", so it can be a program name with args.
9930 set dummy $ac_prog; ac_word=$2
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9932 $as_echo_n "checking for $ac_word... " >&6; }
9933 if ${ac_cv_path_ZIP+:} false; then :
9934   $as_echo_n "(cached) " >&6
9935 else
9936   case $ZIP in
9937   [\\/]* | ?:[\\/]*)
9938   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
9939   ;;
9940   *)
9941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9942 for as_dir in $PATH
9943 do
9944   IFS=$as_save_IFS
9945   test -z "$as_dir" && as_dir=.
9946     for ac_exec_ext in '' $ac_executable_extensions; do
9947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9948     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
9949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9950     break 2
9951   fi
9952 done
9953   done


9972 
9973     if test "x$ZIP" = x; then
9974         if test "xzip" = x; then
9975           PROG_NAME=zip
9976         else
9977           PROG_NAME=zip
9978         fi
9979         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
9980 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
9981         as_fn_error $? "Cannot continue" "$LINENO" 5
9982     fi
9983 
9984 
9985 
9986 # Non-required basic tools
9987 
9988 # Extract the first word of "ldd", so it can be a program name with args.
9989 set dummy ldd; ac_word=$2
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991 $as_echo_n "checking for $ac_word... " >&6; }
9992 if ${ac_cv_path_LDD+:} false; then :
9993   $as_echo_n "(cached) " >&6
9994 else
9995   case $LDD in
9996   [\\/]* | ?:[\\/]*)
9997   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
9998   ;;
9999   *)
10000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10001 for as_dir in $PATH
10002 do
10003   IFS=$as_save_IFS
10004   test -z "$as_dir" && as_dir=.
10005     for ac_exec_ext in '' $ac_executable_extensions; do
10006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10007     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10009     break 2
10010   fi
10011 done
10012   done


10018 LDD=$ac_cv_path_LDD
10019 if test -n "$LDD"; then
10020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
10021 $as_echo "$LDD" >&6; }
10022 else
10023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024 $as_echo "no" >&6; }
10025 fi
10026 
10027 
10028 if test "x$LDD" = "x"; then
10029     # List shared lib dependencies is used for
10030     # debug output and checking for forbidden dependencies.
10031     # We can build without it.
10032     LDD="true"
10033 fi
10034 # Extract the first word of "otool", so it can be a program name with args.
10035 set dummy otool; ac_word=$2
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037 $as_echo_n "checking for $ac_word... " >&6; }
10038 if ${ac_cv_path_OTOOL+:} false; then :
10039   $as_echo_n "(cached) " >&6
10040 else
10041   case $OTOOL in
10042   [\\/]* | ?:[\\/]*)
10043   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
10044   ;;
10045   *)
10046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047 for as_dir in $PATH
10048 do
10049   IFS=$as_save_IFS
10050   test -z "$as_dir" && as_dir=.
10051     for ac_exec_ext in '' $ac_executable_extensions; do
10052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10053     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
10054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10055     break 2
10056   fi
10057 done
10058   done


10063 fi
10064 OTOOL=$ac_cv_path_OTOOL
10065 if test -n "$OTOOL"; then
10066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10067 $as_echo "$OTOOL" >&6; }
10068 else
10069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070 $as_echo "no" >&6; }
10071 fi
10072 
10073 
10074 if test "x$OTOOL" = "x"; then
10075    OTOOL="true"
10076 fi
10077 for ac_prog in readelf greadelf
10078 do
10079   # Extract the first word of "$ac_prog", so it can be a program name with args.
10080 set dummy $ac_prog; ac_word=$2
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082 $as_echo_n "checking for $ac_word... " >&6; }
10083 if ${ac_cv_path_READELF+:} false; then :
10084   $as_echo_n "(cached) " >&6
10085 else
10086   case $READELF in
10087   [\\/]* | ?:[\\/]*)
10088   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
10089   ;;
10090   *)
10091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10092 for as_dir in $PATH
10093 do
10094   IFS=$as_save_IFS
10095   test -z "$as_dir" && as_dir=.
10096     for ac_exec_ext in '' $ac_executable_extensions; do
10097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10098     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
10099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10100     break 2
10101   fi
10102 done
10103   done


10106   ;;
10107 esac
10108 fi
10109 READELF=$ac_cv_path_READELF
10110 if test -n "$READELF"; then
10111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10112 $as_echo "$READELF" >&6; }
10113 else
10114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115 $as_echo "no" >&6; }
10116 fi
10117 
10118 
10119   test -n "$READELF" && break
10120 done
10121 
10122 # Extract the first word of "hg", so it can be a program name with args.
10123 set dummy hg; ac_word=$2
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10125 $as_echo_n "checking for $ac_word... " >&6; }
10126 if ${ac_cv_path_HG+:} false; then :
10127   $as_echo_n "(cached) " >&6
10128 else
10129   case $HG in
10130   [\\/]* | ?:[\\/]*)
10131   ac_cv_path_HG="$HG" # Let the user override the test with a path.
10132   ;;
10133   *)
10134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10135 for as_dir in $PATH
10136 do
10137   IFS=$as_save_IFS
10138   test -z "$as_dir" && as_dir=.
10139     for ac_exec_ext in '' $ac_executable_extensions; do
10140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10141     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
10142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10143     break 2
10144   fi
10145 done
10146   done
10147 IFS=$as_save_IFS
10148 
10149   ;;
10150 esac
10151 fi
10152 HG=$ac_cv_path_HG
10153 if test -n "$HG"; then
10154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
10155 $as_echo "$HG" >&6; }
10156 else
10157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 $as_echo "no" >&6; }
10159 fi
10160 
10161 
10162 # Extract the first word of "stat", so it can be a program name with args.
10163 set dummy stat; ac_word=$2
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10165 $as_echo_n "checking for $ac_word... " >&6; }
10166 if ${ac_cv_path_STAT+:} false; then :
10167   $as_echo_n "(cached) " >&6
10168 else
10169   case $STAT in
10170   [\\/]* | ?:[\\/]*)
10171   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
10172   ;;
10173   *)
10174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175 for as_dir in $PATH
10176 do
10177   IFS=$as_save_IFS
10178   test -z "$as_dir" && as_dir=.
10179     for ac_exec_ext in '' $ac_executable_extensions; do
10180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10181     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
10182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10183     break 2
10184   fi
10185 done
10186   done
10187 IFS=$as_save_IFS
10188 
10189   ;;
10190 esac
10191 fi
10192 STAT=$ac_cv_path_STAT
10193 if test -n "$STAT"; then
10194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
10195 $as_echo "$STAT" >&6; }
10196 else
10197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198 $as_echo "no" >&6; }
10199 fi
10200 
10201 
10202 # Extract the first word of "time", so it can be a program name with args.
10203 set dummy time; ac_word=$2
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10205 $as_echo_n "checking for $ac_word... " >&6; }
10206 if ${ac_cv_path_TIME+:} false; then :
10207   $as_echo_n "(cached) " >&6
10208 else
10209   case $TIME in
10210   [\\/]* | ?:[\\/]*)
10211   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
10212   ;;
10213   *)
10214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215 for as_dir in $PATH
10216 do
10217   IFS=$as_save_IFS
10218   test -z "$as_dir" && as_dir=.
10219     for ac_exec_ext in '' $ac_executable_extensions; do
10220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10221     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
10222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10223     break 2
10224   fi
10225 done
10226   done


10231 fi
10232 TIME=$ac_cv_path_TIME
10233 if test -n "$TIME"; then
10234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10235 $as_echo "$TIME" >&6; }
10236 else
10237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238 $as_echo "no" >&6; }
10239 fi
10240 
10241 
10242 
10243 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
10244 
10245     for ac_prog in comm
10246 do
10247   # Extract the first word of "$ac_prog", so it can be a program name with args.
10248 set dummy $ac_prog; ac_word=$2
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250 $as_echo_n "checking for $ac_word... " >&6; }
10251 if ${ac_cv_path_COMM+:} false; then :
10252   $as_echo_n "(cached) " >&6
10253 else
10254   case $COMM in
10255   [\\/]* | ?:[\\/]*)
10256   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
10257   ;;
10258   *)
10259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10260 for as_dir in $PATH
10261 do
10262   IFS=$as_save_IFS
10263   test -z "$as_dir" && as_dir=.
10264     for ac_exec_ext in '' $ac_executable_extensions; do
10265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10266     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
10267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10268     break 2
10269   fi
10270 done
10271   done


10293           PROG_NAME=comm
10294         else
10295           PROG_NAME=comm
10296         fi
10297         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10298 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10299         as_fn_error $? "Cannot continue" "$LINENO" 5
10300     fi
10301 
10302 
10303 fi
10304 
10305 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
10306 
10307     for ac_prog in xattr
10308 do
10309   # Extract the first word of "$ac_prog", so it can be a program name with args.
10310 set dummy $ac_prog; ac_word=$2
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10312 $as_echo_n "checking for $ac_word... " >&6; }
10313 if ${ac_cv_path_XATTR+:} false; then :
10314   $as_echo_n "(cached) " >&6
10315 else
10316   case $XATTR in
10317   [\\/]* | ?:[\\/]*)
10318   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
10319   ;;
10320   *)
10321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in $PATH
10323 do
10324   IFS=$as_save_IFS
10325   test -z "$as_dir" && as_dir=.
10326     for ac_exec_ext in '' $ac_executable_extensions; do
10327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10328     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
10329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10330     break 2
10331   fi
10332 done
10333   done


10349   test -n "$XATTR" && break
10350 done
10351 
10352 
10353     if test "x$XATTR" = x; then
10354         if test "xxattr" = x; then
10355           PROG_NAME=xattr
10356         else
10357           PROG_NAME=xattr
10358         fi
10359         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10360 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10361         as_fn_error $? "Cannot continue" "$LINENO" 5
10362     fi
10363 
10364 
10365   # Extract the first word of "codesign", so it can be a program name with args.
10366 set dummy codesign; ac_word=$2
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10368 $as_echo_n "checking for $ac_word... " >&6; }
10369 if ${ac_cv_path_CODESIGN+:} false; then :
10370   $as_echo_n "(cached) " >&6
10371 else
10372   case $CODESIGN in
10373   [\\/]* | ?:[\\/]*)
10374   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
10375   ;;
10376   *)
10377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10378 for as_dir in $PATH
10379 do
10380   IFS=$as_save_IFS
10381   test -z "$as_dir" && as_dir=.
10382     for ac_exec_ext in '' $ac_executable_extensions; do
10383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10384     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
10385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10386     break 2
10387   fi
10388 done
10389   done


10413     if test "x$CODESIGN" = x; then
10414       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10415 $as_echo "no" >&6; }
10416     else
10417       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10418 $as_echo "yes" >&6; }
10419     fi
10420   fi
10421 fi
10422 
10423 
10424 # Check if pkg-config is available.
10425 
10426 
10427 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10428         if test -n "$ac_tool_prefix"; then
10429   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10430 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10432 $as_echo_n "checking for $ac_word... " >&6; }
10433 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10434   $as_echo_n "(cached) " >&6
10435 else
10436   case $PKG_CONFIG in
10437   [\\/]* | ?:[\\/]*)
10438   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10439   ;;
10440   *)
10441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10442 for as_dir in $PATH
10443 do
10444   IFS=$as_save_IFS
10445   test -z "$as_dir" && as_dir=.
10446     for ac_exec_ext in '' $ac_executable_extensions; do
10447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10448     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10450     break 2
10451   fi
10452 done
10453   done


10456   ;;
10457 esac
10458 fi
10459 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10460 if test -n "$PKG_CONFIG"; then
10461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10462 $as_echo "$PKG_CONFIG" >&6; }
10463 else
10464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465 $as_echo "no" >&6; }
10466 fi
10467 
10468 
10469 fi
10470 if test -z "$ac_cv_path_PKG_CONFIG"; then
10471   ac_pt_PKG_CONFIG=$PKG_CONFIG
10472   # Extract the first word of "pkg-config", so it can be a program name with args.
10473 set dummy pkg-config; ac_word=$2
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10475 $as_echo_n "checking for $ac_word... " >&6; }
10476 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10477   $as_echo_n "(cached) " >&6
10478 else
10479   case $ac_pt_PKG_CONFIG in
10480   [\\/]* | ?:[\\/]*)
10481   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10482   ;;
10483   *)
10484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10485 for as_dir in $PATH
10486 do
10487   IFS=$as_save_IFS
10488   test -z "$as_dir" && as_dir=.
10489     for ac_exec_ext in '' $ac_executable_extensions; do
10490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10491     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10493     break 2
10494   fi
10495 done
10496   done


10629             echo Build stays the same $rewritten_build
10630         else
10631             echo Rewriting build for builddeps into $rewritten_build
10632         fi
10633         eval rewritten_target=\${REWRITE_${target_var}}
10634         if test "x$rewritten_target" = x; then
10635             rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
10636             echo Target stays the same $rewritten_target
10637         else
10638             echo Rewriting target for builddeps into $rewritten_target
10639         fi
10640         rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
10641         rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
10642     fi
10643     for ac_prog in 7z unzip
10644 do
10645   # Extract the first word of "$ac_prog", so it can be a program name with args.
10646 set dummy $ac_prog; ac_word=$2
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10648 $as_echo_n "checking for $ac_word... " >&6; }
10649 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
10650   $as_echo_n "(cached) " >&6
10651 else
10652   if test -n "$BDEPS_UNZIP"; then
10653   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
10654 else
10655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10656 for as_dir in $PATH
10657 do
10658   IFS=$as_save_IFS
10659   test -z "$as_dir" && as_dir=.
10660     for ac_exec_ext in '' $ac_executable_extensions; do
10661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10662     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
10663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10664     break 2
10665   fi
10666 done
10667   done
10668 IFS=$as_save_IFS
10669 


10675 $as_echo "$BDEPS_UNZIP" >&6; }
10676 else
10677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678 $as_echo "no" >&6; }
10679 fi
10680 
10681 
10682   test -n "$BDEPS_UNZIP" && break
10683 done
10684 
10685     if test "x$BDEPS_UNZIP" = x7z; then
10686         BDEPS_UNZIP="7z x"
10687     fi
10688 
10689     for ac_prog in wget lftp ftp
10690 do
10691   # Extract the first word of "$ac_prog", so it can be a program name with args.
10692 set dummy $ac_prog; ac_word=$2
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10694 $as_echo_n "checking for $ac_word... " >&6; }
10695 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
10696   $as_echo_n "(cached) " >&6
10697 else
10698   if test -n "$BDEPS_FTP"; then
10699   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
10700 else
10701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702 for as_dir in $PATH
10703 do
10704   IFS=$as_save_IFS
10705   test -z "$as_dir" && as_dir=.
10706     for ac_exec_ext in '' $ac_executable_extensions; do
10707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10708     ac_cv_prog_BDEPS_FTP="$ac_prog"
10709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10710     break 2
10711   fi
10712 done
10713   done
10714 IFS=$as_save_IFS
10715 


11975               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
11976               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
11977 $as_echo "$BOOT_JDK_VERSION" >&6; }
11978             fi # end check jdk version
11979           fi # end check rt.jar
11980         fi # end check javac
11981       fi # end check java
11982     fi # end check boot jdk found
11983   fi
11984 
11985 
11986 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
11987 
11988   if test "x$BOOT_JDK_FOUND" = xno; then
11989     # Now execute the test
11990 
11991     # Extract the first word of "javac", so it can be a program name with args.
11992 set dummy javac; ac_word=$2
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994 $as_echo_n "checking for $ac_word... " >&6; }
11995 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
11996   $as_echo_n "(cached) " >&6
11997 else
11998   case $JAVAC_CHECK in
11999   [\\/]* | ?:[\\/]*)
12000   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
12001   ;;
12002   *)
12003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004 for as_dir in $PATH
12005 do
12006   IFS=$as_save_IFS
12007   test -z "$as_dir" && as_dir=.
12008     for ac_exec_ext in '' $ac_executable_extensions; do
12009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12010     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12012     break 2
12013   fi
12014 done
12015   done
12016 IFS=$as_save_IFS
12017 
12018   ;;
12019 esac
12020 fi
12021 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
12022 if test -n "$JAVAC_CHECK"; then
12023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
12024 $as_echo "$JAVAC_CHECK" >&6; }
12025 else
12026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; }
12028 fi
12029 
12030 
12031     # Extract the first word of "java", so it can be a program name with args.
12032 set dummy java; ac_word=$2
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034 $as_echo_n "checking for $ac_word... " >&6; }
12035 if ${ac_cv_path_JAVA_CHECK+:} false; then :
12036   $as_echo_n "(cached) " >&6
12037 else
12038   case $JAVA_CHECK in
12039   [\\/]* | ?:[\\/]*)
12040   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
12041   ;;
12042   *)
12043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044 for as_dir in $PATH
12045 do
12046   IFS=$as_save_IFS
12047   test -z "$as_dir" && as_dir=.
12048     for ac_exec_ext in '' $ac_executable_extensions; do
12049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12050     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
12051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12052     break 2
12053   fi
12054 done
12055   done


16344 
16345 
16346       # jtreg win32 script works for everybody
16347       JTREGEXE="$JT_HOME/win32/bin/jtreg"
16348 
16349       if test ! -f "$JTREGEXE"; then
16350         as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5
16351       fi
16352 
16353       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
16354 $as_echo "$JTREGEXE" >&6; }
16355     else
16356       # try to find jtreg on path
16357 
16358     for ac_prog in jtreg
16359 do
16360   # Extract the first word of "$ac_prog", so it can be a program name with args.
16361 set dummy $ac_prog; ac_word=$2
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16363 $as_echo_n "checking for $ac_word... " >&6; }
16364 if ${ac_cv_path_JTREGEXE+:} false; then :
16365   $as_echo_n "(cached) " >&6
16366 else
16367   case $JTREGEXE in
16368   [\\/]* | ?:[\\/]*)
16369   ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
16370   ;;
16371   *)
16372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16373 for as_dir in $PATH
16374 do
16375   IFS=$as_save_IFS
16376   test -z "$as_dir" && as_dir=.
16377     for ac_exec_ext in '' $ac_executable_extensions; do
16378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16379     ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
16380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16381     break 2
16382   fi
16383 done
16384   done


16412         as_fn_error $? "Cannot continue" "$LINENO" 5
16413     fi
16414 
16415 
16416       JT_HOME="`$DIRNAME $JTREGEXE`"
16417     fi
16418   fi
16419 
16420 
16421 
16422 
16423 
16424 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16425 
16426   # Store path to cygwin link.exe to help excluding it when searching for
16427   # VS linker. This must be done before changing the PATH when looking for VS.
16428   # Extract the first word of "link", so it can be a program name with args.
16429 set dummy link; ac_word=$2
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16431 $as_echo_n "checking for $ac_word... " >&6; }
16432 if ${ac_cv_path_CYGWIN_LINK+:} false; then :
16433   $as_echo_n "(cached) " >&6
16434 else
16435   case $CYGWIN_LINK in
16436   [\\/]* | ?:[\\/]*)
16437   ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path.
16438   ;;
16439   *)
16440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16441 for as_dir in $PATH
16442 do
16443   IFS=$as_save_IFS
16444   test -z "$as_dir" && as_dir=.
16445     for ac_exec_ext in '' $ac_executable_extensions; do
16446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16447     ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext"
16448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16449     break 2
16450   fi
16451 done
16452   done


17839 # For example the binary i686-sun-solaris2.10-gcc
17840 # will cross compile for i686-sun-solaris2.10
17841 # If neither of build and host is not set, then build=host and the
17842 # default compiler found in the path will be used.
17843 # Setting only --host, does not seem to be really supported.
17844 # Please set both --build and --host if you want to cross compile.
17845 
17846 if test "x$COMPILE_TYPE" = "xcross"; then
17847     # Now we to find a C/C++ compiler that can build executables for the build
17848     # platform. We can't use the AC_PROG_CC macro, since it can only be used
17849     # once. Also, we need to do this before adding a tools dir to the path,
17850     # otherwise we might pick up cross-compilers which don't use standard naming.
17851     # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have
17852     # to wait until they are properly discovered.
17853     for ac_prog in cl cc gcc
17854 do
17855   # Extract the first word of "$ac_prog", so it can be a program name with args.
17856 set dummy $ac_prog; ac_word=$2
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17858 $as_echo_n "checking for $ac_word... " >&6; }
17859 if ${ac_cv_path_BUILD_CC+:} false; then :
17860   $as_echo_n "(cached) " >&6
17861 else
17862   case $BUILD_CC in
17863   [\\/]* | ?:[\\/]*)
17864   ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
17865   ;;
17866   *)
17867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17868 for as_dir in $PATH
17869 do
17870   IFS=$as_save_IFS
17871   test -z "$as_dir" && as_dir=.
17872     for ac_exec_ext in '' $ac_executable_extensions; do
17873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17874     ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
17875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17876     break 2
17877   fi
17878 done
17879   done


18150 
18151       # Now join together the path and the arguments once again
18152       if test "x$arguments" != xEOL; then
18153         new_complete="$new_path ${arguments% *}"
18154       else
18155         new_complete="$new_path"
18156       fi
18157 
18158   if test "x$complete" != "x$new_complete"; then
18159       BUILD_CC="$new_complete"
18160       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5
18161 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;}
18162     fi
18163 
18164     for ac_prog in cl CC g++
18165 do
18166   # Extract the first word of "$ac_prog", so it can be a program name with args.
18167 set dummy $ac_prog; ac_word=$2
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18169 $as_echo_n "checking for $ac_word... " >&6; }
18170 if ${ac_cv_path_BUILD_CXX+:} false; then :
18171   $as_echo_n "(cached) " >&6
18172 else
18173   case $BUILD_CXX in
18174   [\\/]* | ?:[\\/]*)
18175   ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
18176   ;;
18177   *)
18178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18179 for as_dir in $PATH
18180 do
18181   IFS=$as_save_IFS
18182   test -z "$as_dir" && as_dir=.
18183     for ac_exec_ext in '' $ac_executable_extensions; do
18184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18185     ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
18186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18187     break 2
18188   fi
18189 done
18190   done


18459       fi
18460   fi
18461 
18462       # Now join together the path and the arguments once again
18463       if test "x$arguments" != xEOL; then
18464         new_complete="$new_path ${arguments% *}"
18465       else
18466         new_complete="$new_path"
18467       fi
18468 
18469   if test "x$complete" != "x$new_complete"; then
18470       BUILD_CXX="$new_complete"
18471       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5
18472 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;}
18473     fi
18474 
18475     # Extract the first word of "ld", so it can be a program name with args.
18476 set dummy ld; ac_word=$2
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18478 $as_echo_n "checking for $ac_word... " >&6; }
18479 if ${ac_cv_path_BUILD_LD+:} false; then :
18480   $as_echo_n "(cached) " >&6
18481 else
18482   case $BUILD_LD in
18483   [\\/]* | ?:[\\/]*)
18484   ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
18485   ;;
18486   *)
18487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18488 for as_dir in $PATH
18489 do
18490   IFS=$as_save_IFS
18491   test -z "$as_dir" && as_dir=.
18492     for ac_exec_ext in '' $ac_executable_extensions; do
18493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18494     ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
18495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18496     break 2
18497   fi
18498 done
18499   done


18975   COMPILER_CHECK_LIST="cc gcc"
18976 else
18977   COMPILER_CHECK_LIST="gcc cc"
18978 fi
18979 
18980 
18981   COMPILER_NAME=C
18982 
18983   CC=
18984   # If TOOLS_DIR is set, check for all compiler names in there first
18985   # before checking the rest of the PATH.
18986   if test -n "$TOOLS_DIR"; then
18987     PATH_save="$PATH"
18988     PATH="$TOOLS_DIR"
18989     for ac_prog in $COMPILER_CHECK_LIST
18990 do
18991   # Extract the first word of "$ac_prog", so it can be a program name with args.
18992 set dummy $ac_prog; ac_word=$2
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18994 $as_echo_n "checking for $ac_word... " >&6; }
18995 if ${ac_cv_path_TOOLS_DIR_CC+:} false; then :
18996   $as_echo_n "(cached) " >&6
18997 else
18998   case $TOOLS_DIR_CC in
18999   [\\/]* | ?:[\\/]*)
19000   ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path.
19001   ;;
19002   *)
19003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19004 for as_dir in $PATH
19005 do
19006   IFS=$as_save_IFS
19007   test -z "$as_dir" && as_dir=.
19008     for ac_exec_ext in '' $ac_executable_extensions; do
19009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19010     ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext"
19011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19012     break 2
19013   fi
19014 done
19015   done


19027 $as_echo "no" >&6; }
19028 fi
19029 
19030 
19031   test -n "$TOOLS_DIR_CC" && break
19032 done
19033 
19034     CC=$TOOLS_DIR_CC
19035     PATH="$PATH_save"
19036   fi
19037 
19038   # AC_PATH_PROGS can't be run multiple times with the same variable,
19039   # so create a new name for this run.
19040   if test "x$CC" = x; then
19041     for ac_prog in $COMPILER_CHECK_LIST
19042 do
19043   # Extract the first word of "$ac_prog", so it can be a program name with args.
19044 set dummy $ac_prog; ac_word=$2
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19046 $as_echo_n "checking for $ac_word... " >&6; }
19047 if ${ac_cv_path_POTENTIAL_CC+:} false; then :
19048   $as_echo_n "(cached) " >&6
19049 else
19050   case $POTENTIAL_CC in
19051   [\\/]* | ?:[\\/]*)
19052   ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
19053   ;;
19054   *)
19055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19056 for as_dir in $PATH
19057 do
19058   IFS=$as_save_IFS
19059   test -z "$as_dir" && as_dir=.
19060     for ac_exec_ext in '' $ac_executable_extensions; do
19061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19062     ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
19063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19064     break 2
19065   fi
19066 done
19067   done


19440   if test "x$COMPILER_BASENAME" = "xccache"; then
19441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
19442 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
19443     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
19444     # We want to control ccache invocation ourselves, so ignore this cc and try
19445     # searching again.
19446 
19447     # Remove the path to the fake ccache cc from the PATH
19448     RETRY_COMPILER_SAVED_PATH="$PATH"
19449     COMPILER_DIRNAME=`$DIRNAME $CC`
19450     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
19451 
19452     # Try again looking for our compiler
19453     if test -n "$ac_tool_prefix"; then
19454   for ac_prog in $COMPILER_CHECK_LIST
19455   do
19456     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19459 $as_echo_n "checking for $ac_word... " >&6; }
19460 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then :
19461   $as_echo_n "(cached) " >&6
19462 else
19463   if test -n "$PROPER_COMPILER_CC"; then
19464   ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test.
19465 else
19466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19467 for as_dir in $PATH
19468 do
19469   IFS=$as_save_IFS
19470   test -z "$as_dir" && as_dir=.
19471     for ac_exec_ext in '' $ac_executable_extensions; do
19472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19473     ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog"
19474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19475     break 2
19476   fi
19477 done
19478   done
19479 IFS=$as_save_IFS
19480 


19484 if test -n "$PROPER_COMPILER_CC"; then
19485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
19486 $as_echo "$PROPER_COMPILER_CC" >&6; }
19487 else
19488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19489 $as_echo "no" >&6; }
19490 fi
19491 
19492 
19493     test -n "$PROPER_COMPILER_CC" && break
19494   done
19495 fi
19496 if test -z "$PROPER_COMPILER_CC"; then
19497   ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC
19498   for ac_prog in $COMPILER_CHECK_LIST
19499 do
19500   # Extract the first word of "$ac_prog", so it can be a program name with args.
19501 set dummy $ac_prog; ac_word=$2
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19503 $as_echo_n "checking for $ac_word... " >&6; }
19504 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then :
19505   $as_echo_n "(cached) " >&6
19506 else
19507   if test -n "$ac_ct_PROPER_COMPILER_CC"; then
19508   ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test.
19509 else
19510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19511 for as_dir in $PATH
19512 do
19513   IFS=$as_save_IFS
19514   test -z "$as_dir" && as_dir=.
19515     for ac_exec_ext in '' $ac_executable_extensions; do
19516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19517     ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog"
19518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19519     break 2
19520   fi
19521 done
19522   done
19523 IFS=$as_save_IFS
19524 


19934   # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
19935   CC_VENDOR="$COMPILER_VENDOR"
19936 
19937   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
19938 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
19939 
19940 
19941 # Now that we have resolved CC ourself, let autoconf have its go at it
19942 ac_ext=c
19943 ac_cpp='$CPP $CPPFLAGS'
19944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19947 if test -n "$ac_tool_prefix"; then
19948   for ac_prog in $CC
19949   do
19950     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19953 $as_echo_n "checking for $ac_word... " >&6; }
19954 if ${ac_cv_prog_CC+:} false; then :
19955   $as_echo_n "(cached) " >&6
19956 else
19957   if test -n "$CC"; then
19958   ac_cv_prog_CC="$CC" # Let the user override the test.
19959 else
19960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19961 for as_dir in $PATH
19962 do
19963   IFS=$as_save_IFS
19964   test -z "$as_dir" && as_dir=.
19965     for ac_exec_ext in '' $ac_executable_extensions; do
19966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19967     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19969     break 2
19970   fi
19971 done
19972   done
19973 IFS=$as_save_IFS
19974 


19978 if test -n "$CC"; then
19979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19980 $as_echo "$CC" >&6; }
19981 else
19982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19983 $as_echo "no" >&6; }
19984 fi
19985 
19986 
19987     test -n "$CC" && break
19988   done
19989 fi
19990 if test -z "$CC"; then
19991   ac_ct_CC=$CC
19992   for ac_prog in $CC
19993 do
19994   # Extract the first word of "$ac_prog", so it can be a program name with args.
19995 set dummy $ac_prog; ac_word=$2
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19997 $as_echo_n "checking for $ac_word... " >&6; }
19998 if ${ac_cv_prog_ac_ct_CC+:} false; then :
19999   $as_echo_n "(cached) " >&6
20000 else
20001   if test -n "$ac_ct_CC"; then
20002   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20003 else
20004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20005 for as_dir in $PATH
20006 do
20007   IFS=$as_save_IFS
20008   test -z "$as_dir" && as_dir=.
20009     for ac_exec_ext in '' $ac_executable_extensions; do
20010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20011     ac_cv_prog_ac_ct_CC="$ac_prog"
20012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20013     break 2
20014   fi
20015 done
20016   done
20017 IFS=$as_save_IFS
20018 


20031   test -n "$ac_ct_CC" && break
20032 done
20033 
20034   if test "x$ac_ct_CC" = x; then
20035     CC=""
20036   else
20037     case $cross_compiling:$ac_tool_warned in
20038 yes:)
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20041 ac_tool_warned=yes ;;
20042 esac
20043     CC=$ac_ct_CC
20044   fi
20045 fi
20046 
20047 
20048 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20050 as_fn_error $? "no acceptable C compiler found in \$PATH
20051 See \`config.log' for more details" "$LINENO" 5; }
20052 
20053 # Provide some information about the compiler.
20054 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
20055 set X $ac_compile
20056 ac_compiler=$2
20057 for ac_option in --version -v -V -qversion; do
20058   { { ac_try="$ac_compiler $ac_option >&5"
20059 case "(($ac_try" in
20060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061   *) ac_try_echo=$ac_try;;
20062 esac
20063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20064 $as_echo "$ac_try_echo"; } >&5
20065   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
20066   ac_status=$?
20067   if test -s conftest.err; then
20068     sed '10a\
20069 ... rest of stderr output deleted ...
20070          10q' conftest.err >conftest.er1
20071     cat conftest.er1 >&5


20146         # actually working.
20147         break;;
20148     * )
20149         break;;
20150   esac
20151 done
20152 test "$ac_cv_exeext" = no && ac_cv_exeext=
20153 
20154 else
20155   ac_file=''
20156 fi
20157 if test -z "$ac_file"; then :
20158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20159 $as_echo "no" >&6; }
20160 $as_echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20162 
20163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20165 as_fn_error 77 "C compiler cannot create executables
20166 See \`config.log' for more details" "$LINENO" 5; }
20167 else
20168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20169 $as_echo "yes" >&6; }
20170 fi
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
20172 $as_echo_n "checking for C compiler default output file name... " >&6; }
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
20174 $as_echo "$ac_file" >&6; }
20175 ac_exeext=$ac_cv_exeext
20176 
20177 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
20178 ac_clean_files=$ac_clean_files_save
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
20180 $as_echo_n "checking for suffix of executables... " >&6; }
20181 if { { ac_try="$ac_link"
20182 case "(($ac_try" in
20183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184   *) ac_try_echo=$ac_try;;
20185 esac
20186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""


20189   ac_status=$?
20190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20191   test $ac_status = 0; }; then :
20192   # If both `conftest.exe' and `conftest' are `present' (well, observable)
20193 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
20194 # work properly (i.e., refer to `conftest.exe'), while it won't with
20195 # `rm'.
20196 for ac_file in conftest.exe conftest conftest.*; do
20197   test -f "$ac_file" || continue
20198   case $ac_file in
20199     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
20200     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
20201           break;;
20202     * ) break;;
20203   esac
20204 done
20205 else
20206   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20208 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
20209 See \`config.log' for more details" "$LINENO" 5; }
20210 fi
20211 rm -f conftest conftest$ac_cv_exeext
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
20213 $as_echo "$ac_cv_exeext" >&6; }
20214 
20215 rm -f conftest.$ac_ext
20216 EXEEXT=$ac_cv_exeext
20217 ac_exeext=$EXEEXT
20218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20219 /* end confdefs.h.  */
20220 #include <stdio.h>
20221 int
20222 main ()
20223 {
20224 FILE *f = fopen ("conftest.out", "w");
20225  return ferror (f) || fclose (f) != 0;
20226 
20227   ;
20228   return 0;
20229 }


20248   if { ac_try='./conftest$ac_cv_exeext'
20249   { { case "(($ac_try" in
20250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251   *) ac_try_echo=$ac_try;;
20252 esac
20253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20254 $as_echo "$ac_try_echo"; } >&5
20255   (eval "$ac_try") 2>&5
20256   ac_status=$?
20257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20258   test $ac_status = 0; }; }; then
20259     cross_compiling=no
20260   else
20261     if test "$cross_compiling" = maybe; then
20262         cross_compiling=yes
20263     else
20264         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20266 as_fn_error $? "cannot run C compiled programs.
20267 If you meant to cross compile, use \`--host'.
20268 See \`config.log' for more details" "$LINENO" 5; }
20269     fi
20270   fi
20271 fi
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
20273 $as_echo "$cross_compiling" >&6; }
20274 
20275 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
20276 ac_clean_files=$ac_clean_files_save
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
20278 $as_echo_n "checking for suffix of object files... " >&6; }
20279 if ${ac_cv_objext+:} false; then :
20280   $as_echo_n "(cached) " >&6
20281 else
20282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20283 /* end confdefs.h.  */
20284 
20285 int
20286 main ()
20287 {
20288 
20289   ;
20290   return 0;
20291 }
20292 _ACEOF
20293 rm -f conftest.o conftest.obj
20294 if { { ac_try="$ac_compile"
20295 case "(($ac_try" in
20296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297   *) ac_try_echo=$ac_try;;
20298 esac
20299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20300 $as_echo "$ac_try_echo"; } >&5
20301   (eval "$ac_compile") 2>&5
20302   ac_status=$?
20303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20304   test $ac_status = 0; }; then :
20305   for ac_file in conftest.o conftest.obj conftest.*; do
20306   test -f "$ac_file" || continue;
20307   case $ac_file in
20308     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
20309     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
20310        break;;
20311   esac
20312 done
20313 else
20314   $as_echo "$as_me: failed program was:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20316 
20317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20319 as_fn_error $? "cannot compute suffix of object files: cannot compile
20320 See \`config.log' for more details" "$LINENO" 5; }
20321 fi
20322 rm -f conftest.$ac_cv_objext conftest.$ac_ext
20323 fi
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
20325 $as_echo "$ac_cv_objext" >&6; }
20326 OBJEXT=$ac_cv_objext
20327 ac_objext=$OBJEXT
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
20329 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20330 if ${ac_cv_c_compiler_gnu+:} false; then :
20331   $as_echo_n "(cached) " >&6
20332 else
20333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20334 /* end confdefs.h.  */
20335 
20336 int
20337 main ()
20338 {
20339 #ifndef __GNUC__
20340        choke me
20341 #endif
20342 
20343   ;
20344   return 0;
20345 }
20346 _ACEOF
20347 if ac_fn_c_try_compile "$LINENO"; then :
20348   ac_compiler_gnu=yes
20349 else
20350   ac_compiler_gnu=no
20351 fi
20352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20353 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20354 
20355 fi
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
20357 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20358 if test $ac_compiler_gnu = yes; then
20359   GCC=yes
20360 else
20361   GCC=
20362 fi
20363 ac_test_CFLAGS=${CFLAGS+set}
20364 ac_save_CFLAGS=$CFLAGS
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
20366 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20367 if ${ac_cv_prog_cc_g+:} false; then :
20368   $as_echo_n "(cached) " >&6
20369 else
20370   ac_save_c_werror_flag=$ac_c_werror_flag
20371    ac_c_werror_flag=yes
20372    ac_cv_prog_cc_g=no
20373    CFLAGS="-g"
20374    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20375 /* end confdefs.h.  */
20376 
20377 int
20378 main ()
20379 {
20380 
20381   ;
20382   return 0;
20383 }
20384 _ACEOF
20385 if ac_fn_c_try_compile "$LINENO"; then :
20386   ac_cv_prog_cc_g=yes
20387 else


20425 fi
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
20427 $as_echo "$ac_cv_prog_cc_g" >&6; }
20428 if test "$ac_test_CFLAGS" = set; then
20429   CFLAGS=$ac_save_CFLAGS
20430 elif test $ac_cv_prog_cc_g = yes; then
20431   if test "$GCC" = yes; then
20432     CFLAGS="-g -O2"
20433   else
20434     CFLAGS="-g"
20435   fi
20436 else
20437   if test "$GCC" = yes; then
20438     CFLAGS="-O2"
20439   else
20440     CFLAGS=
20441   fi
20442 fi
20443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
20444 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20445 if ${ac_cv_prog_cc_c89+:} false; then :
20446   $as_echo_n "(cached) " >&6
20447 else
20448   ac_cv_prog_cc_c89=no
20449 ac_save_CC=$CC
20450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20451 /* end confdefs.h.  */
20452 #include <stdarg.h>
20453 #include <stdio.h>
20454 #include <sys/types.h>
20455 #include <sys/stat.h>
20456 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20457 struct buf { int x; };
20458 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20459 static char *e (p, i)
20460      char **p;
20461      int i;
20462 {
20463   return p[i];
20464 }
20465 static char *f (char * (*g) (char **, int), char **p, ...)


20548   COMPILER_CHECK_LIST="CC g++"
20549 else
20550   COMPILER_CHECK_LIST="g++ CC"
20551 fi
20552 
20553 
20554   COMPILER_NAME=C++
20555 
20556   CXX=
20557   # If TOOLS_DIR is set, check for all compiler names in there first
20558   # before checking the rest of the PATH.
20559   if test -n "$TOOLS_DIR"; then
20560     PATH_save="$PATH"
20561     PATH="$TOOLS_DIR"
20562     for ac_prog in $COMPILER_CHECK_LIST
20563 do
20564   # Extract the first word of "$ac_prog", so it can be a program name with args.
20565 set dummy $ac_prog; ac_word=$2
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20567 $as_echo_n "checking for $ac_word... " >&6; }
20568 if ${ac_cv_path_TOOLS_DIR_CXX+:} false; then :
20569   $as_echo_n "(cached) " >&6
20570 else
20571   case $TOOLS_DIR_CXX in
20572   [\\/]* | ?:[\\/]*)
20573   ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path.
20574   ;;
20575   *)
20576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20577 for as_dir in $PATH
20578 do
20579   IFS=$as_save_IFS
20580   test -z "$as_dir" && as_dir=.
20581     for ac_exec_ext in '' $ac_executable_extensions; do
20582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20583     ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext"
20584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20585     break 2
20586   fi
20587 done
20588   done


20600 $as_echo "no" >&6; }
20601 fi
20602 
20603 
20604   test -n "$TOOLS_DIR_CXX" && break
20605 done
20606 
20607     CXX=$TOOLS_DIR_CXX
20608     PATH="$PATH_save"
20609   fi
20610 
20611   # AC_PATH_PROGS can't be run multiple times with the same variable,
20612   # so create a new name for this run.
20613   if test "x$CXX" = x; then
20614     for ac_prog in $COMPILER_CHECK_LIST
20615 do
20616   # Extract the first word of "$ac_prog", so it can be a program name with args.
20617 set dummy $ac_prog; ac_word=$2
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20619 $as_echo_n "checking for $ac_word... " >&6; }
20620 if ${ac_cv_path_POTENTIAL_CXX+:} false; then :
20621   $as_echo_n "(cached) " >&6
20622 else
20623   case $POTENTIAL_CXX in
20624   [\\/]* | ?:[\\/]*)
20625   ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
20626   ;;
20627   *)
20628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20629 for as_dir in $PATH
20630 do
20631   IFS=$as_save_IFS
20632   test -z "$as_dir" && as_dir=.
20633     for ac_exec_ext in '' $ac_executable_extensions; do
20634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20635     ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
20636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20637     break 2
20638   fi
20639 done
20640   done


21013   if test "x$COMPILER_BASENAME" = "xccache"; then
21014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
21015 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
21016     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
21017     # We want to control ccache invocation ourselves, so ignore this cc and try
21018     # searching again.
21019 
21020     # Remove the path to the fake ccache cc from the PATH
21021     RETRY_COMPILER_SAVED_PATH="$PATH"
21022     COMPILER_DIRNAME=`$DIRNAME $CXX`
21023     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
21024 
21025     # Try again looking for our compiler
21026     if test -n "$ac_tool_prefix"; then
21027   for ac_prog in $COMPILER_CHECK_LIST
21028   do
21029     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21032 $as_echo_n "checking for $ac_word... " >&6; }
21033 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then :
21034   $as_echo_n "(cached) " >&6
21035 else
21036   if test -n "$PROPER_COMPILER_CXX"; then
21037   ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test.
21038 else
21039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21040 for as_dir in $PATH
21041 do
21042   IFS=$as_save_IFS
21043   test -z "$as_dir" && as_dir=.
21044     for ac_exec_ext in '' $ac_executable_extensions; do
21045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21046     ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog"
21047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21048     break 2
21049   fi
21050 done
21051   done
21052 IFS=$as_save_IFS
21053 


21057 if test -n "$PROPER_COMPILER_CXX"; then
21058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
21059 $as_echo "$PROPER_COMPILER_CXX" >&6; }
21060 else
21061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21062 $as_echo "no" >&6; }
21063 fi
21064 
21065 
21066     test -n "$PROPER_COMPILER_CXX" && break
21067   done
21068 fi
21069 if test -z "$PROPER_COMPILER_CXX"; then
21070   ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX
21071   for ac_prog in $COMPILER_CHECK_LIST
21072 do
21073   # Extract the first word of "$ac_prog", so it can be a program name with args.
21074 set dummy $ac_prog; ac_word=$2
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21076 $as_echo_n "checking for $ac_word... " >&6; }
21077 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then :
21078   $as_echo_n "(cached) " >&6
21079 else
21080   if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
21081   ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test.
21082 else
21083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21084 for as_dir in $PATH
21085 do
21086   IFS=$as_save_IFS
21087   test -z "$as_dir" && as_dir=.
21088     for ac_exec_ext in '' $ac_executable_extensions; do
21089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21090     ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog"
21091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21092     break 2
21093   fi
21094 done
21095   done
21096 IFS=$as_save_IFS
21097 


21511 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
21512 
21513 
21514 # Now that we have resolved CXX ourself, let autoconf have its go at it
21515 ac_ext=cpp
21516 ac_cpp='$CXXCPP $CPPFLAGS'
21517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21520 if test -z "$CXX"; then
21521   if test -n "$CCC"; then
21522     CXX=$CCC
21523   else
21524     if test -n "$ac_tool_prefix"; then
21525   for ac_prog in $CXX
21526   do
21527     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21530 $as_echo_n "checking for $ac_word... " >&6; }
21531 if ${ac_cv_prog_CXX+:} false; then :
21532   $as_echo_n "(cached) " >&6
21533 else
21534   if test -n "$CXX"; then
21535   ac_cv_prog_CXX="$CXX" # Let the user override the test.
21536 else
21537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21538 for as_dir in $PATH
21539 do
21540   IFS=$as_save_IFS
21541   test -z "$as_dir" && as_dir=.
21542     for ac_exec_ext in '' $ac_executable_extensions; do
21543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21544     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
21545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21546     break 2
21547   fi
21548 done
21549   done
21550 IFS=$as_save_IFS
21551 


21555 if test -n "$CXX"; then
21556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
21557 $as_echo "$CXX" >&6; }
21558 else
21559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21560 $as_echo "no" >&6; }
21561 fi
21562 
21563 
21564     test -n "$CXX" && break
21565   done
21566 fi
21567 if test -z "$CXX"; then
21568   ac_ct_CXX=$CXX
21569   for ac_prog in $CXX
21570 do
21571   # Extract the first word of "$ac_prog", so it can be a program name with args.
21572 set dummy $ac_prog; ac_word=$2
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21574 $as_echo_n "checking for $ac_word... " >&6; }
21575 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
21576   $as_echo_n "(cached) " >&6
21577 else
21578   if test -n "$ac_ct_CXX"; then
21579   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
21580 else
21581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21582 for as_dir in $PATH
21583 do
21584   IFS=$as_save_IFS
21585   test -z "$as_dir" && as_dir=.
21586     for ac_exec_ext in '' $ac_executable_extensions; do
21587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21588     ac_cv_prog_ac_ct_CXX="$ac_prog"
21589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21590     break 2
21591   fi
21592 done
21593   done
21594 IFS=$as_save_IFS
21595 


21633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21634   *) ac_try_echo=$ac_try;;
21635 esac
21636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21637 $as_echo "$ac_try_echo"; } >&5
21638   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
21639   ac_status=$?
21640   if test -s conftest.err; then
21641     sed '10a\
21642 ... rest of stderr output deleted ...
21643          10q' conftest.err >conftest.er1
21644     cat conftest.er1 >&5
21645   fi
21646   rm -f conftest.er1 conftest.err
21647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21648   test $ac_status = 0; }
21649 done
21650 
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
21652 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
21653 if ${ac_cv_cxx_compiler_gnu+:} false; then :
21654   $as_echo_n "(cached) " >&6
21655 else
21656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21657 /* end confdefs.h.  */
21658 
21659 int
21660 main ()
21661 {
21662 #ifndef __GNUC__
21663        choke me
21664 #endif
21665 
21666   ;
21667   return 0;
21668 }
21669 _ACEOF
21670 if ac_fn_cxx_try_compile "$LINENO"; then :
21671   ac_compiler_gnu=yes
21672 else
21673   ac_compiler_gnu=no
21674 fi
21675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21676 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
21677 
21678 fi
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
21680 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
21681 if test $ac_compiler_gnu = yes; then
21682   GXX=yes
21683 else
21684   GXX=
21685 fi
21686 ac_test_CXXFLAGS=${CXXFLAGS+set}
21687 ac_save_CXXFLAGS=$CXXFLAGS
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
21689 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
21690 if ${ac_cv_prog_cxx_g+:} false; then :
21691   $as_echo_n "(cached) " >&6
21692 else
21693   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
21694    ac_cxx_werror_flag=yes
21695    ac_cv_prog_cxx_g=no
21696    CXXFLAGS="-g"
21697    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21698 /* end confdefs.h.  */
21699 
21700 int
21701 main ()
21702 {
21703 
21704   ;
21705   return 0;
21706 }
21707 _ACEOF
21708 if ac_fn_cxx_try_compile "$LINENO"; then :
21709   ac_cv_prog_cxx_g=yes
21710 else


21768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21771 
21772 
21773 ### Locate other tools
21774 
21775 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
21776     ac_ext=m
21777 ac_cpp='$OBJCPP $CPPFLAGS'
21778 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21779 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21780 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
21781 if test -n "$ac_tool_prefix"; then
21782   for ac_prog in gcc objcc objc cc CC
21783   do
21784     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21787 $as_echo_n "checking for $ac_word... " >&6; }
21788 if ${ac_cv_prog_OBJC+:} false; then :
21789   $as_echo_n "(cached) " >&6
21790 else
21791   if test -n "$OBJC"; then
21792   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
21793 else
21794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21795 for as_dir in $PATH
21796 do
21797   IFS=$as_save_IFS
21798   test -z "$as_dir" && as_dir=.
21799     for ac_exec_ext in '' $ac_executable_extensions; do
21800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21801     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
21802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21803     break 2
21804   fi
21805 done
21806   done
21807 IFS=$as_save_IFS
21808 


21812 if test -n "$OBJC"; then
21813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
21814 $as_echo "$OBJC" >&6; }
21815 else
21816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21817 $as_echo "no" >&6; }
21818 fi
21819 
21820 
21821     test -n "$OBJC" && break
21822   done
21823 fi
21824 if test -z "$OBJC"; then
21825   ac_ct_OBJC=$OBJC
21826   for ac_prog in gcc objcc objc cc CC
21827 do
21828   # Extract the first word of "$ac_prog", so it can be a program name with args.
21829 set dummy $ac_prog; ac_word=$2
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21831 $as_echo_n "checking for $ac_word... " >&6; }
21832 if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
21833   $as_echo_n "(cached) " >&6
21834 else
21835   if test -n "$ac_ct_OBJC"; then
21836   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
21837 else
21838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21839 for as_dir in $PATH
21840 do
21841   IFS=$as_save_IFS
21842   test -z "$as_dir" && as_dir=.
21843     for ac_exec_ext in '' $ac_executable_extensions; do
21844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21845     ac_cv_prog_ac_ct_OBJC="$ac_prog"
21846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21847     break 2
21848   fi
21849 done
21850   done
21851 IFS=$as_save_IFS
21852 


21888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21889   *) ac_try_echo=$ac_try;;
21890 esac
21891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21892 $as_echo "$ac_try_echo"; } >&5
21893   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
21894   ac_status=$?
21895   if test -s conftest.err; then
21896     sed '10a\
21897 ... rest of stderr output deleted ...
21898          10q' conftest.err >conftest.er1
21899     cat conftest.er1 >&5
21900   fi
21901   rm -f conftest.er1 conftest.err
21902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21903   test $ac_status = 0; }
21904 done
21905 
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
21907 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
21908 if ${ac_cv_objc_compiler_gnu+:} false; then :
21909   $as_echo_n "(cached) " >&6
21910 else
21911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21912 /* end confdefs.h.  */
21913 
21914 int
21915 main ()
21916 {
21917 #ifndef __GNUC__
21918        choke me
21919 #endif
21920 
21921   ;
21922   return 0;
21923 }
21924 _ACEOF
21925 if ac_fn_objc_try_compile "$LINENO"; then :
21926   ac_compiler_gnu=yes
21927 else
21928   ac_compiler_gnu=no
21929 fi
21930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21931 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
21932 
21933 fi
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
21935 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
21936 if test $ac_compiler_gnu = yes; then
21937   GOBJC=yes
21938 else
21939   GOBJC=
21940 fi
21941 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
21942 ac_save_OBJCFLAGS=$OBJCFLAGS
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
21944 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
21945 if ${ac_cv_prog_objc_g+:} false; then :
21946   $as_echo_n "(cached) " >&6
21947 else
21948   ac_save_objc_werror_flag=$ac_objc_werror_flag
21949    ac_objc_werror_flag=yes
21950    ac_cv_prog_objc_g=no
21951    OBJCFLAGS="-g"
21952    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21953 /* end confdefs.h.  */
21954 
21955 int
21956 main ()
21957 {
21958 
21959   ;
21960   return 0;
21961 }
21962 _ACEOF
21963 if ac_fn_objc_try_compile "$LINENO"; then :
21964   ac_cv_prog_objc_g=yes
21965 else


22301 OBJCFLAGS="$ORG_OBJCFLAGS"
22302 
22303 LD="$CC"
22304 LDEXE="$CC"
22305 LDCXX="$CXX"
22306 LDEXECXX="$CXX"
22307 
22308 # LDEXE is the linker to use, when creating executables.
22309 
22310 # Linking C++ libraries.
22311 
22312 # Linking C++ executables.
22313 
22314 
22315 if test "x$OPENJDK_TARGET_OS" != xwindows; then
22316     if test -n "$ac_tool_prefix"; then
22317   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
22318 set dummy ${ac_tool_prefix}ar; ac_word=$2
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22320 $as_echo_n "checking for $ac_word... " >&6; }
22321 if ${ac_cv_prog_AR+:} false; then :
22322   $as_echo_n "(cached) " >&6
22323 else
22324   if test -n "$AR"; then
22325   ac_cv_prog_AR="$AR" # Let the user override the test.
22326 else
22327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22328 for as_dir in $PATH
22329 do
22330   IFS=$as_save_IFS
22331   test -z "$as_dir" && as_dir=.
22332     for ac_exec_ext in '' $ac_executable_extensions; do
22333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22334     ac_cv_prog_AR="${ac_tool_prefix}ar"
22335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22336     break 2
22337   fi
22338 done
22339   done
22340 IFS=$as_save_IFS
22341 
22342 fi
22343 fi
22344 AR=$ac_cv_prog_AR
22345 if test -n "$AR"; then
22346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
22347 $as_echo "$AR" >&6; }
22348 else
22349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22350 $as_echo "no" >&6; }
22351 fi
22352 
22353 
22354 fi
22355 if test -z "$ac_cv_prog_AR"; then
22356   ac_ct_AR=$AR
22357   # Extract the first word of "ar", so it can be a program name with args.
22358 set dummy ar; ac_word=$2
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22360 $as_echo_n "checking for $ac_word... " >&6; }
22361 if ${ac_cv_prog_ac_ct_AR+:} false; then :
22362   $as_echo_n "(cached) " >&6
22363 else
22364   if test -n "$ac_ct_AR"; then
22365   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
22366 else
22367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22368 for as_dir in $PATH
22369 do
22370   IFS=$as_save_IFS
22371   test -z "$as_dir" && as_dir=.
22372     for ac_exec_ext in '' $ac_executable_extensions; do
22373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22374     ac_cv_prog_ac_ct_AR="ar"
22375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22376     break 2
22377   fi
22378 done
22379   done
22380 IFS=$as_save_IFS
22381 


22683 HOTSPOT_CXX="$CXX"
22684 HOTSPOT_LD="$LD"
22685 
22686 
22687 
22688 COMPILER_NAME=gcc
22689 COMPILER_TYPE=CC
22690 if test "x$OPENJDK_TARGET_OS" = xwindows; then :
22691 
22692     # For now, assume that we are always compiling using cl.exe.
22693     CC_OUT_OPTION=-Fo
22694     EXE_OUT_OPTION=-out:
22695     LD_OUT_OPTION=-out:
22696     AR_OUT_OPTION=-out:
22697     # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin
22698     # program for something completely different.
22699     # Extract the first word of "link", so it can be a program name with args.
22700 set dummy link; ac_word=$2
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22702 $as_echo_n "checking for $ac_word... " >&6; }
22703 if ${ac_cv_prog_WINLD+:} false; then :
22704   $as_echo_n "(cached) " >&6
22705 else
22706   if test -n "$WINLD"; then
22707   ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
22708 else
22709   ac_prog_rejected=no
22710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22711 for as_dir in $PATH
22712 do
22713   IFS=$as_save_IFS
22714   test -z "$as_dir" && as_dir=.
22715     for ac_exec_ext in '' $ac_executable_extensions; do
22716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22717     if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then
22718        ac_prog_rejected=yes
22719        continue
22720      fi
22721     ac_cv_prog_WINLD="link"
22722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22723     break 2


23022     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5
23023 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; }
23024     "$WINLD" --version > /dev/null
23025     if test $? -eq 0 ; then
23026       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23027 $as_echo "no" >&6; }
23028       as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5
23029     else
23030       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23031 $as_echo "yes" >&6; }
23032     fi
23033     LD="$WINLD"
23034     LDEXE="$WINLD"
23035     LDCXX="$WINLD"
23036     LDEXECXX="$WINLD"
23037 
23038     # Extract the first word of "mt", so it can be a program name with args.
23039 set dummy mt; ac_word=$2
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23041 $as_echo_n "checking for $ac_word... " >&6; }
23042 if ${ac_cv_prog_MT+:} false; then :
23043   $as_echo_n "(cached) " >&6
23044 else
23045   if test -n "$MT"; then
23046   ac_cv_prog_MT="$MT" # Let the user override the test.
23047 else
23048   ac_prog_rejected=no
23049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23050 for as_dir in $PATH
23051 do
23052   IFS=$as_save_IFS
23053   test -z "$as_dir" && as_dir=.
23054     for ac_exec_ext in '' $ac_executable_extensions; do
23055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23056     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
23057        ac_prog_rejected=yes
23058        continue
23059      fi
23060     ac_cv_prog_MT="mt"
23061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23062     break 2


23343   fi
23344 
23345       # Now join together the path and the arguments once again
23346       if test "x$arguments" != xEOL; then
23347         new_complete="$new_path ${arguments% *}"
23348       else
23349         new_complete="$new_path"
23350       fi
23351 
23352   if test "x$complete" != "x$new_complete"; then
23353       MT="$new_complete"
23354       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5
23355 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;}
23356     fi
23357 
23358     # The resource compiler
23359     # Extract the first word of "rc", so it can be a program name with args.
23360 set dummy rc; ac_word=$2
23361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23362 $as_echo_n "checking for $ac_word... " >&6; }
23363 if ${ac_cv_prog_RC+:} false; then :
23364   $as_echo_n "(cached) " >&6
23365 else
23366   if test -n "$RC"; then
23367   ac_cv_prog_RC="$RC" # Let the user override the test.
23368 else
23369   ac_prog_rejected=no
23370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23371 for as_dir in $PATH
23372 do
23373   IFS=$as_save_IFS
23374   test -z "$as_dir" && as_dir=.
23375     for ac_exec_ext in '' $ac_executable_extensions; do
23376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23377     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
23378        ac_prog_rejected=yes
23379        continue
23380      fi
23381     ac_cv_prog_RC="rc"
23382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23383     break 2


23734 fi
23735     JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION
23736     if test "x$JDK_UPDATE_VERSION" = x; then :
23737 
23738         JDK_UPDATE_VERSION_NOTNULL=0
23739 
23740 fi
23741     RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\""
23742     RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\""
23743     RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\""
23744     RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\""
23745     RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\""
23746     RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\""
23747     RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\""
23748 
23749     # lib.exe is used to create static libraries.
23750     # Extract the first word of "lib", so it can be a program name with args.
23751 set dummy lib; ac_word=$2
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23753 $as_echo_n "checking for $ac_word... " >&6; }
23754 if ${ac_cv_prog_WINAR+:} false; then :
23755   $as_echo_n "(cached) " >&6
23756 else
23757   if test -n "$WINAR"; then
23758   ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
23759 else
23760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23761 for as_dir in $PATH
23762 do
23763   IFS=$as_save_IFS
23764   test -z "$as_dir" && as_dir=.
23765     for ac_exec_ext in '' $ac_executable_extensions; do
23766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23767     ac_cv_prog_WINAR="lib"
23768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23769     break 2
23770   fi
23771 done
23772   done
23773 IFS=$as_save_IFS
23774 


24040       # Now join together the path and the arguments once again
24041       if test "x$arguments" != xEOL; then
24042         new_complete="$new_path ${arguments% *}"
24043       else
24044         new_complete="$new_path"
24045       fi
24046 
24047   if test "x$complete" != "x$new_complete"; then
24048       WINAR="$new_complete"
24049       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5
24050 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;}
24051     fi
24052 
24053     AR="$WINAR"
24054     ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
24055 
24056     # Extract the first word of "dumpbin", so it can be a program name with args.
24057 set dummy dumpbin; ac_word=$2
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24059 $as_echo_n "checking for $ac_word... " >&6; }
24060 if ${ac_cv_prog_DUMPBIN+:} false; then :
24061   $as_echo_n "(cached) " >&6
24062 else
24063   if test -n "$DUMPBIN"; then
24064   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
24065 else
24066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24067 for as_dir in $PATH
24068 do
24069   IFS=$as_save_IFS
24070   test -z "$as_dir" && as_dir=.
24071     for ac_exec_ext in '' $ac_executable_extensions; do
24072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24073     ac_cv_prog_DUMPBIN="dumpbin"
24074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24075     break 2
24076   fi
24077 done
24078   done
24079 IFS=$as_save_IFS
24080 


24359 
24360     COMPILER_TYPE=CL
24361     CCXXFLAGS="$CCXXFLAGS -nologo"
24362 
24363 fi
24364 
24365 
24366 
24367 ac_ext=c
24368 ac_cpp='$CPP $CPPFLAGS'
24369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
24373 $as_echo_n "checking how to run the C preprocessor... " >&6; }
24374 # On Suns, sometimes $CPP names a directory.
24375 if test -n "$CPP" && test -d "$CPP"; then
24376   CPP=
24377 fi
24378 if test -z "$CPP"; then
24379   if ${ac_cv_prog_CPP+:} false; then :
24380   $as_echo_n "(cached) " >&6
24381 else
24382       # Double quotes because CPP needs to be expanded
24383     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
24384     do
24385       ac_preproc_ok=false
24386 for ac_c_preproc_warn_flag in '' yes
24387 do
24388   # Use a header file that comes with gcc, so configuring glibc
24389   # with a fresh cross-compiler works.
24390   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24391   # <limits.h> exists even on freestanding compilers.
24392   # On the NeXT, cc -E runs the code through the compiler's parser,
24393   # not just through cpp. "Syntax error" is here to catch this case.
24394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24395 /* end confdefs.h.  */
24396 #ifdef __STDC__
24397 # include <limits.h>
24398 #else
24399 # include <assert.h>


24475 _ACEOF
24476 if ac_fn_c_try_cpp "$LINENO"; then :
24477   # Broken: success on invalid input.
24478 continue
24479 else
24480   # Passes both tests.
24481 ac_preproc_ok=:
24482 break
24483 fi
24484 rm -f conftest.err conftest.i conftest.$ac_ext
24485 
24486 done
24487 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24488 rm -f conftest.i conftest.err conftest.$ac_ext
24489 if $ac_preproc_ok; then :
24490 
24491 else
24492   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24494 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
24495 See \`config.log' for more details" "$LINENO" 5; }
24496 fi
24497 
24498 ac_ext=cpp
24499 ac_cpp='$CXXCPP $CPPFLAGS'
24500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24503 
24504 
24505   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24506 
24507   # First separate the path from the arguments. This will split at the first
24508   # space.
24509   complete="$CPP"
24510   path="${complete%% *}"
24511   tmp="$complete EOL"
24512   arguments="${tmp#* }"
24513 
24514   # Input might be given as Windows format, start by converting to
24515   # unix format.


24759         new_complete="$new_path ${arguments% *}"
24760       else
24761         new_complete="$new_path"
24762       fi
24763 
24764   if test "x$complete" != "x$new_complete"; then
24765       CPP="$new_complete"
24766       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5
24767 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;}
24768     fi
24769 
24770 
24771 ac_ext=cpp
24772 ac_cpp='$CXXCPP $CPPFLAGS'
24773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
24777 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
24778 if test -z "$CXXCPP"; then
24779   if ${ac_cv_prog_CXXCPP+:} false; then :
24780   $as_echo_n "(cached) " >&6
24781 else
24782       # Double quotes because CXXCPP needs to be expanded
24783     for CXXCPP in "$CXX -E" "/lib/cpp"
24784     do
24785       ac_preproc_ok=false
24786 for ac_cxx_preproc_warn_flag in '' yes
24787 do
24788   # Use a header file that comes with gcc, so configuring glibc
24789   # with a fresh cross-compiler works.
24790   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24791   # <limits.h> exists even on freestanding compilers.
24792   # On the NeXT, cc -E runs the code through the compiler's parser,
24793   # not just through cpp. "Syntax error" is here to catch this case.
24794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24795 /* end confdefs.h.  */
24796 #ifdef __STDC__
24797 # include <limits.h>
24798 #else
24799 # include <assert.h>


24875 _ACEOF
24876 if ac_fn_cxx_try_cpp "$LINENO"; then :
24877   # Broken: success on invalid input.
24878 continue
24879 else
24880   # Passes both tests.
24881 ac_preproc_ok=:
24882 break
24883 fi
24884 rm -f conftest.err conftest.i conftest.$ac_ext
24885 
24886 done
24887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24888 rm -f conftest.i conftest.err conftest.$ac_ext
24889 if $ac_preproc_ok; then :
24890 
24891 else
24892   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24894 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
24895 See \`config.log' for more details" "$LINENO" 5; }
24896 fi
24897 
24898 ac_ext=cpp
24899 ac_cpp='$CXXCPP $CPPFLAGS'
24900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24903 
24904 
24905   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24906 
24907   # First separate the path from the arguments. This will split at the first
24908   # space.
24909   complete="$CXXCPP"
24910   path="${complete%% *}"
24911   tmp="$complete EOL"
24912   arguments="${tmp#* }"
24913 
24914   # Input might be given as Windows format, start by converting to
24915   # unix format.


25177     BUILD_CXX="$CXX"
25178     BUILD_LD="$LD"
25179 fi
25180 
25181 # for solaris we really need solaris tools, and not gnu equivalent
25182 #   these seems to normally reside in /usr/ccs/bin so add that to path before
25183 #   starting to probe
25184 #
25185 #   NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH
25186 #         so that it can be overriden --with-tools-dir
25187 if test "x$OPENJDK_BUILD_OS" = xsolaris; then
25188     PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}"
25189 fi
25190 
25191 # Find the right assembler.
25192 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
25193     # Extract the first word of "as", so it can be a program name with args.
25194 set dummy as; ac_word=$2
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25196 $as_echo_n "checking for $ac_word... " >&6; }
25197 if ${ac_cv_path_AS+:} false; then :
25198   $as_echo_n "(cached) " >&6
25199 else
25200   case $AS in
25201   [\\/]* | ?:[\\/]*)
25202   ac_cv_path_AS="$AS" # Let the user override the test with a path.
25203   ;;
25204   *)
25205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25206 for as_dir in $PATH
25207 do
25208   IFS=$as_save_IFS
25209   test -z "$as_dir" && as_dir=.
25210     for ac_exec_ext in '' $ac_executable_extensions; do
25211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25212     ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
25213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25214     break 2
25215   fi
25216 done
25217   done


25489       else
25490         new_complete="$new_path"
25491       fi
25492 
25493   if test "x$complete" != "x$new_complete"; then
25494       AS="$new_complete"
25495       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5
25496 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;}
25497     fi
25498 
25499 else
25500     AS="$CC -c"
25501 fi
25502 
25503 
25504 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
25505     # Extract the first word of "nm", so it can be a program name with args.
25506 set dummy nm; ac_word=$2
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25508 $as_echo_n "checking for $ac_word... " >&6; }
25509 if ${ac_cv_path_NM+:} false; then :
25510   $as_echo_n "(cached) " >&6
25511 else
25512   case $NM in
25513   [\\/]* | ?:[\\/]*)
25514   ac_cv_path_NM="$NM" # Let the user override the test with a path.
25515   ;;
25516   *)
25517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25518 for as_dir in $PATH
25519 do
25520   IFS=$as_save_IFS
25521   test -z "$as_dir" && as_dir=.
25522     for ac_exec_ext in '' $ac_executable_extensions; do
25523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25524     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
25525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25526     break 2
25527   fi
25528 done
25529   done


25795       fi
25796   fi
25797 
25798       # Now join together the path and the arguments once again
25799       if test "x$arguments" != xEOL; then
25800         new_complete="$new_path ${arguments% *}"
25801       else
25802         new_complete="$new_path"
25803       fi
25804 
25805   if test "x$complete" != "x$new_complete"; then
25806       NM="$new_complete"
25807       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
25808 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
25809     fi
25810 
25811     # Extract the first word of "gnm", so it can be a program name with args.
25812 set dummy gnm; ac_word=$2
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25814 $as_echo_n "checking for $ac_word... " >&6; }
25815 if ${ac_cv_path_GNM+:} false; then :
25816   $as_echo_n "(cached) " >&6
25817 else
25818   case $GNM in
25819   [\\/]* | ?:[\\/]*)
25820   ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
25821   ;;
25822   *)
25823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25824 for as_dir in $PATH
25825 do
25826   IFS=$as_save_IFS
25827   test -z "$as_dir" && as_dir=.
25828     for ac_exec_ext in '' $ac_executable_extensions; do
25829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25830     ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
25831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25832     break 2
25833   fi
25834 done
25835   done


26101       fi
26102   fi
26103 
26104       # Now join together the path and the arguments once again
26105       if test "x$arguments" != xEOL; then
26106         new_complete="$new_path ${arguments% *}"
26107       else
26108         new_complete="$new_path"
26109       fi
26110 
26111   if test "x$complete" != "x$new_complete"; then
26112       GNM="$new_complete"
26113       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5
26114 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;}
26115     fi
26116 
26117     # Extract the first word of "strip", so it can be a program name with args.
26118 set dummy strip; ac_word=$2
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26120 $as_echo_n "checking for $ac_word... " >&6; }
26121 if ${ac_cv_path_STRIP+:} false; then :
26122   $as_echo_n "(cached) " >&6
26123 else
26124   case $STRIP in
26125   [\\/]* | ?:[\\/]*)
26126   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
26127   ;;
26128   *)
26129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26130 for as_dir in $PATH
26131 do
26132   IFS=$as_save_IFS
26133   test -z "$as_dir" && as_dir=.
26134     for ac_exec_ext in '' $ac_executable_extensions; do
26135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26136     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
26137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26138     break 2
26139   fi
26140 done
26141   done


26407       fi
26408   fi
26409 
26410       # Now join together the path and the arguments once again
26411       if test "x$arguments" != xEOL; then
26412         new_complete="$new_path ${arguments% *}"
26413       else
26414         new_complete="$new_path"
26415       fi
26416 
26417   if test "x$complete" != "x$new_complete"; then
26418       STRIP="$new_complete"
26419       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
26420 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
26421     fi
26422 
26423     # Extract the first word of "mcs", so it can be a program name with args.
26424 set dummy mcs; ac_word=$2
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26426 $as_echo_n "checking for $ac_word... " >&6; }
26427 if ${ac_cv_path_MCS+:} false; then :
26428   $as_echo_n "(cached) " >&6
26429 else
26430   case $MCS in
26431   [\\/]* | ?:[\\/]*)
26432   ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
26433   ;;
26434   *)
26435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26436 for as_dir in $PATH
26437 do
26438   IFS=$as_save_IFS
26439   test -z "$as_dir" && as_dir=.
26440     for ac_exec_ext in '' $ac_executable_extensions; do
26441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26442     ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
26443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26444     break 2
26445   fi
26446 done
26447   done


26715 
26716       # Now join together the path and the arguments once again
26717       if test "x$arguments" != xEOL; then
26718         new_complete="$new_path ${arguments% *}"
26719       else
26720         new_complete="$new_path"
26721       fi
26722 
26723   if test "x$complete" != "x$new_complete"; then
26724       MCS="$new_complete"
26725       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
26726 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
26727     fi
26728 
26729 elif test "x$OPENJDK_TARGET_OS" != xwindows; then
26730     if test -n "$ac_tool_prefix"; then
26731   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
26732 set dummy ${ac_tool_prefix}nm; ac_word=$2
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26734 $as_echo_n "checking for $ac_word... " >&6; }
26735 if ${ac_cv_prog_NM+:} false; then :
26736   $as_echo_n "(cached) " >&6
26737 else
26738   if test -n "$NM"; then
26739   ac_cv_prog_NM="$NM" # Let the user override the test.
26740 else
26741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26742 for as_dir in $PATH
26743 do
26744   IFS=$as_save_IFS
26745   test -z "$as_dir" && as_dir=.
26746     for ac_exec_ext in '' $ac_executable_extensions; do
26747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26748     ac_cv_prog_NM="${ac_tool_prefix}nm"
26749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26750     break 2
26751   fi
26752 done
26753   done
26754 IFS=$as_save_IFS
26755 
26756 fi
26757 fi
26758 NM=$ac_cv_prog_NM
26759 if test -n "$NM"; then
26760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
26761 $as_echo "$NM" >&6; }
26762 else
26763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26764 $as_echo "no" >&6; }
26765 fi
26766 
26767 
26768 fi
26769 if test -z "$ac_cv_prog_NM"; then
26770   ac_ct_NM=$NM
26771   # Extract the first word of "nm", so it can be a program name with args.
26772 set dummy nm; ac_word=$2
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26774 $as_echo_n "checking for $ac_word... " >&6; }
26775 if ${ac_cv_prog_ac_ct_NM+:} false; then :
26776   $as_echo_n "(cached) " >&6
26777 else
26778   if test -n "$ac_ct_NM"; then
26779   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
26780 else
26781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26782 for as_dir in $PATH
26783 do
26784   IFS=$as_save_IFS
26785   test -z "$as_dir" && as_dir=.
26786     for ac_exec_ext in '' $ac_executable_extensions; do
26787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26788     ac_cv_prog_ac_ct_NM="nm"
26789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26790     break 2
26791   fi
26792 done
26793   done
26794 IFS=$as_save_IFS
26795 


27075       # Now join together the path and the arguments once again
27076       if test "x$arguments" != xEOL; then
27077         new_complete="$new_path ${arguments% *}"
27078       else
27079         new_complete="$new_path"
27080       fi
27081 
27082   if test "x$complete" != "x$new_complete"; then
27083       NM="$new_complete"
27084       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
27085 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
27086     fi
27087 
27088     GNM="$NM"
27089 
27090     if test -n "$ac_tool_prefix"; then
27091   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
27092 set dummy ${ac_tool_prefix}strip; ac_word=$2
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27094 $as_echo_n "checking for $ac_word... " >&6; }
27095 if ${ac_cv_prog_STRIP+:} false; then :
27096   $as_echo_n "(cached) " >&6
27097 else
27098   if test -n "$STRIP"; then
27099   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
27100 else
27101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27102 for as_dir in $PATH
27103 do
27104   IFS=$as_save_IFS
27105   test -z "$as_dir" && as_dir=.
27106     for ac_exec_ext in '' $ac_executable_extensions; do
27107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27108     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
27109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27110     break 2
27111   fi
27112 done
27113   done
27114 IFS=$as_save_IFS
27115 
27116 fi
27117 fi
27118 STRIP=$ac_cv_prog_STRIP
27119 if test -n "$STRIP"; then
27120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
27121 $as_echo "$STRIP" >&6; }
27122 else
27123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27124 $as_echo "no" >&6; }
27125 fi
27126 
27127 
27128 fi
27129 if test -z "$ac_cv_prog_STRIP"; then
27130   ac_ct_STRIP=$STRIP
27131   # Extract the first word of "strip", so it can be a program name with args.
27132 set dummy strip; ac_word=$2
27133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27134 $as_echo_n "checking for $ac_word... " >&6; }
27135 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
27136   $as_echo_n "(cached) " >&6
27137 else
27138   if test -n "$ac_ct_STRIP"; then
27139   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
27140 else
27141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27142 for as_dir in $PATH
27143 do
27144   IFS=$as_save_IFS
27145   test -z "$as_dir" && as_dir=.
27146     for ac_exec_ext in '' $ac_executable_extensions; do
27147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27148     ac_cv_prog_ac_ct_STRIP="strip"
27149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27150     break 2
27151   fi
27152 done
27153   done
27154 IFS=$as_save_IFS
27155 


27440       fi
27441 
27442   if test "x$complete" != "x$new_complete"; then
27443       STRIP="$new_complete"
27444       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
27445 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
27446     fi
27447 
27448 fi
27449 
27450 # objcopy is used for moving debug symbols to separate files when
27451 # full debug symbols are enabled.
27452 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
27453     if test -n "$ac_tool_prefix"; then
27454   for ac_prog in gobjcopy objcopy
27455   do
27456     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27459 $as_echo_n "checking for $ac_word... " >&6; }
27460 if ${ac_cv_prog_OBJCOPY+:} false; then :
27461   $as_echo_n "(cached) " >&6
27462 else
27463   if test -n "$OBJCOPY"; then
27464   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
27465 else
27466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27467 for as_dir in $PATH
27468 do
27469   IFS=$as_save_IFS
27470   test -z "$as_dir" && as_dir=.
27471     for ac_exec_ext in '' $ac_executable_extensions; do
27472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27473     ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
27474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27475     break 2
27476   fi
27477 done
27478   done
27479 IFS=$as_save_IFS
27480 


27484 if test -n "$OBJCOPY"; then
27485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
27486 $as_echo "$OBJCOPY" >&6; }
27487 else
27488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27489 $as_echo "no" >&6; }
27490 fi
27491 
27492 
27493     test -n "$OBJCOPY" && break
27494   done
27495 fi
27496 if test -z "$OBJCOPY"; then
27497   ac_ct_OBJCOPY=$OBJCOPY
27498   for ac_prog in gobjcopy objcopy
27499 do
27500   # Extract the first word of "$ac_prog", so it can be a program name with args.
27501 set dummy $ac_prog; ac_word=$2
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27503 $as_echo_n "checking for $ac_word... " >&6; }
27504 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
27505   $as_echo_n "(cached) " >&6
27506 else
27507   if test -n "$ac_ct_OBJCOPY"; then
27508   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
27509 else
27510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27511 for as_dir in $PATH
27512 do
27513   IFS=$as_save_IFS
27514   test -z "$as_dir" && as_dir=.
27515     for ac_exec_ext in '' $ac_executable_extensions; do
27516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27517     ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
27518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27519     break 2
27520   fi
27521 done
27522   done
27523 IFS=$as_save_IFS
27524 


27811       else
27812         new_complete="$new_path"
27813       fi
27814 
27815   if test "x$complete" != "x$new_complete"; then
27816       OBJCOPY="$new_complete"
27817       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5
27818 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;}
27819     fi
27820 
27821     fi
27822 fi
27823 
27824 if test -n "$ac_tool_prefix"; then
27825   for ac_prog in gobjdump objdump
27826   do
27827     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27830 $as_echo_n "checking for $ac_word... " >&6; }
27831 if ${ac_cv_prog_OBJDUMP+:} false; then :
27832   $as_echo_n "(cached) " >&6
27833 else
27834   if test -n "$OBJDUMP"; then
27835   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
27836 else
27837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27838 for as_dir in $PATH
27839 do
27840   IFS=$as_save_IFS
27841   test -z "$as_dir" && as_dir=.
27842     for ac_exec_ext in '' $ac_executable_extensions; do
27843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27844     ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
27845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27846     break 2
27847   fi
27848 done
27849   done
27850 IFS=$as_save_IFS
27851 


27855 if test -n "$OBJDUMP"; then
27856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
27857 $as_echo "$OBJDUMP" >&6; }
27858 else
27859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27860 $as_echo "no" >&6; }
27861 fi
27862 
27863 
27864     test -n "$OBJDUMP" && break
27865   done
27866 fi
27867 if test -z "$OBJDUMP"; then
27868   ac_ct_OBJDUMP=$OBJDUMP
27869   for ac_prog in gobjdump objdump
27870 do
27871   # Extract the first word of "$ac_prog", so it can be a program name with args.
27872 set dummy $ac_prog; ac_word=$2
27873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27874 $as_echo_n "checking for $ac_word... " >&6; }
27875 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
27876   $as_echo_n "(cached) " >&6
27877 else
27878   if test -n "$ac_ct_OBJDUMP"; then
27879   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
27880 else
27881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27882 for as_dir in $PATH
27883 do
27884   IFS=$as_save_IFS
27885   test -z "$as_dir" && as_dir=.
27886     for ac_exec_ext in '' $ac_executable_extensions; do
27887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27888     ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
27889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27890     break 2
27891   fi
27892 done
27893   done
27894 IFS=$as_save_IFS
27895 


28179       # Now join together the path and the arguments once again
28180       if test "x$arguments" != xEOL; then
28181         new_complete="$new_path ${arguments% *}"
28182       else
28183         new_complete="$new_path"
28184       fi
28185 
28186   if test "x$complete" != "x$new_complete"; then
28187       OBJDUMP="$new_complete"
28188       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
28189 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
28190     fi
28191 
28192 fi
28193 
28194 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
28195    # Extract the first word of "lipo", so it can be a program name with args.
28196 set dummy lipo; ac_word=$2
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28198 $as_echo_n "checking for $ac_word... " >&6; }
28199 if ${ac_cv_path_LIPO+:} false; then :
28200   $as_echo_n "(cached) " >&6
28201 else
28202   case $LIPO in
28203   [\\/]* | ?:[\\/]*)
28204   ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
28205   ;;
28206   *)
28207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28208 for as_dir in $PATH
28209 do
28210   IFS=$as_save_IFS
28211   test -z "$as_dir" && as_dir=.
28212     for ac_exec_ext in '' $ac_executable_extensions; do
28213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28214     ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
28215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28216     break 2
28217   fi
28218 done
28219   done


28496       LIPO="$new_complete"
28497       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5
28498 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;}
28499     fi
28500 
28501 fi
28502 
28503 
28504 
28505 # Restore old path without tools dir
28506 PATH="$OLD_PATH"
28507 
28508 
28509 # FIXME: Currently we must test this after paths but before flags. Fix!
28510 
28511 # And we can test some aspects on the target using configure macros.
28512 
28513 
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
28515 $as_echo_n "checking for ANSI C header files... " >&6; }
28516 if ${ac_cv_header_stdc+:} false; then :
28517   $as_echo_n "(cached) " >&6
28518 else
28519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28520 /* end confdefs.h.  */
28521 #include <stdlib.h>
28522 #include <stdarg.h>
28523 #include <string.h>
28524 #include <float.h>
28525 
28526 int
28527 main ()
28528 {
28529 
28530   ;
28531   return 0;
28532 }
28533 _ACEOF
28534 if ac_fn_cxx_try_compile "$LINENO"; then :
28535   ac_cv_header_stdc=yes
28536 else


28673   #   to prevent emitting warning...
28674   ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28675   ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28676   ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28677 
28678   CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
28679   CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
28680   LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
28681 
28682   CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
28683   CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
28684   LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
28685 
28686   fi
28687 fi
28688 
28689 # Make compilation sanity check
28690 for ac_header in stdio.h
28691 do :
28692   ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
28693 if test "x$ac_cv_header_stdio_h" = xyes; then :
28694   cat >>confdefs.h <<_ACEOF
28695 #define HAVE_STDIO_H 1
28696 _ACEOF
28697 
28698 else
28699 
28700   { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5
28701 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;}
28702   if test "x$COMPILE_TYPE" = xreduced; then
28703     { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5
28704 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;}
28705   elif test "x$COMPILE_TYPE" = xcross; then
28706     { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5
28707 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;}
28708   fi
28709   as_fn_error $? "Cannot continue." "$LINENO" 5
28710 
28711 fi
28712 
28713 done
28714 
28715 
28716 # The cast to long int works around a bug in the HP C Compiler
28717 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28718 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28719 # This bug is HP SR number 8606223364.
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
28721 $as_echo_n "checking size of int *... " >&6; }
28722 if ${ac_cv_sizeof_int_p+:} false; then :
28723   $as_echo_n "(cached) " >&6
28724 else
28725   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
28726 
28727 else
28728   if test "$ac_cv_type_int_p" = yes; then
28729      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28731 as_fn_error 77 "cannot compute sizeof (int *)
28732 See \`config.log' for more details" "$LINENO" 5; }
28733    else
28734      ac_cv_sizeof_int_p=0
28735    fi
28736 fi
28737 
28738 fi
28739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
28740 $as_echo "$ac_cv_sizeof_int_p" >&6; }
28741 
28742 
28743 
28744 cat >>confdefs.h <<_ACEOF
28745 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28746 _ACEOF
28747 
28748 
28749 
28750 if test "x$SIZEOF_INT_P" != "x$ac_cv_sizeof_int_p"; then
28751   # Workaround autoconf bug, see http://lists.gnu.org/archive/html/autoconf/2010-07/msg00004.html
28752   SIZEOF_INT_P="$ac_cv_sizeof_int_p"


28759 else
28760     TESTED_TARGET_CPU_BITS=`expr 8 \* $SIZEOF_INT_P`
28761 
28762     if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
28763         as_fn_error $? "The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)" "$LINENO" 5
28764     fi
28765 fi
28766 
28767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5
28768 $as_echo_n "checking for target address size... " >&6; }
28769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5
28770 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; }
28771 
28772 
28773 ###############################################################################
28774 #
28775 # Is the target little of big endian?
28776 #
28777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
28778 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28779 if ${ac_cv_c_bigendian+:} false; then :
28780   $as_echo_n "(cached) " >&6
28781 else
28782   ac_cv_c_bigendian=unknown
28783     # See if we're dealing with a universal compiler.
28784     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28785 /* end confdefs.h.  */
28786 #ifndef __APPLE_CC__
28787                not a universal capable compiler
28788              #endif
28789              typedef int dummy;
28790 
28791 _ACEOF
28792 if ac_fn_cxx_try_compile "$LINENO"; then :
28793 
28794         # Check for potential -arch flags.  It is not universal unless
28795         # there are at least two -arch flags with different values.
28796         ac_arch=
28797         ac_prev=
28798         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28799          if test -n "$ac_prev"; then


29926     fi
29927   fi
29928 fi
29929 
29930 # Now let autoconf do it's magic
29931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
29932 $as_echo_n "checking for X... " >&6; }
29933 
29934 
29935 # Check whether --with-x was given.
29936 if test "${with_x+set}" = set; then :
29937   withval=$with_x;
29938 fi
29939 
29940 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29941 if test "x$with_x" = xno; then
29942   # The user explicitly disabled X.
29943   have_x=disabled
29944 else
29945   case $x_includes,$x_libraries in #(
29946     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
29947     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
29948   $as_echo_n "(cached) " >&6
29949 else
29950   # One or both of the vars are not set, and there is no cached value.
29951 ac_x_includes=no ac_x_libraries=no
29952 rm -f -r conftest.dir
29953 if mkdir conftest.dir; then
29954   cd conftest.dir
29955   cat >Imakefile <<'_ACEOF'
29956 incroot:
29957         @echo incroot='${INCROOT}'
29958 usrlibdir:
29959         @echo usrlibdir='${USRLIBDIR}'
29960 libdir:
29961         @echo libdir='${LIBDIR}'
29962 _ACEOF
29963   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29964     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29965     for ac_var in incroot usrlibdir libdir; do
29966       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29967     done


30204 /* Override any GCC internal prototype to avoid an error.
30205    Use char because int might match the return type of a GCC
30206    builtin and then its argument prototype would still apply.  */
30207 #ifdef __cplusplus
30208 extern "C"
30209 #endif
30210 char XOpenDisplay ();
30211 int
30212 main ()
30213 {
30214 return XOpenDisplay ();
30215   ;
30216   return 0;
30217 }
30218 _ACEOF
30219 if ac_fn_cxx_try_link "$LINENO"; then :
30220 
30221 else
30222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
30223 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
30224 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
30225   $as_echo_n "(cached) " >&6
30226 else
30227   ac_check_lib_save_LIBS=$LIBS
30228 LIBS="-ldnet  $LIBS"
30229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30230 /* end confdefs.h.  */
30231 
30232 /* Override any GCC internal prototype to avoid an error.
30233    Use char because int might match the return type of a GCC
30234    builtin and then its argument prototype would still apply.  */
30235 #ifdef __cplusplus
30236 extern "C"
30237 #endif
30238 char dnet_ntoa ();
30239 int
30240 main ()
30241 {
30242 return dnet_ntoa ();
30243   ;
30244   return 0;
30245 }
30246 _ACEOF
30247 if ac_fn_cxx_try_link "$LINENO"; then :
30248   ac_cv_lib_dnet_dnet_ntoa=yes
30249 else
30250   ac_cv_lib_dnet_dnet_ntoa=no
30251 fi
30252 rm -f core conftest.err conftest.$ac_objext \
30253     conftest$ac_exeext conftest.$ac_ext
30254 LIBS=$ac_check_lib_save_LIBS
30255 fi
30256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30257 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30258 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
30259   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30260 fi
30261 
30262     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30263       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
30264 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
30265 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
30266   $as_echo_n "(cached) " >&6
30267 else
30268   ac_check_lib_save_LIBS=$LIBS
30269 LIBS="-ldnet_stub  $LIBS"
30270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30271 /* end confdefs.h.  */
30272 
30273 /* Override any GCC internal prototype to avoid an error.
30274    Use char because int might match the return type of a GCC
30275    builtin and then its argument prototype would still apply.  */
30276 #ifdef __cplusplus
30277 extern "C"
30278 #endif
30279 char dnet_ntoa ();
30280 int
30281 main ()
30282 {
30283 return dnet_ntoa ();
30284   ;
30285   return 0;
30286 }
30287 _ACEOF
30288 if ac_fn_cxx_try_link "$LINENO"; then :
30289   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30290 else
30291   ac_cv_lib_dnet_stub_dnet_ntoa=no
30292 fi
30293 rm -f core conftest.err conftest.$ac_objext \
30294     conftest$ac_exeext conftest.$ac_ext
30295 LIBS=$ac_check_lib_save_LIBS
30296 fi
30297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30298 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30299 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
30300   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30301 fi
30302 
30303     fi
30304 fi
30305 rm -f core conftest.err conftest.$ac_objext \
30306     conftest$ac_exeext conftest.$ac_ext
30307     LIBS="$ac_xsave_LIBS"
30308 
30309     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30310     # to get the SysV transport functions.
30311     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30312     # needs -lnsl.
30313     # The nsl library prevents programs from opening the X display
30314     # on Irix 5.2, according to T.E. Dickey.
30315     # The functions gethostbyname, getservbyname, and inet_addr are
30316     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30317     ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
30318 if test "x$ac_cv_func_gethostbyname" = xyes; then :
30319 
30320 fi
30321 
30322     if test $ac_cv_func_gethostbyname = no; then
30323       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
30324 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
30325 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
30326   $as_echo_n "(cached) " >&6
30327 else
30328   ac_check_lib_save_LIBS=$LIBS
30329 LIBS="-lnsl  $LIBS"
30330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30331 /* end confdefs.h.  */
30332 
30333 /* Override any GCC internal prototype to avoid an error.
30334    Use char because int might match the return type of a GCC
30335    builtin and then its argument prototype would still apply.  */
30336 #ifdef __cplusplus
30337 extern "C"
30338 #endif
30339 char gethostbyname ();
30340 int
30341 main ()
30342 {
30343 return gethostbyname ();
30344   ;
30345   return 0;
30346 }
30347 _ACEOF
30348 if ac_fn_cxx_try_link "$LINENO"; then :
30349   ac_cv_lib_nsl_gethostbyname=yes
30350 else
30351   ac_cv_lib_nsl_gethostbyname=no
30352 fi
30353 rm -f core conftest.err conftest.$ac_objext \
30354     conftest$ac_exeext conftest.$ac_ext
30355 LIBS=$ac_check_lib_save_LIBS
30356 fi
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
30358 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
30359 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
30360   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30361 fi
30362 
30363       if test $ac_cv_lib_nsl_gethostbyname = no; then
30364         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
30365 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
30366 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
30367   $as_echo_n "(cached) " >&6
30368 else
30369   ac_check_lib_save_LIBS=$LIBS
30370 LIBS="-lbsd  $LIBS"
30371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30372 /* end confdefs.h.  */
30373 
30374 /* Override any GCC internal prototype to avoid an error.
30375    Use char because int might match the return type of a GCC
30376    builtin and then its argument prototype would still apply.  */
30377 #ifdef __cplusplus
30378 extern "C"
30379 #endif
30380 char gethostbyname ();
30381 int
30382 main ()
30383 {
30384 return gethostbyname ();
30385   ;
30386   return 0;
30387 }
30388 _ACEOF
30389 if ac_fn_cxx_try_link "$LINENO"; then :
30390   ac_cv_lib_bsd_gethostbyname=yes
30391 else
30392   ac_cv_lib_bsd_gethostbyname=no
30393 fi
30394 rm -f core conftest.err conftest.$ac_objext \
30395     conftest$ac_exeext conftest.$ac_ext
30396 LIBS=$ac_check_lib_save_LIBS
30397 fi
30398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
30399 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
30400 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
30401   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30402 fi
30403 
30404       fi
30405     fi
30406 
30407     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30408     # socket/setsockopt and other routines are undefined under SCO ODT
30409     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30410     # on later versions), says Simon Leinen: it contains gethostby*
30411     # variants that don't use the name server (or something).  -lsocket
30412     # must be given before -lnsl if both are needed.  We assume that
30413     # if connect needs -lnsl, so does gethostbyname.
30414     ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
30415 if test "x$ac_cv_func_connect" = xyes; then :
30416 
30417 fi
30418 
30419     if test $ac_cv_func_connect = no; then
30420       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
30421 $as_echo_n "checking for connect in -lsocket... " >&6; }
30422 if ${ac_cv_lib_socket_connect+:} false; then :
30423   $as_echo_n "(cached) " >&6
30424 else
30425   ac_check_lib_save_LIBS=$LIBS
30426 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30428 /* end confdefs.h.  */
30429 
30430 /* Override any GCC internal prototype to avoid an error.
30431    Use char because int might match the return type of a GCC
30432    builtin and then its argument prototype would still apply.  */
30433 #ifdef __cplusplus
30434 extern "C"
30435 #endif
30436 char connect ();
30437 int
30438 main ()
30439 {
30440 return connect ();
30441   ;
30442   return 0;
30443 }
30444 _ACEOF
30445 if ac_fn_cxx_try_link "$LINENO"; then :
30446   ac_cv_lib_socket_connect=yes
30447 else
30448   ac_cv_lib_socket_connect=no
30449 fi
30450 rm -f core conftest.err conftest.$ac_objext \
30451     conftest$ac_exeext conftest.$ac_ext
30452 LIBS=$ac_check_lib_save_LIBS
30453 fi
30454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
30455 $as_echo "$ac_cv_lib_socket_connect" >&6; }
30456 if test "x$ac_cv_lib_socket_connect" = xyes; then :
30457   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30458 fi
30459 
30460     fi
30461 
30462     # Guillermo Gomez says -lposix is necessary on A/UX.
30463     ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
30464 if test "x$ac_cv_func_remove" = xyes; then :
30465 
30466 fi
30467 
30468     if test $ac_cv_func_remove = no; then
30469       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
30470 $as_echo_n "checking for remove in -lposix... " >&6; }
30471 if ${ac_cv_lib_posix_remove+:} false; then :
30472   $as_echo_n "(cached) " >&6
30473 else
30474   ac_check_lib_save_LIBS=$LIBS
30475 LIBS="-lposix  $LIBS"
30476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30477 /* end confdefs.h.  */
30478 
30479 /* Override any GCC internal prototype to avoid an error.
30480    Use char because int might match the return type of a GCC
30481    builtin and then its argument prototype would still apply.  */
30482 #ifdef __cplusplus
30483 extern "C"
30484 #endif
30485 char remove ();
30486 int
30487 main ()
30488 {
30489 return remove ();
30490   ;
30491   return 0;
30492 }
30493 _ACEOF
30494 if ac_fn_cxx_try_link "$LINENO"; then :
30495   ac_cv_lib_posix_remove=yes
30496 else
30497   ac_cv_lib_posix_remove=no
30498 fi
30499 rm -f core conftest.err conftest.$ac_objext \
30500     conftest$ac_exeext conftest.$ac_ext
30501 LIBS=$ac_check_lib_save_LIBS
30502 fi
30503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
30504 $as_echo "$ac_cv_lib_posix_remove" >&6; }
30505 if test "x$ac_cv_lib_posix_remove" = xyes; then :
30506   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30507 fi
30508 
30509     fi
30510 
30511     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30512     ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
30513 if test "x$ac_cv_func_shmat" = xyes; then :
30514 
30515 fi
30516 
30517     if test $ac_cv_func_shmat = no; then
30518       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
30519 $as_echo_n "checking for shmat in -lipc... " >&6; }
30520 if ${ac_cv_lib_ipc_shmat+:} false; then :
30521   $as_echo_n "(cached) " >&6
30522 else
30523   ac_check_lib_save_LIBS=$LIBS
30524 LIBS="-lipc  $LIBS"
30525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30526 /* end confdefs.h.  */
30527 
30528 /* Override any GCC internal prototype to avoid an error.
30529    Use char because int might match the return type of a GCC
30530    builtin and then its argument prototype would still apply.  */
30531 #ifdef __cplusplus
30532 extern "C"
30533 #endif
30534 char shmat ();
30535 int
30536 main ()
30537 {
30538 return shmat ();
30539   ;
30540   return 0;
30541 }
30542 _ACEOF
30543 if ac_fn_cxx_try_link "$LINENO"; then :
30544   ac_cv_lib_ipc_shmat=yes
30545 else
30546   ac_cv_lib_ipc_shmat=no
30547 fi
30548 rm -f core conftest.err conftest.$ac_objext \
30549     conftest$ac_exeext conftest.$ac_ext
30550 LIBS=$ac_check_lib_save_LIBS
30551 fi
30552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
30553 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
30554 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
30555   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30556 fi
30557 
30558     fi
30559   fi
30560 
30561   # Check for libraries that X11R6 Xt/Xaw programs need.
30562   ac_save_LDFLAGS=$LDFLAGS
30563   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30564   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30565   # check for ICE first), but we must link in the order -lSM -lICE or
30566   # we get undefined symbols.  So assume we have SM if we have ICE.
30567   # These have to be linked with before -lX11, unlike the other
30568   # libraries we check for below, so use a different variable.
30569   # John Interrante, Karl Berry
30570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
30571 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
30572 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
30573   $as_echo_n "(cached) " >&6
30574 else
30575   ac_check_lib_save_LIBS=$LIBS
30576 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30578 /* end confdefs.h.  */
30579 
30580 /* Override any GCC internal prototype to avoid an error.
30581    Use char because int might match the return type of a GCC
30582    builtin and then its argument prototype would still apply.  */
30583 #ifdef __cplusplus
30584 extern "C"
30585 #endif
30586 char IceConnectionNumber ();
30587 int
30588 main ()
30589 {
30590 return IceConnectionNumber ();
30591   ;
30592   return 0;
30593 }
30594 _ACEOF
30595 if ac_fn_cxx_try_link "$LINENO"; then :
30596   ac_cv_lib_ICE_IceConnectionNumber=yes
30597 else
30598   ac_cv_lib_ICE_IceConnectionNumber=no
30599 fi
30600 rm -f core conftest.err conftest.$ac_objext \
30601     conftest$ac_exeext conftest.$ac_ext
30602 LIBS=$ac_check_lib_save_LIBS
30603 fi
30604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30605 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30606 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
30607   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30608 fi
30609 
30610   LDFLAGS=$ac_save_LDFLAGS
30611 
30612 fi
30613 
30614 
30615 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
30616 # this doesn't make sense so we remove it.
30617 if test "x$COMPILE_TYPE" = xcross; then
30618   X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'`
30619 fi
30620 
30621 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
30622 
30623     # Print a helpful message on how to acquire the necessary build dependency.
30624     # x11 is the help tag: freetyp2, cups, pulse, alsa etc
30625     MISSING_DEPENDENCY=x11
30626     PKGHANDLER_COMMAND=


30984                 pkgadd_help  $MISSING_DEPENDENCY ;;
30985     * )
30986       break ;;
30987     esac
30988 
30989     if test "x$PKGHANDLER_COMMAND" != x; then
30990         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
30991     fi
30992 
30993             as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5
30994         fi
30995 fi
30996 
30997 
30998 
30999 
31000 
31001 
31002 ###############################################################################
31003 #
31004 # The ICU LayoutEngine library is used to select the best glyphs to display
31005 #
31006 
31007 
31008 # Check whether --with-icu-le was given.
31009 if test "${with_icu_le+set}" = set; then :
31010   withval=$with_icu_le;
31011 fi
31012 
31013 
31014 # default is bundled
31015 DEFAULT_ICU_LE=bundled
31016 
31017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which icu-le to use" >&5
31018 $as_echo_n "checking for which icu-le to use... " >&6; }
31019 
31020 #
31021 # if user didn't specify, use DEFAULT_ICU_LE
31022 #
31023 
31024 if test "x${with_icu_le}" = "x"; then
31025     with_icu_le=${DEFAULT_ICU_LE}
31026 fi
31027 
31028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_icu_le}" >&5
31029 $as_echo "${with_icu_le}" >&6; }
31030 
31031 if test "x${with_icu_le}" = "xbundled"; then
31032     USE_EXTERNAL_ICU_LE=false
31033 else
31034 
31035 pkg_failed=no
31036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU_LE" >&5
31037 $as_echo_n "checking for ICU_LE... " >&6; }
31038 
31039 if test -n "$ICU_LE_CFLAGS"; then
31040     pkg_cv_ICU_LE_CFLAGS="$ICU_LE_CFLAGS"
31041  elif test -n "$PKG_CONFIG"; then
31042     if test -n "$PKG_CONFIG" && \
31043     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-le\""; } >&5
31044   ($PKG_CONFIG --exists --print-errors "icu-le") 2>&5
31045   ac_status=$?
31046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31047   test $ac_status = 0; }; then
31048   pkg_cv_ICU_LE_CFLAGS=`$PKG_CONFIG --cflags "icu-le" 2>/dev/null`
31049 else
31050   pkg_failed=yes
31051 fi
31052  else
31053     pkg_failed=untried
31054 fi
31055 if test -n "$ICU_LE_LIBS"; then
31056     pkg_cv_ICU_LE_LIBS="$ICU_LE_LIBS"
31057  elif test -n "$PKG_CONFIG"; then
31058     if test -n "$PKG_CONFIG" && \
31059     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-le\""; } >&5
31060   ($PKG_CONFIG --exists --print-errors "icu-le") 2>&5
31061   ac_status=$?
31062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31063   test $ac_status = 0; }; then
31064   pkg_cv_ICU_LE_LIBS=`$PKG_CONFIG --libs "icu-le" 2>/dev/null`
31065 else
31066   pkg_failed=yes
31067 fi
31068  else
31069     pkg_failed=untried
31070 fi
31071 
31072 
31073 
31074 if test $pkg_failed = yes; then
31075 
31076 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31077         _pkg_short_errors_supported=yes
31078 else
31079         _pkg_short_errors_supported=no
31080 fi
31081         if test $_pkg_short_errors_supported = yes; then
31082                 ICU_LE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "icu-le" 2>&1`
31083         else
31084                 ICU_LE_PKG_ERRORS=`$PKG_CONFIG --print-errors "icu-le" 2>&1`
31085         fi
31086         # Put the nasty error message in config.log where it belongs
31087         echo "$ICU_LE_PKG_ERRORS" >&5
31088 
31089         as_fn_error $? "Package requirements (icu-le) were not met:
31090 
31091 $ICU_LE_PKG_ERRORS
31092 
31093 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31094 installed software in a non-standard prefix.
31095 
31096 Alternatively, you may set the environment variables ICU_LE_CFLAGS
31097 and ICU_LE_LIBS to avoid the need to call pkg-config.
31098 See the pkg-config man page for more details.
31099 " "$LINENO" 5
31100 elif test $pkg_failed = untried; then
31101         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31103 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31104 is in your PATH or set the PKG_CONFIG environment variable to the full
31105 path to pkg-config.
31106 
31107 Alternatively, you may set the environment variables ICU_LE_CFLAGS
31108 and ICU_LE_LIBS to avoid the need to call pkg-config.
31109 See the pkg-config man page for more details.
31110 
31111 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31112 See \`config.log' for more details" "$LINENO" 5; }
31113 else
31114         ICU_LE_CFLAGS=$pkg_cv_ICU_LE_CFLAGS
31115         ICU_LE_LIBS=$pkg_cv_ICU_LE_LIBS
31116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31117 $as_echo "yes" >&6; }
31118         :
31119 fi
31120     USE_EXTERNAL_ICU_LE=true
31121 fi
31122 
31123 
31124 
31125 
31126 
31127 
31128 
31129 
31130 ###############################################################################
31131 #
31132 # The ubiquitous freetype2 library is used to render fonts.
31133 #
31134 
31135 # Check whether --with-freetype was given.
31136 if test "${with_freetype+set}" = set; then :
31137   withval=$with_freetype;
31138 fi
31139 
31140 
31141 # If we are using the OS installed system lib for freetype, then we do not need to copy it to the build tree
31142 USING_SYSTEM_FT_LIB=false
31143 
31144 if test "x$FREETYPE2_NOT_NEEDED" = xyes; then
31145         if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
31146                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5
31147 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;}
31148         fi
31149         FREETYPE2_CFLAGS=
31150         FREETYPE2_LIBS=
31151         FREETYPE2_LIB_PATH=


31733                 pkgutil_help $MISSING_DEPENDENCY ;;
31734         pkgadd)
31735                 pkgadd_help  $MISSING_DEPENDENCY ;;
31736     * )
31737       break ;;
31738     esac
31739 
31740     if test "x$PKGHANDLER_COMMAND" != x; then
31741         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
31742     fi
31743 
31744                 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
31745         fi
31746 
31747         if test "x$OPENJDK_TARGET_OS" != xwindows; then
31748             # AC_CHECK_LIB does not support use of cl.exe
31749             PREV_LDFLAGS="$LDFLAGS"
31750             LDFLAGS="$FREETYPE2_LIBS"
31751             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
31752 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
31753 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
31754   $as_echo_n "(cached) " >&6
31755 else
31756   ac_check_lib_save_LIBS=$LIBS
31757 LIBS="-lfreetype  $LIBS"
31758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31759 /* end confdefs.h.  */
31760 
31761 /* Override any GCC internal prototype to avoid an error.
31762    Use char because int might match the return type of a GCC
31763    builtin and then its argument prototype would still apply.  */
31764 #ifdef __cplusplus
31765 extern "C"
31766 #endif
31767 char FT_Init_FreeType ();
31768 int
31769 main ()
31770 {
31771 return FT_Init_FreeType ();
31772   ;
31773   return 0;
31774 }
31775 _ACEOF
31776 if ac_fn_cxx_try_link "$LINENO"; then :
31777   ac_cv_lib_freetype_FT_Init_FreeType=yes
31778 else
31779   ac_cv_lib_freetype_FT_Init_FreeType=no
31780 fi
31781 rm -f core conftest.err conftest.$ac_objext \
31782     conftest$ac_exeext conftest.$ac_ext
31783 LIBS=$ac_check_lib_save_LIBS
31784 fi
31785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
31786 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
31787 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
31788   FREETYPE2_FOUND=true
31789 else
31790   as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
31791 fi
31792 
31793             LDFLAGS="$PREV_LDFLAGS"
31794         fi
31795 fi
31796 
31797 
31798 
31799 
31800 
31801 
31802 
31803 
31804 
31805 ###############################################################################
31806 #
31807 # Check for alsa headers and libraries. Used on Linux/GNU systems.


32055         # Put the nasty error message in config.log where it belongs
32056         echo "$ALSA_PKG_ERRORS" >&5
32057 
32058         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32059 $as_echo "no" >&6; }
32060                 ALSA_FOUND=no
32061 elif test $pkg_failed = untried; then
32062         ALSA_FOUND=no
32063 else
32064         ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
32065         ALSA_LIBS=$pkg_cv_ALSA_LIBS
32066         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32067 $as_echo "yes" >&6; }
32068         ALSA_FOUND=yes
32069 fi
32070         fi
32071         if test "x$ALSA_FOUND" = xno; then
32072             for ac_header in alsa/asoundlib.h
32073 do :
32074   ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
32075 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
32076   cat >>confdefs.h <<_ACEOF
32077 #define HAVE_ALSA_ASOUNDLIB_H 1
32078 _ACEOF
32079  ALSA_FOUND=yes
32080                               ALSA_CFLAGS=-Iignoreme
32081                               ALSA_LIBS=-lasound
32082                               DEFAULT_ALSA=yes
32083 else
32084   ALSA_FOUND=no
32085 fi
32086 
32087 done
32088 
32089         fi
32090         if test "x$ALSA_FOUND" = xno; then
32091 
32092     # Print a helpful message on how to acquire the necessary build dependency.
32093     # alsa is the help tag: freetyp2, cups, pulse, alsa etc
32094     MISSING_DEPENDENCY=alsa
32095     PKGHANDLER_COMMAND=


32114     fi
32115 
32116             as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
32117         fi
32118 fi
32119 
32120 
32121 
32122 
32123 
32124 
32125 
32126 ###############################################################################
32127 #
32128 # Check for the jpeg library
32129 #
32130 
32131 USE_EXTERNAL_LIBJPEG=true
32132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
32133 $as_echo_n "checking for main in -ljpeg... " >&6; }
32134 if ${ac_cv_lib_jpeg_main+:} false; then :
32135   $as_echo_n "(cached) " >&6
32136 else
32137   ac_check_lib_save_LIBS=$LIBS
32138 LIBS="-ljpeg  $LIBS"
32139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32140 /* end confdefs.h.  */
32141 
32142 
32143 int
32144 main ()
32145 {
32146 return main ();
32147   ;
32148   return 0;
32149 }
32150 _ACEOF
32151 if ac_fn_cxx_try_link "$LINENO"; then :
32152   ac_cv_lib_jpeg_main=yes
32153 else
32154   ac_cv_lib_jpeg_main=no
32155 fi
32156 rm -f core conftest.err conftest.$ac_objext \
32157     conftest$ac_exeext conftest.$ac_ext
32158 LIBS=$ac_check_lib_save_LIBS
32159 fi
32160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
32161 $as_echo "$ac_cv_lib_jpeg_main" >&6; }
32162 if test "x$ac_cv_lib_jpeg_main" = xyes; then :
32163   cat >>confdefs.h <<_ACEOF
32164 #define HAVE_LIBJPEG 1
32165 _ACEOF
32166 
32167   LIBS="-ljpeg $LIBS"
32168 
32169 else
32170    USE_EXTERNAL_LIBJPEG=false
32171                { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
32172 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
32173 
32174 fi
32175 
32176 
32177 
32178 ###############################################################################
32179 #
32180 # Check for the gif library
32181 #
32182 


32191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5
32192 $as_echo_n "checking for which giflib to use... " >&6; }
32193 
32194 # default is bundled
32195 DEFAULT_GIFLIB=bundled
32196 
32197 #
32198 # if user didn't specify, use DEFAULT_GIFLIB
32199 #
32200 if test "x${with_giflib}" = "x"; then
32201     with_giflib=${DEFAULT_GIFLIB}
32202 fi
32203 
32204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5
32205 $as_echo "${with_giflib}" >&6; }
32206 
32207 if test "x${with_giflib}" = "xbundled"; then
32208     USE_EXTERNAL_LIBGIF=false
32209 elif test "x${with_giflib}" = "xsystem"; then
32210     ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
32211 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
32212 
32213 else
32214    as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5
32215 fi
32216 
32217 
32218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5
32219 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; }
32220 if ${ac_cv_lib_gif_DGifGetCode+:} false; then :
32221   $as_echo_n "(cached) " >&6
32222 else
32223   ac_check_lib_save_LIBS=$LIBS
32224 LIBS="-lgif  $LIBS"
32225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32226 /* end confdefs.h.  */
32227 
32228 /* Override any GCC internal prototype to avoid an error.
32229    Use char because int might match the return type of a GCC
32230    builtin and then its argument prototype would still apply.  */
32231 #ifdef __cplusplus
32232 extern "C"
32233 #endif
32234 char DGifGetCode ();
32235 int
32236 main ()
32237 {
32238 return DGifGetCode ();
32239   ;
32240   return 0;
32241 }
32242 _ACEOF
32243 if ac_fn_cxx_try_link "$LINENO"; then :
32244   ac_cv_lib_gif_DGifGetCode=yes
32245 else
32246   ac_cv_lib_gif_DGifGetCode=no
32247 fi
32248 rm -f core conftest.err conftest.$ac_objext \
32249     conftest$ac_exeext conftest.$ac_ext
32250 LIBS=$ac_check_lib_save_LIBS
32251 fi
32252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
32253 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
32254 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then :
32255   cat >>confdefs.h <<_ACEOF
32256 #define HAVE_LIBGIF 1
32257 _ACEOF
32258 
32259   LIBS="-lgif $LIBS"
32260 
32261 else
32262    as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
32263 fi
32264 
32265 
32266     USE_EXTERNAL_LIBGIF=true
32267 else
32268     as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
32269 fi
32270 
32271 
32272 ###############################################################################
32273 #
32274 # Check for the zlib library
32275 #
32276 
32277 
32278 # Check whether --with-zlib was given.
32279 if test "${with_zlib+set}" = set; then :
32280   withval=$with_zlib;
32281 fi
32282 
32283 
32284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
32285 $as_echo_n "checking for compress in -lz... " >&6; }
32286 if ${ac_cv_lib_z_compress+:} false; then :
32287   $as_echo_n "(cached) " >&6
32288 else
32289   ac_check_lib_save_LIBS=$LIBS
32290 LIBS="-lz  $LIBS"
32291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32292 /* end confdefs.h.  */
32293 
32294 /* Override any GCC internal prototype to avoid an error.
32295    Use char because int might match the return type of a GCC
32296    builtin and then its argument prototype would still apply.  */
32297 #ifdef __cplusplus
32298 extern "C"
32299 #endif
32300 char compress ();
32301 int
32302 main ()
32303 {
32304 return compress ();
32305   ;
32306   return 0;
32307 }
32308 _ACEOF
32309 if ac_fn_cxx_try_link "$LINENO"; then :
32310   ac_cv_lib_z_compress=yes
32311 else
32312   ac_cv_lib_z_compress=no
32313 fi
32314 rm -f core conftest.err conftest.$ac_objext \
32315     conftest$ac_exeext conftest.$ac_ext
32316 LIBS=$ac_check_lib_save_LIBS
32317 fi
32318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
32319 $as_echo "$ac_cv_lib_z_compress" >&6; }
32320 if test "x$ac_cv_lib_z_compress" = xyes; then :
32321    ZLIB_FOUND=yes
32322 else
32323    ZLIB_FOUND=no
32324 fi
32325 
32326 
32327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5
32328 $as_echo_n "checking for which zlib to use... " >&6; }
32329 
32330 DEFAULT_ZLIB=bundled
32331 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
32332 #
32333 # On macosx default is system...on others default is
32334 #
32335     DEFAULT_ZLIB=system
32336 fi
32337 
32338 if test "x${ZLIB_FOUND}" != "xyes"; then
32339 #
32340 # If we don't find any system...set default to bundled


32393 if ac_fn_cxx_try_link "$LINENO"; then :
32394   has_altzone=yes
32395 else
32396   has_altzone=no
32397 fi
32398 rm -f core conftest.err conftest.$ac_objext \
32399     conftest$ac_exeext conftest.$ac_ext
32400 if test "x$has_altzone" = xyes; then
32401 
32402 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
32403 
32404 fi
32405 
32406 ###############################################################################
32407 #
32408 # Check the maths library
32409 #
32410 
32411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
32412 $as_echo_n "checking for cos in -lm... " >&6; }
32413 if ${ac_cv_lib_m_cos+:} false; then :
32414   $as_echo_n "(cached) " >&6
32415 else
32416   ac_check_lib_save_LIBS=$LIBS
32417 LIBS="-lm  $LIBS"
32418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32419 /* end confdefs.h.  */
32420 
32421 /* Override any GCC internal prototype to avoid an error.
32422    Use char because int might match the return type of a GCC
32423    builtin and then its argument prototype would still apply.  */
32424 #ifdef __cplusplus
32425 extern "C"
32426 #endif
32427 char cos ();
32428 int
32429 main ()
32430 {
32431 return cos ();
32432   ;
32433   return 0;
32434 }
32435 _ACEOF
32436 if ac_fn_cxx_try_link "$LINENO"; then :
32437   ac_cv_lib_m_cos=yes
32438 else
32439   ac_cv_lib_m_cos=no
32440 fi
32441 rm -f core conftest.err conftest.$ac_objext \
32442     conftest$ac_exeext conftest.$ac_ext
32443 LIBS=$ac_check_lib_save_LIBS
32444 fi
32445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
32446 $as_echo "$ac_cv_lib_m_cos" >&6; }
32447 if test "x$ac_cv_lib_m_cos" = xyes; then :
32448   cat >>confdefs.h <<_ACEOF
32449 #define HAVE_LIBM 1
32450 _ACEOF
32451 
32452   LIBS="-lm $LIBS"
32453 
32454 else
32455 
32456                   { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
32457 $as_echo "$as_me: Maths library was not found" >&6;}
32458 
32459 fi
32460 
32461 
32462 
32463 ###############################################################################
32464 #
32465 # Check for libdl.so
32466 
32467 save_LIBS="$LIBS"
32468 LIBS=""
32469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
32470 $as_echo_n "checking for dlopen in -ldl... " >&6; }
32471 if ${ac_cv_lib_dl_dlopen+:} false; then :
32472   $as_echo_n "(cached) " >&6
32473 else
32474   ac_check_lib_save_LIBS=$LIBS
32475 LIBS="-ldl  $LIBS"
32476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32477 /* end confdefs.h.  */
32478 
32479 /* Override any GCC internal prototype to avoid an error.
32480    Use char because int might match the return type of a GCC
32481    builtin and then its argument prototype would still apply.  */
32482 #ifdef __cplusplus
32483 extern "C"
32484 #endif
32485 char dlopen ();
32486 int
32487 main ()
32488 {
32489 return dlopen ();
32490   ;
32491   return 0;
32492 }
32493 _ACEOF
32494 if ac_fn_cxx_try_link "$LINENO"; then :
32495   ac_cv_lib_dl_dlopen=yes
32496 else
32497   ac_cv_lib_dl_dlopen=no
32498 fi
32499 rm -f core conftest.err conftest.$ac_objext \
32500     conftest$ac_exeext conftest.$ac_ext
32501 LIBS=$ac_check_lib_save_LIBS
32502 fi
32503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
32504 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
32505 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
32506   cat >>confdefs.h <<_ACEOF
32507 #define HAVE_LIBDL 1
32508 _ACEOF
32509 
32510   LIBS="-ldl $LIBS"
32511 
32512 fi
32513 
32514 LIBDL="$LIBS"
32515 
32516 LIBS="$save_LIBS"
32517 
32518 
32519 
32520 ###############################################################################
32521 #
32522 # statically link libstdc++ before C++ ABI is stablized on Linux unless
32523 # dynamic build is configured on command line.
32524 #
32525 


32715 
32716 Consider adjusting the PKG_CONFIG_PATH environment variable if you
32717 installed software in a non-standard prefix.
32718 
32719 Alternatively, you may set the environment variables LIBFFI_CFLAGS
32720 and LIBFFI_LIBS to avoid the need to call pkg-config.
32721 See the pkg-config man page for more details.
32722 " "$LINENO" 5
32723 elif test $pkg_failed = untried; then
32724         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32726 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
32727 is in your PATH or set the PKG_CONFIG environment variable to the full
32728 path to pkg-config.
32729 
32730 Alternatively, you may set the environment variables LIBFFI_CFLAGS
32731 and LIBFFI_LIBS to avoid the need to call pkg-config.
32732 See the pkg-config man page for more details.
32733 
32734 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32735 See \`config.log' for more details" "$LINENO" 5; }
32736 else
32737         LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
32738         LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
32739         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32740 $as_echo "yes" >&6; }
32741         :
32742 fi
32743 
32744 fi
32745 
32746 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
32747     # Extract the first word of "llvm-config", so it can be a program name with args.
32748 set dummy llvm-config; ac_word=$2
32749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32750 $as_echo_n "checking for $ac_word... " >&6; }
32751 if ${ac_cv_prog_LLVM_CONFIG+:} false; then :
32752   $as_echo_n "(cached) " >&6
32753 else
32754   if test -n "$LLVM_CONFIG"; then
32755   ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test.
32756 else
32757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32758 for as_dir in $PATH
32759 do
32760   IFS=$as_save_IFS
32761   test -z "$as_dir" && as_dir=.
32762     for ac_exec_ext in '' $ac_executable_extensions; do
32763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32764     ac_cv_prog_LLVM_CONFIG="llvm-config"
32765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32766     break 2
32767   fi
32768 done
32769   done
32770 IFS=$as_save_IFS
32771 


33343     fi
33344 fi
33345 
33346 
33347 
33348 
33349 # Setup use of ccache, if available
33350 
33351     # Check whether --enable-ccache was given.
33352 if test "${enable_ccache+set}" = set; then :
33353   enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache}
33354 else
33355   ENABLE_CCACHE=yes
33356 fi
33357 
33358     if test "x$ENABLE_CCACHE" = xyes; then
33359         # Extract the first word of "ccache", so it can be a program name with args.
33360 set dummy ccache; ac_word=$2
33361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33362 $as_echo_n "checking for $ac_word... " >&6; }
33363 if ${ac_cv_path_CCACHE+:} false; then :
33364   $as_echo_n "(cached) " >&6
33365 else
33366   case $CCACHE in
33367   [\\/]* | ?:[\\/]*)
33368   ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
33369   ;;
33370   *)
33371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33372 for as_dir in $PATH
33373 do
33374   IFS=$as_save_IFS
33375   test -z "$as_dir" && as_dir=.
33376     for ac_exec_ext in '' $ac_executable_extensions; do
33377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33378     ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
33379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33380     break 2
33381   fi
33382 done
33383   done


33604         "s/'/'\\\\''/g;
33605           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33606       ;; #(
33607     *)
33608       # `set' quotes correctly as required by POSIX, so do not add quotes.
33609       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33610       ;;
33611     esac |
33612     sort
33613 ) |
33614   sed '
33615      /^ac_cv_env_/b end
33616      t clear
33617      :clear
33618      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33619      t end
33620      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33621      :end' >>confcache
33622 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33623   if test -w "$cache_file"; then
33624     if test "x$cache_file" != "x/dev/null"; then
33625       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33626 $as_echo "$as_me: updating cache $cache_file" >&6;}
33627       if test ! -f "$cache_file" || test -h "$cache_file"; then
33628         cat confcache >"$cache_file"
33629       else
33630         case $cache_file in #(
33631         */* | ?:*)
33632           mv -f confcache "$cache_file"$$ &&
33633           mv -f "$cache_file"$$ "$cache_file" ;; #(
33634         *)
33635           mv -f confcache "$cache_file" ;;
33636         esac
33637       fi
33638     fi
33639   else
33640     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33641 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33642   fi
33643 fi
33644 rm -f confcache
33645 
33646 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33647 # Let make expand exec_prefix.
33648 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33649 
33650 DEFS=-DHAVE_CONFIG_H
33651 
33652 ac_libobjs=
33653 ac_ltlibobjs=
33654 U=
33655 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33656   # 1. Remove the extension, and $U if already installed.
33657   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33658   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33659   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33660   #    will be set to the directory where LIBOBJS objects are built.
33661   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33662   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33663 done
33664 LIBOBJS=$ac_libobjs
33665 
33666 LTLIBOBJS=$ac_ltlibobjs
33667 
33668 
33669 
33670 : "${CONFIG_STATUS=./config.status}"
33671 ac_write_fail=0
33672 ac_clean_files_save=$ac_clean_files
33673 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33674 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33675 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33676 as_write_fail=0
33677 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33678 #! $SHELL
33679 # Generated by $as_me.
33680 # Run this file to recreate the current configuration.
33681 # Compiler output produced by configure, useful for debugging
33682 # configure, is in config.log if it exists.
33683 
33684 debug=false
33685 ac_cs_recheck=false
33686 ac_cs_silent=false
33687 
33688 SHELL=\${CONFIG_SHELL-$SHELL}
33689 export SHELL
33690 _ASEOF


33751 fi
33752 
33753 # The user is always right.
33754 if test "${PATH_SEPARATOR+set}" != set; then
33755   PATH_SEPARATOR=:
33756   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33757     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33758       PATH_SEPARATOR=';'
33759   }
33760 fi
33761 
33762 
33763 # IFS
33764 # We need space, tab and new line, in precisely that order.  Quoting is
33765 # there to prevent editors from complaining about space-tab.
33766 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33767 # splitting by setting IFS to empty value.)
33768 IFS=" ""        $as_nl"
33769 
33770 # Find who we are.  Look in the path if we contain no directory separator.
33771 as_myself=
33772 case $0 in #((
33773   *[\\/]* ) as_myself=$0 ;;
33774   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33775 for as_dir in $PATH
33776 do
33777   IFS=$as_save_IFS
33778   test -z "$as_dir" && as_dir=.
33779     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33780   done
33781 IFS=$as_save_IFS
33782 
33783      ;;
33784 esac
33785 # We did not find ourselves, most probably we were run as `sh COMMAND'
33786 # in which case we are not to be found in the path.
33787 if test "x$as_myself" = x; then
33788   as_myself=$0
33789 fi
33790 if test ! -f "$as_myself"; then
33791   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2


34059 # Sed expression to map a string onto a valid CPP name.
34060 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34061 
34062 # Sed expression to map a string onto a valid variable name.
34063 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34064 
34065 
34066 exec 6>&1
34067 ## ----------------------------------- ##
34068 ## Main body of $CONFIG_STATUS script. ##
34069 ## ----------------------------------- ##
34070 _ASEOF
34071 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34072 
34073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34074 # Save the log message, to keep $0 and so on meaningful, and to
34075 # report actual input values of CONFIG_FILES etc. instead of their
34076 # values after options handling.
34077 ac_log="
34078 This file was extended by OpenJDK $as_me jdk8, which was
34079 generated by GNU Autoconf 2.68.  Invocation command line was
34080 
34081   CONFIG_FILES    = $CONFIG_FILES
34082   CONFIG_HEADERS  = $CONFIG_HEADERS
34083   CONFIG_LINKS    = $CONFIG_LINKS
34084   CONFIG_COMMANDS = $CONFIG_COMMANDS
34085   $ $0 $@
34086 
34087 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34088 "
34089 
34090 _ACEOF
34091 
34092 case $ac_config_files in *"
34093 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34094 esac
34095 
34096 case $ac_config_headers in *"
34097 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34098 esac
34099 


34122       --recheck    update $as_me by reconfiguring in the same conditions
34123       --file=FILE[:TEMPLATE]
34124                    instantiate the configuration file FILE
34125       --header=FILE[:TEMPLATE]
34126                    instantiate the configuration header FILE
34127 
34128 Configuration files:
34129 $config_files
34130 
34131 Configuration headers:
34132 $config_headers
34133 
34134 Report bugs to <build-dev@openjdk.java.net>.
34135 OpenJDK home page: <http://openjdk.java.net>."
34136 
34137 _ACEOF
34138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34139 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34140 ac_cs_version="\\
34141 OpenJDK config.status jdk8
34142 configured by $0, generated by GNU Autoconf 2.68,
34143   with options \\"\$ac_cs_config\\"
34144 
34145 Copyright (C) 2010 Free Software Foundation, Inc.
34146 This config.status script is free software; the Free Software Foundation
34147 gives unlimited permission to copy, distribute and modify it."
34148 
34149 ac_pwd='$ac_pwd'
34150 srcdir='$srcdir'
34151 AWK='$AWK'
34152 test -n "\$AWK" || AWK=awk
34153 _ACEOF
34154 
34155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34156 # The default lists apply if the user does not specify any file.
34157 ac_need_defaults=:
34158 while test $# != 0
34159 do
34160   case $1 in
34161   --*=?*)
34162     ac_option=`expr "X$1" : 'X\([^=]*\)='`


34251 } >&5
34252 
34253 _ACEOF
34254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34255 _ACEOF
34256 
34257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34258 
34259 # Handling of arguments.
34260 for ac_config_target in $ac_config_targets
34261 do
34262   case $ac_config_target in
34263     "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;;
34264     "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;;
34265     "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;;
34266     "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;;
34267     "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;;
34268     "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;;
34269     "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;;
34270 
34271   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34272   esac
34273 done
34274 
34275 
34276 # If the user did not use the arguments to specify the items to instantiate,
34277 # then the envvar interface is used.  Set only those that are not.
34278 # We use the long form for the default assignment because of an extremely
34279 # bizarre bug on SunOS 4.1.3.
34280 if $ac_need_defaults; then
34281   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34282   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34283 fi
34284 
34285 # Have a temporary directory for convenience.  Make it in the build tree
34286 # simply because there is no reason against having it here, and in addition,
34287 # creating and moving files from /tmp can sometimes cause problems.
34288 # Hook for its removal unless debugging.
34289 # Note that there is a small window in which the directory will not be cleaned:
34290 # after its creation but before its name has been assigned to `$tmp'.
34291 $debug ||
34292 {
34293   tmp= ac_tmp=
34294   trap 'exit_status=$?
34295   : "${ac_tmp:=$tmp}"
34296   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34297 ' 0
34298   trap 'as_fn_exit 1' 1 2 13 15
34299 }
34300 # Create a (secure) tmp directory for tmp files.
34301 
34302 {
34303   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34304   test -d "$tmp"
34305 }  ||
34306 {
34307   tmp=./conf$$-$RANDOM
34308   (umask 077 && mkdir "$tmp")
34309 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34310 ac_tmp=$tmp
34311 
34312 # Set up the scripts for CONFIG_FILES section.
34313 # No need to generate them if there are no CONFIG_FILES.
34314 # This happens for instance with `./config.status config.h'.
34315 if test -n "$CONFIG_FILES"; then
34316 
34317 
34318 ac_cr=`echo X | tr X '\015'`
34319 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34320 # But we know of no other shell where ac_cr would be empty at this
34321 # point, so we can use a bashism as a fallback.
34322 if test "x$ac_cr" = x; then
34323   eval ac_cr=\$\'\\r\'
34324 fi
34325 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34326 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34327   ac_cs_awk_cr='\\r'
34328 else
34329   ac_cs_awk_cr=$ac_cr
34330 fi
34331 
34332 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34333 _ACEOF
34334 
34335 
34336 {
34337   echo "cat >conf$$subs.awk <<_ACEOF" &&
34338   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34339   echo "_ACEOF"
34340 } >conf$$subs.sh ||
34341   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34342 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34343 ac_delim='%!_!# '
34344 for ac_last_try in false false false false false :; do
34345   . ./conf$$subs.sh ||
34346     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34347 
34348   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34349   if test $ac_delim_n = $ac_delim_num; then
34350     break
34351   elif $ac_last_try; then
34352     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34353   else
34354     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34355   fi
34356 done
34357 rm -f conf$$subs.sh
34358 
34359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34360 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34361 _ACEOF
34362 sed -n '
34363 h
34364 s/^/S["/; s/!.*/"]=/
34365 p
34366 g
34367 s/^[^!]*!//
34368 :repl
34369 t repl
34370 s/'"$ac_delim"'$//
34371 t delim
34372 :nl
34373 h
34374 s/\(.\{148\}\)..*/\1/
34375 t more1
34376 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34377 p
34378 n
34379 b repl
34380 :more1


34388 s/\(.\{148\}\)..*/\1/
34389 t more2
34390 s/["\\]/\\&/g; s/^/"/; s/$/"/
34391 p
34392 b
34393 :more2
34394 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34395 p
34396 g
34397 s/.\{148\}//
34398 t delim
34399 ' <conf$$subs.awk | sed '
34400 /^[^""]/{
34401   N
34402   s/\n//
34403 }
34404 ' >>$CONFIG_STATUS || ac_write_fail=1
34405 rm -f conf$$subs.awk
34406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34407 _ACAWK
34408 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
34409   for (key in S) S_is_set[key] = 1
34410   FS = ""
34411 
34412 }
34413 {
34414   line = $ 0
34415   nfields = split(line, field, "@")
34416   substed = 0
34417   len = length(field[1])
34418   for (i = 2; i < nfields; i++) {
34419     key = field[i]
34420     keylen = length(key)
34421     if (S_is_set[key]) {
34422       value = S[key]
34423       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34424       len += length(value) + length(field[++i])
34425       substed = 1
34426     } else
34427       len += 1 + keylen
34428   }
34429 
34430   print line
34431 }
34432 
34433 _ACAWK
34434 _ACEOF
34435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34436 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34437   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34438 else
34439   cat
34440 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
34441   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34442 _ACEOF
34443 
34444 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34445 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34446 # trailing colons and then remove the whole line if VPATH becomes empty
34447 # (actually we leave an empty line to preserve line numbers).
34448 if test "x$srcdir" = x.; then
34449   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
34450 h
34451 s///
34452 s/^/:/
34453 s/[      ]*$/:/
34454 s/:\$(srcdir):/:/g
34455 s/:\${srcdir}:/:/g
34456 s/:@srcdir@:/:/g
34457 s/^:*//
34458 s/:*$//
34459 x
34460 s/\(=[   ]*\).*/\1/
34461 G
34462 s/\n//
34463 s/^[^=]*=[       ]*$//
34464 }'
34465 fi
34466 
34467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34468 fi # test -n "$CONFIG_FILES"
34469 
34470 # Set up the scripts for CONFIG_HEADERS section.
34471 # No need to generate them if there are no CONFIG_HEADERS.
34472 # This happens for instance with `./config.status Makefile'.
34473 if test -n "$CONFIG_HEADERS"; then
34474 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34475 BEGIN {
34476 _ACEOF
34477 
34478 # Transform confdefs.h into an awk script `defines.awk', embedded as
34479 # here-document in config.status, that substitutes the proper values into
34480 # config.h.in to produce config.h.
34481 
34482 # Create a delimiter string that does not exist in confdefs.h, to ease
34483 # handling of long lines.
34484 ac_delim='%!_!# '
34485 for ac_last_try in false false :; do
34486   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34487   if test -z "$ac_tt"; then
34488     break
34489   elif $ac_last_try; then
34490     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34491   else
34492     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34493   fi
34494 done
34495 
34496 # For the awk script, D is an array of macro values keyed by name,
34497 # likewise P contains macro parameters if any.  Preserve backslash
34498 # newline sequences.
34499 
34500 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34501 sed -n '
34502 s/.\{148\}/&'"$ac_delim"'/g
34503 t rset
34504 :rset
34505 s/^[     ]*#[    ]*define[       ][      ]*/ /
34506 t def
34507 d


34568     }
34569   }
34570 }
34571 { print }
34572 _ACAWK
34573 _ACEOF
34574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34575   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34576 fi # test -n "$CONFIG_HEADERS"
34577 
34578 
34579 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
34580 shift
34581 for ac_tag
34582 do
34583   case $ac_tag in
34584   :[FHLC]) ac_mode=$ac_tag; continue;;
34585   esac
34586   case $ac_mode$ac_tag in
34587   :[FHL]*:*);;
34588   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34589   :[FH]-) ac_tag=-:-;;
34590   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34591   esac
34592   ac_save_IFS=$IFS
34593   IFS=:
34594   set x $ac_tag
34595   IFS=$ac_save_IFS
34596   shift
34597   ac_file=$1
34598   shift
34599 
34600   case $ac_mode in
34601   :L) ac_source=$1;;
34602   :[FH])
34603     ac_file_inputs=
34604     for ac_f
34605     do
34606       case $ac_f in
34607       -) ac_f="$ac_tmp/stdin";;
34608       *) # Look for the file first in the build tree, then in the source tree
34609          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34610          # because $ac_f cannot contain `:'.
34611          test -f "$ac_f" ||
34612            case $ac_f in
34613            [\\/$]*) false;;
34614            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34615            esac ||
34616            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34617       esac
34618       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34619       as_fn_append ac_file_inputs " '$ac_f'"
34620     done
34621 
34622     # Let's still pretend it is `configure' which instantiates (i.e., don't
34623     # use $as_me), people would be surprised to read:
34624     #    /* config.h.  Generated by config.status.  */
34625     configure_input='Generated from '`
34626           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34627         `' by configure.'
34628     if test x"$ac_file" != x-; then
34629       configure_input="$ac_file.  $configure_input"
34630       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34631 $as_echo "$as_me: creating $ac_file" >&6;}
34632     fi
34633     # Neutralize special characters interpreted by sed in replacement strings.
34634     case $configure_input in #(
34635     *\&* | *\|* | *\\* )
34636        ac_sed_conf_input=`$as_echo "$configure_input" |
34637        sed 's/[\\\\&|]/\\\\&/g'`;; #(
34638     *) ac_sed_conf_input=$configure_input;;
34639     esac
34640 
34641     case $ac_tag in
34642     *:-:* | *:-) cat >"$ac_tmp/stdin" \
34643       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34644     esac
34645     ;;
34646   esac
34647 
34648   ac_dir=`$as_dirname -- "$ac_file" ||
34649 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34650          X"$ac_file" : 'X\(//\)[^/]' \| \
34651          X"$ac_file" : 'X\(//\)$' \| \
34652          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34653 $as_echo X"$ac_file" |
34654     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34655             s//\1/
34656             q
34657           }
34658           /^X\(\/\/\)[^/].*/{
34659             s//\1/
34660             q
34661           }
34662           /^X\(\/\/\)$/{


34748 # FIXME: do we really want to maintain this feature?
34749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34750 ac_sed_extra="$ac_vpsub
34751 $extrasub
34752 _ACEOF
34753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34754 :t
34755 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34756 s|@configure_input@|$ac_sed_conf_input|;t t
34757 s&@top_builddir@&$ac_top_builddir_sub&;t t
34758 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34759 s&@srcdir@&$ac_srcdir&;t t
34760 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34761 s&@top_srcdir@&$ac_top_srcdir&;t t
34762 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34763 s&@builddir@&$ac_builddir&;t t
34764 s&@abs_builddir@&$ac_abs_builddir&;t t
34765 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34766 $ac_datarootdir_hack
34767 "
34768 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
34769   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34770 
34771 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34772   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34773   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
34774       "$ac_tmp/out"`; test -z "$ac_out"; } &&
34775   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34776 which seems to be undefined.  Please make sure it is defined" >&5
34777 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34778 which seems to be undefined.  Please make sure it is defined" >&2;}
34779 
34780   rm -f "$ac_tmp/stdin"
34781   case $ac_file in
34782   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34783   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34784   esac \
34785   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34786  ;;
34787   :H)
34788   #
34789   # CONFIG_HEADER
34790   #
34791   if test x"$ac_file" != x-; then
34792     {
34793       $as_echo "/* $configure_input  */" \
34794       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34795     } >"$ac_tmp/config.h" \
34796       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34797     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34798       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34799 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34800     else
34801       rm -f "$ac_file"
34802       mv "$ac_tmp/config.h" "$ac_file" \
34803         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34804     fi
34805   else
34806     $as_echo "/* $configure_input  */" \
34807       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34808       || as_fn_error $? "could not create -" "$LINENO" 5
34809   fi
34810  ;;
34811 
34812 
34813   esac
34814 
34815 done # for ac_tag
34816 
34817 
34818 as_fn_exit 0
34819 _ACEOF
34820 ac_clean_files=$ac_clean_files_save
34821 
34822 test $ac_write_fail = 0 ||
34823   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34824 
34825 
34826 # configure is writing to config.log, and then calls config.status.
34827 # config.status does its own redirection, appending to config.log.