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}
662 C_O_FLAG_NONE
663 C_O_FLAG_NORM
664 C_O_FLAG_HI
665 C_O_FLAG_HIGHEST
666 POST_MCS_CMD
667 POST_STRIP_CMD
668 SET_EXECUTABLE_ORIGIN
669 SET_SHARED_LIBRARY_ORIGIN
670 CXX_FLAG_REORDER
671 C_FLAG_REORDER
672 SET_SHARED_LIBRARY_MAPFILE
673 SET_SHARED_LIBRARY_NAME
674 SHARED_LIBRARY_FLAGS
675 EXE_SUFFIX
676 STATIC_LIBRARY_SUFFIX
677 SHARED_LIBRARY_SUFFIX
678 LIBRARY_PREFIX
679 STATIC_LIBRARY
680 SHARED_LIBRARY
681 OBJ_SUFFIX
682 LIPO
683 ac_ct_OBJDUMP
684 OBJDUMP
685 ac_ct_OBJCOPY
686 OBJCOPY
687 MCS
688 STRIP
689 GNM
690 NM
691 AS
692 CXXCPP
693 CPP
694 COMPILER_TYPE
695 RC_FLAGS
696 DUMPBIN
697 WINAR
698 HOTSPOT_RC
699 HOTSPOT_MT
700 RC
701 MT
702 WINLD
703 HOTSPOT_LD
704 HOTSPOT_CXX
705 ARFLAGS
706 AR
707 LDEXECXX
708 LDCXX
709 LDEXE
710 LD
711 ac_ct_OBJC
712 OBJCFLAGS
713 OBJC
714 ac_ct_CXX
715 CXXFLAGS
716 CXX
717 ac_ct_PROPER_COMPILER_CXX
718 PROPER_COMPILER_CXX
719 POTENTIAL_CXX
720 TOOLS_DIR_CXX
721 OBJEXT
722 EXEEXT
723 ac_ct_CC
724 CPPFLAGS
725 LDFLAGS
726 CFLAGS
727 CC
728 ac_ct_PROPER_COMPILER_CC
729 PROPER_COMPILER_CC
730 POTENTIAL_CC
731 TOOLS_DIR_CC
732 BUILD_LD
733 BUILD_CXX
734 BUILD_CC
735 MSVCR_DLL
736 DXSDK_INCLUDE_PATH
737 DXSDK_LIB_PATH
738 VS_PATH
739 VS_LIB
740 VS_INCLUDE
741 CYGWIN_LINK
742 AR_OUT_OPTION
743 LD_OUT_OPTION
744 EXE_OUT_OPTION
745 CC_OUT_OPTION
746 BUILD_HOTSPOT
747 HOTSPOT_DIST
819 DEBUG_LEVEL
820 MACOSX_UNIVERSAL
821 INCLUDE_SA
822 JVM_VARIANT_ZEROSHARK
823 JVM_VARIANT_ZERO
824 JVM_VARIANT_KERNEL
825 JVM_VARIANT_MINIMAL1
826 JVM_VARIANT_CLIENT
827 JVM_VARIANT_SERVER
828 JVM_VARIANTS
829 JDK_VARIANT
830 SET_OPENJDK
831 BUILD_LOG_WRAPPER
832 BUILD_LOG_PREVIOUS
833 BUILD_LOG
834 SYS_ROOT
835 PATH_SEP
836 SRC_ROOT
837 ZERO_ARCHDEF
838 ZERO_ARCHFLAG
839 DEFINE_CROSS_COMPILE_ARCH
840 LP64
841 OPENJDK_TARGET_OS_API_DIR
842 OPENJDK_TARGET_CPU_JLI_CFLAGS
843 OPENJDK_TARGET_CPU_OSARCH
844 OPENJDK_TARGET_CPU_ISADIR
845 OPENJDK_TARGET_CPU_LIBDIR
846 OPENJDK_TARGET_CPU_LEGACY_LIB
847 OPENJDK_TARGET_CPU_LEGACY
848 REQUIRED_OS_VERSION
849 REQUIRED_OS_NAME
850 COMPILE_TYPE
851 OPENJDK_TARGET_CPU_ENDIAN
852 OPENJDK_TARGET_CPU_BITS
853 OPENJDK_TARGET_CPU_ARCH
854 OPENJDK_TARGET_CPU
855 OPENJDK_TARGET_OS_API
856 OPENJDK_TARGET_OS
857 OPENJDK_BUILD_CPU_ENDIAN
858 OPENJDK_BUILD_CPU_BITS
1015 with_freetype
1016 with_alsa
1017 with_alsa_include
1018 with_alsa_lib
1019 with_giflib
1020 with_zlib
1021 with_stdc__lib
1022 with_num_cores
1023 with_memory_size
1024 with_jobs
1025 with_sjavac_server_java
1026 with_sjavac_server_cores
1027 enable_sjavac
1028 enable_precompiled_headers
1029 enable_ccache
1030 with_ccache_dir
1031 '
1032 ac_precious_vars='build_alias
1033 host_alias
1034 target_alias
1035 PKG_CONFIG
1036 CC
1037 CFLAGS
1038 LDFLAGS
1039 LIBS
1040 CPPFLAGS
1041 CXX
1042 CXXFLAGS
1043 CCC
1044 OBJC
1045 OBJCFLAGS
1046 CPP
1047 CXXCPP
1048 XMKMF
1049 FREETYPE2_CFLAGS
1050 FREETYPE2_LIBS
1051 ALSA_CFLAGS
1052 ALSA_LIBS
1053 LIBFFI_CFLAGS
1054 LIBFFI_LIBS'
1055
1056
1057 # Initialize some variables set by options.
1058 ac_init_help=
1059 ac_init_version=false
1060 ac_unrecognized_opts=
1439
1440 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1441 Try \`$0 --help' for more information"
1442 ;;
1443
1444 *=*)
1445 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1446 # Reject names that are not valid shell variable names.
1447 case $ac_envvar in #(
1448 '' | [0-9]* | *[!_$as_cr_alnum]* )
1449 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1450 esac
1451 eval $ac_envvar=\$ac_optarg
1452 export $ac_envvar ;;
1453
1454 *)
1455 # FIXME: should be removed in autoconf 3.0.
1456 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1457 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1458 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1459 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1460 ;;
1461
1462 esac
1463 done
1464
1465 if test -n "$ac_prev"; then
1466 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1467 as_fn_error $? "missing argument to $ac_option"
1468 fi
1469
1470 if test -n "$ac_unrecognized_opts"; then
1471 case $enable_option_checking in
1472 no) ;;
1473 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1474 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1475 esac
1476 fi
1477
1478 # Check all directory arguments for consistency.
1479 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1783 (system, bundled) [bundled]
1784 --with-stdc++lib=<static>,<dynamic>,<default>
1785 force linking of the C++ runtime on Linux to either
1786 static or dynamic, default is static with dynamic as
1787 fallback
1788 --with-num-cores number of cores in the build system, e.g.
1789 --with-num-cores=8 [probed]
1790 --with-memory-size memory (in MB) available in the build system, e.g.
1791 --with-memory-size=1024 [probed]
1792 --with-jobs number of parallel jobs to let make run [calculated
1793 based on cores and memory]
1794 --with-sjavac-server-java
1795 use this java binary for running the sjavac
1796 background server [Boot JDK java]
1797 --with-sjavac-server-cores
1798 use at most this number of concurrent threads on the
1799 sjavac server [probed]
1800 --with-ccache-dir where to store ccache files [~/.ccache]
1801
1802 Some influential environment variables:
1803 PKG_CONFIG path to pkg-config utility
1804 CC C compiler command
1805 CFLAGS C compiler flags
1806 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1807 nonstandard directory <lib dir>
1808 LIBS libraries to pass to the linker, e.g. -l<library>
1809 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1810 you have headers in a nonstandard directory <include dir>
1811 CXX C++ compiler command
1812 CXXFLAGS C++ compiler flags
1813 OBJC Objective C compiler command
1814 OBJCFLAGS Objective C compiler flags
1815 CPP C preprocessor
1816 CXXCPP C++ preprocessor
1817 XMKMF Path to xmkmf, Makefile generator for X Window System
1818 FREETYPE2_CFLAGS
1819 C compiler flags for FREETYPE2, overriding pkg-config
1820 FREETYPE2_LIBS
1821 linker flags for FREETYPE2, overriding pkg-config
1822 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1823 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1824 LIBFFI_CFLAGS
1825 C compiler flags for LIBFFI, overriding pkg-config
1826 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1827
1828 Use these variables to override the choices made by `configure' or to help
1829 it to find libraries and programs with nonstandard names/locations.
1830
1876
1877 cd "$ac_dir" || { ac_status=$?; continue; }
1878 # Check for guested configure.
1879 if test -f "$ac_srcdir/configure.gnu"; then
1880 echo &&
1881 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1882 elif test -f "$ac_srcdir/configure"; then
1883 echo &&
1884 $SHELL "$ac_srcdir/configure" --help=recursive
1885 else
1886 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1887 fi || ac_status=$?
1888 cd "$ac_pwd" || { ac_status=$?; break; }
1889 done
1890 fi
1891
1892 test -n "$ac_init_help" && exit $ac_status
1893 if $ac_init_version; then
1894 cat <<\_ACEOF
1895 OpenJDK configure jdk8
1896 generated by GNU Autoconf 2.67
1897
1898 Copyright (C) 2010 Free Software Foundation, Inc.
1899 This configure script is free software; the Free Software Foundation
1900 gives unlimited permission to copy, distribute and modify it.
1901 _ACEOF
1902 exit
1903 fi
1904
1905 ## ------------------------ ##
1906 ## Autoconf initialization. ##
1907 ## ------------------------ ##
1908
1909 # ac_fn_c_try_compile LINENO
1910 # --------------------------
1911 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_c_try_compile ()
1913 {
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 rm -f conftest.$ac_objext
1916 if { { ac_try="$ac_compile"
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_compile") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1929 fi
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_c_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest.$ac_objext; then :
1935 ac_retval=0
1936 else
1937 $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1939
1940 ac_retval=1
1941 fi
1942 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1943 as_fn_set_status $ac_retval
1944
1945 } # ac_fn_c_try_compile
1946
1947 # ac_fn_cxx_try_compile LINENO
1948 # ----------------------------
1949 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1950 ac_fn_cxx_try_compile ()
1951 {
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 rm -f conftest.$ac_objext
1954 if { { ac_try="$ac_compile"
1955 case "(($ac_try" in
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1958 esac
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_compile") 2>conftest.err
1962 ac_status=$?
1963 if test -s conftest.err; then
1964 grep -v '^ *+' conftest.err >conftest.er1
1965 cat conftest.er1 >&5
1966 mv -f conftest.er1 conftest.err
1967 fi
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } && {
1970 test -z "$ac_cxx_werror_flag" ||
1971 test ! -s conftest.err
1972 } && test -s conftest.$ac_objext; then :
1973 ac_retval=0
1974 else
1975 $as_echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1977
1978 ac_retval=1
1979 fi
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981 as_fn_set_status $ac_retval
1982
1983 } # ac_fn_cxx_try_compile
1984
1985 # ac_fn_objc_try_compile LINENO
1986 # -----------------------------
1987 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1988 ac_fn_objc_try_compile ()
1989 {
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 rm -f conftest.$ac_objext
1992 if { { ac_try="$ac_compile"
1993 case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996 esac
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_compile") 2>conftest.err
2000 ac_status=$?
2001 if test -s conftest.err; then
2002 grep -v '^ *+' conftest.err >conftest.er1
2003 cat conftest.er1 >&5
2004 mv -f conftest.er1 conftest.err
2005 fi
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } && {
2008 test -z "$ac_objc_werror_flag" ||
2009 test ! -s conftest.err
2010 } && test -s conftest.$ac_objext; then :
2011 ac_retval=0
2012 else
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2015
2016 ac_retval=1
2017 fi
2018 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019 as_fn_set_status $ac_retval
2020
2021 } # ac_fn_objc_try_compile
2022
2023 # ac_fn_c_try_cpp LINENO
2024 # ----------------------
2025 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2026 ac_fn_c_try_cpp ()
2027 {
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 if { { ac_try="$ac_cpp conftest.$ac_ext"
2030 case "(($ac_try" in
2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2033 esac
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 $as_echo "$ac_try_echo"; } >&5
2036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2037 ac_status=$?
2038 if test -s conftest.err; then
2039 grep -v '^ *+' conftest.err >conftest.er1
2040 cat conftest.er1 >&5
2041 mv -f conftest.er1 conftest.err
2042 fi
2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044 test $ac_status = 0; } > conftest.i && {
2045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2046 test ! -s conftest.err
2047 }; then :
2048 ac_retval=0
2049 else
2050 $as_echo "$as_me: failed program was:" >&5
2051 sed 's/^/| /' conftest.$ac_ext >&5
2052
2053 ac_retval=1
2054 fi
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056 as_fn_set_status $ac_retval
2057
2058 } # ac_fn_c_try_cpp
2059
2060 # ac_fn_cxx_try_cpp LINENO
2061 # ------------------------
2062 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2063 ac_fn_cxx_try_cpp ()
2064 {
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 if { { ac_try="$ac_cpp conftest.$ac_ext"
2067 case "(($ac_try" in
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2070 esac
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2074 ac_status=$?
2075 if test -s conftest.err; then
2076 grep -v '^ *+' conftest.err >conftest.er1
2077 cat conftest.er1 >&5
2078 mv -f conftest.er1 conftest.err
2079 fi
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; } > conftest.i && {
2082 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2083 test ! -s conftest.err
2084 }; then :
2085 ac_retval=0
2086 else
2087 $as_echo "$as_me: failed program was:" >&5
2088 sed 's/^/| /' conftest.$ac_ext >&5
2089
2090 ac_retval=1
2091 fi
2092 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2093 as_fn_set_status $ac_retval
2094
2095 } # ac_fn_cxx_try_cpp
2096
2097 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2098 # ---------------------------------------------------------
2099 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2100 # the include files in INCLUDES and setting the cache variable VAR
2101 # accordingly.
2102 ac_fn_cxx_check_header_mongrel ()
2103 {
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if eval "test \"\${$3+set}\"" = set; then :
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107 $as_echo_n "checking for $2... " >&6; }
2108 if eval "test \"\${$3+set}\"" = set; then :
2109 $as_echo_n "(cached) " >&6
2110 fi
2111 eval ac_res=\$$3
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 else
2115 # Is the header compilable?
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2117 $as_echo_n "checking $2 usability... " >&6; }
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2120 $4
2121 #include <$2>
2122 _ACEOF
2123 if ac_fn_cxx_try_compile "$LINENO"; then :
2124 ac_header_compiler=yes
2125 else
2126 ac_header_compiler=no
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 ;;
2156 no:yes:* )
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2158 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2160 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2162 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2164 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2166 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2167 ( $as_echo "## ----------------------------------------- ##
2168 ## Report this to build-dev@openjdk.java.net ##
2169 ## ----------------------------------------- ##"
2170 ) | sed "s/^/$as_me: WARNING: /" >&2
2171 ;;
2172 esac
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174 $as_echo_n "checking for $2... " >&6; }
2175 if eval "test \"\${$3+set}\"" = set; then :
2176 $as_echo_n "(cached) " >&6
2177 else
2178 eval "$3=\$ac_header_compiler"
2179 fi
2180 eval ac_res=\$$3
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2183 fi
2184 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2185
2186 } # ac_fn_cxx_check_header_mongrel
2187
2188 # ac_fn_cxx_try_run LINENO
2189 # ------------------------
2190 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2191 # that executables *can* be run.
2192 ac_fn_cxx_try_run ()
2193 {
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 if { { ac_try="$ac_link"
2196 case "(($ac_try" in
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2199 esac
2200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2201 $as_echo "$ac_try_echo"; } >&5
2202 (eval "$ac_link") 2>&5
2203 ac_status=$?
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2206 { { case "(($ac_try" in
2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208 *) ac_try_echo=$ac_try;;
2209 esac
2210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2211 $as_echo "$ac_try_echo"; } >&5
2212 (eval "$ac_try") 2>&5
2213 ac_status=$?
2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215 test $ac_status = 0; }; }; then :
2216 ac_retval=0
2217 else
2218 $as_echo "$as_me: program exited with status $ac_status" >&5
2219 $as_echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2221
2222 ac_retval=$ac_status
2223 fi
2224 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2225 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2226 as_fn_set_status $ac_retval
2227
2228 } # ac_fn_cxx_try_run
2229
2230 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2231 # ---------------------------------------------------------
2232 # Tests whether HEADER exists and can be compiled using the include files in
2233 # INCLUDES, setting the cache variable VAR accordingly.
2234 ac_fn_cxx_check_header_compile ()
2235 {
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if eval "test \"\${$3+set}\"" = set; then :
2240 $as_echo_n "(cached) " >&6
2241 else
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2244 $4
2245 #include <$2>
2246 _ACEOF
2247 if ac_fn_cxx_try_compile "$LINENO"; then :
2248 eval "$3=yes"
2249 else
2250 eval "$3=no"
2251 fi
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 fi
2254 eval ac_res=\$$3
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2258
2259 } # ac_fn_cxx_check_header_compile
2260
2261 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2262 # ----------------------------------------------
2263 # Tries to find the compile-time value of EXPR in a program that includes
2264 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2265 # computed
2266 ac_fn_cxx_compute_int ()
2267 {
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 if test "$cross_compiling" = yes; then
2270 # Depending upon the size, compute the lo and hi bounds.
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2273 $4
2274 int
2275 main ()
2276 {
2277 static int test_array [1 - 2 * !(($2) >= 0)];
2414 fprintf (f, "%lu", i);
2415 }
2416 /* Do not output a trailing newline, as this causes \r\n confusion
2417 on some platforms. */
2418 return ferror (f) || fclose (f) != 0;
2419
2420 ;
2421 return 0;
2422 }
2423 _ACEOF
2424 if ac_fn_cxx_try_run "$LINENO"; then :
2425 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2426 else
2427 ac_retval=1
2428 fi
2429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2430 conftest.$ac_objext conftest.beam conftest.$ac_ext
2431 rm -f conftest.val
2432
2433 fi
2434 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2435 as_fn_set_status $ac_retval
2436
2437 } # ac_fn_cxx_compute_int
2438
2439 # ac_fn_cxx_try_link LINENO
2440 # -------------------------
2441 # Try to link conftest.$ac_ext, and return whether this succeeded.
2442 ac_fn_cxx_try_link ()
2443 {
2444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2445 rm -f conftest.$ac_objext conftest$ac_exeext
2446 if { { ac_try="$ac_link"
2447 case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2450 esac
2451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2452 $as_echo "$ac_try_echo"; } >&5
2453 (eval "$ac_link") 2>conftest.err
2454 ac_status=$?
2460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2461 test $ac_status = 0; } && {
2462 test -z "$ac_cxx_werror_flag" ||
2463 test ! -s conftest.err
2464 } && test -s conftest$ac_exeext && {
2465 test "$cross_compiling" = yes ||
2466 $as_test_x conftest$ac_exeext
2467 }; then :
2468 ac_retval=0
2469 else
2470 $as_echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2472
2473 ac_retval=1
2474 fi
2475 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2476 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2477 # interfere with the next link command; also delete a directory that is
2478 # left behind by Apple's compiler. We do this before executing the actions.
2479 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2480 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2481 as_fn_set_status $ac_retval
2482
2483 } # ac_fn_cxx_try_link
2484
2485 # ac_fn_cxx_check_func LINENO FUNC VAR
2486 # ------------------------------------
2487 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2488 ac_fn_cxx_check_func ()
2489 {
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2492 $as_echo_n "checking for $2... " >&6; }
2493 if eval "test \"\${$3+set}\"" = set; then :
2494 $as_echo_n "(cached) " >&6
2495 else
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2498 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2500 #define $2 innocuous_$2
2501
2502 /* System header to define __stub macros and hopefully few prototypes,
2503 which can conflict with char $2 (); below.
2504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2505 <limits.h> exists even on freestanding compilers. */
2506
2507 #ifdef __STDC__
2508 # include <limits.h>
2509 #else
2510 # include <assert.h>
2511 #endif
2512
2513 #undef $2
2528
2529 int
2530 main ()
2531 {
2532 return $2 ();
2533 ;
2534 return 0;
2535 }
2536 _ACEOF
2537 if ac_fn_cxx_try_link "$LINENO"; then :
2538 eval "$3=yes"
2539 else
2540 eval "$3=no"
2541 fi
2542 rm -f core conftest.err conftest.$ac_objext \
2543 conftest$ac_exeext conftest.$ac_ext
2544 fi
2545 eval ac_res=\$$3
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2547 $as_echo "$ac_res" >&6; }
2548 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2549
2550 } # ac_fn_cxx_check_func
2551
2552 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2553 # -------------------------------------------------------
2554 # Tests whether HEADER exists and can be compiled using the include files in
2555 # INCLUDES, setting the cache variable VAR accordingly.
2556 ac_fn_c_check_header_compile ()
2557 {
2558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2560 $as_echo_n "checking for $2... " >&6; }
2561 if eval "test \"\${$3+set}\"" = set; then :
2562 $as_echo_n "(cached) " >&6
2563 else
2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h. */
2566 $4
2567 #include <$2>
2568 _ACEOF
2569 if ac_fn_c_try_compile "$LINENO"; then :
2570 eval "$3=yes"
2571 else
2572 eval "$3=no"
2573 fi
2574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2575 fi
2576 eval ac_res=\$$3
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2578 $as_echo "$ac_res" >&6; }
2579 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2580
2581 } # ac_fn_c_check_header_compile
2582 cat >config.log <<_ACEOF
2583 This file contains any messages produced by compilers while
2584 running configure, to aid debugging if configure makes a mistake.
2585
2586 It was created by OpenJDK $as_me jdk8, which was
2587 generated by GNU Autoconf 2.67. Invocation command line was
2588
2589 $ $0 $@
2590
2591 _ACEOF
2592 exec 5>>config.log
2593 {
2594 cat <<_ASUNAME
2595 ## --------- ##
2596 ## Platform. ##
2597 ## --------- ##
2598
2599 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2600 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2601 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2602 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2603 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2604
2605 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2606 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2607
2825 *) ac_site_file1=./$CONFIG_SITE;;
2826 esac
2827 elif test "x$prefix" != xNONE; then
2828 ac_site_file1=$prefix/share/config.site
2829 ac_site_file2=$prefix/etc/config.site
2830 else
2831 ac_site_file1=$ac_default_prefix/share/config.site
2832 ac_site_file2=$ac_default_prefix/etc/config.site
2833 fi
2834 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2835 do
2836 test "x$ac_site_file" = xNONE && continue
2837 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2839 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2840 sed 's/^/| /' "$ac_site_file" >&5
2841 . "$ac_site_file" \
2842 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2844 as_fn_error $? "failed to load site script $ac_site_file
2845 See \`config.log' for more details" "$LINENO" 5 ; }
2846 fi
2847 done
2848
2849 if test -r "$cache_file"; then
2850 # Some versions of bash will fail to source /dev/null (special files
2851 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2852 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2854 $as_echo "$as_me: loading cache $cache_file" >&6;}
2855 case $cache_file in
2856 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2857 *) . "./$cache_file";;
2858 esac
2859 fi
2860 else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2862 $as_echo "$as_me: creating cache $cache_file" >&6;}
2863 >$cache_file
2864 fi
2865
3610 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
3611 # OPENJDK_BUILD_OS, etc.
3612
3613
3614 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
3615 # accordingly. Must be done after setting up build and target system, but before
3616 # doing anything else with these values.
3617
3618
3619 # Setup the legacy variables, for controlling the old makefiles.
3620 #
3621
3622
3623
3624
3625 #%%% Build and target systems %%%
3626
3627
3628
3629
3630 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
3631 # Add -mX to various FLAGS variables.
3632
3633
3634
3635
3636
3637
3638 #
3639 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3640 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3641 #
3642 # This code is free software; you can redistribute it and/or modify it
3643 # under the terms of the GNU General Public License version 2 only, as
3644 # published by the Free Software Foundation. Oracle designates this
3645 # particular file as subject to the "Classpath" exception as provided
3646 # by Oracle in the LICENSE file that accompanied this code.
3647 #
3648 # This code is distributed in the hope that it will be useful, but WITHOUT
3649 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3747
3748 # Check if the VS env variables were setup prior to running configure.
3749 # If not, then find vcvarsall.bat and run it automatically, and integrate
3750 # the set env variables into the spec file.
3751
3752
3753
3754 # Setup the DXSDK paths
3755
3756
3757
3758
3759
3760
3761 # This line needs to be here, verbatim, after all includes and the dummy hook
3762 # definitions. It is replaced with custom functionality when building
3763 # custom sources.
3764 #CUSTOM_AUTOCONF_INCLUDE
3765
3766 # Do not change or remove the following line, it is needed for consistency checks:
3767 DATE_WHEN_GENERATED=1365493306
3768
3769 ###############################################################################
3770 #
3771 # Initialization / Boot-strapping
3772 #
3773 # The bootstrapping process needs to solve the "chicken or the egg" problem,
3774 # thus it jumps back and forth, each time gaining something needed later on.
3775 #
3776 ###############################################################################
3777
3778 # Basic initialization that must happen first of all
3779
3780 # Save the original command line. This is passed to us by the wrapper configure script.
3781
3782 DATE_WHEN_CONFIGURED=`LANG=C date`
3783
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
3785 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
3787 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
3788
3789
3790
3791 # Start with tools that do not need have cross compilation support
3792 # and can be expected to be found in the default PATH. These tools are
3793 # used by configure. Nor are these tools expected to be found in the
3794 # devkit from the builddeps server either, since they are
3795 # needed to download the devkit.
3796
3797 # First are all the simple required tools.
3798
3799 for ac_prog in basename
3800 do
3801 # Extract the first word of "$ac_prog", so it can be a program name with args.
3802 set dummy $ac_prog; ac_word=$2
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 $as_echo_n "checking for $ac_word... " >&6; }
3805 if test "${ac_cv_path_BASENAME+set}" = set; then :
3806 $as_echo_n "(cached) " >&6
3807 else
3808 case $BASENAME in
3809 [\\/]* | ?:[\\/]*)
3810 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
3811 ;;
3812 *)
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3820 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
3821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 break 2
3823 fi
3824 done
3825 done
3844
3845 if test "x$BASENAME" = x; then
3846 if test "xbasename" = x; then
3847 PROG_NAME=basename
3848 else
3849 PROG_NAME=basename
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3852 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3853 as_fn_error $? "Cannot continue" "$LINENO" 5
3854 fi
3855
3856
3857
3858 for ac_prog in bash
3859 do
3860 # Extract the first word of "$ac_prog", so it can be a program name with args.
3861 set dummy $ac_prog; ac_word=$2
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if test "${ac_cv_path_BASH+set}" = set; then :
3865 $as_echo_n "(cached) " >&6
3866 else
3867 case $BASH in
3868 [\\/]* | ?:[\\/]*)
3869 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3870 ;;
3871 *)
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3874 do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3879 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 break 2
3882 fi
3883 done
3884 done
3903
3904 if test "x$BASH" = x; then
3905 if test "xbash" = x; then
3906 PROG_NAME=bash
3907 else
3908 PROG_NAME=bash
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3911 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3912 as_fn_error $? "Cannot continue" "$LINENO" 5
3913 fi
3914
3915
3916
3917 for ac_prog in cat
3918 do
3919 # Extract the first word of "$ac_prog", so it can be a program name with args.
3920 set dummy $ac_prog; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if test "${ac_cv_path_CAT+set}" = set; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 case $CAT in
3927 [\\/]* | ?:[\\/]*)
3928 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3929 ;;
3930 *)
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH
3933 do
3934 IFS=$as_save_IFS
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3938 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 break 2
3941 fi
3942 done
3943 done
3962
3963 if test "x$CAT" = x; then
3964 if test "xcat" = x; then
3965 PROG_NAME=cat
3966 else
3967 PROG_NAME=cat
3968 fi
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3970 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3971 as_fn_error $? "Cannot continue" "$LINENO" 5
3972 fi
3973
3974
3975
3976 for ac_prog in chmod
3977 do
3978 # Extract the first word of "$ac_prog", so it can be a program name with args.
3979 set dummy $ac_prog; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if test "${ac_cv_path_CHMOD+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 case $CHMOD in
3986 [\\/]* | ?:[\\/]*)
3987 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3988 ;;
3989 *)
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4000 fi
4001 done
4002 done
4021
4022 if test "x$CHMOD" = x; then
4023 if test "xchmod" = x; then
4024 PROG_NAME=chmod
4025 else
4026 PROG_NAME=chmod
4027 fi
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4029 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4030 as_fn_error $? "Cannot continue" "$LINENO" 5
4031 fi
4032
4033
4034
4035 for ac_prog in cmp
4036 do
4037 # Extract the first word of "$ac_prog", so it can be a program name with args.
4038 set dummy $ac_prog; ac_word=$2
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 $as_echo_n "checking for $ac_word... " >&6; }
4041 if test "${ac_cv_path_CMP+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 case $CMP in
4045 [\\/]* | ?:[\\/]*)
4046 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4047 ;;
4048 *)
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4051 do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 break 2
4059 fi
4060 done
4061 done
4080
4081 if test "x$CMP" = x; then
4082 if test "xcmp" = x; then
4083 PROG_NAME=cmp
4084 else
4085 PROG_NAME=cmp
4086 fi
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4088 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4089 as_fn_error $? "Cannot continue" "$LINENO" 5
4090 fi
4091
4092
4093
4094 for ac_prog in comm
4095 do
4096 # Extract the first word of "$ac_prog", so it can be a program name with args.
4097 set dummy $ac_prog; ac_word=$2
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if test "${ac_cv_path_COMM+set}" = set; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 case $COMM in
4104 [\\/]* | ?:[\\/]*)
4105 ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
4106 ;;
4107 *)
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4110 do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4115 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 break 2
4118 fi
4119 done
4120 done
4139
4140 if test "x$COMM" = x; then
4141 if test "xcomm" = x; then
4142 PROG_NAME=comm
4143 else
4144 PROG_NAME=comm
4145 fi
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4147 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4148 as_fn_error $? "Cannot continue" "$LINENO" 5
4149 fi
4150
4151
4152
4153 for ac_prog in cp
4154 do
4155 # Extract the first word of "$ac_prog", so it can be a program name with args.
4156 set dummy $ac_prog; ac_word=$2
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158 $as_echo_n "checking for $ac_word... " >&6; }
4159 if test "${ac_cv_path_CP+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 case $CP in
4163 [\\/]* | ?:[\\/]*)
4164 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4165 ;;
4166 *)
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 break 2
4177 fi
4178 done
4179 done
4198
4199 if test "x$CP" = x; then
4200 if test "xcp" = x; then
4201 PROG_NAME=cp
4202 else
4203 PROG_NAME=cp
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4206 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4207 as_fn_error $? "Cannot continue" "$LINENO" 5
4208 fi
4209
4210
4211
4212 for ac_prog in cpio
4213 do
4214 # Extract the first word of "$ac_prog", so it can be a program name with args.
4215 set dummy $ac_prog; ac_word=$2
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 $as_echo_n "checking for $ac_word... " >&6; }
4218 if test "${ac_cv_path_CPIO+set}" = set; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 case $CPIO in
4222 [\\/]* | ?:[\\/]*)
4223 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
4224 ;;
4225 *)
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4228 do
4229 IFS=$as_save_IFS
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4233 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
4234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 break 2
4236 fi
4237 done
4238 done
4257
4258 if test "x$CPIO" = x; then
4259 if test "xcpio" = x; then
4260 PROG_NAME=cpio
4261 else
4262 PROG_NAME=cpio
4263 fi
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4265 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4266 as_fn_error $? "Cannot continue" "$LINENO" 5
4267 fi
4268
4269
4270
4271 for ac_prog in cut
4272 do
4273 # Extract the first word of "$ac_prog", so it can be a program name with args.
4274 set dummy $ac_prog; ac_word=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if test "${ac_cv_path_CUT+set}" = set; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 case $CUT in
4281 [\\/]* | ?:[\\/]*)
4282 ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
4283 ;;
4284 *)
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH
4287 do
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4292 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
4293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 break 2
4295 fi
4296 done
4297 done
4316
4317 if test "x$CUT" = x; then
4318 if test "xcut" = x; then
4319 PROG_NAME=cut
4320 else
4321 PROG_NAME=cut
4322 fi
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4324 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4325 as_fn_error $? "Cannot continue" "$LINENO" 5
4326 fi
4327
4328
4329
4330 for ac_prog in date
4331 do
4332 # Extract the first word of "$ac_prog", so it can be a program name with args.
4333 set dummy $ac_prog; ac_word=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if test "${ac_cv_path_DATE+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 case $DATE in
4340 [\\/]* | ?:[\\/]*)
4341 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4342 ;;
4343 *)
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH
4346 do
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4351 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 break 2
4354 fi
4355 done
4356 done
4375
4376 if test "x$DATE" = x; then
4377 if test "xdate" = x; then
4378 PROG_NAME=date
4379 else
4380 PROG_NAME=date
4381 fi
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4383 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4384 as_fn_error $? "Cannot continue" "$LINENO" 5
4385 fi
4386
4387
4388
4389 for ac_prog in gdiff diff
4390 do
4391 # Extract the first word of "$ac_prog", so it can be a program name with args.
4392 set dummy $ac_prog; ac_word=$2
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 $as_echo_n "checking for $ac_word... " >&6; }
4395 if test "${ac_cv_path_DIFF+set}" = set; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 case $DIFF in
4399 [\\/]* | ?:[\\/]*)
4400 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
4401 ;;
4402 *)
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414 done
4415 done
4434
4435 if test "x$DIFF" = x; then
4436 if test "xgdiff diff" = x; then
4437 PROG_NAME=diff
4438 else
4439 PROG_NAME=gdiff diff
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4442 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4443 as_fn_error $? "Cannot continue" "$LINENO" 5
4444 fi
4445
4446
4447
4448 for ac_prog in dirname
4449 do
4450 # Extract the first word of "$ac_prog", so it can be a program name with args.
4451 set dummy $ac_prog; ac_word=$2
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4453 $as_echo_n "checking for $ac_word... " >&6; }
4454 if test "${ac_cv_path_DIRNAME+set}" = set; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 case $DIRNAME in
4458 [\\/]* | ?:[\\/]*)
4459 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4460 ;;
4461 *)
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 break 2
4472 fi
4473 done
4474 done
4493
4494 if test "x$DIRNAME" = x; then
4495 if test "xdirname" = x; then
4496 PROG_NAME=dirname
4497 else
4498 PROG_NAME=dirname
4499 fi
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4501 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4502 as_fn_error $? "Cannot continue" "$LINENO" 5
4503 fi
4504
4505
4506
4507 for ac_prog in echo
4508 do
4509 # Extract the first word of "$ac_prog", so it can be a program name with args.
4510 set dummy $ac_prog; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if test "${ac_cv_path_ECHO+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 case $ECHO in
4517 [\\/]* | ?:[\\/]*)
4518 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4519 ;;
4520 *)
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4531 fi
4532 done
4533 done
4552
4553 if test "x$ECHO" = x; then
4554 if test "xecho" = x; then
4555 PROG_NAME=echo
4556 else
4557 PROG_NAME=echo
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4560 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4561 as_fn_error $? "Cannot continue" "$LINENO" 5
4562 fi
4563
4564
4565
4566 for ac_prog in expr
4567 do
4568 # Extract the first word of "$ac_prog", so it can be a program name with args.
4569 set dummy $ac_prog; ac_word=$2
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4571 $as_echo_n "checking for $ac_word... " >&6; }
4572 if test "${ac_cv_path_EXPR+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 case $EXPR in
4576 [\\/]* | ?:[\\/]*)
4577 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
4578 ;;
4579 *)
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591 done
4592 done
4611
4612 if test "x$EXPR" = x; then
4613 if test "xexpr" = x; then
4614 PROG_NAME=expr
4615 else
4616 PROG_NAME=expr
4617 fi
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4619 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4620 as_fn_error $? "Cannot continue" "$LINENO" 5
4621 fi
4622
4623
4624
4625 for ac_prog in file
4626 do
4627 # Extract the first word of "$ac_prog", so it can be a program name with args.
4628 set dummy $ac_prog; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_path_FILE+set}" = set; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 case $FILE in
4635 [\\/]* | ?:[\\/]*)
4636 ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
4637 ;;
4638 *)
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4649 fi
4650 done
4651 done
4670
4671 if test "x$FILE" = x; then
4672 if test "xfile" = x; then
4673 PROG_NAME=file
4674 else
4675 PROG_NAME=file
4676 fi
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4678 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4679 as_fn_error $? "Cannot continue" "$LINENO" 5
4680 fi
4681
4682
4683
4684 for ac_prog in find
4685 do
4686 # Extract the first word of "$ac_prog", so it can be a program name with args.
4687 set dummy $ac_prog; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if test "${ac_cv_path_FIND+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 case $FIND in
4694 [\\/]* | ?:[\\/]*)
4695 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4696 ;;
4697 *)
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709 done
4710 done
4729
4730 if test "x$FIND" = x; then
4731 if test "xfind" = x; then
4732 PROG_NAME=find
4733 else
4734 PROG_NAME=find
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4737 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4738 as_fn_error $? "Cannot continue" "$LINENO" 5
4739 fi
4740
4741
4742
4743 for ac_prog in head
4744 do
4745 # Extract the first word of "$ac_prog", so it can be a program name with args.
4746 set dummy $ac_prog; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if test "${ac_cv_path_HEAD+set}" = set; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 case $HEAD in
4753 [\\/]* | ?:[\\/]*)
4754 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
4755 ;;
4756 *)
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
4767 fi
4768 done
4769 done
4788
4789 if test "x$HEAD" = x; then
4790 if test "xhead" = x; then
4791 PROG_NAME=head
4792 else
4793 PROG_NAME=head
4794 fi
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4796 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4797 as_fn_error $? "Cannot continue" "$LINENO" 5
4798 fi
4799
4800
4801
4802 for ac_prog in ln
4803 do
4804 # Extract the first word of "$ac_prog", so it can be a program name with args.
4805 set dummy $ac_prog; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if test "${ac_cv_path_LN+set}" = set; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 case $LN in
4812 [\\/]* | ?:[\\/]*)
4813 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4814 ;;
4815 *)
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4826 fi
4827 done
4828 done
4847
4848 if test "x$LN" = x; then
4849 if test "xln" = x; then
4850 PROG_NAME=ln
4851 else
4852 PROG_NAME=ln
4853 fi
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4855 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4856 as_fn_error $? "Cannot continue" "$LINENO" 5
4857 fi
4858
4859
4860
4861 for ac_prog in ls
4862 do
4863 # Extract the first word of "$ac_prog", so it can be a program name with args.
4864 set dummy $ac_prog; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if test "${ac_cv_path_LS+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 case $LS in
4871 [\\/]* | ?:[\\/]*)
4872 ac_cv_path_LS="$LS" # Let the user override the test with a path.
4873 ;;
4874 *)
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4885 fi
4886 done
4887 done
4906
4907 if test "x$LS" = x; then
4908 if test "xls" = x; then
4909 PROG_NAME=ls
4910 else
4911 PROG_NAME=ls
4912 fi
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4914 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4915 as_fn_error $? "Cannot continue" "$LINENO" 5
4916 fi
4917
4918
4919
4920 for ac_prog in mkdir
4921 do
4922 # Extract the first word of "$ac_prog", so it can be a program name with args.
4923 set dummy $ac_prog; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if test "${ac_cv_path_MKDIR+set}" = set; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 case $MKDIR in
4930 [\\/]* | ?:[\\/]*)
4931 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4932 ;;
4933 *)
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4936 do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4944 fi
4945 done
4946 done
4965
4966 if test "x$MKDIR" = x; then
4967 if test "xmkdir" = x; then
4968 PROG_NAME=mkdir
4969 else
4970 PROG_NAME=mkdir
4971 fi
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4973 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4974 as_fn_error $? "Cannot continue" "$LINENO" 5
4975 fi
4976
4977
4978
4979 for ac_prog in mktemp
4980 do
4981 # Extract the first word of "$ac_prog", so it can be a program name with args.
4982 set dummy $ac_prog; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if test "${ac_cv_path_MKTEMP+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 case $MKTEMP in
4989 [\\/]* | ?:[\\/]*)
4990 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
4991 ;;
4992 *)
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5003 fi
5004 done
5005 done
5024
5025 if test "x$MKTEMP" = x; then
5026 if test "xmktemp" = x; then
5027 PROG_NAME=mktemp
5028 else
5029 PROG_NAME=mktemp
5030 fi
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5032 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5033 as_fn_error $? "Cannot continue" "$LINENO" 5
5034 fi
5035
5036
5037
5038 for ac_prog in mv
5039 do
5040 # Extract the first word of "$ac_prog", so it can be a program name with args.
5041 set dummy $ac_prog; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if test "${ac_cv_path_MV+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 case $MV in
5048 [\\/]* | ?:[\\/]*)
5049 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5050 ;;
5051 *)
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5062 fi
5063 done
5064 done
5083
5084 if test "x$MV" = x; then
5085 if test "xmv" = x; then
5086 PROG_NAME=mv
5087 else
5088 PROG_NAME=mv
5089 fi
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5091 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5092 as_fn_error $? "Cannot continue" "$LINENO" 5
5093 fi
5094
5095
5096
5097 for ac_prog in printf
5098 do
5099 # Extract the first word of "$ac_prog", so it can be a program name with args.
5100 set dummy $ac_prog; ac_word=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if test "${ac_cv_path_PRINTF+set}" = set; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 case $PRINTF in
5107 [\\/]* | ?:[\\/]*)
5108 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
5109 ;;
5110 *)
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5121 fi
5122 done
5123 done
5142
5143 if test "x$PRINTF" = x; then
5144 if test "xprintf" = x; then
5145 PROG_NAME=printf
5146 else
5147 PROG_NAME=printf
5148 fi
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5150 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5151 as_fn_error $? "Cannot continue" "$LINENO" 5
5152 fi
5153
5154
5155
5156 for ac_prog in pwd
5157 do
5158 # Extract the first word of "$ac_prog", so it can be a program name with args.
5159 set dummy $ac_prog; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if test "${ac_cv_path_THEPWDCMD+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 case $THEPWDCMD in
5166 [\\/]* | ?:[\\/]*)
5167 ac_cv_path_THEPWDCMD="$THEPWDCMD" # Let the user override the test with a path.
5168 ;;
5169 *)
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_path_THEPWDCMD="$as_dir/$ac_word$ac_exec_ext"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181 done
5182 done
5201
5202 if test "x$THEPWDCMD" = x; then
5203 if test "xpwd" = x; then
5204 PROG_NAME=thepwdcmd
5205 else
5206 PROG_NAME=pwd
5207 fi
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5209 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5210 as_fn_error $? "Cannot continue" "$LINENO" 5
5211 fi
5212
5213
5214
5215 for ac_prog in rm
5216 do
5217 # Extract the first word of "$ac_prog", so it can be a program name with args.
5218 set dummy $ac_prog; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if test "${ac_cv_path_RM+set}" = set; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 case $RM in
5225 [\\/]* | ?:[\\/]*)
5226 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5227 ;;
5228 *)
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5239 fi
5240 done
5241 done
5260
5261 if test "x$RM" = x; then
5262 if test "xrm" = x; then
5263 PROG_NAME=rm
5264 else
5265 PROG_NAME=rm
5266 fi
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5268 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5269 as_fn_error $? "Cannot continue" "$LINENO" 5
5270 fi
5271
5272
5273
5274 for ac_prog in sh
5275 do
5276 # Extract the first word of "$ac_prog", so it can be a program name with args.
5277 set dummy $ac_prog; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if test "${ac_cv_path_SH+set}" = set; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 case $SH in
5284 [\\/]* | ?:[\\/]*)
5285 ac_cv_path_SH="$SH" # Let the user override the test with a path.
5286 ;;
5287 *)
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5298 fi
5299 done
5300 done
5319
5320 if test "x$SH" = x; then
5321 if test "xsh" = x; then
5322 PROG_NAME=sh
5323 else
5324 PROG_NAME=sh
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5327 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5328 as_fn_error $? "Cannot continue" "$LINENO" 5
5329 fi
5330
5331
5332
5333 for ac_prog in sort
5334 do
5335 # Extract the first word of "$ac_prog", so it can be a program name with args.
5336 set dummy $ac_prog; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if test "${ac_cv_path_SORT+set}" = set; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 case $SORT in
5343 [\\/]* | ?:[\\/]*)
5344 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
5345 ;;
5346 *)
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5349 do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5357 fi
5358 done
5359 done
5378
5379 if test "x$SORT" = x; then
5380 if test "xsort" = x; then
5381 PROG_NAME=sort
5382 else
5383 PROG_NAME=sort
5384 fi
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5386 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5387 as_fn_error $? "Cannot continue" "$LINENO" 5
5388 fi
5389
5390
5391
5392 for ac_prog in tail
5393 do
5394 # Extract the first word of "$ac_prog", so it can be a program name with args.
5395 set dummy $ac_prog; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if test "${ac_cv_path_TAIL+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 case $TAIL in
5402 [\\/]* | ?:[\\/]*)
5403 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
5404 ;;
5405 *)
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5408 do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5413 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 break 2
5416 fi
5417 done
5418 done
5437
5438 if test "x$TAIL" = x; then
5439 if test "xtail" = x; then
5440 PROG_NAME=tail
5441 else
5442 PROG_NAME=tail
5443 fi
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5445 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5446 as_fn_error $? "Cannot continue" "$LINENO" 5
5447 fi
5448
5449
5450
5451 for ac_prog in tar
5452 do
5453 # Extract the first word of "$ac_prog", so it can be a program name with args.
5454 set dummy $ac_prog; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if test "${ac_cv_path_TAR+set}" = set; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 case $TAR in
5461 [\\/]* | ?:[\\/]*)
5462 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5463 ;;
5464 *)
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5467 do
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5472 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5475 fi
5476 done
5477 done
5496
5497 if test "x$TAR" = x; then
5498 if test "xtar" = x; then
5499 PROG_NAME=tar
5500 else
5501 PROG_NAME=tar
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5504 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5505 as_fn_error $? "Cannot continue" "$LINENO" 5
5506 fi
5507
5508
5509
5510 for ac_prog in tee
5511 do
5512 # Extract the first word of "$ac_prog", so it can be a program name with args.
5513 set dummy $ac_prog; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if test "${ac_cv_path_TEE+set}" = set; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 case $TEE in
5520 [\\/]* | ?:[\\/]*)
5521 ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
5522 ;;
5523 *)
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5526 do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5534 fi
5535 done
5536 done
5555
5556 if test "x$TEE" = x; then
5557 if test "xtee" = x; then
5558 PROG_NAME=tee
5559 else
5560 PROG_NAME=tee
5561 fi
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5563 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5564 as_fn_error $? "Cannot continue" "$LINENO" 5
5565 fi
5566
5567
5568
5569 for ac_prog in touch
5570 do
5571 # Extract the first word of "$ac_prog", so it can be a program name with args.
5572 set dummy $ac_prog; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if test "${ac_cv_path_TOUCH+set}" = set; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 case $TOUCH in
5579 [\\/]* | ?:[\\/]*)
5580 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5581 ;;
5582 *)
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH
5585 do
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5590 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 break 2
5593 fi
5594 done
5595 done
5614
5615 if test "x$TOUCH" = x; then
5616 if test "xtouch" = x; then
5617 PROG_NAME=touch
5618 else
5619 PROG_NAME=touch
5620 fi
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5622 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5623 as_fn_error $? "Cannot continue" "$LINENO" 5
5624 fi
5625
5626
5627
5628 for ac_prog in tr
5629 do
5630 # Extract the first word of "$ac_prog", so it can be a program name with args.
5631 set dummy $ac_prog; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if test "${ac_cv_path_TR+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 case $TR in
5638 [\\/]* | ?:[\\/]*)
5639 ac_cv_path_TR="$TR" # Let the user override the test with a path.
5640 ;;
5641 *)
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 2
5652 fi
5653 done
5654 done
5673
5674 if test "x$TR" = x; then
5675 if test "xtr" = x; then
5676 PROG_NAME=tr
5677 else
5678 PROG_NAME=tr
5679 fi
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5681 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5682 as_fn_error $? "Cannot continue" "$LINENO" 5
5683 fi
5684
5685
5686
5687 for ac_prog in uname
5688 do
5689 # Extract the first word of "$ac_prog", so it can be a program name with args.
5690 set dummy $ac_prog; ac_word=$2
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692 $as_echo_n "checking for $ac_word... " >&6; }
5693 if test "${ac_cv_path_UNAME+set}" = set; then :
5694 $as_echo_n "(cached) " >&6
5695 else
5696 case $UNAME in
5697 [\\/]* | ?:[\\/]*)
5698 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
5699 ;;
5700 *)
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 break 2
5711 fi
5712 done
5713 done
5732
5733 if test "x$UNAME" = x; then
5734 if test "xuname" = x; then
5735 PROG_NAME=uname
5736 else
5737 PROG_NAME=uname
5738 fi
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5740 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5741 as_fn_error $? "Cannot continue" "$LINENO" 5
5742 fi
5743
5744
5745
5746 for ac_prog in uniq
5747 do
5748 # Extract the first word of "$ac_prog", so it can be a program name with args.
5749 set dummy $ac_prog; ac_word=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if test "${ac_cv_path_UNIQ+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 case $UNIQ in
5756 [\\/]* | ?:[\\/]*)
5757 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
5758 ;;
5759 *)
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5762 do
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5767 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5770 fi
5771 done
5772 done
5791
5792 if test "x$UNIQ" = x; then
5793 if test "xuniq" = x; then
5794 PROG_NAME=uniq
5795 else
5796 PROG_NAME=uniq
5797 fi
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5799 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5800 as_fn_error $? "Cannot continue" "$LINENO" 5
5801 fi
5802
5803
5804
5805 for ac_prog in wc
5806 do
5807 # Extract the first word of "$ac_prog", so it can be a program name with args.
5808 set dummy $ac_prog; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if test "${ac_cv_path_WC+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 case $WC in
5815 [\\/]* | ?:[\\/]*)
5816 ac_cv_path_WC="$WC" # Let the user override the test with a path.
5817 ;;
5818 *)
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5829 fi
5830 done
5831 done
5850
5851 if test "x$WC" = x; then
5852 if test "xwc" = x; then
5853 PROG_NAME=wc
5854 else
5855 PROG_NAME=wc
5856 fi
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5858 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5859 as_fn_error $? "Cannot continue" "$LINENO" 5
5860 fi
5861
5862
5863
5864 for ac_prog in which
5865 do
5866 # Extract the first word of "$ac_prog", so it can be a program name with args.
5867 set dummy $ac_prog; ac_word=$2
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869 $as_echo_n "checking for $ac_word... " >&6; }
5870 if test "${ac_cv_path_WHICH+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 case $WHICH in
5874 [\\/]* | ?:[\\/]*)
5875 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
5876 ;;
5877 *)
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5880 do
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5888 fi
5889 done
5890 done
5909
5910 if test "x$WHICH" = x; then
5911 if test "xwhich" = x; then
5912 PROG_NAME=which
5913 else
5914 PROG_NAME=which
5915 fi
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5917 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5918 as_fn_error $? "Cannot continue" "$LINENO" 5
5919 fi
5920
5921
5922
5923 for ac_prog in xargs
5924 do
5925 # Extract the first word of "$ac_prog", so it can be a program name with args.
5926 set dummy $ac_prog; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if test "${ac_cv_path_XARGS+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 case $XARGS in
5933 [\\/]* | ?:[\\/]*)
5934 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
5935 ;;
5936 *)
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 break 2
5947 fi
5948 done
5949 done
5969 if test "x$XARGS" = x; then
5970 if test "xxargs" = x; then
5971 PROG_NAME=xargs
5972 else
5973 PROG_NAME=xargs
5974 fi
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5976 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5977 as_fn_error $? "Cannot continue" "$LINENO" 5
5978 fi
5979
5980
5981
5982 # Then required tools that require some special treatment.
5983 for ac_prog in gawk mawk nawk awk
5984 do
5985 # Extract the first word of "$ac_prog", so it can be a program name with args.
5986 set dummy $ac_prog; ac_word=$2
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5988 $as_echo_n "checking for $ac_word... " >&6; }
5989 if test "${ac_cv_prog_AWK+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 if test -n "$AWK"; then
5993 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5994 else
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5997 do
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6002 ac_cv_prog_AWK="$ac_prog"
6003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 break 2
6005 fi
6006 done
6007 done
6008 IFS=$as_save_IFS
6009
6019 fi
6020
6021
6022 test -n "$AWK" && break
6023 done
6024
6025
6026 if test "x$AWK" = x; then
6027 if test "x" = x; then
6028 PROG_NAME=awk
6029 else
6030 PROG_NAME=
6031 fi
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6033 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6034 as_fn_error $? "Cannot continue" "$LINENO" 5
6035 fi
6036
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6038 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6039 if test "${ac_cv_path_GREP+set}" = set; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 if test -z "$GREP"; then
6043 ac_path_GREP_found=false
6044 # Loop through the user's path and test for each of PROGNAME-LIST
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6047 do
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_prog in grep ggrep; do
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6053 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6054 # Check for GNU ac_path_GREP and select it if it is found.
6055 # Check for GNU $ac_path_GREP
6056 case `"$ac_path_GREP" --version 2>&1` in
6057 *GNU*)
6058 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6059 *)
6094 fi
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6096 $as_echo "$ac_cv_path_GREP" >&6; }
6097 GREP="$ac_cv_path_GREP"
6098
6099
6100
6101 if test "x$GREP" = x; then
6102 if test "x" = x; then
6103 PROG_NAME=grep
6104 else
6105 PROG_NAME=
6106 fi
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6108 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6109 as_fn_error $? "Cannot continue" "$LINENO" 5
6110 fi
6111
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6113 $as_echo_n "checking for egrep... " >&6; }
6114 if test "${ac_cv_path_EGREP+set}" = set; then :
6115 $as_echo_n "(cached) " >&6
6116 else
6117 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6118 then ac_cv_path_EGREP="$GREP -E"
6119 else
6120 if test -z "$EGREP"; then
6121 ac_path_EGREP_found=false
6122 # Loop through the user's path and test for each of PROGNAME-LIST
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6125 do
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_prog in egrep; do
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6131 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6132 # Check for GNU ac_path_EGREP and select it if it is found.
6133 # Check for GNU $ac_path_EGREP
6134 case `"$ac_path_EGREP" --version 2>&1` in
6173 fi
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6175 $as_echo "$ac_cv_path_EGREP" >&6; }
6176 EGREP="$ac_cv_path_EGREP"
6177
6178
6179
6180 if test "x$EGREP" = x; then
6181 if test "x" = x; then
6182 PROG_NAME=egrep
6183 else
6184 PROG_NAME=
6185 fi
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6187 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6188 as_fn_error $? "Cannot continue" "$LINENO" 5
6189 fi
6190
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6192 $as_echo_n "checking for fgrep... " >&6; }
6193 if test "${ac_cv_path_FGREP+set}" = set; then :
6194 $as_echo_n "(cached) " >&6
6195 else
6196 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6197 then ac_cv_path_FGREP="$GREP -F"
6198 else
6199 if test -z "$FGREP"; then
6200 ac_path_FGREP_found=false
6201 # Loop through the user's path and test for each of PROGNAME-LIST
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6204 do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_prog in fgrep; do
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6210 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6211 # Check for GNU ac_path_FGREP and select it if it is found.
6212 # Check for GNU $ac_path_FGREP
6213 case `"$ac_path_FGREP" --version 2>&1` in
6252 fi
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6254 $as_echo "$ac_cv_path_FGREP" >&6; }
6255 FGREP="$ac_cv_path_FGREP"
6256
6257
6258
6259 if test "x$FGREP" = x; then
6260 if test "x" = x; then
6261 PROG_NAME=fgrep
6262 else
6263 PROG_NAME=
6264 fi
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6266 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6267 as_fn_error $? "Cannot continue" "$LINENO" 5
6268 fi
6269
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6271 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6272 if test "${ac_cv_path_SED+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6276 for ac_i in 1 2 3 4 5 6 7; do
6277 ac_script="$ac_script$as_nl$ac_script"
6278 done
6279 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6280 { ac_script=; unset ac_script;}
6281 if test -z "$SED"; then
6282 ac_path_SED_found=false
6283 # Loop through the user's path and test for each of PROGNAME-LIST
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_prog in sed gsed; do
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6292 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6338
6339
6340 if test "x$SED" = x; then
6341 if test "x" = x; then
6342 PROG_NAME=sed
6343 else
6344 PROG_NAME=
6345 fi
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6347 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6348 as_fn_error $? "Cannot continue" "$LINENO" 5
6349 fi
6350
6351
6352 for ac_prog in nawk gawk awk
6353 do
6354 # Extract the first word of "$ac_prog", so it can be a program name with args.
6355 set dummy $ac_prog; ac_word=$2
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if test "${ac_cv_path_NAWK+set}" = set; then :
6359 $as_echo_n "(cached) " >&6
6360 else
6361 case $NAWK in
6362 [\\/]* | ?:[\\/]*)
6363 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
6364 ;;
6365 *)
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6368 do
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 break 2
6376 fi
6377 done
6378 done
6398 if test "x$NAWK" = x; then
6399 if test "x" = x; then
6400 PROG_NAME=nawk
6401 else
6402 PROG_NAME=
6403 fi
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6405 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6406 as_fn_error $? "Cannot continue" "$LINENO" 5
6407 fi
6408
6409
6410 # Always force rm.
6411 RM="$RM -f"
6412
6413 # These are not required on all platforms
6414 # Extract the first word of "cygpath", so it can be a program name with args.
6415 set dummy cygpath; ac_word=$2
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if test "${ac_cv_path_CYGPATH+set}" = set; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 case $CYGPATH in
6422 [\\/]* | ?:[\\/]*)
6423 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
6424 ;;
6425 *)
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6428 do
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 break 2
6436 fi
6437 done
6438 done
6439 IFS=$as_save_IFS
6440
6441 ;;
6442 esac
6443 fi
6444 CYGPATH=$ac_cv_path_CYGPATH
6445 if test -n "$CYGPATH"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
6447 $as_echo "$CYGPATH" >&6; }
6448 else
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6451 fi
6452
6453
6454 # Extract the first word of "readlink", so it can be a program name with args.
6455 set dummy readlink; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_path_READLINK+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 case $READLINK in
6462 [\\/]* | ?:[\\/]*)
6463 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
6464 ;;
6465 *)
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6476 fi
6477 done
6478 done
6479 IFS=$as_save_IFS
6480
6481 ;;
6482 esac
6483 fi
6484 READLINK=$ac_cv_path_READLINK
6485 if test -n "$READLINK"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
6487 $as_echo "$READLINK" >&6; }
6488 else
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6491 fi
6492
6493
6494 # Extract the first word of "df", so it can be a program name with args.
6495 set dummy df; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if test "${ac_cv_path_DF+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 case $DF in
6502 [\\/]* | ?:[\\/]*)
6503 ac_cv_path_DF="$DF" # Let the user override the test with a path.
6504 ;;
6505 *)
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6508 do
6509 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
6514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 break 2
6516 fi
6517 done
6518 done
6519 IFS=$as_save_IFS
6520
6521 ;;
6522 esac
6523 fi
6524 DF=$ac_cv_path_DF
6525 if test -n "$DF"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
6527 $as_echo "$DF" >&6; }
6528 else
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6531 fi
6532
6533
6534 # Extract the first word of "SetFile", so it can be a program name with args.
6535 set dummy SetFile; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if test "${ac_cv_path_SETFILE+set}" = set; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 case $SETFILE in
6542 [\\/]* | ?:[\\/]*)
6543 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
6544 ;;
6545 *)
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6548 do
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6556 fi
6557 done
6558 done
6559 IFS=$as_save_IFS
6560
6561 ;;
6562 esac
6563 fi
6564 SETFILE=$ac_cv_path_SETFILE
6565 if test -n "$SETFILE"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
6567 $as_echo "$SETFILE" >&6; }
6568 else
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6571 fi
6572
6573
6574
6575
6576 # Now we can determine OpenJDK build and target platforms. This is required to
6577 # have early on.
6578 # Make sure we can run config.sub.
6579 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6580 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6581
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6583 $as_echo_n "checking build system type... " >&6; }
6584 if test "${ac_cv_build+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 ac_build_alias=$build_alias
6588 test "x$ac_build_alias" = x &&
6589 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6590 test "x$ac_build_alias" = x &&
6591 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6592 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6593 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6594
6595 fi
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6597 $as_echo "$ac_cv_build" >&6; }
6598 case $ac_cv_build in
6599 *-*-*) ;;
6600 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
6601 esac
6602 build=$ac_cv_build
6603 ac_save_IFS=$IFS; IFS='-'
6604 set x $ac_cv_build
6605 shift
6606 build_cpu=$1
6607 build_vendor=$2
6608 shift; shift
6609 # Remember, the first character of IFS is used to create $*,
6610 # except with old shells:
6611 build_os=$*
6612 IFS=$ac_save_IFS
6613 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6614
6615
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6617 $as_echo_n "checking host system type... " >&6; }
6618 if test "${ac_cv_host+set}" = set; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 if test "x$host_alias" = x; then
6622 ac_cv_host=$ac_cv_build
6623 else
6624 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6625 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6626 fi
6627
6628 fi
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6630 $as_echo "$ac_cv_host" >&6; }
6631 case $ac_cv_host in
6632 *-*-*) ;;
6633 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
6634 esac
6635 host=$ac_cv_host
6636 ac_save_IFS=$IFS; IFS='-'
6637 set x $ac_cv_host
6638 shift
6639 host_cpu=$1
6640 host_vendor=$2
6641 shift; shift
6642 # Remember, the first character of IFS is used to create $*,
6643 # except with old shells:
6644 host_os=$*
6645 IFS=$ac_save_IFS
6646 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6647
6648
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6650 $as_echo_n "checking target system type... " >&6; }
6651 if test "${ac_cv_target+set}" = set; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 if test "x$target_alias" = x; then
6655 ac_cv_target=$ac_cv_host
6656 else
6657 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6658 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6659 fi
6660
6661 fi
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6663 $as_echo "$ac_cv_target" >&6; }
6664 case $ac_cv_target in
6665 *-*-*) ;;
6666 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
6667 esac
6668 target=$ac_cv_target
6669 ac_save_IFS=$IFS; IFS='-'
6670 set x $ac_cv_target
6671 shift
6672 target_cpu=$1
6673 target_vendor=$2
6674 shift; shift
6675 # Remember, the first character of IFS is used to create $*,
6676 # except with old shells:
6677 target_os=$*
6678 IFS=$ac_save_IFS
6679 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6680
6681
6682 # The aliases save the names the user supplied, while $host etc.
6683 # will get canonicalized.
6684 test -n "$target_alias" &&
6685 test "$program_prefix$program_suffix$program_transform_name" = \
6686 NONENONEs,x,x, &&
6687 program_prefix=${target_alias}-
6688
6689 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
6690 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the
6691 # product you're building. The target of this build is called "host". Since this is confusing to most people, we
6692 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
6693 # to use the configure naming style.
6694
6695
6696
6697
6698
6699 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
6700 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
6701 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
6702 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
6703 OPENJDK_TARGET_AUTOCONF_NAME="$host"
6704 OPENJDK_BUILD_AUTOCONF_NAME="$build"
6705
6706
6707
7092
7093
7094 if test "x$COMPILE_TYPE" = "xcross"; then
7095 # FIXME: ... or should this include reduced builds..?
7096 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
7097 else
7098 DEFINE_CROSS_COMPILE_ARCH=""
7099 fi
7100
7101
7102 # Some Zero and Shark settings.
7103 # ZERO_ARCHFLAG tells the compiler which mode to build for
7104 case "${OPENJDK_TARGET_CPU}" in
7105 s390)
7106 ZERO_ARCHFLAG="-m31"
7107 ;;
7108 *)
7109 ZERO_ARCHFLAG="-m${OPENJDK_TARGET_CPU_BITS}"
7110 esac
7111
7112
7113 # ZERO_ARCHDEF is used to enable architecture-specific code
7114 case "${OPENJDK_TARGET_CPU}" in
7115 ppc*) ZERO_ARCHDEF=PPC ;;
7116 s390*) ZERO_ARCHDEF=S390 ;;
7117 sparc*) ZERO_ARCHDEF=SPARC ;;
7118 x86_64*) ZERO_ARCHDEF=AMD64 ;;
7119 x86) ZERO_ARCHDEF=IA32 ;;
7120 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
7121 esac
7122
7123
7124
7125
7126
7127 # Continue setting up basic stuff. Most remaining code require fundamental tools.
7128
7129 # Locate the directory of this script.
7130 SCRIPT="$0"
7131
8144 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
8145
8146 # The generated Makefile knows where the spec.gmk is and where the source is.
8147 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
8148 # which will look for generated configurations
8149 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
8150
8151
8152 # Save the arguments given to us
8153 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
8154
8155
8156 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
8157
8158 for ac_prog in apt-get yum port pkgutil pkgadd
8159 do
8160 # Extract the first word of "$ac_prog", so it can be a program name with args.
8161 set dummy $ac_prog; ac_word=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if test "${ac_cv_prog_PKGHANDLER+set}" = set; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8167 if test -n "$PKGHANDLER"; then
8168 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
8169 else
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171 for as_dir in $PATH
8172 do
8173 IFS=$as_save_IFS
8174 test -z "$as_dir" && as_dir=.
8175 for ac_exec_ext in '' $ac_executable_extensions; do
8176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8177 ac_cv_prog_PKGHANDLER="$ac_prog"
8178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8179 break 2
8180 fi
8181 done
8182 done
8183 IFS=$as_save_IFS
8184
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8510 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8511 fi
8512
8513 fi
8514 fi
8515 fi
8516 fi
8517
8518 if test "x$FOUND_MAKE" = x; then
8519 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
8520 fi
8521 else
8522 # Try our hardest to locate a correct version of GNU make
8523 for ac_prog in gmake
8524 do
8525 # Extract the first word of "$ac_prog", so it can be a program name with args.
8526 set dummy $ac_prog; ac_word=$2
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8528 $as_echo_n "checking for $ac_word... " >&6; }
8529 if test "${ac_cv_path_CHECK_GMAKE+set}" = set; then :
8530 $as_echo_n "(cached) " >&6
8531 else
8532 case $CHECK_GMAKE in
8533 [\\/]* | ?:[\\/]*)
8534 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
8535 ;;
8536 *)
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 for as_dir in $PATH
8539 do
8540 IFS=$as_save_IFS
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8544 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
8545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8546 break 2
8547 fi
8548 done
8549 done
8863
8864 if test "x$complete" != "x$new_complete"; then
8865 FOUND_MAKE="$new_complete"
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8867 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8868 fi
8869
8870 fi
8871 fi
8872 fi
8873 fi
8874
8875
8876 if test "x$FOUND_MAKE" = x; then
8877 for ac_prog in make
8878 do
8879 # Extract the first word of "$ac_prog", so it can be a program name with args.
8880 set dummy $ac_prog; ac_word=$2
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882 $as_echo_n "checking for $ac_word... " >&6; }
8883 if test "${ac_cv_path_CHECK_MAKE+set}" = set; then :
8884 $as_echo_n "(cached) " >&6
8885 else
8886 case $CHECK_MAKE in
8887 [\\/]* | ?:[\\/]*)
8888 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
8889 ;;
8890 *)
8891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892 for as_dir in $PATH
8893 do
8894 IFS=$as_save_IFS
8895 test -z "$as_dir" && as_dir=.
8896 for ac_exec_ext in '' $ac_executable_extensions; do
8897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8898 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
8899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8900 break 2
8901 fi
8902 done
8903 done
9222 fi
9223
9224 fi
9225 fi
9226 fi
9227 fi
9228
9229 fi
9230
9231 if test "x$FOUND_MAKE" = x; then
9232 if test "x$TOOLS_DIR" != x; then
9233 # We have a tools-dir, check that as well before giving up.
9234 OLD_PATH=$PATH
9235 PATH=$TOOLS_DIR:$PATH
9236 for ac_prog in gmake
9237 do
9238 # Extract the first word of "$ac_prog", so it can be a program name with args.
9239 set dummy $ac_prog; ac_word=$2
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241 $as_echo_n "checking for $ac_word... " >&6; }
9242 if test "${ac_cv_path_CHECK_TOOLSDIR_GMAKE+set}" = set; then :
9243 $as_echo_n "(cached) " >&6
9244 else
9245 case $CHECK_TOOLSDIR_GMAKE in
9246 [\\/]* | ?:[\\/]*)
9247 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
9248 ;;
9249 *)
9250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251 for as_dir in $PATH
9252 do
9253 IFS=$as_save_IFS
9254 test -z "$as_dir" && as_dir=.
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9257 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
9258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9259 break 2
9260 fi
9261 done
9262 done
9575 fi
9576
9577 if test "x$complete" != "x$new_complete"; then
9578 FOUND_MAKE="$new_complete"
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
9580 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
9581 fi
9582
9583 fi
9584 fi
9585 fi
9586 fi
9587
9588 if test "x$FOUND_MAKE" = x; then
9589 for ac_prog in make
9590 do
9591 # Extract the first word of "$ac_prog", so it can be a program name with args.
9592 set dummy $ac_prog; ac_word=$2
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9594 $as_echo_n "checking for $ac_word... " >&6; }
9595 if test "${ac_cv_path_CHECK_TOOLSDIR_MAKE+set}" = set; then :
9596 $as_echo_n "(cached) " >&6
9597 else
9598 case $CHECK_TOOLSDIR_MAKE in
9599 [\\/]* | ?:[\\/]*)
9600 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
9601 ;;
9602 *)
9603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9604 for as_dir in $PATH
9605 do
9606 IFS=$as_save_IFS
9607 test -z "$as_dir" && as_dir=.
9608 for ac_exec_ext in '' $ac_executable_extensions; do
9609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9610 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
9611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9612 break 2
9613 fi
9614 done
9615 done
9971 FIND_DELETE="-exec rm \{\} \+"
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973 $as_echo "no" >&6; }
9974 else
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9976 $as_echo "yes" >&6; }
9977 fi
9978 rmdir $DELETEDIR
9979
9980
9981
9982 # These tools might not be installed by default,
9983 # need hint on how to install them.
9984
9985 for ac_prog in unzip
9986 do
9987 # Extract the first word of "$ac_prog", so it can be a program name with args.
9988 set dummy $ac_prog; ac_word=$2
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9990 $as_echo_n "checking for $ac_word... " >&6; }
9991 if test "${ac_cv_path_UNZIP+set}" = set; then :
9992 $as_echo_n "(cached) " >&6
9993 else
9994 case $UNZIP in
9995 [\\/]* | ?:[\\/]*)
9996 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
9997 ;;
9998 *)
9999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000 for as_dir in $PATH
10001 do
10002 IFS=$as_save_IFS
10003 test -z "$as_dir" && as_dir=.
10004 for ac_exec_ext in '' $ac_executable_extensions; do
10005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10006 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
10007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10008 break 2
10009 fi
10010 done
10011 done
10030
10031 if test "x$UNZIP" = x; then
10032 if test "xunzip" = x; then
10033 PROG_NAME=unzip
10034 else
10035 PROG_NAME=unzip
10036 fi
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10038 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10039 as_fn_error $? "Cannot continue" "$LINENO" 5
10040 fi
10041
10042
10043
10044 for ac_prog in zip
10045 do
10046 # Extract the first word of "$ac_prog", so it can be a program name with args.
10047 set dummy $ac_prog; ac_word=$2
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10049 $as_echo_n "checking for $ac_word... " >&6; }
10050 if test "${ac_cv_path_ZIP+set}" = set; then :
10051 $as_echo_n "(cached) " >&6
10052 else
10053 case $ZIP in
10054 [\\/]* | ?:[\\/]*)
10055 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
10056 ;;
10057 *)
10058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10060 do
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10065 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
10066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10068 fi
10069 done
10070 done
10089
10090 if test "x$ZIP" = x; then
10091 if test "xzip" = x; then
10092 PROG_NAME=zip
10093 else
10094 PROG_NAME=zip
10095 fi
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10097 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10098 as_fn_error $? "Cannot continue" "$LINENO" 5
10099 fi
10100
10101
10102
10103 # Non-required basic tools
10104
10105 # Extract the first word of "ldd", so it can be a program name with args.
10106 set dummy ldd; ac_word=$2
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10108 $as_echo_n "checking for $ac_word... " >&6; }
10109 if test "${ac_cv_path_LDD+set}" = set; then :
10110 $as_echo_n "(cached) " >&6
10111 else
10112 case $LDD in
10113 [\\/]* | ?:[\\/]*)
10114 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10115 ;;
10116 *)
10117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118 for as_dir in $PATH
10119 do
10120 IFS=$as_save_IFS
10121 test -z "$as_dir" && as_dir=.
10122 for ac_exec_ext in '' $ac_executable_extensions; do
10123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10124 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10126 break 2
10127 fi
10128 done
10129 done
10135 LDD=$ac_cv_path_LDD
10136 if test -n "$LDD"; then
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
10138 $as_echo "$LDD" >&6; }
10139 else
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10142 fi
10143
10144
10145 if test "x$LDD" = "x"; then
10146 # List shared lib dependencies is used for
10147 # debug output and checking for forbidden dependencies.
10148 # We can build without it.
10149 LDD="true"
10150 fi
10151 # Extract the first word of "otool", so it can be a program name with args.
10152 set dummy otool; ac_word=$2
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10154 $as_echo_n "checking for $ac_word... " >&6; }
10155 if test "${ac_cv_path_OTOOL+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10157 else
10158 case $OTOOL in
10159 [\\/]* | ?:[\\/]*)
10160 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
10161 ;;
10162 *)
10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $PATH
10165 do
10166 IFS=$as_save_IFS
10167 test -z "$as_dir" && as_dir=.
10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10170 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
10171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10172 break 2
10173 fi
10174 done
10175 done
10180 fi
10181 OTOOL=$ac_cv_path_OTOOL
10182 if test -n "$OTOOL"; then
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10184 $as_echo "$OTOOL" >&6; }
10185 else
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10187 $as_echo "no" >&6; }
10188 fi
10189
10190
10191 if test "x$OTOOL" = "x"; then
10192 OTOOL="true"
10193 fi
10194 for ac_prog in readelf greadelf
10195 do
10196 # Extract the first word of "$ac_prog", so it can be a program name with args.
10197 set dummy $ac_prog; ac_word=$2
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10199 $as_echo_n "checking for $ac_word... " >&6; }
10200 if test "${ac_cv_path_READELF+set}" = set; then :
10201 $as_echo_n "(cached) " >&6
10202 else
10203 case $READELF in
10204 [\\/]* | ?:[\\/]*)
10205 ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
10206 ;;
10207 *)
10208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209 for as_dir in $PATH
10210 do
10211 IFS=$as_save_IFS
10212 test -z "$as_dir" && as_dir=.
10213 for ac_exec_ext in '' $ac_executable_extensions; do
10214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10215 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
10216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 break 2
10218 fi
10219 done
10220 done
10223 ;;
10224 esac
10225 fi
10226 READELF=$ac_cv_path_READELF
10227 if test -n "$READELF"; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10229 $as_echo "$READELF" >&6; }
10230 else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10233 fi
10234
10235
10236 test -n "$READELF" && break
10237 done
10238
10239 # Extract the first word of "hg", so it can be a program name with args.
10240 set dummy hg; ac_word=$2
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10242 $as_echo_n "checking for $ac_word... " >&6; }
10243 if test "${ac_cv_path_HG+set}" = set; then :
10244 $as_echo_n "(cached) " >&6
10245 else
10246 case $HG in
10247 [\\/]* | ?:[\\/]*)
10248 ac_cv_path_HG="$HG" # Let the user override the test with a path.
10249 ;;
10250 *)
10251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252 for as_dir in $PATH
10253 do
10254 IFS=$as_save_IFS
10255 test -z "$as_dir" && as_dir=.
10256 for ac_exec_ext in '' $ac_executable_extensions; do
10257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10258 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
10259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10260 break 2
10261 fi
10262 done
10263 done
10264 IFS=$as_save_IFS
10265
10266 ;;
10267 esac
10268 fi
10269 HG=$ac_cv_path_HG
10270 if test -n "$HG"; then
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
10272 $as_echo "$HG" >&6; }
10273 else
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275 $as_echo "no" >&6; }
10276 fi
10277
10278
10279 # Extract the first word of "stat", so it can be a program name with args.
10280 set dummy stat; ac_word=$2
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10282 $as_echo_n "checking for $ac_word... " >&6; }
10283 if test "${ac_cv_path_STAT+set}" = set; then :
10284 $as_echo_n "(cached) " >&6
10285 else
10286 case $STAT in
10287 [\\/]* | ?:[\\/]*)
10288 ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
10289 ;;
10290 *)
10291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292 for as_dir in $PATH
10293 do
10294 IFS=$as_save_IFS
10295 test -z "$as_dir" && as_dir=.
10296 for ac_exec_ext in '' $ac_executable_extensions; do
10297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10298 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
10299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10300 break 2
10301 fi
10302 done
10303 done
10304 IFS=$as_save_IFS
10305
10306 ;;
10307 esac
10308 fi
10309 STAT=$ac_cv_path_STAT
10310 if test -n "$STAT"; then
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
10312 $as_echo "$STAT" >&6; }
10313 else
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315 $as_echo "no" >&6; }
10316 fi
10317
10318
10319 # Extract the first word of "time", so it can be a program name with args.
10320 set dummy time; ac_word=$2
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10322 $as_echo_n "checking for $ac_word... " >&6; }
10323 if test "${ac_cv_path_TIME+set}" = set; then :
10324 $as_echo_n "(cached) " >&6
10325 else
10326 case $TIME in
10327 [\\/]* | ?:[\\/]*)
10328 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
10329 ;;
10330 *)
10331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10332 for as_dir in $PATH
10333 do
10334 IFS=$as_save_IFS
10335 test -z "$as_dir" && as_dir=.
10336 for ac_exec_ext in '' $ac_executable_extensions; do
10337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10338 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
10339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10340 break 2
10341 fi
10342 done
10343 done
10348 fi
10349 TIME=$ac_cv_path_TIME
10350 if test -n "$TIME"; then
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10352 $as_echo "$TIME" >&6; }
10353 else
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10355 $as_echo "no" >&6; }
10356 fi
10357
10358
10359
10360 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
10361
10362 for ac_prog in comm
10363 do
10364 # Extract the first word of "$ac_prog", so it can be a program name with args.
10365 set dummy $ac_prog; ac_word=$2
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10367 $as_echo_n "checking for $ac_word... " >&6; }
10368 if test "${ac_cv_path_COMM+set}" = set; then :
10369 $as_echo_n "(cached) " >&6
10370 else
10371 case $COMM in
10372 [\\/]* | ?:[\\/]*)
10373 ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
10374 ;;
10375 *)
10376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10377 for as_dir in $PATH
10378 do
10379 IFS=$as_save_IFS
10380 test -z "$as_dir" && as_dir=.
10381 for ac_exec_ext in '' $ac_executable_extensions; do
10382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10383 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
10384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10385 break 2
10386 fi
10387 done
10388 done
10410 PROG_NAME=comm
10411 else
10412 PROG_NAME=comm
10413 fi
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10415 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10416 as_fn_error $? "Cannot continue" "$LINENO" 5
10417 fi
10418
10419
10420 fi
10421
10422 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
10423
10424 for ac_prog in xattr
10425 do
10426 # Extract the first word of "$ac_prog", so it can be a program name with args.
10427 set dummy $ac_prog; ac_word=$2
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429 $as_echo_n "checking for $ac_word... " >&6; }
10430 if test "${ac_cv_path_XATTR+set}" = set; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 case $XATTR in
10434 [\\/]* | ?:[\\/]*)
10435 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
10436 ;;
10437 *)
10438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439 for as_dir in $PATH
10440 do
10441 IFS=$as_save_IFS
10442 test -z "$as_dir" && as_dir=.
10443 for ac_exec_ext in '' $ac_executable_extensions; do
10444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10445 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
10446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10447 break 2
10448 fi
10449 done
10450 done
10474 PROG_NAME=xattr
10475 fi
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10477 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10478 as_fn_error $? "Cannot continue" "$LINENO" 5
10479 fi
10480
10481
10482 fi
10483
10484
10485 # Check if pkg-config is available.
10486
10487
10488 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10489 if test -n "$ac_tool_prefix"; then
10490 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10491 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493 $as_echo_n "checking for $ac_word... " >&6; }
10494 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10495 $as_echo_n "(cached) " >&6
10496 else
10497 case $PKG_CONFIG in
10498 [\\/]* | ?:[\\/]*)
10499 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10500 ;;
10501 *)
10502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503 for as_dir in $PATH
10504 do
10505 IFS=$as_save_IFS
10506 test -z "$as_dir" && as_dir=.
10507 for ac_exec_ext in '' $ac_executable_extensions; do
10508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10509 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10511 break 2
10512 fi
10513 done
10514 done
10517 ;;
10518 esac
10519 fi
10520 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10521 if test -n "$PKG_CONFIG"; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10523 $as_echo "$PKG_CONFIG" >&6; }
10524 else
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526 $as_echo "no" >&6; }
10527 fi
10528
10529
10530 fi
10531 if test -z "$ac_cv_path_PKG_CONFIG"; then
10532 ac_pt_PKG_CONFIG=$PKG_CONFIG
10533 # Extract the first word of "pkg-config", so it can be a program name with args.
10534 set dummy pkg-config; ac_word=$2
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536 $as_echo_n "checking for $ac_word... " >&6; }
10537 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 case $ac_pt_PKG_CONFIG in
10541 [\\/]* | ?:[\\/]*)
10542 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10543 ;;
10544 *)
10545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10546 for as_dir in $PATH
10547 do
10548 IFS=$as_save_IFS
10549 test -z "$as_dir" && as_dir=.
10550 for ac_exec_ext in '' $ac_executable_extensions; do
10551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10552 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10554 break 2
10555 fi
10556 done
10557 done
10690 echo Build stays the same $rewritten_build
10691 else
10692 echo Rewriting build for builddeps into $rewritten_build
10693 fi
10694 eval rewritten_target=\${REWRITE_${target_var}}
10695 if test "x$rewritten_target" = x; then
10696 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
10697 echo Target stays the same $rewritten_target
10698 else
10699 echo Rewriting target for builddeps into $rewritten_target
10700 fi
10701 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
10702 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
10703 fi
10704 for ac_prog in 7z unzip
10705 do
10706 # Extract the first word of "$ac_prog", so it can be a program name with args.
10707 set dummy $ac_prog; ac_word=$2
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10709 $as_echo_n "checking for $ac_word... " >&6; }
10710 if test "${ac_cv_prog_BDEPS_UNZIP+set}" = set; then :
10711 $as_echo_n "(cached) " >&6
10712 else
10713 if test -n "$BDEPS_UNZIP"; then
10714 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
10715 else
10716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717 for as_dir in $PATH
10718 do
10719 IFS=$as_save_IFS
10720 test -z "$as_dir" && as_dir=.
10721 for ac_exec_ext in '' $ac_executable_extensions; do
10722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10723 ac_cv_prog_BDEPS_UNZIP="$ac_prog"
10724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10725 break 2
10726 fi
10727 done
10728 done
10729 IFS=$as_save_IFS
10730
10736 $as_echo "$BDEPS_UNZIP" >&6; }
10737 else
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739 $as_echo "no" >&6; }
10740 fi
10741
10742
10743 test -n "$BDEPS_UNZIP" && break
10744 done
10745
10746 if test "x$BDEPS_UNZIP" = x7z; then
10747 BDEPS_UNZIP="7z x"
10748 fi
10749
10750 for ac_prog in wget lftp ftp
10751 do
10752 # Extract the first word of "$ac_prog", so it can be a program name with args.
10753 set dummy $ac_prog; ac_word=$2
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10755 $as_echo_n "checking for $ac_word... " >&6; }
10756 if test "${ac_cv_prog_BDEPS_FTP+set}" = set; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 if test -n "$BDEPS_FTP"; then
10760 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
10761 else
10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763 for as_dir in $PATH
10764 do
10765 IFS=$as_save_IFS
10766 test -z "$as_dir" && as_dir=.
10767 for ac_exec_ext in '' $ac_executable_extensions; do
10768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10769 ac_cv_prog_BDEPS_FTP="$ac_prog"
10770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10771 break 2
10772 fi
10773 done
10774 done
10775 IFS=$as_save_IFS
10776
12009 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '`
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
12011 $as_echo "$BOOT_JDK_VERSION" >&6; }
12012 fi # end check jdk version
12013 fi # end check rt.jar
12014 fi # end check javac
12015 fi # end check java
12016 fi # end check boot jdk found
12017 fi
12018
12019
12020 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
12021
12022 if test "x$BOOT_JDK_FOUND" = xno; then
12023 # Now execute the test
12024
12025 # Extract the first word of "javac", so it can be a program name with args.
12026 set dummy javac; ac_word=$2
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12028 $as_echo_n "checking for $ac_word... " >&6; }
12029 if test "${ac_cv_path_JAVAC_CHECK+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 case $JAVAC_CHECK in
12033 [\\/]* | ?:[\\/]*)
12034 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
12035 ;;
12036 *)
12037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12038 for as_dir in $PATH
12039 do
12040 IFS=$as_save_IFS
12041 test -z "$as_dir" && as_dir=.
12042 for ac_exec_ext in '' $ac_executable_extensions; do
12043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12044 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12046 break 2
12047 fi
12048 done
12049 done
12050 IFS=$as_save_IFS
12051
12052 ;;
12053 esac
12054 fi
12055 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
12056 if test -n "$JAVAC_CHECK"; then
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
12058 $as_echo "$JAVAC_CHECK" >&6; }
12059 else
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061 $as_echo "no" >&6; }
12062 fi
12063
12064
12065 # Extract the first word of "java", so it can be a program name with args.
12066 set dummy java; ac_word=$2
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12068 $as_echo_n "checking for $ac_word... " >&6; }
12069 if test "${ac_cv_path_JAVA_CHECK+set}" = set; then :
12070 $as_echo_n "(cached) " >&6
12071 else
12072 case $JAVA_CHECK in
12073 [\\/]* | ?:[\\/]*)
12074 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
12075 ;;
12076 *)
12077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12078 for as_dir in $PATH
12079 do
12080 IFS=$as_save_IFS
12081 test -z "$as_dir" && as_dir=.
12082 for ac_exec_ext in '' $ac_executable_extensions; do
12083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12084 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
12085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12086 break 2
12087 fi
12088 done
12089 done
16123 EXE_OUT_OPTION='-o$(SPACE)'
16124 # When linking, how to specify the to be created dynamically linkable library.
16125 LD_OUT_OPTION='-o$(SPACE)'
16126 # When archiving, how to specify the to be create static archive for object files.
16127 AR_OUT_OPTION='rcs$(SPACE)'
16128
16129
16130
16131
16132
16133 # Locate the actual tools
16134
16135 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16136
16137 # Store path to cygwin link.exe to help excluding it when searching for
16138 # VS linker. This must be done before changing the PATH when looking for VS.
16139 # Extract the first word of "link", so it can be a program name with args.
16140 set dummy link; ac_word=$2
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16142 $as_echo_n "checking for $ac_word... " >&6; }
16143 if test "${ac_cv_path_CYGWIN_LINK+set}" = set; then :
16144 $as_echo_n "(cached) " >&6
16145 else
16146 case $CYGWIN_LINK in
16147 [\\/]* | ?:[\\/]*)
16148 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path.
16149 ;;
16150 *)
16151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16152 for as_dir in $PATH
16153 do
16154 IFS=$as_save_IFS
16155 test -z "$as_dir" && as_dir=.
16156 for ac_exec_ext in '' $ac_executable_extensions; do
16157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16158 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext"
16159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16160 break 2
16161 fi
16162 done
16163 done
17538 # For example the binary i686-sun-solaris2.10-gcc
17539 # will cross compile for i686-sun-solaris2.10
17540 # If neither of build and host is not set, then build=host and the
17541 # default compiler found in the path will be used.
17542 # Setting only --host, does not seem to be really supported.
17543 # Please set both --build and --host if you want to cross compile.
17544
17545 if test "x$COMPILE_TYPE" = "xcross"; then
17546 # Now we to find a C/C++ compiler that can build executables for the build
17547 # platform. We can't use the AC_PROG_CC macro, since it can only be used
17548 # once. Also, we need to do this before adding a tools dir to the path,
17549 # otherwise we might pick up cross-compilers which don't use standard naming.
17550 # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have
17551 # to wait until they are properly discovered.
17552 for ac_prog in cl cc gcc
17553 do
17554 # Extract the first word of "$ac_prog", so it can be a program name with args.
17555 set dummy $ac_prog; ac_word=$2
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17557 $as_echo_n "checking for $ac_word... " >&6; }
17558 if test "${ac_cv_path_BUILD_CC+set}" = set; then :
17559 $as_echo_n "(cached) " >&6
17560 else
17561 case $BUILD_CC in
17562 [\\/]* | ?:[\\/]*)
17563 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
17564 ;;
17565 *)
17566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17567 for as_dir in $PATH
17568 do
17569 IFS=$as_save_IFS
17570 test -z "$as_dir" && as_dir=.
17571 for ac_exec_ext in '' $ac_executable_extensions; do
17572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17573 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
17574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17575 break 2
17576 fi
17577 done
17578 done
17849
17850 # Now join together the path and the arguments once again
17851 if test "x$arguments" != xEOL; then
17852 new_complete="$new_path ${arguments% *}"
17853 else
17854 new_complete="$new_path"
17855 fi
17856
17857 if test "x$complete" != "x$new_complete"; then
17858 BUILD_CC="$new_complete"
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5
17860 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;}
17861 fi
17862
17863 for ac_prog in cl CC g++
17864 do
17865 # Extract the first word of "$ac_prog", so it can be a program name with args.
17866 set dummy $ac_prog; ac_word=$2
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17868 $as_echo_n "checking for $ac_word... " >&6; }
17869 if test "${ac_cv_path_BUILD_CXX+set}" = set; then :
17870 $as_echo_n "(cached) " >&6
17871 else
17872 case $BUILD_CXX in
17873 [\\/]* | ?:[\\/]*)
17874 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
17875 ;;
17876 *)
17877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17878 for as_dir in $PATH
17879 do
17880 IFS=$as_save_IFS
17881 test -z "$as_dir" && as_dir=.
17882 for ac_exec_ext in '' $ac_executable_extensions; do
17883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17884 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
17885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17886 break 2
17887 fi
17888 done
17889 done
18158 fi
18159 fi
18160
18161 # Now join together the path and the arguments once again
18162 if test "x$arguments" != xEOL; then
18163 new_complete="$new_path ${arguments% *}"
18164 else
18165 new_complete="$new_path"
18166 fi
18167
18168 if test "x$complete" != "x$new_complete"; then
18169 BUILD_CXX="$new_complete"
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5
18171 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;}
18172 fi
18173
18174 # Extract the first word of "ld", so it can be a program name with args.
18175 set dummy ld; ac_word=$2
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18177 $as_echo_n "checking for $ac_word... " >&6; }
18178 if test "${ac_cv_path_BUILD_LD+set}" = set; then :
18179 $as_echo_n "(cached) " >&6
18180 else
18181 case $BUILD_LD in
18182 [\\/]* | ?:[\\/]*)
18183 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
18184 ;;
18185 *)
18186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18187 for as_dir in $PATH
18188 do
18189 IFS=$as_save_IFS
18190 test -z "$as_dir" && as_dir=.
18191 for ac_exec_ext in '' $ac_executable_extensions; do
18192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18193 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
18194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18195 break 2
18196 fi
18197 done
18198 done
18674 COMPILER_CHECK_LIST="cc gcc"
18675 else
18676 COMPILER_CHECK_LIST="gcc cc"
18677 fi
18678
18679
18680 COMPILER_NAME=C
18681
18682 CC=
18683 # If TOOLS_DIR is set, check for all compiler names in there first
18684 # before checking the rest of the PATH.
18685 if test -n "$TOOLS_DIR"; then
18686 PATH_save="$PATH"
18687 PATH="$TOOLS_DIR"
18688 for ac_prog in $COMPILER_CHECK_LIST
18689 do
18690 # Extract the first word of "$ac_prog", so it can be a program name with args.
18691 set dummy $ac_prog; ac_word=$2
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18693 $as_echo_n "checking for $ac_word... " >&6; }
18694 if test "${ac_cv_path_TOOLS_DIR_CC+set}" = set; then :
18695 $as_echo_n "(cached) " >&6
18696 else
18697 case $TOOLS_DIR_CC in
18698 [\\/]* | ?:[\\/]*)
18699 ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path.
18700 ;;
18701 *)
18702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18703 for as_dir in $PATH
18704 do
18705 IFS=$as_save_IFS
18706 test -z "$as_dir" && as_dir=.
18707 for ac_exec_ext in '' $ac_executable_extensions; do
18708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18709 ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext"
18710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18711 break 2
18712 fi
18713 done
18714 done
18726 $as_echo "no" >&6; }
18727 fi
18728
18729
18730 test -n "$TOOLS_DIR_CC" && break
18731 done
18732
18733 CC=$TOOLS_DIR_CC
18734 PATH="$PATH_save"
18735 fi
18736
18737 # AC_PATH_PROGS can't be run multiple times with the same variable,
18738 # so create a new name for this run.
18739 if test "x$CC" = x; then
18740 for ac_prog in $COMPILER_CHECK_LIST
18741 do
18742 # Extract the first word of "$ac_prog", so it can be a program name with args.
18743 set dummy $ac_prog; ac_word=$2
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18745 $as_echo_n "checking for $ac_word... " >&6; }
18746 if test "${ac_cv_path_POTENTIAL_CC+set}" = set; then :
18747 $as_echo_n "(cached) " >&6
18748 else
18749 case $POTENTIAL_CC in
18750 [\\/]* | ?:[\\/]*)
18751 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
18752 ;;
18753 *)
18754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18755 for as_dir in $PATH
18756 do
18757 IFS=$as_save_IFS
18758 test -z "$as_dir" && as_dir=.
18759 for ac_exec_ext in '' $ac_executable_extensions; do
18760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18761 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
18762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18763 break 2
18764 fi
18765 done
18766 done
19139 if test "x$COMPILER_BASENAME" = "xccache"; then
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
19141 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
19142 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
19143 # We want to control ccache invocation ourselves, so ignore this cc and try
19144 # searching again.
19145
19146 # Remove the path to the fake ccache cc from the PATH
19147 RETRY_COMPILER_SAVED_PATH="$PATH"
19148 COMPILER_DIRNAME=`$DIRNAME $CC`
19149 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
19150
19151 # Try again looking for our compiler
19152 if test -n "$ac_tool_prefix"; then
19153 for ac_prog in $COMPILER_CHECK_LIST
19154 do
19155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19158 $as_echo_n "checking for $ac_word... " >&6; }
19159 if test "${ac_cv_prog_PROPER_COMPILER_CC+set}" = set; then :
19160 $as_echo_n "(cached) " >&6
19161 else
19162 if test -n "$PROPER_COMPILER_CC"; then
19163 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test.
19164 else
19165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19166 for as_dir in $PATH
19167 do
19168 IFS=$as_save_IFS
19169 test -z "$as_dir" && as_dir=.
19170 for ac_exec_ext in '' $ac_executable_extensions; do
19171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19172 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog"
19173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19174 break 2
19175 fi
19176 done
19177 done
19178 IFS=$as_save_IFS
19179
19183 if test -n "$PROPER_COMPILER_CC"; then
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
19185 $as_echo "$PROPER_COMPILER_CC" >&6; }
19186 else
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19188 $as_echo "no" >&6; }
19189 fi
19190
19191
19192 test -n "$PROPER_COMPILER_CC" && break
19193 done
19194 fi
19195 if test -z "$PROPER_COMPILER_CC"; then
19196 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC
19197 for ac_prog in $COMPILER_CHECK_LIST
19198 do
19199 # Extract the first word of "$ac_prog", so it can be a program name with args.
19200 set dummy $ac_prog; ac_word=$2
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19202 $as_echo_n "checking for $ac_word... " >&6; }
19203 if test "${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+set}" = set; then :
19204 $as_echo_n "(cached) " >&6
19205 else
19206 if test -n "$ac_ct_PROPER_COMPILER_CC"; then
19207 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test.
19208 else
19209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19210 for as_dir in $PATH
19211 do
19212 IFS=$as_save_IFS
19213 test -z "$as_dir" && as_dir=.
19214 for ac_exec_ext in '' $ac_executable_extensions; do
19215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19216 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog"
19217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19218 break 2
19219 fi
19220 done
19221 done
19222 IFS=$as_save_IFS
19223
19633 # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
19634 CC_VENDOR="$COMPILER_VENDOR"
19635
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
19637 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
19638
19639
19640 # Now that we have resolved CC ourself, let autoconf have its go at it
19641 ac_ext=c
19642 ac_cpp='$CPP $CPPFLAGS'
19643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19646 if test -n "$ac_tool_prefix"; then
19647 for ac_prog in $CC
19648 do
19649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19652 $as_echo_n "checking for $ac_word... " >&6; }
19653 if test "${ac_cv_prog_CC+set}" = set; then :
19654 $as_echo_n "(cached) " >&6
19655 else
19656 if test -n "$CC"; then
19657 ac_cv_prog_CC="$CC" # Let the user override the test.
19658 else
19659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19660 for as_dir in $PATH
19661 do
19662 IFS=$as_save_IFS
19663 test -z "$as_dir" && as_dir=.
19664 for ac_exec_ext in '' $ac_executable_extensions; do
19665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19668 break 2
19669 fi
19670 done
19671 done
19672 IFS=$as_save_IFS
19673
19677 if test -n "$CC"; then
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19679 $as_echo "$CC" >&6; }
19680 else
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19682 $as_echo "no" >&6; }
19683 fi
19684
19685
19686 test -n "$CC" && break
19687 done
19688 fi
19689 if test -z "$CC"; then
19690 ac_ct_CC=$CC
19691 for ac_prog in $CC
19692 do
19693 # Extract the first word of "$ac_prog", so it can be a program name with args.
19694 set dummy $ac_prog; ac_word=$2
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19696 $as_echo_n "checking for $ac_word... " >&6; }
19697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
19698 $as_echo_n "(cached) " >&6
19699 else
19700 if test -n "$ac_ct_CC"; then
19701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19702 else
19703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19704 for as_dir in $PATH
19705 do
19706 IFS=$as_save_IFS
19707 test -z "$as_dir" && as_dir=.
19708 for ac_exec_ext in '' $ac_executable_extensions; do
19709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19710 ac_cv_prog_ac_ct_CC="$ac_prog"
19711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19712 break 2
19713 fi
19714 done
19715 done
19716 IFS=$as_save_IFS
19717
19730 test -n "$ac_ct_CC" && break
19731 done
19732
19733 if test "x$ac_ct_CC" = x; then
19734 CC=""
19735 else
19736 case $cross_compiling:$ac_tool_warned in
19737 yes:)
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19740 ac_tool_warned=yes ;;
19741 esac
19742 CC=$ac_ct_CC
19743 fi
19744 fi
19745
19746
19747 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19749 as_fn_error $? "no acceptable C compiler found in \$PATH
19750 See \`config.log' for more details" "$LINENO" 5 ; }
19751
19752 # Provide some information about the compiler.
19753 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
19754 set X $ac_compile
19755 ac_compiler=$2
19756 for ac_option in --version -v -V -qversion; do
19757 { { ac_try="$ac_compiler $ac_option >&5"
19758 case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19761 esac
19762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19763 $as_echo "$ac_try_echo"; } >&5
19764 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19765 ac_status=$?
19766 if test -s conftest.err; then
19767 sed '10a\
19768 ... rest of stderr output deleted ...
19769 10q' conftest.err >conftest.er1
19770 cat conftest.er1 >&5
19771 fi
19772 rm -f conftest.er1 conftest.err
19773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19774 test $ac_status = 0; }
19775 done
19776
19777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19778 /* end confdefs.h. */
19779
19780 int
19781 main ()
19782 {
19783
19784 ;
19785 return 0;
19786 }
19787 _ACEOF
19788 ac_clean_files_save=$ac_clean_files
19789 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
19790 # Try to create an executable without -o first, disregard a.out.
19791 # It will help us diagnose broken compilers, and finding out an intuition
19792 # of exeext.
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
19794 $as_echo_n "checking whether the C compiler works... " >&6; }
19795 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
19796
19797 # The possible output files:
19798 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
19799
19800 ac_rmfiles=
19801 for ac_file in $ac_files
19802 do
19803 case $ac_file in
19804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
19805 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
19806 esac
19807 done
19808 rm -f $ac_rmfiles
19809
19810 if { { ac_try="$ac_link_default"
19811 case "(($ac_try" in
19812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19813 *) ac_try_echo=$ac_try;;
19814 esac
19815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19816 $as_echo "$ac_try_echo"; } >&5
19817 (eval "$ac_link_default") 2>&5
19818 ac_status=$?
19819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19820 test $ac_status = 0; }; then :
19821 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
19822 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
19823 # in a Makefile. We should not override ac_cv_exeext if it was cached,
19824 # so that the user can short-circuit this test for compilers unknown to
19825 # Autoconf.
19826 for ac_file in $ac_files ''
19827 do
19828 test -f "$ac_file" || continue
19829 case $ac_file in
19830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
19831 ;;
19832 [ab].out )
19833 # We found the default executable, but exeext='' is most
19834 # certainly right.
19835 break;;
19836 *.* )
19837 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
19838 then :; else
19839 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
19840 fi
19841 # We set ac_cv_exeext here because the later test for it is not
19842 # safe: cross compilers may not add the suffix if given an `-o'
19843 # argument, so we may need to know it at that point already.
19844 # Even if this section looks crufty: it has the advantage of
19845 # actually working.
19846 break;;
19847 * )
19848 break;;
19849 esac
19850 done
19851 test "$ac_cv_exeext" = no && ac_cv_exeext=
19852
19853 else
19854 ac_file=''
19855 fi
19856 if test -z "$ac_file"; then :
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19858 $as_echo "no" >&6; }
19859 $as_echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19861
19862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19864 as_fn_error 77 "C compiler cannot create executables
19865 See \`config.log' for more details" "$LINENO" 5 ; }
19866 else
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19868 $as_echo "yes" >&6; }
19869 fi
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
19871 $as_echo_n "checking for C compiler default output file name... " >&6; }
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
19873 $as_echo "$ac_file" >&6; }
19874 ac_exeext=$ac_cv_exeext
19875
19876 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
19877 ac_clean_files=$ac_clean_files_save
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
19879 $as_echo_n "checking for suffix of executables... " >&6; }
19880 if { { ac_try="$ac_link"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19884 esac
19885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19886 $as_echo "$ac_try_echo"; } >&5
19887 (eval "$ac_link") 2>&5
19888 ac_status=$?
19889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19890 test $ac_status = 0; }; then :
19891 # If both `conftest.exe' and `conftest' are `present' (well, observable)
19892 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
19893 # work properly (i.e., refer to `conftest.exe'), while it won't with
19894 # `rm'.
19895 for ac_file in conftest.exe conftest conftest.*; do
19896 test -f "$ac_file" || continue
19897 case $ac_file in
19898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
19899 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
19900 break;;
19901 * ) break;;
19902 esac
19903 done
19904 else
19905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19907 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
19908 See \`config.log' for more details" "$LINENO" 5 ; }
19909 fi
19910 rm -f conftest conftest$ac_cv_exeext
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
19912 $as_echo "$ac_cv_exeext" >&6; }
19913
19914 rm -f conftest.$ac_ext
19915 EXEEXT=$ac_cv_exeext
19916 ac_exeext=$EXEEXT
19917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19918 /* end confdefs.h. */
19919 #include <stdio.h>
19920 int
19921 main ()
19922 {
19923 FILE *f = fopen ("conftest.out", "w");
19924 return ferror (f) || fclose (f) != 0;
19925
19926 ;
19927 return 0;
19928 }
19929 _ACEOF
19930 ac_clean_files="$ac_clean_files conftest.out"
19931 # Check that the compiler produces executables we can run. If not, either
19932 # the compiler is broken, or we cross compile.
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
19934 $as_echo_n "checking whether we are cross compiling... " >&6; }
19935 if test "$cross_compiling" != yes; then
19936 { { ac_try="$ac_link"
19937 case "(($ac_try" in
19938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939 *) ac_try_echo=$ac_try;;
19940 esac
19941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19942 $as_echo "$ac_try_echo"; } >&5
19943 (eval "$ac_link") 2>&5
19944 ac_status=$?
19945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19946 test $ac_status = 0; }
19947 if { ac_try='./conftest$ac_cv_exeext'
19948 { { case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19951 esac
19952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19953 $as_echo "$ac_try_echo"; } >&5
19954 (eval "$ac_try") 2>&5
19955 ac_status=$?
19956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19957 test $ac_status = 0; }; }; then
19958 cross_compiling=no
19959 else
19960 if test "$cross_compiling" = maybe; then
19961 cross_compiling=yes
19962 else
19963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19965 as_fn_error $? "cannot run C compiled programs.
19966 If you meant to cross compile, use \`--host'.
19967 See \`config.log' for more details" "$LINENO" 5 ; }
19968 fi
19969 fi
19970 fi
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
19972 $as_echo "$cross_compiling" >&6; }
19973
19974 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
19975 ac_clean_files=$ac_clean_files_save
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
19977 $as_echo_n "checking for suffix of object files... " >&6; }
19978 if test "${ac_cv_objext+set}" = set; then :
19979 $as_echo_n "(cached) " >&6
19980 else
19981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19982 /* end confdefs.h. */
19983
19984 int
19985 main ()
19986 {
19987
19988 ;
19989 return 0;
19990 }
19991 _ACEOF
19992 rm -f conftest.o conftest.obj
19993 if { { ac_try="$ac_compile"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997 esac
19998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19999 $as_echo "$ac_try_echo"; } >&5
20000 (eval "$ac_compile") 2>&5
20001 ac_status=$?
20002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20003 test $ac_status = 0; }; then :
20004 for ac_file in conftest.o conftest.obj conftest.*; do
20005 test -f "$ac_file" || continue;
20006 case $ac_file in
20007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
20008 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
20009 break;;
20010 esac
20011 done
20012 else
20013 $as_echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20015
20016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20018 as_fn_error $? "cannot compute suffix of object files: cannot compile
20019 See \`config.log' for more details" "$LINENO" 5 ; }
20020 fi
20021 rm -f conftest.$ac_cv_objext conftest.$ac_ext
20022 fi
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
20024 $as_echo "$ac_cv_objext" >&6; }
20025 OBJEXT=$ac_cv_objext
20026 ac_objext=$OBJEXT
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
20028 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20029 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
20030 $as_echo_n "(cached) " >&6
20031 else
20032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20033 /* end confdefs.h. */
20034
20035 int
20036 main ()
20037 {
20038 #ifndef __GNUC__
20039 choke me
20040 #endif
20041
20042 ;
20043 return 0;
20044 }
20045 _ACEOF
20046 if ac_fn_c_try_compile "$LINENO"; then :
20047 ac_compiler_gnu=yes
20048 else
20049 ac_compiler_gnu=no
20050 fi
20051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20052 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20053
20054 fi
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
20056 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20057 if test $ac_compiler_gnu = yes; then
20058 GCC=yes
20059 else
20060 GCC=
20061 fi
20062 ac_test_CFLAGS=${CFLAGS+set}
20063 ac_save_CFLAGS=$CFLAGS
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
20065 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20066 if test "${ac_cv_prog_cc_g+set}" = set; then :
20067 $as_echo_n "(cached) " >&6
20068 else
20069 ac_save_c_werror_flag=$ac_c_werror_flag
20070 ac_c_werror_flag=yes
20071 ac_cv_prog_cc_g=no
20072 CFLAGS="-g"
20073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20074 /* end confdefs.h. */
20075
20076 int
20077 main ()
20078 {
20079
20080 ;
20081 return 0;
20082 }
20083 _ACEOF
20084 if ac_fn_c_try_compile "$LINENO"; then :
20085 ac_cv_prog_cc_g=yes
20086 else
20124 fi
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
20126 $as_echo "$ac_cv_prog_cc_g" >&6; }
20127 if test "$ac_test_CFLAGS" = set; then
20128 CFLAGS=$ac_save_CFLAGS
20129 elif test $ac_cv_prog_cc_g = yes; then
20130 if test "$GCC" = yes; then
20131 CFLAGS="-g -O2"
20132 else
20133 CFLAGS="-g"
20134 fi
20135 else
20136 if test "$GCC" = yes; then
20137 CFLAGS="-O2"
20138 else
20139 CFLAGS=
20140 fi
20141 fi
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
20143 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20144 if test "${ac_cv_prog_cc_c89+set}" = set; then :
20145 $as_echo_n "(cached) " >&6
20146 else
20147 ac_cv_prog_cc_c89=no
20148 ac_save_CC=$CC
20149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20150 /* end confdefs.h. */
20151 #include <stdarg.h>
20152 #include <stdio.h>
20153 #include <sys/types.h>
20154 #include <sys/stat.h>
20155 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20156 struct buf { int x; };
20157 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20158 static char *e (p, i)
20159 char **p;
20160 int i;
20161 {
20162 return p[i];
20163 }
20164 static char *f (char * (*g) (char **, int), char **p, ...)
20247 COMPILER_CHECK_LIST="CC g++"
20248 else
20249 COMPILER_CHECK_LIST="g++ CC"
20250 fi
20251
20252
20253 COMPILER_NAME=C++
20254
20255 CXX=
20256 # If TOOLS_DIR is set, check for all compiler names in there first
20257 # before checking the rest of the PATH.
20258 if test -n "$TOOLS_DIR"; then
20259 PATH_save="$PATH"
20260 PATH="$TOOLS_DIR"
20261 for ac_prog in $COMPILER_CHECK_LIST
20262 do
20263 # Extract the first word of "$ac_prog", so it can be a program name with args.
20264 set dummy $ac_prog; ac_word=$2
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20266 $as_echo_n "checking for $ac_word... " >&6; }
20267 if test "${ac_cv_path_TOOLS_DIR_CXX+set}" = set; then :
20268 $as_echo_n "(cached) " >&6
20269 else
20270 case $TOOLS_DIR_CXX in
20271 [\\/]* | ?:[\\/]*)
20272 ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path.
20273 ;;
20274 *)
20275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20276 for as_dir in $PATH
20277 do
20278 IFS=$as_save_IFS
20279 test -z "$as_dir" && as_dir=.
20280 for ac_exec_ext in '' $ac_executable_extensions; do
20281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20282 ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext"
20283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20284 break 2
20285 fi
20286 done
20287 done
20299 $as_echo "no" >&6; }
20300 fi
20301
20302
20303 test -n "$TOOLS_DIR_CXX" && break
20304 done
20305
20306 CXX=$TOOLS_DIR_CXX
20307 PATH="$PATH_save"
20308 fi
20309
20310 # AC_PATH_PROGS can't be run multiple times with the same variable,
20311 # so create a new name for this run.
20312 if test "x$CXX" = x; then
20313 for ac_prog in $COMPILER_CHECK_LIST
20314 do
20315 # Extract the first word of "$ac_prog", so it can be a program name with args.
20316 set dummy $ac_prog; ac_word=$2
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20318 $as_echo_n "checking for $ac_word... " >&6; }
20319 if test "${ac_cv_path_POTENTIAL_CXX+set}" = set; then :
20320 $as_echo_n "(cached) " >&6
20321 else
20322 case $POTENTIAL_CXX in
20323 [\\/]* | ?:[\\/]*)
20324 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
20325 ;;
20326 *)
20327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20328 for as_dir in $PATH
20329 do
20330 IFS=$as_save_IFS
20331 test -z "$as_dir" && as_dir=.
20332 for ac_exec_ext in '' $ac_executable_extensions; do
20333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20334 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
20335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20336 break 2
20337 fi
20338 done
20339 done
20712 if test "x$COMPILER_BASENAME" = "xccache"; then
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
20714 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
20715 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
20716 # We want to control ccache invocation ourselves, so ignore this cc and try
20717 # searching again.
20718
20719 # Remove the path to the fake ccache cc from the PATH
20720 RETRY_COMPILER_SAVED_PATH="$PATH"
20721 COMPILER_DIRNAME=`$DIRNAME $CXX`
20722 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
20723
20724 # Try again looking for our compiler
20725 if test -n "$ac_tool_prefix"; then
20726 for ac_prog in $COMPILER_CHECK_LIST
20727 do
20728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20731 $as_echo_n "checking for $ac_word... " >&6; }
20732 if test "${ac_cv_prog_PROPER_COMPILER_CXX+set}" = set; then :
20733 $as_echo_n "(cached) " >&6
20734 else
20735 if test -n "$PROPER_COMPILER_CXX"; then
20736 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test.
20737 else
20738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20739 for as_dir in $PATH
20740 do
20741 IFS=$as_save_IFS
20742 test -z "$as_dir" && as_dir=.
20743 for ac_exec_ext in '' $ac_executable_extensions; do
20744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20745 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog"
20746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20747 break 2
20748 fi
20749 done
20750 done
20751 IFS=$as_save_IFS
20752
20756 if test -n "$PROPER_COMPILER_CXX"; then
20757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
20758 $as_echo "$PROPER_COMPILER_CXX" >&6; }
20759 else
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20761 $as_echo "no" >&6; }
20762 fi
20763
20764
20765 test -n "$PROPER_COMPILER_CXX" && break
20766 done
20767 fi
20768 if test -z "$PROPER_COMPILER_CXX"; then
20769 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX
20770 for ac_prog in $COMPILER_CHECK_LIST
20771 do
20772 # Extract the first word of "$ac_prog", so it can be a program name with args.
20773 set dummy $ac_prog; ac_word=$2
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20775 $as_echo_n "checking for $ac_word... " >&6; }
20776 if test "${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+set}" = set; then :
20777 $as_echo_n "(cached) " >&6
20778 else
20779 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
20780 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test.
20781 else
20782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20783 for as_dir in $PATH
20784 do
20785 IFS=$as_save_IFS
20786 test -z "$as_dir" && as_dir=.
20787 for ac_exec_ext in '' $ac_executable_extensions; do
20788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20789 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog"
20790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20791 break 2
20792 fi
20793 done
20794 done
20795 IFS=$as_save_IFS
20796
21210 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
21211
21212
21213 # Now that we have resolved CXX ourself, let autoconf have its go at it
21214 ac_ext=cpp
21215 ac_cpp='$CXXCPP $CPPFLAGS'
21216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21219 if test -z "$CXX"; then
21220 if test -n "$CCC"; then
21221 CXX=$CCC
21222 else
21223 if test -n "$ac_tool_prefix"; then
21224 for ac_prog in $CXX
21225 do
21226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21229 $as_echo_n "checking for $ac_word... " >&6; }
21230 if test "${ac_cv_prog_CXX+set}" = set; then :
21231 $as_echo_n "(cached) " >&6
21232 else
21233 if test -n "$CXX"; then
21234 ac_cv_prog_CXX="$CXX" # Let the user override the test.
21235 else
21236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21237 for as_dir in $PATH
21238 do
21239 IFS=$as_save_IFS
21240 test -z "$as_dir" && as_dir=.
21241 for ac_exec_ext in '' $ac_executable_extensions; do
21242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21243 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
21244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21245 break 2
21246 fi
21247 done
21248 done
21249 IFS=$as_save_IFS
21250
21254 if test -n "$CXX"; then
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
21256 $as_echo "$CXX" >&6; }
21257 else
21258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21259 $as_echo "no" >&6; }
21260 fi
21261
21262
21263 test -n "$CXX" && break
21264 done
21265 fi
21266 if test -z "$CXX"; then
21267 ac_ct_CXX=$CXX
21268 for ac_prog in $CXX
21269 do
21270 # Extract the first word of "$ac_prog", so it can be a program name with args.
21271 set dummy $ac_prog; ac_word=$2
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21273 $as_echo_n "checking for $ac_word... " >&6; }
21274 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
21275 $as_echo_n "(cached) " >&6
21276 else
21277 if test -n "$ac_ct_CXX"; then
21278 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
21279 else
21280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21281 for as_dir in $PATH
21282 do
21283 IFS=$as_save_IFS
21284 test -z "$as_dir" && as_dir=.
21285 for ac_exec_ext in '' $ac_executable_extensions; do
21286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21287 ac_cv_prog_ac_ct_CXX="$ac_prog"
21288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21289 break 2
21290 fi
21291 done
21292 done
21293 IFS=$as_save_IFS
21294
21332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21333 *) ac_try_echo=$ac_try;;
21334 esac
21335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21336 $as_echo "$ac_try_echo"; } >&5
21337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
21338 ac_status=$?
21339 if test -s conftest.err; then
21340 sed '10a\
21341 ... rest of stderr output deleted ...
21342 10q' conftest.err >conftest.er1
21343 cat conftest.er1 >&5
21344 fi
21345 rm -f conftest.er1 conftest.err
21346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21347 test $ac_status = 0; }
21348 done
21349
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
21351 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
21352 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
21353 $as_echo_n "(cached) " >&6
21354 else
21355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21356 /* end confdefs.h. */
21357
21358 int
21359 main ()
21360 {
21361 #ifndef __GNUC__
21362 choke me
21363 #endif
21364
21365 ;
21366 return 0;
21367 }
21368 _ACEOF
21369 if ac_fn_cxx_try_compile "$LINENO"; then :
21370 ac_compiler_gnu=yes
21371 else
21372 ac_compiler_gnu=no
21373 fi
21374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21375 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
21376
21377 fi
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
21379 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
21380 if test $ac_compiler_gnu = yes; then
21381 GXX=yes
21382 else
21383 GXX=
21384 fi
21385 ac_test_CXXFLAGS=${CXXFLAGS+set}
21386 ac_save_CXXFLAGS=$CXXFLAGS
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
21388 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
21389 if test "${ac_cv_prog_cxx_g+set}" = set; then :
21390 $as_echo_n "(cached) " >&6
21391 else
21392 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
21393 ac_cxx_werror_flag=yes
21394 ac_cv_prog_cxx_g=no
21395 CXXFLAGS="-g"
21396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21397 /* end confdefs.h. */
21398
21399 int
21400 main ()
21401 {
21402
21403 ;
21404 return 0;
21405 }
21406 _ACEOF
21407 if ac_fn_cxx_try_compile "$LINENO"; then :
21408 ac_cv_prog_cxx_g=yes
21409 else
21467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21470
21471
21472 ### Locate other tools
21473
21474 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
21475 ac_ext=m
21476 ac_cpp='$OBJCPP $CPPFLAGS'
21477 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21478 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21479 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
21480 if test -n "$ac_tool_prefix"; then
21481 for ac_prog in gcc objcc objc cc CC
21482 do
21483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21486 $as_echo_n "checking for $ac_word... " >&6; }
21487 if test "${ac_cv_prog_OBJC+set}" = set; then :
21488 $as_echo_n "(cached) " >&6
21489 else
21490 if test -n "$OBJC"; then
21491 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
21492 else
21493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21494 for as_dir in $PATH
21495 do
21496 IFS=$as_save_IFS
21497 test -z "$as_dir" && as_dir=.
21498 for ac_exec_ext in '' $ac_executable_extensions; do
21499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21500 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
21501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21502 break 2
21503 fi
21504 done
21505 done
21506 IFS=$as_save_IFS
21507
21511 if test -n "$OBJC"; then
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
21513 $as_echo "$OBJC" >&6; }
21514 else
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21516 $as_echo "no" >&6; }
21517 fi
21518
21519
21520 test -n "$OBJC" && break
21521 done
21522 fi
21523 if test -z "$OBJC"; then
21524 ac_ct_OBJC=$OBJC
21525 for ac_prog in gcc objcc objc cc CC
21526 do
21527 # Extract the first word of "$ac_prog", so it can be a program name with args.
21528 set dummy $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 test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then :
21532 $as_echo_n "(cached) " >&6
21533 else
21534 if test -n "$ac_ct_OBJC"; then
21535 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # 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_ac_ct_OBJC="$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
21587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588 *) ac_try_echo=$ac_try;;
21589 esac
21590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21591 $as_echo "$ac_try_echo"; } >&5
21592 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
21593 ac_status=$?
21594 if test -s conftest.err; then
21595 sed '10a\
21596 ... rest of stderr output deleted ...
21597 10q' conftest.err >conftest.er1
21598 cat conftest.er1 >&5
21599 fi
21600 rm -f conftest.er1 conftest.err
21601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21602 test $ac_status = 0; }
21603 done
21604
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
21606 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
21607 if test "${ac_cv_objc_compiler_gnu+set}" = set; then :
21608 $as_echo_n "(cached) " >&6
21609 else
21610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21611 /* end confdefs.h. */
21612
21613 int
21614 main ()
21615 {
21616 #ifndef __GNUC__
21617 choke me
21618 #endif
21619
21620 ;
21621 return 0;
21622 }
21623 _ACEOF
21624 if ac_fn_objc_try_compile "$LINENO"; then :
21625 ac_compiler_gnu=yes
21626 else
21627 ac_compiler_gnu=no
21628 fi
21629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21630 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
21631
21632 fi
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
21634 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
21635 if test $ac_compiler_gnu = yes; then
21636 GOBJC=yes
21637 else
21638 GOBJC=
21639 fi
21640 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
21641 ac_save_OBJCFLAGS=$OBJCFLAGS
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
21643 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
21644 if test "${ac_cv_prog_objc_g+set}" = set; then :
21645 $as_echo_n "(cached) " >&6
21646 else
21647 ac_save_objc_werror_flag=$ac_objc_werror_flag
21648 ac_objc_werror_flag=yes
21649 ac_cv_prog_objc_g=no
21650 OBJCFLAGS="-g"
21651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21652 /* end confdefs.h. */
21653
21654 int
21655 main ()
21656 {
21657
21658 ;
21659 return 0;
21660 }
21661 _ACEOF
21662 if ac_fn_objc_try_compile "$LINENO"; then :
21663 ac_cv_prog_objc_g=yes
21664 else
22000 OBJCFLAGS="$ORG_OBJCFLAGS"
22001
22002 LD="$CC"
22003 LDEXE="$CC"
22004 LDCXX="$CXX"
22005 LDEXECXX="$CXX"
22006
22007 # LDEXE is the linker to use, when creating executables.
22008
22009 # Linking C++ libraries.
22010
22011 # Linking C++ executables.
22012
22013
22014 if test "x$OPENJDK_TARGET_OS" != xwindows; then
22015 if test -n "$ac_tool_prefix"; then
22016 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
22017 set dummy ${ac_tool_prefix}ar; ac_word=$2
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22019 $as_echo_n "checking for $ac_word... " >&6; }
22020 if test "${ac_cv_prog_AR+set}" = set; then :
22021 $as_echo_n "(cached) " >&6
22022 else
22023 if test -n "$AR"; then
22024 ac_cv_prog_AR="$AR" # Let the user override the test.
22025 else
22026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22027 for as_dir in $PATH
22028 do
22029 IFS=$as_save_IFS
22030 test -z "$as_dir" && as_dir=.
22031 for ac_exec_ext in '' $ac_executable_extensions; do
22032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22033 ac_cv_prog_AR="${ac_tool_prefix}ar"
22034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22035 break 2
22036 fi
22037 done
22038 done
22039 IFS=$as_save_IFS
22040
22041 fi
22042 fi
22043 AR=$ac_cv_prog_AR
22044 if test -n "$AR"; then
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
22046 $as_echo "$AR" >&6; }
22047 else
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22049 $as_echo "no" >&6; }
22050 fi
22051
22052
22053 fi
22054 if test -z "$ac_cv_prog_AR"; then
22055 ac_ct_AR=$AR
22056 # Extract the first word of "ar", so it can be a program name with args.
22057 set dummy ar; ac_word=$2
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22059 $as_echo_n "checking for $ac_word... " >&6; }
22060 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
22061 $as_echo_n "(cached) " >&6
22062 else
22063 if test -n "$ac_ct_AR"; then
22064 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
22065 else
22066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22067 for as_dir in $PATH
22068 do
22069 IFS=$as_save_IFS
22070 test -z "$as_dir" && as_dir=.
22071 for ac_exec_ext in '' $ac_executable_extensions; do
22072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22073 ac_cv_prog_ac_ct_AR="ar"
22074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22075 break 2
22076 fi
22077 done
22078 done
22079 IFS=$as_save_IFS
22080
22382 HOTSPOT_CXX="$CXX"
22383 HOTSPOT_LD="$LD"
22384
22385
22386
22387 COMPILER_NAME=gcc
22388 COMPILER_TYPE=CC
22389 if test "x$OPENJDK_TARGET_OS" = xwindows; then :
22390
22391 # For now, assume that we are always compiling using cl.exe.
22392 CC_OUT_OPTION=-Fo
22393 EXE_OUT_OPTION=-out:
22394 LD_OUT_OPTION=-out:
22395 AR_OUT_OPTION=-out:
22396 # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin
22397 # program for something completely different.
22398 # Extract the first word of "link", so it can be a program name with args.
22399 set dummy link; ac_word=$2
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22401 $as_echo_n "checking for $ac_word... " >&6; }
22402 if test "${ac_cv_prog_WINLD+set}" = set; then :
22403 $as_echo_n "(cached) " >&6
22404 else
22405 if test -n "$WINLD"; then
22406 ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
22407 else
22408 ac_prog_rejected=no
22409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22410 for as_dir in $PATH
22411 do
22412 IFS=$as_save_IFS
22413 test -z "$as_dir" && as_dir=.
22414 for ac_exec_ext in '' $ac_executable_extensions; do
22415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22416 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then
22417 ac_prog_rejected=yes
22418 continue
22419 fi
22420 ac_cv_prog_WINLD="link"
22421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22422 break 2
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5
22722 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; }
22723 "$WINLD" --version > /dev/null
22724 if test $? -eq 0 ; then
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22726 $as_echo "no" >&6; }
22727 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5
22728 else
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22730 $as_echo "yes" >&6; }
22731 fi
22732 LD="$WINLD"
22733 LDEXE="$WINLD"
22734 LDCXX="$WINLD"
22735 LDEXECXX="$WINLD"
22736
22737 # Extract the first word of "mt", so it can be a program name with args.
22738 set dummy mt; ac_word=$2
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22740 $as_echo_n "checking for $ac_word... " >&6; }
22741 if test "${ac_cv_prog_MT+set}" = set; then :
22742 $as_echo_n "(cached) " >&6
22743 else
22744 if test -n "$MT"; then
22745 ac_cv_prog_MT="$MT" # Let the user override the test.
22746 else
22747 ac_prog_rejected=no
22748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22749 for as_dir in $PATH
22750 do
22751 IFS=$as_save_IFS
22752 test -z "$as_dir" && as_dir=.
22753 for ac_exec_ext in '' $ac_executable_extensions; do
22754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22755 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
22756 ac_prog_rejected=yes
22757 continue
22758 fi
22759 ac_cv_prog_MT="mt"
22760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22761 break 2
23042 fi
23043
23044 # Now join together the path and the arguments once again
23045 if test "x$arguments" != xEOL; then
23046 new_complete="$new_path ${arguments% *}"
23047 else
23048 new_complete="$new_path"
23049 fi
23050
23051 if test "x$complete" != "x$new_complete"; then
23052 MT="$new_complete"
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5
23054 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;}
23055 fi
23056
23057 # The resource compiler
23058 # Extract the first word of "rc", so it can be a program name with args.
23059 set dummy rc; ac_word=$2
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23061 $as_echo_n "checking for $ac_word... " >&6; }
23062 if test "${ac_cv_prog_RC+set}" = set; then :
23063 $as_echo_n "(cached) " >&6
23064 else
23065 if test -n "$RC"; then
23066 ac_cv_prog_RC="$RC" # Let the user override the test.
23067 else
23068 ac_prog_rejected=no
23069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23070 for as_dir in $PATH
23071 do
23072 IFS=$as_save_IFS
23073 test -z "$as_dir" && as_dir=.
23074 for ac_exec_ext in '' $ac_executable_extensions; do
23075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23076 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
23077 ac_prog_rejected=yes
23078 continue
23079 fi
23080 ac_cv_prog_RC="rc"
23081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23082 break 2
23433 fi
23434 JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION
23435 if test "x$JDK_UPDATE_VERSION" = x; then :
23436
23437 JDK_UPDATE_VERSION_NOTNULL=0
23438
23439 fi
23440 RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\""
23441 RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\""
23442 RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\""
23443 RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\""
23444 RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\""
23445 RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\""
23446 RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\""
23447
23448 # lib.exe is used to create static libraries.
23449 # Extract the first word of "lib", so it can be a program name with args.
23450 set dummy lib; ac_word=$2
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23452 $as_echo_n "checking for $ac_word... " >&6; }
23453 if test "${ac_cv_prog_WINAR+set}" = set; then :
23454 $as_echo_n "(cached) " >&6
23455 else
23456 if test -n "$WINAR"; then
23457 ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
23458 else
23459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23460 for as_dir in $PATH
23461 do
23462 IFS=$as_save_IFS
23463 test -z "$as_dir" && as_dir=.
23464 for ac_exec_ext in '' $ac_executable_extensions; do
23465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23466 ac_cv_prog_WINAR="lib"
23467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23468 break 2
23469 fi
23470 done
23471 done
23472 IFS=$as_save_IFS
23473
23739 # Now join together the path and the arguments once again
23740 if test "x$arguments" != xEOL; then
23741 new_complete="$new_path ${arguments% *}"
23742 else
23743 new_complete="$new_path"
23744 fi
23745
23746 if test "x$complete" != "x$new_complete"; then
23747 WINAR="$new_complete"
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5
23749 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;}
23750 fi
23751
23752 AR="$WINAR"
23753 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
23754
23755 # Extract the first word of "dumpbin", so it can be a program name with args.
23756 set dummy dumpbin; ac_word=$2
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23758 $as_echo_n "checking for $ac_word... " >&6; }
23759 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
23760 $as_echo_n "(cached) " >&6
23761 else
23762 if test -n "$DUMPBIN"; then
23763 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
23764 else
23765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23766 for as_dir in $PATH
23767 do
23768 IFS=$as_save_IFS
23769 test -z "$as_dir" && as_dir=.
23770 for ac_exec_ext in '' $ac_executable_extensions; do
23771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23772 ac_cv_prog_DUMPBIN="dumpbin"
23773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23774 break 2
23775 fi
23776 done
23777 done
23778 IFS=$as_save_IFS
23779
24058
24059 COMPILER_TYPE=CL
24060 CCXXFLAGS="$CCXXFLAGS -nologo"
24061
24062 fi
24063
24064
24065
24066 ac_ext=c
24067 ac_cpp='$CPP $CPPFLAGS'
24068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
24072 $as_echo_n "checking how to run the C preprocessor... " >&6; }
24073 # On Suns, sometimes $CPP names a directory.
24074 if test -n "$CPP" && test -d "$CPP"; then
24075 CPP=
24076 fi
24077 if test -z "$CPP"; then
24078 if test "${ac_cv_prog_CPP+set}" = set; then :
24079 $as_echo_n "(cached) " >&6
24080 else
24081 # Double quotes because CPP needs to be expanded
24082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
24083 do
24084 ac_preproc_ok=false
24085 for ac_c_preproc_warn_flag in '' yes
24086 do
24087 # Use a header file that comes with gcc, so configuring glibc
24088 # with a fresh cross-compiler works.
24089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24090 # <limits.h> exists even on freestanding compilers.
24091 # On the NeXT, cc -E runs the code through the compiler's parser,
24092 # not just through cpp. "Syntax error" is here to catch this case.
24093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24094 /* end confdefs.h. */
24095 #ifdef __STDC__
24096 # include <limits.h>
24097 #else
24098 # include <assert.h>
24174 _ACEOF
24175 if ac_fn_c_try_cpp "$LINENO"; then :
24176 # Broken: success on invalid input.
24177 continue
24178 else
24179 # Passes both tests.
24180 ac_preproc_ok=:
24181 break
24182 fi
24183 rm -f conftest.err conftest.i conftest.$ac_ext
24184
24185 done
24186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24187 rm -f conftest.i conftest.err conftest.$ac_ext
24188 if $ac_preproc_ok; then :
24189
24190 else
24191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24193 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
24194 See \`config.log' for more details" "$LINENO" 5 ; }
24195 fi
24196
24197 ac_ext=cpp
24198 ac_cpp='$CXXCPP $CPPFLAGS'
24199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24202
24203
24204 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24205
24206 # First separate the path from the arguments. This will split at the first
24207 # space.
24208 complete="$CPP"
24209 path="${complete%% *}"
24210 tmp="$complete EOL"
24211 arguments="${tmp#* }"
24212
24213 # Input might be given as Windows format, start by converting to
24214 # unix format.
24458 new_complete="$new_path ${arguments% *}"
24459 else
24460 new_complete="$new_path"
24461 fi
24462
24463 if test "x$complete" != "x$new_complete"; then
24464 CPP="$new_complete"
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5
24466 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;}
24467 fi
24468
24469
24470 ac_ext=cpp
24471 ac_cpp='$CXXCPP $CPPFLAGS'
24472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
24476 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
24477 if test -z "$CXXCPP"; then
24478 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
24479 $as_echo_n "(cached) " >&6
24480 else
24481 # Double quotes because CXXCPP needs to be expanded
24482 for CXXCPP in "$CXX -E" "/lib/cpp"
24483 do
24484 ac_preproc_ok=false
24485 for ac_cxx_preproc_warn_flag in '' yes
24486 do
24487 # Use a header file that comes with gcc, so configuring glibc
24488 # with a fresh cross-compiler works.
24489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24490 # <limits.h> exists even on freestanding compilers.
24491 # On the NeXT, cc -E runs the code through the compiler's parser,
24492 # not just through cpp. "Syntax error" is here to catch this case.
24493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24494 /* end confdefs.h. */
24495 #ifdef __STDC__
24496 # include <limits.h>
24497 #else
24498 # include <assert.h>
24574 _ACEOF
24575 if ac_fn_cxx_try_cpp "$LINENO"; then :
24576 # Broken: success on invalid input.
24577 continue
24578 else
24579 # Passes both tests.
24580 ac_preproc_ok=:
24581 break
24582 fi
24583 rm -f conftest.err conftest.i conftest.$ac_ext
24584
24585 done
24586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24587 rm -f conftest.i conftest.err conftest.$ac_ext
24588 if $ac_preproc_ok; then :
24589
24590 else
24591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24593 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
24594 See \`config.log' for more details" "$LINENO" 5 ; }
24595 fi
24596
24597 ac_ext=cpp
24598 ac_cpp='$CXXCPP $CPPFLAGS'
24599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24602
24603
24604 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24605
24606 # First separate the path from the arguments. This will split at the first
24607 # space.
24608 complete="$CXXCPP"
24609 path="${complete%% *}"
24610 tmp="$complete EOL"
24611 arguments="${tmp#* }"
24612
24613 # Input might be given as Windows format, start by converting to
24614 # unix format.
24876 BUILD_CXX="$CXX"
24877 BUILD_LD="$LD"
24878 fi
24879
24880 # for solaris we really need solaris tools, and not gnu equivalent
24881 # these seems to normally reside in /usr/ccs/bin so add that to path before
24882 # starting to probe
24883 #
24884 # NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH
24885 # so that it can be overriden --with-tools-dir
24886 if test "x$OPENJDK_BUILD_OS" = xsolaris; then
24887 PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}"
24888 fi
24889
24890 # Find the right assembler.
24891 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
24892 # Extract the first word of "as", so it can be a program name with args.
24893 set dummy as; ac_word=$2
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24895 $as_echo_n "checking for $ac_word... " >&6; }
24896 if test "${ac_cv_path_AS+set}" = set; then :
24897 $as_echo_n "(cached) " >&6
24898 else
24899 case $AS in
24900 [\\/]* | ?:[\\/]*)
24901 ac_cv_path_AS="$AS" # Let the user override the test with a path.
24902 ;;
24903 *)
24904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24905 for as_dir in $PATH
24906 do
24907 IFS=$as_save_IFS
24908 test -z "$as_dir" && as_dir=.
24909 for ac_exec_ext in '' $ac_executable_extensions; do
24910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24911 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
24912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24913 break 2
24914 fi
24915 done
24916 done
25188 else
25189 new_complete="$new_path"
25190 fi
25191
25192 if test "x$complete" != "x$new_complete"; then
25193 AS="$new_complete"
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5
25195 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;}
25196 fi
25197
25198 else
25199 AS="$CC -c"
25200 fi
25201
25202
25203 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
25204 # Extract the first word of "nm", so it can be a program name with args.
25205 set dummy nm; ac_word=$2
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25207 $as_echo_n "checking for $ac_word... " >&6; }
25208 if test "${ac_cv_path_NM+set}" = set; then :
25209 $as_echo_n "(cached) " >&6
25210 else
25211 case $NM in
25212 [\\/]* | ?:[\\/]*)
25213 ac_cv_path_NM="$NM" # Let the user override the test with a path.
25214 ;;
25215 *)
25216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25217 for as_dir in $PATH
25218 do
25219 IFS=$as_save_IFS
25220 test -z "$as_dir" && as_dir=.
25221 for ac_exec_ext in '' $ac_executable_extensions; do
25222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25223 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
25224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25225 break 2
25226 fi
25227 done
25228 done
25494 fi
25495 fi
25496
25497 # Now join together the path and the arguments once again
25498 if test "x$arguments" != xEOL; then
25499 new_complete="$new_path ${arguments% *}"
25500 else
25501 new_complete="$new_path"
25502 fi
25503
25504 if test "x$complete" != "x$new_complete"; then
25505 NM="$new_complete"
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
25507 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
25508 fi
25509
25510 # Extract the first word of "gnm", so it can be a program name with args.
25511 set dummy gnm; ac_word=$2
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25513 $as_echo_n "checking for $ac_word... " >&6; }
25514 if test "${ac_cv_path_GNM+set}" = set; then :
25515 $as_echo_n "(cached) " >&6
25516 else
25517 case $GNM in
25518 [\\/]* | ?:[\\/]*)
25519 ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
25520 ;;
25521 *)
25522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25523 for as_dir in $PATH
25524 do
25525 IFS=$as_save_IFS
25526 test -z "$as_dir" && as_dir=.
25527 for ac_exec_ext in '' $ac_executable_extensions; do
25528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25529 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
25530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25531 break 2
25532 fi
25533 done
25534 done
25800 fi
25801 fi
25802
25803 # Now join together the path and the arguments once again
25804 if test "x$arguments" != xEOL; then
25805 new_complete="$new_path ${arguments% *}"
25806 else
25807 new_complete="$new_path"
25808 fi
25809
25810 if test "x$complete" != "x$new_complete"; then
25811 GNM="$new_complete"
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5
25813 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;}
25814 fi
25815
25816 # Extract the first word of "strip", so it can be a program name with args.
25817 set dummy strip; ac_word=$2
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25819 $as_echo_n "checking for $ac_word... " >&6; }
25820 if test "${ac_cv_path_STRIP+set}" = set; then :
25821 $as_echo_n "(cached) " >&6
25822 else
25823 case $STRIP in
25824 [\\/]* | ?:[\\/]*)
25825 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
25826 ;;
25827 *)
25828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25829 for as_dir in $PATH
25830 do
25831 IFS=$as_save_IFS
25832 test -z "$as_dir" && as_dir=.
25833 for ac_exec_ext in '' $ac_executable_extensions; do
25834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25835 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
25836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25837 break 2
25838 fi
25839 done
25840 done
26106 fi
26107 fi
26108
26109 # Now join together the path and the arguments once again
26110 if test "x$arguments" != xEOL; then
26111 new_complete="$new_path ${arguments% *}"
26112 else
26113 new_complete="$new_path"
26114 fi
26115
26116 if test "x$complete" != "x$new_complete"; then
26117 STRIP="$new_complete"
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
26119 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
26120 fi
26121
26122 # Extract the first word of "mcs", so it can be a program name with args.
26123 set dummy mcs; ac_word=$2
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26125 $as_echo_n "checking for $ac_word... " >&6; }
26126 if test "${ac_cv_path_MCS+set}" = set; then :
26127 $as_echo_n "(cached) " >&6
26128 else
26129 case $MCS in
26130 [\\/]* | ?:[\\/]*)
26131 ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
26132 ;;
26133 *)
26134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26135 for as_dir in $PATH
26136 do
26137 IFS=$as_save_IFS
26138 test -z "$as_dir" && as_dir=.
26139 for ac_exec_ext in '' $ac_executable_extensions; do
26140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26141 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
26142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26143 break 2
26144 fi
26145 done
26146 done
26414
26415 # Now join together the path and the arguments once again
26416 if test "x$arguments" != xEOL; then
26417 new_complete="$new_path ${arguments% *}"
26418 else
26419 new_complete="$new_path"
26420 fi
26421
26422 if test "x$complete" != "x$new_complete"; then
26423 MCS="$new_complete"
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
26425 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
26426 fi
26427
26428 elif test "x$OPENJDK_TARGET_OS" != xwindows; then
26429 if test -n "$ac_tool_prefix"; then
26430 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
26431 set dummy ${ac_tool_prefix}nm; ac_word=$2
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26433 $as_echo_n "checking for $ac_word... " >&6; }
26434 if test "${ac_cv_prog_NM+set}" = set; then :
26435 $as_echo_n "(cached) " >&6
26436 else
26437 if test -n "$NM"; then
26438 ac_cv_prog_NM="$NM" # Let the user override the test.
26439 else
26440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26441 for as_dir in $PATH
26442 do
26443 IFS=$as_save_IFS
26444 test -z "$as_dir" && as_dir=.
26445 for ac_exec_ext in '' $ac_executable_extensions; do
26446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26447 ac_cv_prog_NM="${ac_tool_prefix}nm"
26448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26449 break 2
26450 fi
26451 done
26452 done
26453 IFS=$as_save_IFS
26454
26455 fi
26456 fi
26457 NM=$ac_cv_prog_NM
26458 if test -n "$NM"; then
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
26460 $as_echo "$NM" >&6; }
26461 else
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26463 $as_echo "no" >&6; }
26464 fi
26465
26466
26467 fi
26468 if test -z "$ac_cv_prog_NM"; then
26469 ac_ct_NM=$NM
26470 # Extract the first word of "nm", so it can be a program name with args.
26471 set dummy nm; ac_word=$2
26472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26473 $as_echo_n "checking for $ac_word... " >&6; }
26474 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
26475 $as_echo_n "(cached) " >&6
26476 else
26477 if test -n "$ac_ct_NM"; then
26478 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
26479 else
26480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26481 for as_dir in $PATH
26482 do
26483 IFS=$as_save_IFS
26484 test -z "$as_dir" && as_dir=.
26485 for ac_exec_ext in '' $ac_executable_extensions; do
26486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26487 ac_cv_prog_ac_ct_NM="nm"
26488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26489 break 2
26490 fi
26491 done
26492 done
26493 IFS=$as_save_IFS
26494
26774 # Now join together the path and the arguments once again
26775 if test "x$arguments" != xEOL; then
26776 new_complete="$new_path ${arguments% *}"
26777 else
26778 new_complete="$new_path"
26779 fi
26780
26781 if test "x$complete" != "x$new_complete"; then
26782 NM="$new_complete"
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
26784 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
26785 fi
26786
26787 GNM="$NM"
26788
26789 if test -n "$ac_tool_prefix"; then
26790 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
26791 set dummy ${ac_tool_prefix}strip; ac_word=$2
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26793 $as_echo_n "checking for $ac_word... " >&6; }
26794 if test "${ac_cv_prog_STRIP+set}" = set; then :
26795 $as_echo_n "(cached) " >&6
26796 else
26797 if test -n "$STRIP"; then
26798 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
26799 else
26800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26801 for as_dir in $PATH
26802 do
26803 IFS=$as_save_IFS
26804 test -z "$as_dir" && as_dir=.
26805 for ac_exec_ext in '' $ac_executable_extensions; do
26806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26807 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
26808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26809 break 2
26810 fi
26811 done
26812 done
26813 IFS=$as_save_IFS
26814
26815 fi
26816 fi
26817 STRIP=$ac_cv_prog_STRIP
26818 if test -n "$STRIP"; then
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
26820 $as_echo "$STRIP" >&6; }
26821 else
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26823 $as_echo "no" >&6; }
26824 fi
26825
26826
26827 fi
26828 if test -z "$ac_cv_prog_STRIP"; then
26829 ac_ct_STRIP=$STRIP
26830 # Extract the first word of "strip", so it can be a program name with args.
26831 set dummy strip; ac_word=$2
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26833 $as_echo_n "checking for $ac_word... " >&6; }
26834 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
26835 $as_echo_n "(cached) " >&6
26836 else
26837 if test -n "$ac_ct_STRIP"; then
26838 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
26839 else
26840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26841 for as_dir in $PATH
26842 do
26843 IFS=$as_save_IFS
26844 test -z "$as_dir" && as_dir=.
26845 for ac_exec_ext in '' $ac_executable_extensions; do
26846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26847 ac_cv_prog_ac_ct_STRIP="strip"
26848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26849 break 2
26850 fi
26851 done
26852 done
26853 IFS=$as_save_IFS
26854
27139 fi
27140
27141 if test "x$complete" != "x$new_complete"; then
27142 STRIP="$new_complete"
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
27144 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
27145 fi
27146
27147 fi
27148
27149 # objcopy is used for moving debug symbols to separate files when
27150 # full debug symbols are enabled.
27151 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
27152 if test -n "$ac_tool_prefix"; then
27153 for ac_prog in gobjcopy objcopy
27154 do
27155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27158 $as_echo_n "checking for $ac_word... " >&6; }
27159 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
27160 $as_echo_n "(cached) " >&6
27161 else
27162 if test -n "$OBJCOPY"; then
27163 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
27164 else
27165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27166 for as_dir in $PATH
27167 do
27168 IFS=$as_save_IFS
27169 test -z "$as_dir" && as_dir=.
27170 for ac_exec_ext in '' $ac_executable_extensions; do
27171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27172 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
27173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27174 break 2
27175 fi
27176 done
27177 done
27178 IFS=$as_save_IFS
27179
27183 if test -n "$OBJCOPY"; then
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
27185 $as_echo "$OBJCOPY" >&6; }
27186 else
27187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27188 $as_echo "no" >&6; }
27189 fi
27190
27191
27192 test -n "$OBJCOPY" && break
27193 done
27194 fi
27195 if test -z "$OBJCOPY"; then
27196 ac_ct_OBJCOPY=$OBJCOPY
27197 for ac_prog in gobjcopy objcopy
27198 do
27199 # Extract the first word of "$ac_prog", so it can be a program name with args.
27200 set dummy $ac_prog; ac_word=$2
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27202 $as_echo_n "checking for $ac_word... " >&6; }
27203 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
27204 $as_echo_n "(cached) " >&6
27205 else
27206 if test -n "$ac_ct_OBJCOPY"; then
27207 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
27208 else
27209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27210 for as_dir in $PATH
27211 do
27212 IFS=$as_save_IFS
27213 test -z "$as_dir" && as_dir=.
27214 for ac_exec_ext in '' $ac_executable_extensions; do
27215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27216 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
27217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27218 break 2
27219 fi
27220 done
27221 done
27222 IFS=$as_save_IFS
27223
27510 else
27511 new_complete="$new_path"
27512 fi
27513
27514 if test "x$complete" != "x$new_complete"; then
27515 OBJCOPY="$new_complete"
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5
27517 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;}
27518 fi
27519
27520 fi
27521 fi
27522
27523 if test -n "$ac_tool_prefix"; then
27524 for ac_prog in gobjdump objdump
27525 do
27526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27529 $as_echo_n "checking for $ac_word... " >&6; }
27530 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
27531 $as_echo_n "(cached) " >&6
27532 else
27533 if test -n "$OBJDUMP"; then
27534 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
27535 else
27536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27537 for as_dir in $PATH
27538 do
27539 IFS=$as_save_IFS
27540 test -z "$as_dir" && as_dir=.
27541 for ac_exec_ext in '' $ac_executable_extensions; do
27542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27543 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
27544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27545 break 2
27546 fi
27547 done
27548 done
27549 IFS=$as_save_IFS
27550
27554 if test -n "$OBJDUMP"; then
27555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
27556 $as_echo "$OBJDUMP" >&6; }
27557 else
27558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27559 $as_echo "no" >&6; }
27560 fi
27561
27562
27563 test -n "$OBJDUMP" && break
27564 done
27565 fi
27566 if test -z "$OBJDUMP"; then
27567 ac_ct_OBJDUMP=$OBJDUMP
27568 for ac_prog in gobjdump objdump
27569 do
27570 # Extract the first word of "$ac_prog", so it can be a program name with args.
27571 set dummy $ac_prog; ac_word=$2
27572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27573 $as_echo_n "checking for $ac_word... " >&6; }
27574 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
27575 $as_echo_n "(cached) " >&6
27576 else
27577 if test -n "$ac_ct_OBJDUMP"; then
27578 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
27579 else
27580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27581 for as_dir in $PATH
27582 do
27583 IFS=$as_save_IFS
27584 test -z "$as_dir" && as_dir=.
27585 for ac_exec_ext in '' $ac_executable_extensions; do
27586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27587 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
27588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27589 break 2
27590 fi
27591 done
27592 done
27593 IFS=$as_save_IFS
27594
27878 # Now join together the path and the arguments once again
27879 if test "x$arguments" != xEOL; then
27880 new_complete="$new_path ${arguments% *}"
27881 else
27882 new_complete="$new_path"
27883 fi
27884
27885 if test "x$complete" != "x$new_complete"; then
27886 OBJDUMP="$new_complete"
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
27888 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
27889 fi
27890
27891 fi
27892
27893 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
27894 # Extract the first word of "lipo", so it can be a program name with args.
27895 set dummy lipo; ac_word=$2
27896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27897 $as_echo_n "checking for $ac_word... " >&6; }
27898 if test "${ac_cv_path_LIPO+set}" = set; then :
27899 $as_echo_n "(cached) " >&6
27900 else
27901 case $LIPO in
27902 [\\/]* | ?:[\\/]*)
27903 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
27904 ;;
27905 *)
27906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27907 for as_dir in $PATH
27908 do
27909 IFS=$as_save_IFS
27910 test -z "$as_dir" && as_dir=.
27911 for ac_exec_ext in '' $ac_executable_extensions; do
27912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27913 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
27914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27915 break 2
27916 fi
27917 done
27918 done
28193
28194 if test "x$complete" != "x$new_complete"; then
28195 LIPO="$new_complete"
28196 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5
28197 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;}
28198 fi
28199
28200 fi
28201
28202 # Restore old path without tools dir
28203 PATH="$OLD_PATH"
28204
28205
28206 # FIXME: Currently we must test this after paths but before flags. Fix!
28207
28208 # And we can test some aspects on the target using configure macros.
28209
28210
28211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
28212 $as_echo_n "checking for ANSI C header files... " >&6; }
28213 if test "${ac_cv_header_stdc+set}" = set; then :
28214 $as_echo_n "(cached) " >&6
28215 else
28216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28217 /* end confdefs.h. */
28218 #include <stdlib.h>
28219 #include <stdarg.h>
28220 #include <string.h>
28221 #include <float.h>
28222
28223 int
28224 main ()
28225 {
28226
28227 ;
28228 return 0;
28229 }
28230 _ACEOF
28231 if ac_fn_cxx_try_compile "$LINENO"; then :
28232 ac_cv_header_stdc=yes
28233 else
28327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28328 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
28329 "
28330 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28331 cat >>confdefs.h <<_ACEOF
28332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28333 _ACEOF
28334
28335 fi
28336
28337 done
28338
28339
28340
28341 ###############################################################################
28342 #
28343 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code.
28344 # (The JVM can use 32 or 64 bit Java pointers but that decision
28345 # is made at runtime.)
28346 #
28347 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
28348 # Always specify -m flags on Solaris
28349
28350 # keep track of c/cxx flags that we added outselves...
28351 # to prevent emitting warning...
28352 ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28353 ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28354 ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28355
28356 CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
28357 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
28358 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
28359
28360 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
28361 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
28362 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
28363
28364 elif test "x$COMPILE_TYPE" = xreduced; then
28365 if test "x$OPENJDK_TARGET_OS" != xwindows; then
28366 # Specify -m if running reduced on other Posix platforms
28367
28368 # keep track of c/cxx flags that we added outselves...
28369 # to prevent emitting warning...
28370 ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28371 ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28372 ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28373
28374 CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
28375 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
28376 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
28377
28378 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
28379 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
28380 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
28381
28382 fi
28383 fi
28384
28385 # Make compilation sanity check
28386 for ac_header in stdio.h
28387 do :
28388 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
28389 if test "x$ac_cv_header_stdio_h" = x""yes; then :
28390 cat >>confdefs.h <<_ACEOF
28391 #define HAVE_STDIO_H 1
28392 _ACEOF
28393
28394 else
28395
28396 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5
28397 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;}
28398 if test "x$COMPILE_TYPE" = xreduced; then
28399 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5
28400 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;}
28401 elif test "x$COMPILE_TYPE" = xcross; then
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5
28403 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;}
28404 fi
28405 as_fn_error $? "Cannot continue." "$LINENO" 5
28406
28407 fi
28408
28409 done
28410
28411
28412 # The cast to long int works around a bug in the HP C Compiler
28413 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28414 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28415 # This bug is HP SR number 8606223364.
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
28417 $as_echo_n "checking size of int *... " >&6; }
28418 if test "${ac_cv_sizeof_int_p+set}" = set; then :
28419 $as_echo_n "(cached) " >&6
28420 else
28421 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
28422
28423 else
28424 if test "$ac_cv_type_int_p" = yes; then
28425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28427 as_fn_error 77 "cannot compute sizeof (int *)
28428 See \`config.log' for more details" "$LINENO" 5 ; }
28429 else
28430 ac_cv_sizeof_int_p=0
28431 fi
28432 fi
28433
28434 fi
28435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
28436 $as_echo "$ac_cv_sizeof_int_p" >&6; }
28437
28438
28439
28440 cat >>confdefs.h <<_ACEOF
28441 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28442 _ACEOF
28443
28444
28445
28446 if test "x$SIZEOF_INT_P" != "x$ac_cv_sizeof_int_p"; then
28447 # Workaround autoconf bug, see http://lists.gnu.org/archive/html/autoconf/2010-07/msg00004.html
28448 SIZEOF_INT_P="$ac_cv_sizeof_int_p"
28455 else
28456 TESTED_TARGET_CPU_BITS=`expr 8 \* $SIZEOF_INT_P`
28457
28458 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
28459 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
28460 fi
28461 fi
28462
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5
28464 $as_echo_n "checking for target address size... " >&6; }
28465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5
28466 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; }
28467
28468
28469 ###############################################################################
28470 #
28471 # Is the target little of big endian?
28472 #
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
28474 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28475 if test "${ac_cv_c_bigendian+set}" = set; then :
28476 $as_echo_n "(cached) " >&6
28477 else
28478 ac_cv_c_bigendian=unknown
28479 # See if we're dealing with a universal compiler.
28480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28481 /* end confdefs.h. */
28482 #ifndef __APPLE_CC__
28483 not a universal capable compiler
28484 #endif
28485 typedef int dummy;
28486
28487 _ACEOF
28488 if ac_fn_cxx_try_compile "$LINENO"; then :
28489
28490 # Check for potential -arch flags. It is not universal unless
28491 # there are at least two -arch flags with different values.
28492 ac_arch=
28493 ac_prev=
28494 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28495 if test -n "$ac_prev"; then
29429 else
29430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, but explicitly disabled." >&5
29431 $as_echo "yes, but explicitly disabled." >&6; }
29432 fi
29433 else
29434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29435 $as_echo "no" >&6; }
29436 fi
29437
29438 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$USE_MACOSX_RUNTIME_SUPPORT" = xno; then
29439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on an X11 build on MacOSX?" >&5
29440 $as_echo_n "checking what is not needed on an X11 build on MacOSX?... " >&6; }
29441 X11_NOT_NEEDED=
29442 FREETYPE2_NOT_NEEDED=
29443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
29444 $as_echo "alsa pulse" >&6; }
29445 fi
29446
29447
29448
29449
29450 ###############################################################################
29451 #
29452 # Check for X Windows
29453 #
29454
29455 # Check if the user has specified sysroot, but not --x-includes or --x-libraries.
29456 # Make a simple check for the libraries at the sysroot, and setup --x-includes and
29457 # --x-libraries for the sysroot, if that seems to be correct.
29458 if test "x$SYS_ROOT" != "x/"; then
29459 if test "x$x_includes" = xNONE; then
29460 if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then
29461 x_includes="$SYS_ROOT/usr/X11R6/include"
29462 fi
29463 fi
29464 if test "x$x_libraries" = xNONE; then
29465 if test -f "$SYS_ROOT/usr/X11R6/lib/libX11.so"; then
29466 x_libraries="$SYS_ROOT/usr/X11R6/lib"
29467 fi
29468 fi
29469 fi
29470
29471 # Now let autoconf do it's magic
29472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
29473 $as_echo_n "checking for X... " >&6; }
29474
29475
29476 # Check whether --with-x was given.
29477 if test "${with_x+set}" = set; then :
29478 withval=$with_x;
29479 fi
29480
29481 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29482 if test "x$with_x" = xno; then
29483 # The user explicitly disabled X.
29484 have_x=disabled
29485 else
29486 case $x_includes,$x_libraries in #(
29487 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
29488 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
29489 $as_echo_n "(cached) " >&6
29490 else
29491 # One or both of the vars are not set, and there is no cached value.
29492 ac_x_includes=no ac_x_libraries=no
29493 rm -f -r conftest.dir
29494 if mkdir conftest.dir; then
29495 cd conftest.dir
29496 cat >Imakefile <<'_ACEOF'
29497 incroot:
29498 @echo incroot='${INCROOT}'
29499 usrlibdir:
29500 @echo usrlibdir='${USRLIBDIR}'
29501 libdir:
29502 @echo libdir='${LIBDIR}'
29503 _ACEOF
29504 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29505 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29506 for ac_var in incroot usrlibdir libdir; do
29507 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29508 done
29745 /* Override any GCC internal prototype to avoid an error.
29746 Use char because int might match the return type of a GCC
29747 builtin and then its argument prototype would still apply. */
29748 #ifdef __cplusplus
29749 extern "C"
29750 #endif
29751 char XOpenDisplay ();
29752 int
29753 main ()
29754 {
29755 return XOpenDisplay ();
29756 ;
29757 return 0;
29758 }
29759 _ACEOF
29760 if ac_fn_cxx_try_link "$LINENO"; then :
29761
29762 else
29763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
29764 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
29765 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
29766 $as_echo_n "(cached) " >&6
29767 else
29768 ac_check_lib_save_LIBS=$LIBS
29769 LIBS="-ldnet $LIBS"
29770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29771 /* end confdefs.h. */
29772
29773 /* Override any GCC internal prototype to avoid an error.
29774 Use char because int might match the return type of a GCC
29775 builtin and then its argument prototype would still apply. */
29776 #ifdef __cplusplus
29777 extern "C"
29778 #endif
29779 char dnet_ntoa ();
29780 int
29781 main ()
29782 {
29783 return dnet_ntoa ();
29784 ;
29785 return 0;
29786 }
29787 _ACEOF
29788 if ac_fn_cxx_try_link "$LINENO"; then :
29789 ac_cv_lib_dnet_dnet_ntoa=yes
29790 else
29791 ac_cv_lib_dnet_dnet_ntoa=no
29792 fi
29793 rm -f core conftest.err conftest.$ac_objext \
29794 conftest$ac_exeext conftest.$ac_ext
29795 LIBS=$ac_check_lib_save_LIBS
29796 fi
29797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29798 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29799 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
29800 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29801 fi
29802
29803 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
29805 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
29806 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
29807 $as_echo_n "(cached) " >&6
29808 else
29809 ac_check_lib_save_LIBS=$LIBS
29810 LIBS="-ldnet_stub $LIBS"
29811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29812 /* end confdefs.h. */
29813
29814 /* Override any GCC internal prototype to avoid an error.
29815 Use char because int might match the return type of a GCC
29816 builtin and then its argument prototype would still apply. */
29817 #ifdef __cplusplus
29818 extern "C"
29819 #endif
29820 char dnet_ntoa ();
29821 int
29822 main ()
29823 {
29824 return dnet_ntoa ();
29825 ;
29826 return 0;
29827 }
29828 _ACEOF
29829 if ac_fn_cxx_try_link "$LINENO"; then :
29830 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29831 else
29832 ac_cv_lib_dnet_stub_dnet_ntoa=no
29833 fi
29834 rm -f core conftest.err conftest.$ac_objext \
29835 conftest$ac_exeext conftest.$ac_ext
29836 LIBS=$ac_check_lib_save_LIBS
29837 fi
29838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29839 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29840 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
29841 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29842 fi
29843
29844 fi
29845 fi
29846 rm -f core conftest.err conftest.$ac_objext \
29847 conftest$ac_exeext conftest.$ac_ext
29848 LIBS="$ac_xsave_LIBS"
29849
29850 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29851 # to get the SysV transport functions.
29852 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29853 # needs -lnsl.
29854 # The nsl library prevents programs from opening the X display
29855 # on Irix 5.2, according to T.E. Dickey.
29856 # The functions gethostbyname, getservbyname, and inet_addr are
29857 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29858 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
29859 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
29860
29861 fi
29862
29863 if test $ac_cv_func_gethostbyname = no; then
29864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
29865 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
29866 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
29867 $as_echo_n "(cached) " >&6
29868 else
29869 ac_check_lib_save_LIBS=$LIBS
29870 LIBS="-lnsl $LIBS"
29871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29872 /* end confdefs.h. */
29873
29874 /* Override any GCC internal prototype to avoid an error.
29875 Use char because int might match the return type of a GCC
29876 builtin and then its argument prototype would still apply. */
29877 #ifdef __cplusplus
29878 extern "C"
29879 #endif
29880 char gethostbyname ();
29881 int
29882 main ()
29883 {
29884 return gethostbyname ();
29885 ;
29886 return 0;
29887 }
29888 _ACEOF
29889 if ac_fn_cxx_try_link "$LINENO"; then :
29890 ac_cv_lib_nsl_gethostbyname=yes
29891 else
29892 ac_cv_lib_nsl_gethostbyname=no
29893 fi
29894 rm -f core conftest.err conftest.$ac_objext \
29895 conftest$ac_exeext conftest.$ac_ext
29896 LIBS=$ac_check_lib_save_LIBS
29897 fi
29898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
29899 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
29900 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
29901 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29902 fi
29903
29904 if test $ac_cv_lib_nsl_gethostbyname = no; then
29905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
29906 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
29907 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
29908 $as_echo_n "(cached) " >&6
29909 else
29910 ac_check_lib_save_LIBS=$LIBS
29911 LIBS="-lbsd $LIBS"
29912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29913 /* end confdefs.h. */
29914
29915 /* Override any GCC internal prototype to avoid an error.
29916 Use char because int might match the return type of a GCC
29917 builtin and then its argument prototype would still apply. */
29918 #ifdef __cplusplus
29919 extern "C"
29920 #endif
29921 char gethostbyname ();
29922 int
29923 main ()
29924 {
29925 return gethostbyname ();
29926 ;
29927 return 0;
29928 }
29929 _ACEOF
29930 if ac_fn_cxx_try_link "$LINENO"; then :
29931 ac_cv_lib_bsd_gethostbyname=yes
29932 else
29933 ac_cv_lib_bsd_gethostbyname=no
29934 fi
29935 rm -f core conftest.err conftest.$ac_objext \
29936 conftest$ac_exeext conftest.$ac_ext
29937 LIBS=$ac_check_lib_save_LIBS
29938 fi
29939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
29940 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
29941 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
29942 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29943 fi
29944
29945 fi
29946 fi
29947
29948 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29949 # socket/setsockopt and other routines are undefined under SCO ODT
29950 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29951 # on later versions), says Simon Leinen: it contains gethostby*
29952 # variants that don't use the name server (or something). -lsocket
29953 # must be given before -lnsl if both are needed. We assume that
29954 # if connect needs -lnsl, so does gethostbyname.
29955 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
29956 if test "x$ac_cv_func_connect" = x""yes; then :
29957
29958 fi
29959
29960 if test $ac_cv_func_connect = no; then
29961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
29962 $as_echo_n "checking for connect in -lsocket... " >&6; }
29963 if test "${ac_cv_lib_socket_connect+set}" = set; then :
29964 $as_echo_n "(cached) " >&6
29965 else
29966 ac_check_lib_save_LIBS=$LIBS
29967 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29969 /* end confdefs.h. */
29970
29971 /* Override any GCC internal prototype to avoid an error.
29972 Use char because int might match the return type of a GCC
29973 builtin and then its argument prototype would still apply. */
29974 #ifdef __cplusplus
29975 extern "C"
29976 #endif
29977 char connect ();
29978 int
29979 main ()
29980 {
29981 return connect ();
29982 ;
29983 return 0;
29984 }
29985 _ACEOF
29986 if ac_fn_cxx_try_link "$LINENO"; then :
29987 ac_cv_lib_socket_connect=yes
29988 else
29989 ac_cv_lib_socket_connect=no
29990 fi
29991 rm -f core conftest.err conftest.$ac_objext \
29992 conftest$ac_exeext conftest.$ac_ext
29993 LIBS=$ac_check_lib_save_LIBS
29994 fi
29995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
29996 $as_echo "$ac_cv_lib_socket_connect" >&6; }
29997 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
29998 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29999 fi
30000
30001 fi
30002
30003 # Guillermo Gomez says -lposix is necessary on A/UX.
30004 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
30005 if test "x$ac_cv_func_remove" = x""yes; then :
30006
30007 fi
30008
30009 if test $ac_cv_func_remove = no; then
30010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
30011 $as_echo_n "checking for remove in -lposix... " >&6; }
30012 if test "${ac_cv_lib_posix_remove+set}" = set; then :
30013 $as_echo_n "(cached) " >&6
30014 else
30015 ac_check_lib_save_LIBS=$LIBS
30016 LIBS="-lposix $LIBS"
30017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30018 /* end confdefs.h. */
30019
30020 /* Override any GCC internal prototype to avoid an error.
30021 Use char because int might match the return type of a GCC
30022 builtin and then its argument prototype would still apply. */
30023 #ifdef __cplusplus
30024 extern "C"
30025 #endif
30026 char remove ();
30027 int
30028 main ()
30029 {
30030 return remove ();
30031 ;
30032 return 0;
30033 }
30034 _ACEOF
30035 if ac_fn_cxx_try_link "$LINENO"; then :
30036 ac_cv_lib_posix_remove=yes
30037 else
30038 ac_cv_lib_posix_remove=no
30039 fi
30040 rm -f core conftest.err conftest.$ac_objext \
30041 conftest$ac_exeext conftest.$ac_ext
30042 LIBS=$ac_check_lib_save_LIBS
30043 fi
30044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
30045 $as_echo "$ac_cv_lib_posix_remove" >&6; }
30046 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
30047 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30048 fi
30049
30050 fi
30051
30052 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30053 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
30054 if test "x$ac_cv_func_shmat" = x""yes; then :
30055
30056 fi
30057
30058 if test $ac_cv_func_shmat = no; then
30059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
30060 $as_echo_n "checking for shmat in -lipc... " >&6; }
30061 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
30062 $as_echo_n "(cached) " >&6
30063 else
30064 ac_check_lib_save_LIBS=$LIBS
30065 LIBS="-lipc $LIBS"
30066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30067 /* end confdefs.h. */
30068
30069 /* Override any GCC internal prototype to avoid an error.
30070 Use char because int might match the return type of a GCC
30071 builtin and then its argument prototype would still apply. */
30072 #ifdef __cplusplus
30073 extern "C"
30074 #endif
30075 char shmat ();
30076 int
30077 main ()
30078 {
30079 return shmat ();
30080 ;
30081 return 0;
30082 }
30083 _ACEOF
30084 if ac_fn_cxx_try_link "$LINENO"; then :
30085 ac_cv_lib_ipc_shmat=yes
30086 else
30087 ac_cv_lib_ipc_shmat=no
30088 fi
30089 rm -f core conftest.err conftest.$ac_objext \
30090 conftest$ac_exeext conftest.$ac_ext
30091 LIBS=$ac_check_lib_save_LIBS
30092 fi
30093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
30094 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
30095 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
30096 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30097 fi
30098
30099 fi
30100 fi
30101
30102 # Check for libraries that X11R6 Xt/Xaw programs need.
30103 ac_save_LDFLAGS=$LDFLAGS
30104 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30105 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30106 # check for ICE first), but we must link in the order -lSM -lICE or
30107 # we get undefined symbols. So assume we have SM if we have ICE.
30108 # These have to be linked with before -lX11, unlike the other
30109 # libraries we check for below, so use a different variable.
30110 # John Interrante, Karl Berry
30111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
30112 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
30113 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
30114 $as_echo_n "(cached) " >&6
30115 else
30116 ac_check_lib_save_LIBS=$LIBS
30117 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30119 /* end confdefs.h. */
30120
30121 /* Override any GCC internal prototype to avoid an error.
30122 Use char because int might match the return type of a GCC
30123 builtin and then its argument prototype would still apply. */
30124 #ifdef __cplusplus
30125 extern "C"
30126 #endif
30127 char IceConnectionNumber ();
30128 int
30129 main ()
30130 {
30131 return IceConnectionNumber ();
30132 ;
30133 return 0;
30134 }
30135 _ACEOF
30136 if ac_fn_cxx_try_link "$LINENO"; then :
30137 ac_cv_lib_ICE_IceConnectionNumber=yes
30138 else
30139 ac_cv_lib_ICE_IceConnectionNumber=no
30140 fi
30141 rm -f core conftest.err conftest.$ac_objext \
30142 conftest$ac_exeext conftest.$ac_ext
30143 LIBS=$ac_check_lib_save_LIBS
30144 fi
30145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30146 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30147 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
30148 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30149 fi
30150
30151 LDFLAGS=$ac_save_LDFLAGS
30152
30153 fi
30154
30155
30156 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
30157 # this doesn't make sense so we remove it.
30158 if test "x$COMPILE_TYPE" = xcross; then
30159 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'`
30160 fi
30161
30162 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
30163
30164 # Print a helpful message on how to acquire the necessary build dependency.
30165 # x11 is the help tag: freetyp2, cups, pulse, alsa etc
30166 MISSING_DEPENDENCY=x11
30167 PKGHANDLER_COMMAND=
31140 pkgutil_help $MISSING_DEPENDENCY ;;
31141 pkgadd)
31142 pkgadd_help $MISSING_DEPENDENCY ;;
31143 * )
31144 break ;;
31145 esac
31146
31147 if test "x$PKGHANDLER_COMMAND" != x; then
31148 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
31149 fi
31150
31151 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
31152 fi
31153
31154 if test "x$OPENJDK_TARGET_OS" != xwindows; then
31155 # AC_CHECK_LIB does not support use of cl.exe
31156 PREV_LDFLAGS="$LDFLAGS"
31157 LDFLAGS="$FREETYPE2_LIBS"
31158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
31159 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
31160 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
31161 $as_echo_n "(cached) " >&6
31162 else
31163 ac_check_lib_save_LIBS=$LIBS
31164 LIBS="-lfreetype $LIBS"
31165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31166 /* end confdefs.h. */
31167
31168 /* Override any GCC internal prototype to avoid an error.
31169 Use char because int might match the return type of a GCC
31170 builtin and then its argument prototype would still apply. */
31171 #ifdef __cplusplus
31172 extern "C"
31173 #endif
31174 char FT_Init_FreeType ();
31175 int
31176 main ()
31177 {
31178 return FT_Init_FreeType ();
31179 ;
31180 return 0;
31181 }
31182 _ACEOF
31183 if ac_fn_cxx_try_link "$LINENO"; then :
31184 ac_cv_lib_freetype_FT_Init_FreeType=yes
31185 else
31186 ac_cv_lib_freetype_FT_Init_FreeType=no
31187 fi
31188 rm -f core conftest.err conftest.$ac_objext \
31189 conftest$ac_exeext conftest.$ac_ext
31190 LIBS=$ac_check_lib_save_LIBS
31191 fi
31192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
31193 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
31194 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
31195 FREETYPE2_FOUND=true
31196 else
31197 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
31198 fi
31199
31200 LDFLAGS="$PREV_LDFLAGS"
31201 fi
31202 fi
31203
31204
31205
31206
31207
31208
31209
31210
31211
31212 ###############################################################################
31213 #
31214 # Check for alsa headers and libraries. Used on Linux/GNU systems.
31462 # Put the nasty error message in config.log where it belongs
31463 echo "$ALSA_PKG_ERRORS" >&5
31464
31465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31466 $as_echo "no" >&6; }
31467 ALSA_FOUND=no
31468 elif test $pkg_failed = untried; then
31469 ALSA_FOUND=no
31470 else
31471 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
31472 ALSA_LIBS=$pkg_cv_ALSA_LIBS
31473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31474 $as_echo "yes" >&6; }
31475 ALSA_FOUND=yes
31476 fi
31477 fi
31478 if test "x$ALSA_FOUND" = xno; then
31479 for ac_header in alsa/asoundlib.h
31480 do :
31481 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
31482 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
31483 cat >>confdefs.h <<_ACEOF
31484 #define HAVE_ALSA_ASOUNDLIB_H 1
31485 _ACEOF
31486 ALSA_FOUND=yes
31487 ALSA_CFLAGS=-Iignoreme
31488 ALSA_LIBS=-lasound
31489 DEFAULT_ALSA=yes
31490 else
31491 ALSA_FOUND=no
31492 fi
31493
31494 done
31495
31496 fi
31497 if test "x$ALSA_FOUND" = xno; then
31498
31499 # Print a helpful message on how to acquire the necessary build dependency.
31500 # alsa is the help tag: freetyp2, cups, pulse, alsa etc
31501 MISSING_DEPENDENCY=alsa
31502 PKGHANDLER_COMMAND=
31521 fi
31522
31523 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
31524 fi
31525 fi
31526
31527
31528
31529
31530
31531
31532
31533 ###############################################################################
31534 #
31535 # Check for the jpeg library
31536 #
31537
31538 USE_EXTERNAL_LIBJPEG=true
31539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
31540 $as_echo_n "checking for main in -ljpeg... " >&6; }
31541 if test "${ac_cv_lib_jpeg_main+set}" = set; then :
31542 $as_echo_n "(cached) " >&6
31543 else
31544 ac_check_lib_save_LIBS=$LIBS
31545 LIBS="-ljpeg $LIBS"
31546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31547 /* end confdefs.h. */
31548
31549
31550 int
31551 main ()
31552 {
31553 return main ();
31554 ;
31555 return 0;
31556 }
31557 _ACEOF
31558 if ac_fn_cxx_try_link "$LINENO"; then :
31559 ac_cv_lib_jpeg_main=yes
31560 else
31561 ac_cv_lib_jpeg_main=no
31562 fi
31563 rm -f core conftest.err conftest.$ac_objext \
31564 conftest$ac_exeext conftest.$ac_ext
31565 LIBS=$ac_check_lib_save_LIBS
31566 fi
31567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
31568 $as_echo "$ac_cv_lib_jpeg_main" >&6; }
31569 if test "x$ac_cv_lib_jpeg_main" = x""yes; then :
31570 cat >>confdefs.h <<_ACEOF
31571 #define HAVE_LIBJPEG 1
31572 _ACEOF
31573
31574 LIBS="-ljpeg $LIBS"
31575
31576 else
31577 USE_EXTERNAL_LIBJPEG=false
31578 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
31579 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
31580
31581 fi
31582
31583
31584
31585 ###############################################################################
31586 #
31587 # Check for the gif library
31588 #
31589
31598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5
31599 $as_echo_n "checking for which giflib to use... " >&6; }
31600
31601 # default is bundled
31602 DEFAULT_GIFLIB=bundled
31603
31604 #
31605 # if user didn't specify, use DEFAULT_GIFLIB
31606 #
31607 if test "x${with_giflib}" = "x"; then
31608 with_giflib=${DEFAULT_GIFLIB}
31609 fi
31610
31611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5
31612 $as_echo "${with_giflib}" >&6; }
31613
31614 if test "x${with_giflib}" = "xbundled"; then
31615 USE_EXTERNAL_LIBGIF=false
31616 elif test "x${with_giflib}" = "xsystem"; then
31617 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
31618 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
31619
31620 else
31621 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5
31622 fi
31623
31624
31625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5
31626 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; }
31627 if test "${ac_cv_lib_gif_DGifGetCode+set}" = set; then :
31628 $as_echo_n "(cached) " >&6
31629 else
31630 ac_check_lib_save_LIBS=$LIBS
31631 LIBS="-lgif $LIBS"
31632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31633 /* end confdefs.h. */
31634
31635 /* Override any GCC internal prototype to avoid an error.
31636 Use char because int might match the return type of a GCC
31637 builtin and then its argument prototype would still apply. */
31638 #ifdef __cplusplus
31639 extern "C"
31640 #endif
31641 char DGifGetCode ();
31642 int
31643 main ()
31644 {
31645 return DGifGetCode ();
31646 ;
31647 return 0;
31648 }
31649 _ACEOF
31650 if ac_fn_cxx_try_link "$LINENO"; then :
31651 ac_cv_lib_gif_DGifGetCode=yes
31652 else
31653 ac_cv_lib_gif_DGifGetCode=no
31654 fi
31655 rm -f core conftest.err conftest.$ac_objext \
31656 conftest$ac_exeext conftest.$ac_ext
31657 LIBS=$ac_check_lib_save_LIBS
31658 fi
31659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
31660 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
31661 if test "x$ac_cv_lib_gif_DGifGetCode" = x""yes; then :
31662 cat >>confdefs.h <<_ACEOF
31663 #define HAVE_LIBGIF 1
31664 _ACEOF
31665
31666 LIBS="-lgif $LIBS"
31667
31668 else
31669 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
31670 fi
31671
31672
31673 USE_EXTERNAL_LIBGIF=true
31674 else
31675 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
31676 fi
31677
31678
31679 ###############################################################################
31680 #
31681 # Check for the zlib library
31682 #
31683
31684
31685 # Check whether --with-zlib was given.
31686 if test "${with_zlib+set}" = set; then :
31687 withval=$with_zlib;
31688 fi
31689
31690
31691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
31692 $as_echo_n "checking for compress in -lz... " >&6; }
31693 if test "${ac_cv_lib_z_compress+set}" = set; then :
31694 $as_echo_n "(cached) " >&6
31695 else
31696 ac_check_lib_save_LIBS=$LIBS
31697 LIBS="-lz $LIBS"
31698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31699 /* end confdefs.h. */
31700
31701 /* Override any GCC internal prototype to avoid an error.
31702 Use char because int might match the return type of a GCC
31703 builtin and then its argument prototype would still apply. */
31704 #ifdef __cplusplus
31705 extern "C"
31706 #endif
31707 char compress ();
31708 int
31709 main ()
31710 {
31711 return compress ();
31712 ;
31713 return 0;
31714 }
31715 _ACEOF
31716 if ac_fn_cxx_try_link "$LINENO"; then :
31717 ac_cv_lib_z_compress=yes
31718 else
31719 ac_cv_lib_z_compress=no
31720 fi
31721 rm -f core conftest.err conftest.$ac_objext \
31722 conftest$ac_exeext conftest.$ac_ext
31723 LIBS=$ac_check_lib_save_LIBS
31724 fi
31725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
31726 $as_echo "$ac_cv_lib_z_compress" >&6; }
31727 if test "x$ac_cv_lib_z_compress" = x""yes; then :
31728 ZLIB_FOUND=yes
31729 else
31730 ZLIB_FOUND=no
31731 fi
31732
31733
31734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5
31735 $as_echo_n "checking for which zlib to use... " >&6; }
31736
31737 DEFAULT_ZLIB=bundled
31738 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
31739 #
31740 # On macosx default is system...on others default is
31741 #
31742 DEFAULT_ZLIB=system
31743 fi
31744
31745 if test "x${ZLIB_FOUND}" != "xyes"; then
31746 #
31747 # If we don't find any system...set default to bundled
31800 if ac_fn_cxx_try_link "$LINENO"; then :
31801 has_altzone=yes
31802 else
31803 has_altzone=no
31804 fi
31805 rm -f core conftest.err conftest.$ac_objext \
31806 conftest$ac_exeext conftest.$ac_ext
31807 if test "x$has_altzone" = xyes; then
31808
31809 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
31810
31811 fi
31812
31813 ###############################################################################
31814 #
31815 # Check the maths library
31816 #
31817
31818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
31819 $as_echo_n "checking for cos in -lm... " >&6; }
31820 if test "${ac_cv_lib_m_cos+set}" = set; then :
31821 $as_echo_n "(cached) " >&6
31822 else
31823 ac_check_lib_save_LIBS=$LIBS
31824 LIBS="-lm $LIBS"
31825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31826 /* end confdefs.h. */
31827
31828 /* Override any GCC internal prototype to avoid an error.
31829 Use char because int might match the return type of a GCC
31830 builtin and then its argument prototype would still apply. */
31831 #ifdef __cplusplus
31832 extern "C"
31833 #endif
31834 char cos ();
31835 int
31836 main ()
31837 {
31838 return cos ();
31839 ;
31840 return 0;
31841 }
31842 _ACEOF
31843 if ac_fn_cxx_try_link "$LINENO"; then :
31844 ac_cv_lib_m_cos=yes
31845 else
31846 ac_cv_lib_m_cos=no
31847 fi
31848 rm -f core conftest.err conftest.$ac_objext \
31849 conftest$ac_exeext conftest.$ac_ext
31850 LIBS=$ac_check_lib_save_LIBS
31851 fi
31852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
31853 $as_echo "$ac_cv_lib_m_cos" >&6; }
31854 if test "x$ac_cv_lib_m_cos" = x""yes; then :
31855 cat >>confdefs.h <<_ACEOF
31856 #define HAVE_LIBM 1
31857 _ACEOF
31858
31859 LIBS="-lm $LIBS"
31860
31861 else
31862
31863 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
31864 $as_echo "$as_me: Maths library was not found" >&6;}
31865
31866 fi
31867
31868
31869
31870 ###############################################################################
31871 #
31872 # Check for libdl.so
31873
31874 save_LIBS="$LIBS"
31875 LIBS=""
31876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
31877 $as_echo_n "checking for dlopen in -ldl... " >&6; }
31878 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
31879 $as_echo_n "(cached) " >&6
31880 else
31881 ac_check_lib_save_LIBS=$LIBS
31882 LIBS="-ldl $LIBS"
31883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31884 /* end confdefs.h. */
31885
31886 /* Override any GCC internal prototype to avoid an error.
31887 Use char because int might match the return type of a GCC
31888 builtin and then its argument prototype would still apply. */
31889 #ifdef __cplusplus
31890 extern "C"
31891 #endif
31892 char dlopen ();
31893 int
31894 main ()
31895 {
31896 return dlopen ();
31897 ;
31898 return 0;
31899 }
31900 _ACEOF
31901 if ac_fn_cxx_try_link "$LINENO"; then :
31902 ac_cv_lib_dl_dlopen=yes
31903 else
31904 ac_cv_lib_dl_dlopen=no
31905 fi
31906 rm -f core conftest.err conftest.$ac_objext \
31907 conftest$ac_exeext conftest.$ac_ext
31908 LIBS=$ac_check_lib_save_LIBS
31909 fi
31910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
31911 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
31912 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
31913 cat >>confdefs.h <<_ACEOF
31914 #define HAVE_LIBDL 1
31915 _ACEOF
31916
31917 LIBS="-ldl $LIBS"
31918
31919 fi
31920
31921 LIBDL="$LIBS"
31922
31923 LIBS="$save_LIBS"
31924
31925
31926
31927 ###############################################################################
31928 #
31929 # statically link libstdc++ before C++ ABI is stablized on Linux unless
31930 # dynamic build is configured on command line.
31931 #
31932
32122
32123 Consider adjusting the PKG_CONFIG_PATH environment variable if you
32124 installed software in a non-standard prefix.
32125
32126 Alternatively, you may set the environment variables LIBFFI_CFLAGS
32127 and LIBFFI_LIBS to avoid the need to call pkg-config.
32128 See the pkg-config man page for more details.
32129 " "$LINENO" 5
32130 elif test $pkg_failed = untried; then
32131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32133 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
32134 is in your PATH or set the PKG_CONFIG environment variable to the full
32135 path to pkg-config.
32136
32137 Alternatively, you may set the environment variables LIBFFI_CFLAGS
32138 and LIBFFI_LIBS to avoid the need to call pkg-config.
32139 See the pkg-config man page for more details.
32140
32141 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32142 See \`config.log' for more details" "$LINENO" 5 ; }
32143 else
32144 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
32145 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
32146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32147 $as_echo "yes" >&6; }
32148 :
32149 fi
32150
32151 fi
32152
32153 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
32154 # Extract the first word of "llvm-config", so it can be a program name with args.
32155 set dummy llvm-config; ac_word=$2
32156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32157 $as_echo_n "checking for $ac_word... " >&6; }
32158 if test "${ac_cv_prog_LLVM_CONFIG+set}" = set; then :
32159 $as_echo_n "(cached) " >&6
32160 else
32161 if test -n "$LLVM_CONFIG"; then
32162 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test.
32163 else
32164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32165 for as_dir in $PATH
32166 do
32167 IFS=$as_save_IFS
32168 test -z "$as_dir" && as_dir=.
32169 for ac_exec_ext in '' $ac_executable_extensions; do
32170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32171 ac_cv_prog_LLVM_CONFIG="llvm-config"
32172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32173 break 2
32174 fi
32175 done
32176 done
32177 IFS=$as_save_IFS
32178
32756 fi
32757 fi
32758
32759
32760
32761
32762 # Setup use of ccache, if available
32763
32764 # Check whether --enable-ccache was given.
32765 if test "${enable_ccache+set}" = set; then :
32766 enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache}
32767 else
32768 ENABLE_CCACHE=yes
32769 fi
32770
32771 if test "x$ENABLE_CCACHE" = xyes; then
32772 # Extract the first word of "ccache", so it can be a program name with args.
32773 set dummy ccache; ac_word=$2
32774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32775 $as_echo_n "checking for $ac_word... " >&6; }
32776 if test "${ac_cv_path_CCACHE+set}" = set; then :
32777 $as_echo_n "(cached) " >&6
32778 else
32779 case $CCACHE in
32780 [\\/]* | ?:[\\/]*)
32781 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
32782 ;;
32783 *)
32784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32785 for as_dir in $PATH
32786 do
32787 IFS=$as_save_IFS
32788 test -z "$as_dir" && as_dir=.
32789 for ac_exec_ext in '' $ac_executable_extensions; do
32790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32791 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
32792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32793 break 2
32794 fi
32795 done
32796 done
33017 "s/'/'\\\\''/g;
33018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33019 ;; #(
33020 *)
33021 # `set' quotes correctly as required by POSIX, so do not add quotes.
33022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33023 ;;
33024 esac |
33025 sort
33026 ) |
33027 sed '
33028 /^ac_cv_env_/b end
33029 t clear
33030 :clear
33031 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33032 t end
33033 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33034 :end' >>confcache
33035 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33036 if test -w "$cache_file"; then
33037 test "x$cache_file" != "x/dev/null" &&
33038 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33039 $as_echo "$as_me: updating cache $cache_file" >&6;}
33040 cat confcache >$cache_file
33041 else
33042 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33043 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33044 fi
33045 fi
33046 rm -f confcache
33047
33048 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33049 # Let make expand exec_prefix.
33050 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33051
33052 DEFS=-DHAVE_CONFIG_H
33053
33054 ac_libobjs=
33055 ac_ltlibobjs=
33056 U=
33057 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33058 # 1. Remove the extension, and $U if already installed.
33059 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33060 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33061 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33062 # will be set to the directory where LIBOBJS objects are built.
33063 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33064 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33065 done
33066 LIBOBJS=$ac_libobjs
33067
33068 LTLIBOBJS=$ac_ltlibobjs
33069
33070
33071
33072 : ${CONFIG_STATUS=./config.status}
33073 ac_write_fail=0
33074 ac_clean_files_save=$ac_clean_files
33075 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33077 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33078 as_write_fail=0
33079 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33080 #! $SHELL
33081 # Generated by $as_me.
33082 # Run this file to recreate the current configuration.
33083 # Compiler output produced by configure, useful for debugging
33084 # configure, is in config.log if it exists.
33085
33086 debug=false
33087 ac_cs_recheck=false
33088 ac_cs_silent=false
33089
33090 SHELL=\${CONFIG_SHELL-$SHELL}
33091 export SHELL
33092 _ASEOF
33153 fi
33154
33155 # The user is always right.
33156 if test "${PATH_SEPARATOR+set}" != set; then
33157 PATH_SEPARATOR=:
33158 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33159 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33160 PATH_SEPARATOR=';'
33161 }
33162 fi
33163
33164
33165 # IFS
33166 # We need space, tab and new line, in precisely that order. Quoting is
33167 # there to prevent editors from complaining about space-tab.
33168 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33169 # splitting by setting IFS to empty value.)
33170 IFS=" "" $as_nl"
33171
33172 # Find who we are. Look in the path if we contain no directory separator.
33173 case $0 in #((
33174 *[\\/]* ) as_myself=$0 ;;
33175 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33176 for as_dir in $PATH
33177 do
33178 IFS=$as_save_IFS
33179 test -z "$as_dir" && as_dir=.
33180 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33181 done
33182 IFS=$as_save_IFS
33183
33184 ;;
33185 esac
33186 # We did not find ourselves, most probably we were run as `sh COMMAND'
33187 # in which case we are not to be found in the path.
33188 if test "x$as_myself" = x; then
33189 as_myself=$0
33190 fi
33191 if test ! -f "$as_myself"; then
33192 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33460 # Sed expression to map a string onto a valid CPP name.
33461 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33462
33463 # Sed expression to map a string onto a valid variable name.
33464 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33465
33466
33467 exec 6>&1
33468 ## ----------------------------------- ##
33469 ## Main body of $CONFIG_STATUS script. ##
33470 ## ----------------------------------- ##
33471 _ASEOF
33472 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33473
33474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33475 # Save the log message, to keep $0 and so on meaningful, and to
33476 # report actual input values of CONFIG_FILES etc. instead of their
33477 # values after options handling.
33478 ac_log="
33479 This file was extended by OpenJDK $as_me jdk8, which was
33480 generated by GNU Autoconf 2.67. Invocation command line was
33481
33482 CONFIG_FILES = $CONFIG_FILES
33483 CONFIG_HEADERS = $CONFIG_HEADERS
33484 CONFIG_LINKS = $CONFIG_LINKS
33485 CONFIG_COMMANDS = $CONFIG_COMMANDS
33486 $ $0 $@
33487
33488 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33489 "
33490
33491 _ACEOF
33492
33493 case $ac_config_files in *"
33494 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33495 esac
33496
33497 case $ac_config_headers in *"
33498 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33499 esac
33500
33523 --recheck update $as_me by reconfiguring in the same conditions
33524 --file=FILE[:TEMPLATE]
33525 instantiate the configuration file FILE
33526 --header=FILE[:TEMPLATE]
33527 instantiate the configuration header FILE
33528
33529 Configuration files:
33530 $config_files
33531
33532 Configuration headers:
33533 $config_headers
33534
33535 Report bugs to <build-dev@openjdk.java.net>.
33536 OpenJDK home page: <http://openjdk.java.net>."
33537
33538 _ACEOF
33539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33540 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33541 ac_cs_version="\\
33542 OpenJDK config.status jdk8
33543 configured by $0, generated by GNU Autoconf 2.67,
33544 with options \\"\$ac_cs_config\\"
33545
33546 Copyright (C) 2010 Free Software Foundation, Inc.
33547 This config.status script is free software; the Free Software Foundation
33548 gives unlimited permission to copy, distribute and modify it."
33549
33550 ac_pwd='$ac_pwd'
33551 srcdir='$srcdir'
33552 AWK='$AWK'
33553 test -n "\$AWK" || AWK=awk
33554 _ACEOF
33555
33556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33557 # The default lists apply if the user does not specify any file.
33558 ac_need_defaults=:
33559 while test $# != 0
33560 do
33561 case $1 in
33562 --*=?*)
33563 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33652 } >&5
33653
33654 _ACEOF
33655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33656 _ACEOF
33657
33658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33659
33660 # Handling of arguments.
33661 for ac_config_target in $ac_config_targets
33662 do
33663 case $ac_config_target in
33664 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;;
33665 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;;
33666 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;;
33667 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;;
33668 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;;
33669 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;;
33670 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;;
33671
33672 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
33673 esac
33674 done
33675
33676
33677 # If the user did not use the arguments to specify the items to instantiate,
33678 # then the envvar interface is used. Set only those that are not.
33679 # We use the long form for the default assignment because of an extremely
33680 # bizarre bug on SunOS 4.1.3.
33681 if $ac_need_defaults; then
33682 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33683 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33684 fi
33685
33686 # Have a temporary directory for convenience. Make it in the build tree
33687 # simply because there is no reason against having it here, and in addition,
33688 # creating and moving files from /tmp can sometimes cause problems.
33689 # Hook for its removal unless debugging.
33690 # Note that there is a small window in which the directory will not be cleaned:
33691 # after its creation but before its name has been assigned to `$tmp'.
33692 $debug ||
33693 {
33694 tmp=
33695 trap 'exit_status=$?
33696 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33697 ' 0
33698 trap 'as_fn_exit 1' 1 2 13 15
33699 }
33700 # Create a (secure) tmp directory for tmp files.
33701
33702 {
33703 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33704 test -n "$tmp" && test -d "$tmp"
33705 } ||
33706 {
33707 tmp=./conf$$-$RANDOM
33708 (umask 077 && mkdir "$tmp")
33709 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33710
33711 # Set up the scripts for CONFIG_FILES section.
33712 # No need to generate them if there are no CONFIG_FILES.
33713 # This happens for instance with `./config.status config.h'.
33714 if test -n "$CONFIG_FILES"; then
33715
33716
33717 ac_cr=`echo X | tr X '\015'`
33718 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33719 # But we know of no other shell where ac_cr would be empty at this
33720 # point, so we can use a bashism as a fallback.
33721 if test "x$ac_cr" = x; then
33722 eval ac_cr=\$\'\\r\'
33723 fi
33724 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33725 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33726 ac_cs_awk_cr='\\r'
33727 else
33728 ac_cs_awk_cr=$ac_cr
33729 fi
33730
33731 echo 'BEGIN {' >"$tmp/subs1.awk" &&
33732 _ACEOF
33733
33734
33735 {
33736 echo "cat >conf$$subs.awk <<_ACEOF" &&
33737 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33738 echo "_ACEOF"
33739 } >conf$$subs.sh ||
33740 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33741 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33742 ac_delim='%!_!# '
33743 for ac_last_try in false false false false false :; do
33744 . ./conf$$subs.sh ||
33745 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33746
33747 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33748 if test $ac_delim_n = $ac_delim_num; then
33749 break
33750 elif $ac_last_try; then
33751 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33752 else
33753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33754 fi
33755 done
33756 rm -f conf$$subs.sh
33757
33758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33759 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33760 _ACEOF
33761 sed -n '
33762 h
33763 s/^/S["/; s/!.*/"]=/
33764 p
33765 g
33766 s/^[^!]*!//
33767 :repl
33768 t repl
33769 s/'"$ac_delim"'$//
33770 t delim
33771 :nl
33772 h
33773 s/\(.\{148\}\)..*/\1/
33774 t more1
33775 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33776 p
33777 n
33778 b repl
33779 :more1
33787 s/\(.\{148\}\)..*/\1/
33788 t more2
33789 s/["\\]/\\&/g; s/^/"/; s/$/"/
33790 p
33791 b
33792 :more2
33793 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33794 p
33795 g
33796 s/.\{148\}//
33797 t delim
33798 ' <conf$$subs.awk | sed '
33799 /^[^""]/{
33800 N
33801 s/\n//
33802 }
33803 ' >>$CONFIG_STATUS || ac_write_fail=1
33804 rm -f conf$$subs.awk
33805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33806 _ACAWK
33807 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33808 for (key in S) S_is_set[key] = 1
33809 FS = ""
33810
33811 }
33812 {
33813 line = $ 0
33814 nfields = split(line, field, "@")
33815 substed = 0
33816 len = length(field[1])
33817 for (i = 2; i < nfields; i++) {
33818 key = field[i]
33819 keylen = length(key)
33820 if (S_is_set[key]) {
33821 value = S[key]
33822 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33823 len += length(value) + length(field[++i])
33824 substed = 1
33825 } else
33826 len += 1 + keylen
33827 }
33828
33829 print line
33830 }
33831
33832 _ACAWK
33833 _ACEOF
33834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33835 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33836 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33837 else
33838 cat
33839 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
33840 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33841 _ACEOF
33842
33843 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33844 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33845 # trailing colons and then remove the whole line if VPATH becomes empty
33846 # (actually we leave an empty line to preserve line numbers).
33847 if test "x$srcdir" = x.; then
33848 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33849 h
33850 s///
33851 s/^/:/
33852 s/[ ]*$/:/
33853 s/:\$(srcdir):/:/g
33854 s/:\${srcdir}:/:/g
33855 s/:@srcdir@:/:/g
33856 s/^:*//
33857 s/:*$//
33858 x
33859 s/\(=[ ]*\).*/\1/
33860 G
33861 s/\n//
33862 s/^[^=]*=[ ]*$//
33863 }'
33864 fi
33865
33866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33867 fi # test -n "$CONFIG_FILES"
33868
33869 # Set up the scripts for CONFIG_HEADERS section.
33870 # No need to generate them if there are no CONFIG_HEADERS.
33871 # This happens for instance with `./config.status Makefile'.
33872 if test -n "$CONFIG_HEADERS"; then
33873 cat >"$tmp/defines.awk" <<\_ACAWK ||
33874 BEGIN {
33875 _ACEOF
33876
33877 # Transform confdefs.h into an awk script `defines.awk', embedded as
33878 # here-document in config.status, that substitutes the proper values into
33879 # config.h.in to produce config.h.
33880
33881 # Create a delimiter string that does not exist in confdefs.h, to ease
33882 # handling of long lines.
33883 ac_delim='%!_!# '
33884 for ac_last_try in false false :; do
33885 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
33886 if test -z "$ac_t"; then
33887 break
33888 elif $ac_last_try; then
33889 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33890 else
33891 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33892 fi
33893 done
33894
33895 # For the awk script, D is an array of macro values keyed by name,
33896 # likewise P contains macro parameters if any. Preserve backslash
33897 # newline sequences.
33898
33899 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33900 sed -n '
33901 s/.\{148\}/&'"$ac_delim"'/g
33902 t rset
33903 :rset
33904 s/^[ ]*#[ ]*define[ ][ ]*/ /
33905 t def
33906 d
33967 }
33968 }
33969 }
33970 { print }
33971 _ACAWK
33972 _ACEOF
33973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33974 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33975 fi # test -n "$CONFIG_HEADERS"
33976
33977
33978 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
33979 shift
33980 for ac_tag
33981 do
33982 case $ac_tag in
33983 :[FHLC]) ac_mode=$ac_tag; continue;;
33984 esac
33985 case $ac_mode$ac_tag in
33986 :[FHL]*:*);;
33987 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
33988 :[FH]-) ac_tag=-:-;;
33989 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33990 esac
33991 ac_save_IFS=$IFS
33992 IFS=:
33993 set x $ac_tag
33994 IFS=$ac_save_IFS
33995 shift
33996 ac_file=$1
33997 shift
33998
33999 case $ac_mode in
34000 :L) ac_source=$1;;
34001 :[FH])
34002 ac_file_inputs=
34003 for ac_f
34004 do
34005 case $ac_f in
34006 -) ac_f="$tmp/stdin";;
34007 *) # Look for the file first in the build tree, then in the source tree
34008 # (if the path is not absolute). The absolute path cannot be DOS-style,
34009 # because $ac_f cannot contain `:'.
34010 test -f "$ac_f" ||
34011 case $ac_f in
34012 [\\/$]*) false;;
34013 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34014 esac ||
34015 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
34016 esac
34017 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34018 as_fn_append ac_file_inputs " '$ac_f'"
34019 done
34020
34021 # Let's still pretend it is `configure' which instantiates (i.e., don't
34022 # use $as_me), people would be surprised to read:
34023 # /* config.h. Generated by config.status. */
34024 configure_input='Generated from '`
34025 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34026 `' by configure.'
34027 if test x"$ac_file" != x-; then
34028 configure_input="$ac_file. $configure_input"
34029 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34030 $as_echo "$as_me: creating $ac_file" >&6;}
34031 fi
34032 # Neutralize special characters interpreted by sed in replacement strings.
34033 case $configure_input in #(
34034 *\&* | *\|* | *\\* )
34035 ac_sed_conf_input=`$as_echo "$configure_input" |
34036 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34037 *) ac_sed_conf_input=$configure_input;;
34038 esac
34039
34040 case $ac_tag in
34041 *:-:* | *:-) cat >"$tmp/stdin" \
34042 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34043 esac
34044 ;;
34045 esac
34046
34047 ac_dir=`$as_dirname -- "$ac_file" ||
34048 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34049 X"$ac_file" : 'X\(//\)[^/]' \| \
34050 X"$ac_file" : 'X\(//\)$' \| \
34051 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34052 $as_echo X"$ac_file" |
34053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34054 s//\1/
34055 q
34056 }
34057 /^X\(\/\/\)[^/].*/{
34058 s//\1/
34059 q
34060 }
34061 /^X\(\/\/\)$/{
34147 # FIXME: do we really want to maintain this feature?
34148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34149 ac_sed_extra="$ac_vpsub
34150 $extrasub
34151 _ACEOF
34152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34153 :t
34154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34155 s|@configure_input@|$ac_sed_conf_input|;t t
34156 s&@top_builddir@&$ac_top_builddir_sub&;t t
34157 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34158 s&@srcdir@&$ac_srcdir&;t t
34159 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34160 s&@top_srcdir@&$ac_top_srcdir&;t t
34161 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34162 s&@builddir@&$ac_builddir&;t t
34163 s&@abs_builddir@&$ac_abs_builddir&;t t
34164 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34165 $ac_datarootdir_hack
34166 "
34167 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34168 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34169
34170 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34171 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34172 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34174 which seems to be undefined. Please make sure it is defined" >&5
34175 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34176 which seems to be undefined. Please make sure it is defined" >&2;}
34177
34178 rm -f "$tmp/stdin"
34179 case $ac_file in
34180 -) cat "$tmp/out" && rm -f "$tmp/out";;
34181 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34182 esac \
34183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34184 ;;
34185 :H)
34186 #
34187 # CONFIG_HEADER
34188 #
34189 if test x"$ac_file" != x-; then
34190 {
34191 $as_echo "/* $configure_input */" \
34192 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34193 } >"$tmp/config.h" \
34194 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34195 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34196 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34197 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34198 else
34199 rm -f "$ac_file"
34200 mv "$tmp/config.h" "$ac_file" \
34201 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34202 fi
34203 else
34204 $as_echo "/* $configure_input */" \
34205 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34206 || as_fn_error $? "could not create -" "$LINENO" 5
34207 fi
34208 ;;
34209
34210
34211 esac
34212
34213 done # for ac_tag
34214
34215
34216 as_fn_exit 0
34217 _ACEOF
34218 ac_clean_files=$ac_clean_files_save
34219
34220 test $ac_write_fail = 0 ||
34221 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34222
34223
34224 # configure is writing to config.log, and then calls config.status.
34225 # 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}
670 C_O_FLAG_NONE
671 C_O_FLAG_NORM
672 C_O_FLAG_HI
673 C_O_FLAG_HIGHEST
674 POST_MCS_CMD
675 POST_STRIP_CMD
676 SET_EXECUTABLE_ORIGIN
677 SET_SHARED_LIBRARY_ORIGIN
678 CXX_FLAG_REORDER
679 C_FLAG_REORDER
680 SET_SHARED_LIBRARY_MAPFILE
681 SET_SHARED_LIBRARY_NAME
682 SHARED_LIBRARY_FLAGS
683 EXE_SUFFIX
684 STATIC_LIBRARY_SUFFIX
685 SHARED_LIBRARY_SUFFIX
686 LIBRARY_PREFIX
687 STATIC_LIBRARY
688 SHARED_LIBRARY
689 OBJ_SUFFIX
690 COMPILER_SUPPORTS_TARGET_BITS_FLAG
691 LIPO
692 ac_ct_OBJDUMP
693 OBJDUMP
694 ac_ct_OBJCOPY
695 OBJCOPY
696 MCS
697 STRIP
698 GNM
699 NM
700 AS
701 CXXCPP
702 CPP
703 COMPILER_TYPE
704 RC_FLAGS
705 DUMPBIN
706 WINAR
707 HOTSPOT_RC
708 HOTSPOT_MT
709 RC
710 MT
711 WINLD
712 HOTSPOT_LD
713 HOTSPOT_CXX
714 ARFLAGS
715 AR
716 LDEXECXX
717 LDCXX
718 LDEXE
719 LD
720 ac_ct_OBJC
721 OBJCFLAGS
722 OBJC
723 ac_ct_CXX
724 CXXFLAGS
725 CXX
726 ac_ct_PROPER_COMPILER_CXX
727 PROPER_COMPILER_CXX
728 POTENTIAL_CXX
729 TOOLS_DIR_CXX
730 ac_ct_PROPER_COMPILER_CC
731 PROPER_COMPILER_CC
732 POTENTIAL_CC
733 TOOLS_DIR_CC
734 BUILD_LD
735 BUILD_CXX
736 BUILD_CC
737 MSVCR_DLL
738 DXSDK_INCLUDE_PATH
739 DXSDK_LIB_PATH
740 VS_PATH
741 VS_LIB
742 VS_INCLUDE
743 CYGWIN_LINK
744 AR_OUT_OPTION
745 LD_OUT_OPTION
746 EXE_OUT_OPTION
747 CC_OUT_OPTION
748 BUILD_HOTSPOT
749 HOTSPOT_DIST
821 DEBUG_LEVEL
822 MACOSX_UNIVERSAL
823 INCLUDE_SA
824 JVM_VARIANT_ZEROSHARK
825 JVM_VARIANT_ZERO
826 JVM_VARIANT_KERNEL
827 JVM_VARIANT_MINIMAL1
828 JVM_VARIANT_CLIENT
829 JVM_VARIANT_SERVER
830 JVM_VARIANTS
831 JDK_VARIANT
832 SET_OPENJDK
833 BUILD_LOG_WRAPPER
834 BUILD_LOG_PREVIOUS
835 BUILD_LOG
836 SYS_ROOT
837 PATH_SEP
838 SRC_ROOT
839 ZERO_ARCHDEF
840 ZERO_ARCHFLAG
841 OBJEXT
842 EXEEXT
843 ac_ct_CC
844 CPPFLAGS
845 LDFLAGS
846 CFLAGS
847 CC
848 DEFINE_CROSS_COMPILE_ARCH
849 LP64
850 OPENJDK_TARGET_OS_API_DIR
851 OPENJDK_TARGET_CPU_JLI_CFLAGS
852 OPENJDK_TARGET_CPU_OSARCH
853 OPENJDK_TARGET_CPU_ISADIR
854 OPENJDK_TARGET_CPU_LIBDIR
855 OPENJDK_TARGET_CPU_LEGACY_LIB
856 OPENJDK_TARGET_CPU_LEGACY
857 REQUIRED_OS_VERSION
858 REQUIRED_OS_NAME
859 COMPILE_TYPE
860 OPENJDK_TARGET_CPU_ENDIAN
861 OPENJDK_TARGET_CPU_BITS
862 OPENJDK_TARGET_CPU_ARCH
863 OPENJDK_TARGET_CPU
864 OPENJDK_TARGET_OS_API
865 OPENJDK_TARGET_OS
866 OPENJDK_BUILD_CPU_ENDIAN
867 OPENJDK_BUILD_CPU_BITS
1024 with_freetype
1025 with_alsa
1026 with_alsa_include
1027 with_alsa_lib
1028 with_giflib
1029 with_zlib
1030 with_stdc__lib
1031 with_num_cores
1032 with_memory_size
1033 with_jobs
1034 with_sjavac_server_java
1035 with_sjavac_server_cores
1036 enable_sjavac
1037 enable_precompiled_headers
1038 enable_ccache
1039 with_ccache_dir
1040 '
1041 ac_precious_vars='build_alias
1042 host_alias
1043 target_alias
1044 CC
1045 CFLAGS
1046 LDFLAGS
1047 LIBS
1048 CPPFLAGS
1049 PKG_CONFIG
1050 CXX
1051 CXXFLAGS
1052 CCC
1053 OBJC
1054 OBJCFLAGS
1055 CPP
1056 CXXCPP
1057 XMKMF
1058 FREETYPE2_CFLAGS
1059 FREETYPE2_LIBS
1060 ALSA_CFLAGS
1061 ALSA_LIBS
1062 LIBFFI_CFLAGS
1063 LIBFFI_LIBS'
1064
1065
1066 # Initialize some variables set by options.
1067 ac_init_help=
1068 ac_init_version=false
1069 ac_unrecognized_opts=
1448
1449 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1450 Try \`$0 --help' for more information"
1451 ;;
1452
1453 *=*)
1454 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1455 # Reject names that are not valid shell variable names.
1456 case $ac_envvar in #(
1457 '' | [0-9]* | *[!_$as_cr_alnum]* )
1458 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1459 esac
1460 eval $ac_envvar=\$ac_optarg
1461 export $ac_envvar ;;
1462
1463 *)
1464 # FIXME: should be removed in autoconf 3.0.
1465 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1466 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1467 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1468 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1469 ;;
1470
1471 esac
1472 done
1473
1474 if test -n "$ac_prev"; then
1475 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1476 as_fn_error $? "missing argument to $ac_option"
1477 fi
1478
1479 if test -n "$ac_unrecognized_opts"; then
1480 case $enable_option_checking in
1481 no) ;;
1482 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1483 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1484 esac
1485 fi
1486
1487 # Check all directory arguments for consistency.
1488 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1792 (system, bundled) [bundled]
1793 --with-stdc++lib=<static>,<dynamic>,<default>
1794 force linking of the C++ runtime on Linux to either
1795 static or dynamic, default is static with dynamic as
1796 fallback
1797 --with-num-cores number of cores in the build system, e.g.
1798 --with-num-cores=8 [probed]
1799 --with-memory-size memory (in MB) available in the build system, e.g.
1800 --with-memory-size=1024 [probed]
1801 --with-jobs number of parallel jobs to let make run [calculated
1802 based on cores and memory]
1803 --with-sjavac-server-java
1804 use this java binary for running the sjavac
1805 background server [Boot JDK java]
1806 --with-sjavac-server-cores
1807 use at most this number of concurrent threads on the
1808 sjavac server [probed]
1809 --with-ccache-dir where to store ccache files [~/.ccache]
1810
1811 Some influential environment variables:
1812 CC C compiler command
1813 CFLAGS C compiler flags
1814 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1815 nonstandard directory <lib dir>
1816 LIBS libraries to pass to the linker, e.g. -l<library>
1817 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1818 you have headers in a nonstandard directory <include dir>
1819 PKG_CONFIG path to pkg-config utility
1820 CXX C++ compiler command
1821 CXXFLAGS C++ compiler flags
1822 OBJC Objective C compiler command
1823 OBJCFLAGS Objective C compiler flags
1824 CPP C preprocessor
1825 CXXCPP C++ preprocessor
1826 XMKMF Path to xmkmf, Makefile generator for X Window System
1827 FREETYPE2_CFLAGS
1828 C compiler flags for FREETYPE2, overriding pkg-config
1829 FREETYPE2_LIBS
1830 linker flags for FREETYPE2, overriding pkg-config
1831 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1832 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1833 LIBFFI_CFLAGS
1834 C compiler flags for LIBFFI, overriding pkg-config
1835 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1836
1837 Use these variables to override the choices made by `configure' or to help
1838 it to find libraries and programs with nonstandard names/locations.
1839
1885
1886 cd "$ac_dir" || { ac_status=$?; continue; }
1887 # Check for guested configure.
1888 if test -f "$ac_srcdir/configure.gnu"; then
1889 echo &&
1890 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1891 elif test -f "$ac_srcdir/configure"; then
1892 echo &&
1893 $SHELL "$ac_srcdir/configure" --help=recursive
1894 else
1895 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1896 fi || ac_status=$?
1897 cd "$ac_pwd" || { ac_status=$?; break; }
1898 done
1899 fi
1900
1901 test -n "$ac_init_help" && exit $ac_status
1902 if $ac_init_version; then
1903 cat <<\_ACEOF
1904 OpenJDK configure jdk8
1905 generated by GNU Autoconf 2.68
1906
1907 Copyright (C) 2010 Free Software Foundation, Inc.
1908 This configure script is free software; the Free Software Foundation
1909 gives unlimited permission to copy, distribute and modify it.
1910 _ACEOF
1911 exit
1912 fi
1913
1914 ## ------------------------ ##
1915 ## Autoconf initialization. ##
1916 ## ------------------------ ##
1917
1918 # ac_fn_c_try_compile LINENO
1919 # --------------------------
1920 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_c_try_compile ()
1922 {
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 rm -f conftest.$ac_objext
1925 if { { ac_try="$ac_compile"
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_compile") 2>conftest.err
1933 ac_status=$?
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1938 fi
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && {
1941 test -z "$ac_c_werror_flag" ||
1942 test ! -s conftest.err
1943 } && test -s conftest.$ac_objext; then :
1944 ac_retval=0
1945 else
1946 $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1948
1949 ac_retval=1
1950 fi
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1953
1954 } # ac_fn_c_try_compile
1955
1956 # ac_fn_cxx_try_compile LINENO
1957 # ----------------------------
1958 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1959 ac_fn_cxx_try_compile ()
1960 {
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 rm -f conftest.$ac_objext
1963 if { { ac_try="$ac_compile"
1964 case "(($ac_try" in
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966 *) ac_try_echo=$ac_try;;
1967 esac
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 $as_echo "$ac_try_echo"; } >&5
1970 (eval "$ac_compile") 2>conftest.err
1971 ac_status=$?
1972 if test -s conftest.err; then
1973 grep -v '^ *+' conftest.err >conftest.er1
1974 cat conftest.er1 >&5
1975 mv -f conftest.er1 conftest.err
1976 fi
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && {
1979 test -z "$ac_cxx_werror_flag" ||
1980 test ! -s conftest.err
1981 } && test -s conftest.$ac_objext; then :
1982 ac_retval=0
1983 else
1984 $as_echo "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.$ac_ext >&5
1986
1987 ac_retval=1
1988 fi
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 as_fn_set_status $ac_retval
1991
1992 } # ac_fn_cxx_try_compile
1993
1994 # ac_fn_objc_try_compile LINENO
1995 # -----------------------------
1996 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1997 ac_fn_objc_try_compile ()
1998 {
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 rm -f conftest.$ac_objext
2001 if { { ac_try="$ac_compile"
2002 case "(($ac_try" in
2003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2004 *) ac_try_echo=$ac_try;;
2005 esac
2006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2007 $as_echo "$ac_try_echo"; } >&5
2008 (eval "$ac_compile") 2>conftest.err
2009 ac_status=$?
2010 if test -s conftest.err; then
2011 grep -v '^ *+' conftest.err >conftest.er1
2012 cat conftest.er1 >&5
2013 mv -f conftest.er1 conftest.err
2014 fi
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; } && {
2017 test -z "$ac_objc_werror_flag" ||
2018 test ! -s conftest.err
2019 } && test -s conftest.$ac_objext; then :
2020 ac_retval=0
2021 else
2022 $as_echo "$as_me: failed program was:" >&5
2023 sed 's/^/| /' conftest.$ac_ext >&5
2024
2025 ac_retval=1
2026 fi
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 as_fn_set_status $ac_retval
2029
2030 } # ac_fn_objc_try_compile
2031
2032 # ac_fn_c_try_cpp LINENO
2033 # ----------------------
2034 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2035 ac_fn_c_try_cpp ()
2036 {
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 if { { ac_try="$ac_cpp conftest.$ac_ext"
2039 case "(($ac_try" in
2040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2041 *) ac_try_echo=$ac_try;;
2042 esac
2043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2044 $as_echo "$ac_try_echo"; } >&5
2045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2046 ac_status=$?
2047 if test -s conftest.err; then
2048 grep -v '^ *+' conftest.err >conftest.er1
2049 cat conftest.er1 >&5
2050 mv -f conftest.er1 conftest.err
2051 fi
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } > conftest.i && {
2054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2055 test ! -s conftest.err
2056 }; then :
2057 ac_retval=0
2058 else
2059 $as_echo "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2061
2062 ac_retval=1
2063 fi
2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065 as_fn_set_status $ac_retval
2066
2067 } # ac_fn_c_try_cpp
2068
2069 # ac_fn_cxx_try_cpp LINENO
2070 # ------------------------
2071 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2072 ac_fn_cxx_try_cpp ()
2073 {
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 if { { ac_try="$ac_cpp conftest.$ac_ext"
2076 case "(($ac_try" in
2077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2078 *) ac_try_echo=$ac_try;;
2079 esac
2080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081 $as_echo "$ac_try_echo"; } >&5
2082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2083 ac_status=$?
2084 if test -s conftest.err; then
2085 grep -v '^ *+' conftest.err >conftest.er1
2086 cat conftest.er1 >&5
2087 mv -f conftest.er1 conftest.err
2088 fi
2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2090 test $ac_status = 0; } > conftest.i && {
2091 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2092 test ! -s conftest.err
2093 }; then :
2094 ac_retval=0
2095 else
2096 $as_echo "$as_me: failed program was:" >&5
2097 sed 's/^/| /' conftest.$ac_ext >&5
2098
2099 ac_retval=1
2100 fi
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102 as_fn_set_status $ac_retval
2103
2104 } # ac_fn_cxx_try_cpp
2105
2106 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2107 # ---------------------------------------------------------
2108 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2109 # the include files in INCLUDES and setting the cache variable VAR
2110 # accordingly.
2111 ac_fn_cxx_check_header_mongrel ()
2112 {
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 if eval \${$3+:} false; then :
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 $as_echo_n "checking for $2... " >&6; }
2117 if eval \${$3+:} false; then :
2118 $as_echo_n "(cached) " >&6
2119 fi
2120 eval ac_res=\$$3
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123 else
2124 # Is the header compilable?
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2126 $as_echo_n "checking $2 usability... " >&6; }
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2129 $4
2130 #include <$2>
2131 _ACEOF
2132 if ac_fn_cxx_try_compile "$LINENO"; then :
2133 ac_header_compiler=yes
2134 else
2135 ac_header_compiler=no
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 ;;
2165 no:yes:* )
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2167 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2169 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2171 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2173 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2175 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2176 ( $as_echo "## ----------------------------------------- ##
2177 ## Report this to build-dev@openjdk.java.net ##
2178 ## ----------------------------------------- ##"
2179 ) | sed "s/^/$as_me: WARNING: /" >&2
2180 ;;
2181 esac
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2183 $as_echo_n "checking for $2... " >&6; }
2184 if eval \${$3+:} false; then :
2185 $as_echo_n "(cached) " >&6
2186 else
2187 eval "$3=\$ac_header_compiler"
2188 fi
2189 eval ac_res=\$$3
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191 $as_echo "$ac_res" >&6; }
2192 fi
2193 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194
2195 } # ac_fn_cxx_check_header_mongrel
2196
2197 # ac_fn_cxx_try_run LINENO
2198 # ------------------------
2199 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2200 # that executables *can* be run.
2201 ac_fn_cxx_try_run ()
2202 {
2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 if { { ac_try="$ac_link"
2205 case "(($ac_try" in
2206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2207 *) ac_try_echo=$ac_try;;
2208 esac
2209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2210 $as_echo "$ac_try_echo"; } >&5
2211 (eval "$ac_link") 2>&5
2212 ac_status=$?
2213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2214 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2215 { { case "(($ac_try" in
2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217 *) ac_try_echo=$ac_try;;
2218 esac
2219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2220 $as_echo "$ac_try_echo"; } >&5
2221 (eval "$ac_try") 2>&5
2222 ac_status=$?
2223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2224 test $ac_status = 0; }; }; then :
2225 ac_retval=0
2226 else
2227 $as_echo "$as_me: program exited with status $ac_status" >&5
2228 $as_echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2230
2231 ac_retval=$ac_status
2232 fi
2233 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235 as_fn_set_status $ac_retval
2236
2237 } # ac_fn_cxx_try_run
2238
2239 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2240 # ---------------------------------------------------------
2241 # Tests whether HEADER exists and can be compiled using the include files in
2242 # INCLUDES, setting the cache variable VAR accordingly.
2243 ac_fn_cxx_check_header_compile ()
2244 {
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247 $as_echo_n "checking for $2... " >&6; }
2248 if eval \${$3+:} false; then :
2249 $as_echo_n "(cached) " >&6
2250 else
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2253 $4
2254 #include <$2>
2255 _ACEOF
2256 if ac_fn_cxx_try_compile "$LINENO"; then :
2257 eval "$3=yes"
2258 else
2259 eval "$3=no"
2260 fi
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 fi
2263 eval ac_res=\$$3
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265 $as_echo "$ac_res" >&6; }
2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2267
2268 } # ac_fn_cxx_check_header_compile
2269
2270 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2271 # ----------------------------------------------
2272 # Tries to find the compile-time value of EXPR in a program that includes
2273 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2274 # computed
2275 ac_fn_cxx_compute_int ()
2276 {
2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278 if test "$cross_compiling" = yes; then
2279 # Depending upon the size, compute the lo and hi bounds.
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2282 $4
2283 int
2284 main ()
2285 {
2286 static int test_array [1 - 2 * !(($2) >= 0)];
2423 fprintf (f, "%lu", i);
2424 }
2425 /* Do not output a trailing newline, as this causes \r\n confusion
2426 on some platforms. */
2427 return ferror (f) || fclose (f) != 0;
2428
2429 ;
2430 return 0;
2431 }
2432 _ACEOF
2433 if ac_fn_cxx_try_run "$LINENO"; then :
2434 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2435 else
2436 ac_retval=1
2437 fi
2438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2439 conftest.$ac_objext conftest.beam conftest.$ac_ext
2440 rm -f conftest.val
2441
2442 fi
2443 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2444 as_fn_set_status $ac_retval
2445
2446 } # ac_fn_cxx_compute_int
2447
2448 # ac_fn_cxx_try_link LINENO
2449 # -------------------------
2450 # Try to link conftest.$ac_ext, and return whether this succeeded.
2451 ac_fn_cxx_try_link ()
2452 {
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 rm -f conftest.$ac_objext conftest$ac_exeext
2455 if { { ac_try="$ac_link"
2456 case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459 esac
2460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2461 $as_echo "$ac_try_echo"; } >&5
2462 (eval "$ac_link") 2>conftest.err
2463 ac_status=$?
2469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2470 test $ac_status = 0; } && {
2471 test -z "$ac_cxx_werror_flag" ||
2472 test ! -s conftest.err
2473 } && test -s conftest$ac_exeext && {
2474 test "$cross_compiling" = yes ||
2475 $as_test_x conftest$ac_exeext
2476 }; then :
2477 ac_retval=0
2478 else
2479 $as_echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2481
2482 ac_retval=1
2483 fi
2484 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2485 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2486 # interfere with the next link command; also delete a directory that is
2487 # left behind by Apple's compiler. We do this before executing the actions.
2488 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2489 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2490 as_fn_set_status $ac_retval
2491
2492 } # ac_fn_cxx_try_link
2493
2494 # ac_fn_cxx_check_func LINENO FUNC VAR
2495 # ------------------------------------
2496 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2497 ac_fn_cxx_check_func ()
2498 {
2499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2501 $as_echo_n "checking for $2... " >&6; }
2502 if eval \${$3+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2506 /* end confdefs.h. */
2507 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2509 #define $2 innocuous_$2
2510
2511 /* System header to define __stub macros and hopefully few prototypes,
2512 which can conflict with char $2 (); below.
2513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2514 <limits.h> exists even on freestanding compilers. */
2515
2516 #ifdef __STDC__
2517 # include <limits.h>
2518 #else
2519 # include <assert.h>
2520 #endif
2521
2522 #undef $2
2537
2538 int
2539 main ()
2540 {
2541 return $2 ();
2542 ;
2543 return 0;
2544 }
2545 _ACEOF
2546 if ac_fn_cxx_try_link "$LINENO"; then :
2547 eval "$3=yes"
2548 else
2549 eval "$3=no"
2550 fi
2551 rm -f core conftest.err conftest.$ac_objext \
2552 conftest$ac_exeext conftest.$ac_ext
2553 fi
2554 eval ac_res=\$$3
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2558
2559 } # ac_fn_cxx_check_func
2560
2561 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2562 # -------------------------------------------------------
2563 # Tests whether HEADER exists and can be compiled using the include files in
2564 # INCLUDES, setting the cache variable VAR accordingly.
2565 ac_fn_c_check_header_compile ()
2566 {
2567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2569 $as_echo_n "checking for $2... " >&6; }
2570 if eval \${$3+:} false; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2575 $4
2576 #include <$2>
2577 _ACEOF
2578 if ac_fn_c_try_compile "$LINENO"; then :
2579 eval "$3=yes"
2580 else
2581 eval "$3=no"
2582 fi
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 fi
2585 eval ac_res=\$$3
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2587 $as_echo "$ac_res" >&6; }
2588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2589
2590 } # ac_fn_c_check_header_compile
2591 cat >config.log <<_ACEOF
2592 This file contains any messages produced by compilers while
2593 running configure, to aid debugging if configure makes a mistake.
2594
2595 It was created by OpenJDK $as_me jdk8, which was
2596 generated by GNU Autoconf 2.68. Invocation command line was
2597
2598 $ $0 $@
2599
2600 _ACEOF
2601 exec 5>>config.log
2602 {
2603 cat <<_ASUNAME
2604 ## --------- ##
2605 ## Platform. ##
2606 ## --------- ##
2607
2608 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2609 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2610 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2611 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2612 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2613
2614 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2615 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2616
2834 *) ac_site_file1=./$CONFIG_SITE;;
2835 esac
2836 elif test "x$prefix" != xNONE; then
2837 ac_site_file1=$prefix/share/config.site
2838 ac_site_file2=$prefix/etc/config.site
2839 else
2840 ac_site_file1=$ac_default_prefix/share/config.site
2841 ac_site_file2=$ac_default_prefix/etc/config.site
2842 fi
2843 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2844 do
2845 test "x$ac_site_file" = xNONE && continue
2846 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2848 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2849 sed 's/^/| /' "$ac_site_file" >&5
2850 . "$ac_site_file" \
2851 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2853 as_fn_error $? "failed to load site script $ac_site_file
2854 See \`config.log' for more details" "$LINENO" 5; }
2855 fi
2856 done
2857
2858 if test -r "$cache_file"; then
2859 # Some versions of bash will fail to source /dev/null (special files
2860 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2861 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2863 $as_echo "$as_me: loading cache $cache_file" >&6;}
2864 case $cache_file in
2865 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2866 *) . "./$cache_file";;
2867 esac
2868 fi
2869 else
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2871 $as_echo "$as_me: creating cache $cache_file" >&6;}
2872 >$cache_file
2873 fi
2874
3619 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
3620 # OPENJDK_BUILD_OS, etc.
3621
3622
3623 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
3624 # accordingly. Must be done after setting up build and target system, but before
3625 # doing anything else with these values.
3626
3627
3628 # Setup the legacy variables, for controlling the old makefiles.
3629 #
3630
3631
3632
3633
3634 #%%% Build and target systems %%%
3635
3636
3637
3638
3639 # Check that the compiler supports an argument
3640 # $1: the compiler argumen to check
3641 # $2: action-if-true
3642 # $3: action-if-false
3643
3644
3645 # Check that the compiler supports -mX flags
3646 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does
3647
3648
3649 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
3650 # Add -mX to various FLAGS variables.
3651
3652
3653
3654
3655
3656
3657 #
3658 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3659 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3660 #
3661 # This code is free software; you can redistribute it and/or modify it
3662 # under the terms of the GNU General Public License version 2 only, as
3663 # published by the Free Software Foundation. Oracle designates this
3664 # particular file as subject to the "Classpath" exception as provided
3665 # by Oracle in the LICENSE file that accompanied this code.
3666 #
3667 # This code is distributed in the hope that it will be useful, but WITHOUT
3668 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3766
3767 # Check if the VS env variables were setup prior to running configure.
3768 # If not, then find vcvarsall.bat and run it automatically, and integrate
3769 # the set env variables into the spec file.
3770
3771
3772
3773 # Setup the DXSDK paths
3774
3775
3776
3777
3778
3779
3780 # This line needs to be here, verbatim, after all includes and the dummy hook
3781 # definitions. It is replaced with custom functionality when building
3782 # custom sources.
3783 #CUSTOM_AUTOCONF_INCLUDE
3784
3785 # Do not change or remove the following line, it is needed for consistency checks:
3786 DATE_WHEN_GENERATED=1366163151
3787
3788 ###############################################################################
3789 #
3790 # Initialization / Boot-strapping
3791 #
3792 # The bootstrapping process needs to solve the "chicken or the egg" problem,
3793 # thus it jumps back and forth, each time gaining something needed later on.
3794 #
3795 ###############################################################################
3796
3797 # Basic initialization that must happen first of all
3798
3799 # Save the original command line. This is passed to us by the wrapper configure script.
3800
3801 DATE_WHEN_CONFIGURED=`LANG=C date`
3802
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
3804 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
3806 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
3807
3808
3809
3810 # Start with tools that do not need have cross compilation support
3811 # and can be expected to be found in the default PATH. These tools are
3812 # used by configure. Nor are these tools expected to be found in the
3813 # devkit from the builddeps server either, since they are
3814 # needed to download the devkit.
3815
3816 # First are all the simple required tools.
3817
3818 for ac_prog in basename
3819 do
3820 # Extract the first word of "$ac_prog", so it can be a program name with args.
3821 set dummy $ac_prog; ac_word=$2
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3823 $as_echo_n "checking for $ac_word... " >&6; }
3824 if ${ac_cv_path_BASENAME+:} false; then :
3825 $as_echo_n "(cached) " >&6
3826 else
3827 case $BASENAME in
3828 [\\/]* | ?:[\\/]*)
3829 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
3830 ;;
3831 *)
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3839 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
3840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3842 fi
3843 done
3844 done
3863
3864 if test "x$BASENAME" = x; then
3865 if test "xbasename" = x; then
3866 PROG_NAME=basename
3867 else
3868 PROG_NAME=basename
3869 fi
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3871 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3872 as_fn_error $? "Cannot continue" "$LINENO" 5
3873 fi
3874
3875
3876
3877 for ac_prog in bash
3878 do
3879 # Extract the first word of "$ac_prog", so it can be a program name with args.
3880 set dummy $ac_prog; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_path_BASH+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 case $BASH in
3887 [\\/]* | ?:[\\/]*)
3888 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3889 ;;
3890 *)
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3901 fi
3902 done
3903 done
3922
3923 if test "x$BASH" = x; then
3924 if test "xbash" = x; then
3925 PROG_NAME=bash
3926 else
3927 PROG_NAME=bash
3928 fi
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3930 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3931 as_fn_error $? "Cannot continue" "$LINENO" 5
3932 fi
3933
3934
3935
3936 for ac_prog in cat
3937 do
3938 # Extract the first word of "$ac_prog", so it can be a program name with args.
3939 set dummy $ac_prog; ac_word=$2
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941 $as_echo_n "checking for $ac_word... " >&6; }
3942 if ${ac_cv_path_CAT+:} false; then :
3943 $as_echo_n "(cached) " >&6
3944 else
3945 case $CAT in
3946 [\\/]* | ?:[\\/]*)
3947 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3948 ;;
3949 *)
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3952 do
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3957 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 break 2
3960 fi
3961 done
3962 done
3981
3982 if test "x$CAT" = x; then
3983 if test "xcat" = x; then
3984 PROG_NAME=cat
3985 else
3986 PROG_NAME=cat
3987 fi
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3989 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3990 as_fn_error $? "Cannot continue" "$LINENO" 5
3991 fi
3992
3993
3994
3995 for ac_prog in chmod
3996 do
3997 # Extract the first word of "$ac_prog", so it can be a program name with args.
3998 set dummy $ac_prog; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if ${ac_cv_path_CHMOD+:} false; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 case $CHMOD in
4005 [\\/]* | ?:[\\/]*)
4006 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4007 ;;
4008 *)
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4016 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4019 fi
4020 done
4021 done
4040
4041 if test "x$CHMOD" = x; then
4042 if test "xchmod" = x; then
4043 PROG_NAME=chmod
4044 else
4045 PROG_NAME=chmod
4046 fi
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4048 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4049 as_fn_error $? "Cannot continue" "$LINENO" 5
4050 fi
4051
4052
4053
4054 for ac_prog in cmp
4055 do
4056 # Extract the first word of "$ac_prog", so it can be a program name with args.
4057 set dummy $ac_prog; ac_word=$2
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059 $as_echo_n "checking for $ac_word... " >&6; }
4060 if ${ac_cv_path_CMP+:} false; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 case $CMP in
4064 [\\/]* | ?:[\\/]*)
4065 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4066 ;;
4067 *)
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4070 do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4078 fi
4079 done
4080 done
4099
4100 if test "x$CMP" = x; then
4101 if test "xcmp" = x; then
4102 PROG_NAME=cmp
4103 else
4104 PROG_NAME=cmp
4105 fi
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4107 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4108 as_fn_error $? "Cannot continue" "$LINENO" 5
4109 fi
4110
4111
4112
4113 for ac_prog in comm
4114 do
4115 # Extract the first word of "$ac_prog", so it can be a program name with args.
4116 set dummy $ac_prog; ac_word=$2
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if ${ac_cv_path_COMM+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 case $COMM in
4123 [\\/]* | ?:[\\/]*)
4124 ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
4125 ;;
4126 *)
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4137 fi
4138 done
4139 done
4158
4159 if test "x$COMM" = x; then
4160 if test "xcomm" = x; then
4161 PROG_NAME=comm
4162 else
4163 PROG_NAME=comm
4164 fi
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4166 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4167 as_fn_error $? "Cannot continue" "$LINENO" 5
4168 fi
4169
4170
4171
4172 for ac_prog in cp
4173 do
4174 # Extract the first word of "$ac_prog", so it can be a program name with args.
4175 set dummy $ac_prog; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if ${ac_cv_path_CP+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 case $CP in
4182 [\\/]* | ?:[\\/]*)
4183 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4184 ;;
4185 *)
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4193 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 break 2
4196 fi
4197 done
4198 done
4217
4218 if test "x$CP" = x; then
4219 if test "xcp" = x; then
4220 PROG_NAME=cp
4221 else
4222 PROG_NAME=cp
4223 fi
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4225 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4226 as_fn_error $? "Cannot continue" "$LINENO" 5
4227 fi
4228
4229
4230
4231 for ac_prog in cpio
4232 do
4233 # Extract the first word of "$ac_prog", so it can be a program name with args.
4234 set dummy $ac_prog; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_path_CPIO+:} false; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 case $CPIO in
4241 [\\/]* | ?:[\\/]*)
4242 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
4243 ;;
4244 *)
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4247 do
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4252 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
4253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 break 2
4255 fi
4256 done
4257 done
4276
4277 if test "x$CPIO" = x; then
4278 if test "xcpio" = x; then
4279 PROG_NAME=cpio
4280 else
4281 PROG_NAME=cpio
4282 fi
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4284 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4285 as_fn_error $? "Cannot continue" "$LINENO" 5
4286 fi
4287
4288
4289
4290 for ac_prog in cut
4291 do
4292 # Extract the first word of "$ac_prog", so it can be a program name with args.
4293 set dummy $ac_prog; ac_word=$2
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295 $as_echo_n "checking for $ac_word... " >&6; }
4296 if ${ac_cv_path_CUT+:} false; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 case $CUT in
4300 [\\/]* | ?:[\\/]*)
4301 ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
4302 ;;
4303 *)
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4311 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315 done
4316 done
4335
4336 if test "x$CUT" = x; then
4337 if test "xcut" = x; then
4338 PROG_NAME=cut
4339 else
4340 PROG_NAME=cut
4341 fi
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4343 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4344 as_fn_error $? "Cannot continue" "$LINENO" 5
4345 fi
4346
4347
4348
4349 for ac_prog in date
4350 do
4351 # Extract the first word of "$ac_prog", so it can be a program name with args.
4352 set dummy $ac_prog; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if ${ac_cv_path_DATE+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 case $DATE in
4359 [\\/]* | ?:[\\/]*)
4360 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4361 ;;
4362 *)
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4373 fi
4374 done
4375 done
4394
4395 if test "x$DATE" = x; then
4396 if test "xdate" = x; then
4397 PROG_NAME=date
4398 else
4399 PROG_NAME=date
4400 fi
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4402 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4403 as_fn_error $? "Cannot continue" "$LINENO" 5
4404 fi
4405
4406
4407
4408 for ac_prog in gdiff diff
4409 do
4410 # Extract the first word of "$ac_prog", so it can be a program name with args.
4411 set dummy $ac_prog; ac_word=$2
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4413 $as_echo_n "checking for $ac_word... " >&6; }
4414 if ${ac_cv_path_DIFF+:} false; then :
4415 $as_echo_n "(cached) " >&6
4416 else
4417 case $DIFF in
4418 [\\/]* | ?:[\\/]*)
4419 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
4420 ;;
4421 *)
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4424 do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4432 fi
4433 done
4434 done
4453
4454 if test "x$DIFF" = x; then
4455 if test "xgdiff diff" = x; then
4456 PROG_NAME=diff
4457 else
4458 PROG_NAME=gdiff diff
4459 fi
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4461 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4462 as_fn_error $? "Cannot continue" "$LINENO" 5
4463 fi
4464
4465
4466
4467 for ac_prog in dirname
4468 do
4469 # Extract the first word of "$ac_prog", so it can be a program name with args.
4470 set dummy $ac_prog; ac_word=$2
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4472 $as_echo_n "checking for $ac_word... " >&6; }
4473 if ${ac_cv_path_DIRNAME+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 case $DIRNAME in
4477 [\\/]* | ?:[\\/]*)
4478 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4479 ;;
4480 *)
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4491 fi
4492 done
4493 done
4512
4513 if test "x$DIRNAME" = x; then
4514 if test "xdirname" = x; then
4515 PROG_NAME=dirname
4516 else
4517 PROG_NAME=dirname
4518 fi
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4520 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4521 as_fn_error $? "Cannot continue" "$LINENO" 5
4522 fi
4523
4524
4525
4526 for ac_prog in echo
4527 do
4528 # Extract the first word of "$ac_prog", so it can be a program name with args.
4529 set dummy $ac_prog; ac_word=$2
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531 $as_echo_n "checking for $ac_word... " >&6; }
4532 if ${ac_cv_path_ECHO+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 case $ECHO in
4536 [\\/]* | ?:[\\/]*)
4537 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4538 ;;
4539 *)
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4542 do
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 break 2
4550 fi
4551 done
4552 done
4571
4572 if test "x$ECHO" = x; then
4573 if test "xecho" = x; then
4574 PROG_NAME=echo
4575 else
4576 PROG_NAME=echo
4577 fi
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4579 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4580 as_fn_error $? "Cannot continue" "$LINENO" 5
4581 fi
4582
4583
4584
4585 for ac_prog in expr
4586 do
4587 # Extract the first word of "$ac_prog", so it can be a program name with args.
4588 set dummy $ac_prog; ac_word=$2
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590 $as_echo_n "checking for $ac_word... " >&6; }
4591 if ${ac_cv_path_EXPR+:} false; then :
4592 $as_echo_n "(cached) " >&6
4593 else
4594 case $EXPR in
4595 [\\/]* | ?:[\\/]*)
4596 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
4597 ;;
4598 *)
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4609 fi
4610 done
4611 done
4630
4631 if test "x$EXPR" = x; then
4632 if test "xexpr" = x; then
4633 PROG_NAME=expr
4634 else
4635 PROG_NAME=expr
4636 fi
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4638 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4639 as_fn_error $? "Cannot continue" "$LINENO" 5
4640 fi
4641
4642
4643
4644 for ac_prog in file
4645 do
4646 # Extract the first word of "$ac_prog", so it can be a program name with args.
4647 set dummy $ac_prog; ac_word=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if ${ac_cv_path_FILE+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 case $FILE in
4654 [\\/]* | ?:[\\/]*)
4655 ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
4656 ;;
4657 *)
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4668 fi
4669 done
4670 done
4689
4690 if test "x$FILE" = x; then
4691 if test "xfile" = x; then
4692 PROG_NAME=file
4693 else
4694 PROG_NAME=file
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4697 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4698 as_fn_error $? "Cannot continue" "$LINENO" 5
4699 fi
4700
4701
4702
4703 for ac_prog in find
4704 do
4705 # Extract the first word of "$ac_prog", so it can be a program name with args.
4706 set dummy $ac_prog; ac_word=$2
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708 $as_echo_n "checking for $ac_word... " >&6; }
4709 if ${ac_cv_path_FIND+:} false; then :
4710 $as_echo_n "(cached) " >&6
4711 else
4712 case $FIND in
4713 [\\/]* | ?:[\\/]*)
4714 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4715 ;;
4716 *)
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4727 fi
4728 done
4729 done
4748
4749 if test "x$FIND" = x; then
4750 if test "xfind" = x; then
4751 PROG_NAME=find
4752 else
4753 PROG_NAME=find
4754 fi
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4756 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4757 as_fn_error $? "Cannot continue" "$LINENO" 5
4758 fi
4759
4760
4761
4762 for ac_prog in head
4763 do
4764 # Extract the first word of "$ac_prog", so it can be a program name with args.
4765 set dummy $ac_prog; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_path_HEAD+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 case $HEAD in
4772 [\\/]* | ?:[\\/]*)
4773 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
4774 ;;
4775 *)
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4778 do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
4784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 break 2
4786 fi
4787 done
4788 done
4807
4808 if test "x$HEAD" = x; then
4809 if test "xhead" = x; then
4810 PROG_NAME=head
4811 else
4812 PROG_NAME=head
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4815 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4816 as_fn_error $? "Cannot continue" "$LINENO" 5
4817 fi
4818
4819
4820
4821 for ac_prog in ln
4822 do
4823 # Extract the first word of "$ac_prog", so it can be a program name with args.
4824 set dummy $ac_prog; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if ${ac_cv_path_LN+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 case $LN in
4831 [\\/]* | ?:[\\/]*)
4832 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4833 ;;
4834 *)
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4837 do
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4845 fi
4846 done
4847 done
4866
4867 if test "x$LN" = x; then
4868 if test "xln" = x; then
4869 PROG_NAME=ln
4870 else
4871 PROG_NAME=ln
4872 fi
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4874 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4875 as_fn_error $? "Cannot continue" "$LINENO" 5
4876 fi
4877
4878
4879
4880 for ac_prog in ls
4881 do
4882 # Extract the first word of "$ac_prog", so it can be a program name with args.
4883 set dummy $ac_prog; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if ${ac_cv_path_LS+:} false; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 case $LS in
4890 [\\/]* | ?:[\\/]*)
4891 ac_cv_path_LS="$LS" # Let the user override the test with a path.
4892 ;;
4893 *)
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4896 do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4904 fi
4905 done
4906 done
4925
4926 if test "x$LS" = x; then
4927 if test "xls" = x; then
4928 PROG_NAME=ls
4929 else
4930 PROG_NAME=ls
4931 fi
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4933 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4934 as_fn_error $? "Cannot continue" "$LINENO" 5
4935 fi
4936
4937
4938
4939 for ac_prog in mkdir
4940 do
4941 # Extract the first word of "$ac_prog", so it can be a program name with args.
4942 set dummy $ac_prog; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_path_MKDIR+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 case $MKDIR in
4949 [\\/]* | ?:[\\/]*)
4950 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4951 ;;
4952 *)
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4955 do
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 break 2
4963 fi
4964 done
4965 done
4984
4985 if test "x$MKDIR" = x; then
4986 if test "xmkdir" = x; then
4987 PROG_NAME=mkdir
4988 else
4989 PROG_NAME=mkdir
4990 fi
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4992 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4993 as_fn_error $? "Cannot continue" "$LINENO" 5
4994 fi
4995
4996
4997
4998 for ac_prog in mktemp
4999 do
5000 # Extract the first word of "$ac_prog", so it can be a program name with args.
5001 set dummy $ac_prog; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_path_MKTEMP+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 case $MKTEMP in
5008 [\\/]* | ?:[\\/]*)
5009 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5010 ;;
5011 *)
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5022 fi
5023 done
5024 done
5043
5044 if test "x$MKTEMP" = x; then
5045 if test "xmktemp" = x; then
5046 PROG_NAME=mktemp
5047 else
5048 PROG_NAME=mktemp
5049 fi
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5051 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5052 as_fn_error $? "Cannot continue" "$LINENO" 5
5053 fi
5054
5055
5056
5057 for ac_prog in mv
5058 do
5059 # Extract the first word of "$ac_prog", so it can be a program name with args.
5060 set dummy $ac_prog; ac_word=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if ${ac_cv_path_MV+:} false; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 case $MV in
5067 [\\/]* | ?:[\\/]*)
5068 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5069 ;;
5070 *)
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082 done
5083 done
5102
5103 if test "x$MV" = x; then
5104 if test "xmv" = x; then
5105 PROG_NAME=mv
5106 else
5107 PROG_NAME=mv
5108 fi
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5110 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5111 as_fn_error $? "Cannot continue" "$LINENO" 5
5112 fi
5113
5114
5115
5116 for ac_prog in printf
5117 do
5118 # Extract the first word of "$ac_prog", so it can be a program name with args.
5119 set dummy $ac_prog; ac_word=$2
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 $as_echo_n "checking for $ac_word... " >&6; }
5122 if ${ac_cv_path_PRINTF+:} false; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 case $PRINTF in
5126 [\\/]* | ?:[\\/]*)
5127 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
5128 ;;
5129 *)
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5132 do
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5140 fi
5141 done
5142 done
5161
5162 if test "x$PRINTF" = x; then
5163 if test "xprintf" = x; then
5164 PROG_NAME=printf
5165 else
5166 PROG_NAME=printf
5167 fi
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5169 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5170 as_fn_error $? "Cannot continue" "$LINENO" 5
5171 fi
5172
5173
5174
5175 for ac_prog in pwd
5176 do
5177 # Extract the first word of "$ac_prog", so it can be a program name with args.
5178 set dummy $ac_prog; ac_word=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if ${ac_cv_path_THEPWDCMD+:} false; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 case $THEPWDCMD in
5185 [\\/]* | ?:[\\/]*)
5186 ac_cv_path_THEPWDCMD="$THEPWDCMD" # Let the user override the test with a path.
5187 ;;
5188 *)
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_path_THEPWDCMD="$as_dir/$ac_word$ac_exec_ext"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200 done
5201 done
5220
5221 if test "x$THEPWDCMD" = x; then
5222 if test "xpwd" = x; then
5223 PROG_NAME=thepwdcmd
5224 else
5225 PROG_NAME=pwd
5226 fi
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5228 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5229 as_fn_error $? "Cannot continue" "$LINENO" 5
5230 fi
5231
5232
5233
5234 for ac_prog in rm
5235 do
5236 # Extract the first word of "$ac_prog", so it can be a program name with args.
5237 set dummy $ac_prog; ac_word=$2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if ${ac_cv_path_RM+:} false; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 case $RM in
5244 [\\/]* | ?:[\\/]*)
5245 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5246 ;;
5247 *)
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
5259 done
5260 done
5279
5280 if test "x$RM" = x; then
5281 if test "xrm" = x; then
5282 PROG_NAME=rm
5283 else
5284 PROG_NAME=rm
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5287 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5288 as_fn_error $? "Cannot continue" "$LINENO" 5
5289 fi
5290
5291
5292
5293 for ac_prog in sh
5294 do
5295 # Extract the first word of "$ac_prog", so it can be a program name with args.
5296 set dummy $ac_prog; ac_word=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if ${ac_cv_path_SH+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 case $SH in
5303 [\\/]* | ?:[\\/]*)
5304 ac_cv_path_SH="$SH" # Let the user override the test with a path.
5305 ;;
5306 *)
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5309 do
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5317 fi
5318 done
5319 done
5338
5339 if test "x$SH" = x; then
5340 if test "xsh" = x; then
5341 PROG_NAME=sh
5342 else
5343 PROG_NAME=sh
5344 fi
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5346 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5347 as_fn_error $? "Cannot continue" "$LINENO" 5
5348 fi
5349
5350
5351
5352 for ac_prog in sort
5353 do
5354 # Extract the first word of "$ac_prog", so it can be a program name with args.
5355 set dummy $ac_prog; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if ${ac_cv_path_SORT+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 case $SORT in
5362 [\\/]* | ?:[\\/]*)
5363 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
5364 ;;
5365 *)
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5376 fi
5377 done
5378 done
5397
5398 if test "x$SORT" = x; then
5399 if test "xsort" = x; then
5400 PROG_NAME=sort
5401 else
5402 PROG_NAME=sort
5403 fi
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5405 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5406 as_fn_error $? "Cannot continue" "$LINENO" 5
5407 fi
5408
5409
5410
5411 for ac_prog in tail
5412 do
5413 # Extract the first word of "$ac_prog", so it can be a program name with args.
5414 set dummy $ac_prog; ac_word=$2
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if ${ac_cv_path_TAIL+:} false; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 case $TAIL in
5421 [\\/]* | ?:[\\/]*)
5422 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
5423 ;;
5424 *)
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5427 do
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5432 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5435 fi
5436 done
5437 done
5456
5457 if test "x$TAIL" = x; then
5458 if test "xtail" = x; then
5459 PROG_NAME=tail
5460 else
5461 PROG_NAME=tail
5462 fi
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5464 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5465 as_fn_error $? "Cannot continue" "$LINENO" 5
5466 fi
5467
5468
5469
5470 for ac_prog in tar
5471 do
5472 # Extract the first word of "$ac_prog", so it can be a program name with args.
5473 set dummy $ac_prog; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_path_TAR+:} false; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 case $TAR in
5480 [\\/]* | ?:[\\/]*)
5481 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5482 ;;
5483 *)
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5494 fi
5495 done
5496 done
5515
5516 if test "x$TAR" = x; then
5517 if test "xtar" = x; then
5518 PROG_NAME=tar
5519 else
5520 PROG_NAME=tar
5521 fi
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5523 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5524 as_fn_error $? "Cannot continue" "$LINENO" 5
5525 fi
5526
5527
5528
5529 for ac_prog in tee
5530 do
5531 # Extract the first word of "$ac_prog", so it can be a program name with args.
5532 set dummy $ac_prog; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_path_TEE+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 case $TEE in
5539 [\\/]* | ?:[\\/]*)
5540 ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
5541 ;;
5542 *)
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5553 fi
5554 done
5555 done
5574
5575 if test "x$TEE" = x; then
5576 if test "xtee" = x; then
5577 PROG_NAME=tee
5578 else
5579 PROG_NAME=tee
5580 fi
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5582 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5583 as_fn_error $? "Cannot continue" "$LINENO" 5
5584 fi
5585
5586
5587
5588 for ac_prog in touch
5589 do
5590 # Extract the first word of "$ac_prog", so it can be a program name with args.
5591 set dummy $ac_prog; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if ${ac_cv_path_TOUCH+:} false; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 case $TOUCH in
5598 [\\/]* | ?:[\\/]*)
5599 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5600 ;;
5601 *)
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5609 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5612 fi
5613 done
5614 done
5633
5634 if test "x$TOUCH" = x; then
5635 if test "xtouch" = x; then
5636 PROG_NAME=touch
5637 else
5638 PROG_NAME=touch
5639 fi
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5641 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5642 as_fn_error $? "Cannot continue" "$LINENO" 5
5643 fi
5644
5645
5646
5647 for ac_prog in tr
5648 do
5649 # Extract the first word of "$ac_prog", so it can be a program name with args.
5650 set dummy $ac_prog; ac_word=$2
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652 $as_echo_n "checking for $ac_word... " >&6; }
5653 if ${ac_cv_path_TR+:} false; then :
5654 $as_echo_n "(cached) " >&6
5655 else
5656 case $TR in
5657 [\\/]* | ?:[\\/]*)
5658 ac_cv_path_TR="$TR" # Let the user override the test with a path.
5659 ;;
5660 *)
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5663 do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5668 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5671 fi
5672 done
5673 done
5692
5693 if test "x$TR" = x; then
5694 if test "xtr" = x; then
5695 PROG_NAME=tr
5696 else
5697 PROG_NAME=tr
5698 fi
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5700 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5701 as_fn_error $? "Cannot continue" "$LINENO" 5
5702 fi
5703
5704
5705
5706 for ac_prog in uname
5707 do
5708 # Extract the first word of "$ac_prog", so it can be a program name with args.
5709 set dummy $ac_prog; ac_word=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if ${ac_cv_path_UNAME+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 case $UNAME in
5716 [\\/]* | ?:[\\/]*)
5717 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
5718 ;;
5719 *)
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH
5722 do
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5727 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5730 fi
5731 done
5732 done
5751
5752 if test "x$UNAME" = x; then
5753 if test "xuname" = x; then
5754 PROG_NAME=uname
5755 else
5756 PROG_NAME=uname
5757 fi
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5759 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5760 as_fn_error $? "Cannot continue" "$LINENO" 5
5761 fi
5762
5763
5764
5765 for ac_prog in uniq
5766 do
5767 # Extract the first word of "$ac_prog", so it can be a program name with args.
5768 set dummy $ac_prog; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if ${ac_cv_path_UNIQ+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 case $UNIQ in
5775 [\\/]* | ?:[\\/]*)
5776 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
5777 ;;
5778 *)
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5781 do
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5786 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
5787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 break 2
5789 fi
5790 done
5791 done
5810
5811 if test "x$UNIQ" = x; then
5812 if test "xuniq" = x; then
5813 PROG_NAME=uniq
5814 else
5815 PROG_NAME=uniq
5816 fi
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5818 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5819 as_fn_error $? "Cannot continue" "$LINENO" 5
5820 fi
5821
5822
5823
5824 for ac_prog in wc
5825 do
5826 # Extract the first word of "$ac_prog", so it can be a program name with args.
5827 set dummy $ac_prog; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if ${ac_cv_path_WC+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 case $WC in
5834 [\\/]* | ?:[\\/]*)
5835 ac_cv_path_WC="$WC" # Let the user override the test with a path.
5836 ;;
5837 *)
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5840 do
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5845 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
5846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 break 2
5848 fi
5849 done
5850 done
5869
5870 if test "x$WC" = x; then
5871 if test "xwc" = x; then
5872 PROG_NAME=wc
5873 else
5874 PROG_NAME=wc
5875 fi
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5877 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5878 as_fn_error $? "Cannot continue" "$LINENO" 5
5879 fi
5880
5881
5882
5883 for ac_prog in which
5884 do
5885 # Extract the first word of "$ac_prog", so it can be a program name with args.
5886 set dummy $ac_prog; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if ${ac_cv_path_WHICH+:} false; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 case $WHICH in
5893 [\\/]* | ?:[\\/]*)
5894 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
5895 ;;
5896 *)
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5907 fi
5908 done
5909 done
5928
5929 if test "x$WHICH" = x; then
5930 if test "xwhich" = x; then
5931 PROG_NAME=which
5932 else
5933 PROG_NAME=which
5934 fi
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5936 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5937 as_fn_error $? "Cannot continue" "$LINENO" 5
5938 fi
5939
5940
5941
5942 for ac_prog in xargs
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 ${ac_cv_path_XARGS+:} false; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 case $XARGS in
5952 [\\/]* | ?:[\\/]*)
5953 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
5954 ;;
5955 *)
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5963 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
5964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 break 2
5966 fi
5967 done
5968 done
5988 if test "x$XARGS" = x; then
5989 if test "xxargs" = x; then
5990 PROG_NAME=xargs
5991 else
5992 PROG_NAME=xargs
5993 fi
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5995 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5996 as_fn_error $? "Cannot continue" "$LINENO" 5
5997 fi
5998
5999
6000
6001 # Then required tools that require some special treatment.
6002 for ac_prog in gawk mawk nawk awk
6003 do
6004 # Extract the first word of "$ac_prog", so it can be a program name with args.
6005 set dummy $ac_prog; ac_word=$2
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007 $as_echo_n "checking for $ac_word... " >&6; }
6008 if ${ac_cv_prog_AWK+:} false; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 if test -n "$AWK"; then
6012 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6013 else
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 for as_dir in $PATH
6016 do
6017 IFS=$as_save_IFS
6018 test -z "$as_dir" && as_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6021 ac_cv_prog_AWK="$ac_prog"
6022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 break 2
6024 fi
6025 done
6026 done
6027 IFS=$as_save_IFS
6028
6038 fi
6039
6040
6041 test -n "$AWK" && break
6042 done
6043
6044
6045 if test "x$AWK" = x; then
6046 if test "x" = x; then
6047 PROG_NAME=awk
6048 else
6049 PROG_NAME=
6050 fi
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6052 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6053 as_fn_error $? "Cannot continue" "$LINENO" 5
6054 fi
6055
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6057 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6058 if ${ac_cv_path_GREP+:} false; then :
6059 $as_echo_n "(cached) " >&6
6060 else
6061 if test -z "$GREP"; then
6062 ac_path_GREP_found=false
6063 # Loop through the user's path and test for each of PROGNAME-LIST
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6066 do
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
6069 for ac_prog in grep ggrep; do
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6072 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6073 # Check for GNU ac_path_GREP and select it if it is found.
6074 # Check for GNU $ac_path_GREP
6075 case `"$ac_path_GREP" --version 2>&1` in
6076 *GNU*)
6077 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6078 *)
6113 fi
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6115 $as_echo "$ac_cv_path_GREP" >&6; }
6116 GREP="$ac_cv_path_GREP"
6117
6118
6119
6120 if test "x$GREP" = x; then
6121 if test "x" = x; then
6122 PROG_NAME=grep
6123 else
6124 PROG_NAME=
6125 fi
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6127 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6128 as_fn_error $? "Cannot continue" "$LINENO" 5
6129 fi
6130
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6132 $as_echo_n "checking for egrep... " >&6; }
6133 if ${ac_cv_path_EGREP+:} false; then :
6134 $as_echo_n "(cached) " >&6
6135 else
6136 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6137 then ac_cv_path_EGREP="$GREP -E"
6138 else
6139 if test -z "$EGREP"; then
6140 ac_path_EGREP_found=false
6141 # Loop through the user's path and test for each of PROGNAME-LIST
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6144 do
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
6147 for ac_prog in egrep; do
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6150 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6151 # Check for GNU ac_path_EGREP and select it if it is found.
6152 # Check for GNU $ac_path_EGREP
6153 case `"$ac_path_EGREP" --version 2>&1` in
6192 fi
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6194 $as_echo "$ac_cv_path_EGREP" >&6; }
6195 EGREP="$ac_cv_path_EGREP"
6196
6197
6198
6199 if test "x$EGREP" = x; then
6200 if test "x" = x; then
6201 PROG_NAME=egrep
6202 else
6203 PROG_NAME=
6204 fi
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6206 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6207 as_fn_error $? "Cannot continue" "$LINENO" 5
6208 fi
6209
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6211 $as_echo_n "checking for fgrep... " >&6; }
6212 if ${ac_cv_path_FGREP+:} false; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6215 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6216 then ac_cv_path_FGREP="$GREP -F"
6217 else
6218 if test -z "$FGREP"; then
6219 ac_path_FGREP_found=false
6220 # Loop through the user's path and test for each of PROGNAME-LIST
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6223 do
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
6226 for ac_prog in fgrep; do
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6229 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6230 # Check for GNU ac_path_FGREP and select it if it is found.
6231 # Check for GNU $ac_path_FGREP
6232 case `"$ac_path_FGREP" --version 2>&1` in
6271 fi
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6273 $as_echo "$ac_cv_path_FGREP" >&6; }
6274 FGREP="$ac_cv_path_FGREP"
6275
6276
6277
6278 if test "x$FGREP" = x; then
6279 if test "x" = x; then
6280 PROG_NAME=fgrep
6281 else
6282 PROG_NAME=
6283 fi
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6285 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6286 as_fn_error $? "Cannot continue" "$LINENO" 5
6287 fi
6288
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6290 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6291 if ${ac_cv_path_SED+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6295 for ac_i in 1 2 3 4 5 6 7; do
6296 ac_script="$ac_script$as_nl$ac_script"
6297 done
6298 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6299 { ac_script=; unset ac_script;}
6300 if test -z "$SED"; then
6301 ac_path_SED_found=false
6302 # Loop through the user's path and test for each of PROGNAME-LIST
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6305 do
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_prog in sed gsed; do
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6311 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6357
6358
6359 if test "x$SED" = x; then
6360 if test "x" = x; then
6361 PROG_NAME=sed
6362 else
6363 PROG_NAME=
6364 fi
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6366 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6367 as_fn_error $? "Cannot continue" "$LINENO" 5
6368 fi
6369
6370
6371 for ac_prog in nawk gawk awk
6372 do
6373 # Extract the first word of "$ac_prog", so it can be a program name with args.
6374 set dummy $ac_prog; ac_word=$2
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if ${ac_cv_path_NAWK+:} false; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 case $NAWK in
6381 [\\/]* | ?:[\\/]*)
6382 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
6383 ;;
6384 *)
6385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 for as_dir in $PATH
6387 do
6388 IFS=$as_save_IFS
6389 test -z "$as_dir" && as_dir=.
6390 for ac_exec_ext in '' $ac_executable_extensions; do
6391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6392 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
6393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 break 2
6395 fi
6396 done
6397 done
6417 if test "x$NAWK" = x; then
6418 if test "x" = x; then
6419 PROG_NAME=nawk
6420 else
6421 PROG_NAME=
6422 fi
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6424 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6425 as_fn_error $? "Cannot continue" "$LINENO" 5
6426 fi
6427
6428
6429 # Always force rm.
6430 RM="$RM -f"
6431
6432 # These are not required on all platforms
6433 # Extract the first word of "cygpath", so it can be a program name with args.
6434 set dummy cygpath; ac_word=$2
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if ${ac_cv_path_CYGPATH+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 case $CYGPATH in
6441 [\\/]* | ?:[\\/]*)
6442 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
6443 ;;
6444 *)
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 for as_dir in $PATH
6447 do
6448 IFS=$as_save_IFS
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6452 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
6453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 break 2
6455 fi
6456 done
6457 done
6458 IFS=$as_save_IFS
6459
6460 ;;
6461 esac
6462 fi
6463 CYGPATH=$ac_cv_path_CYGPATH
6464 if test -n "$CYGPATH"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
6466 $as_echo "$CYGPATH" >&6; }
6467 else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472
6473 # Extract the first word of "readlink", so it can be a program name with args.
6474 set dummy readlink; ac_word=$2
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6476 $as_echo_n "checking for $ac_word... " >&6; }
6477 if ${ac_cv_path_READLINK+:} false; then :
6478 $as_echo_n "(cached) " >&6
6479 else
6480 case $READLINK in
6481 [\\/]* | ?:[\\/]*)
6482 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
6483 ;;
6484 *)
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6487 do
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
6493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2
6495 fi
6496 done
6497 done
6498 IFS=$as_save_IFS
6499
6500 ;;
6501 esac
6502 fi
6503 READLINK=$ac_cv_path_READLINK
6504 if test -n "$READLINK"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
6506 $as_echo "$READLINK" >&6; }
6507 else
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6510 fi
6511
6512
6513 # Extract the first word of "df", so it can be a program name with args.
6514 set dummy df; ac_word=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_path_DF+:} false; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 case $DF in
6521 [\\/]* | ?:[\\/]*)
6522 ac_cv_path_DF="$DF" # Let the user override the test with a path.
6523 ;;
6524 *)
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
6533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 break 2
6535 fi
6536 done
6537 done
6538 IFS=$as_save_IFS
6539
6540 ;;
6541 esac
6542 fi
6543 DF=$ac_cv_path_DF
6544 if test -n "$DF"; then
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
6546 $as_echo "$DF" >&6; }
6547 else
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549 $as_echo "no" >&6; }
6550 fi
6551
6552
6553 # Extract the first word of "SetFile", so it can be a program name with args.
6554 set dummy SetFile; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_path_SETFILE+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 case $SETFILE in
6561 [\\/]* | ?:[\\/]*)
6562 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
6563 ;;
6564 *)
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 break 2
6575 fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 ;;
6581 esac
6582 fi
6583 SETFILE=$ac_cv_path_SETFILE
6584 if test -n "$SETFILE"; then
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
6586 $as_echo "$SETFILE" >&6; }
6587 else
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589 $as_echo "no" >&6; }
6590 fi
6591
6592
6593
6594
6595 # Now we can determine OpenJDK build and target platforms. This is required to
6596 # have early on.
6597 # Make sure we can run config.sub.
6598 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6599 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6600
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6602 $as_echo_n "checking build system type... " >&6; }
6603 if ${ac_cv_build+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 ac_build_alias=$build_alias
6607 test "x$ac_build_alias" = x &&
6608 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6609 test "x$ac_build_alias" = x &&
6610 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6611 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6612 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6613
6614 fi
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6616 $as_echo "$ac_cv_build" >&6; }
6617 case $ac_cv_build in
6618 *-*-*) ;;
6619 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6620 esac
6621 build=$ac_cv_build
6622 ac_save_IFS=$IFS; IFS='-'
6623 set x $ac_cv_build
6624 shift
6625 build_cpu=$1
6626 build_vendor=$2
6627 shift; shift
6628 # Remember, the first character of IFS is used to create $*,
6629 # except with old shells:
6630 build_os=$*
6631 IFS=$ac_save_IFS
6632 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6633
6634
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6636 $as_echo_n "checking host system type... " >&6; }
6637 if ${ac_cv_host+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 if test "x$host_alias" = x; then
6641 ac_cv_host=$ac_cv_build
6642 else
6643 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6644 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6645 fi
6646
6647 fi
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6649 $as_echo "$ac_cv_host" >&6; }
6650 case $ac_cv_host in
6651 *-*-*) ;;
6652 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6653 esac
6654 host=$ac_cv_host
6655 ac_save_IFS=$IFS; IFS='-'
6656 set x $ac_cv_host
6657 shift
6658 host_cpu=$1
6659 host_vendor=$2
6660 shift; shift
6661 # Remember, the first character of IFS is used to create $*,
6662 # except with old shells:
6663 host_os=$*
6664 IFS=$ac_save_IFS
6665 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6666
6667
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6669 $as_echo_n "checking target system type... " >&6; }
6670 if ${ac_cv_target+:} false; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 if test "x$target_alias" = x; then
6674 ac_cv_target=$ac_cv_host
6675 else
6676 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6677 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6678 fi
6679
6680 fi
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6682 $as_echo "$ac_cv_target" >&6; }
6683 case $ac_cv_target in
6684 *-*-*) ;;
6685 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6686 esac
6687 target=$ac_cv_target
6688 ac_save_IFS=$IFS; IFS='-'
6689 set x $ac_cv_target
6690 shift
6691 target_cpu=$1
6692 target_vendor=$2
6693 shift; shift
6694 # Remember, the first character of IFS is used to create $*,
6695 # except with old shells:
6696 target_os=$*
6697 IFS=$ac_save_IFS
6698 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6699
6700
6701 # The aliases save the names the user supplied, while $host etc.
6702 # will get canonicalized.
6703 test -n "$target_alias" &&
6704 test "$program_prefix$program_suffix$program_transform_name" = \
6705 NONENONEs,x,x, &&
6706 program_prefix=${target_alias}-
6707 ac_ext=c
6708 ac_cpp='$CPP $CPPFLAGS'
6709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6712 if test -n "$ac_tool_prefix"; then
6713 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6714 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if ${ac_cv_prog_CC+:} false; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 if test -n "$CC"; then
6721 ac_cv_prog_CC="$CC" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6733 fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 CC=$ac_cv_prog_CC
6741 if test -n "$CC"; then
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6743 $as_echo "$CC" >&6; }
6744 else
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 $as_echo "no" >&6; }
6747 fi
6748
6749
6750 fi
6751 if test -z "$ac_cv_prog_CC"; then
6752 ac_ct_CC=$CC
6753 # Extract the first word of "gcc", so it can be a program name with args.
6754 set dummy gcc; ac_word=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 if test -n "$ac_ct_CC"; then
6761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6762 else
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6765 do
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_prog_ac_ct_CC="gcc"
6771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 break 2
6773 fi
6774 done
6775 done
6776 IFS=$as_save_IFS
6777
6778 fi
6779 fi
6780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6781 if test -n "$ac_ct_CC"; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6783 $as_echo "$ac_ct_CC" >&6; }
6784 else
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6787 fi
6788
6789 if test "x$ac_ct_CC" = x; then
6790 CC=""
6791 else
6792 case $cross_compiling:$ac_tool_warned in
6793 yes:)
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796 ac_tool_warned=yes ;;
6797 esac
6798 CC=$ac_ct_CC
6799 fi
6800 else
6801 CC="$ac_cv_prog_CC"
6802 fi
6803
6804 if test -z "$CC"; then
6805 if test -n "$ac_tool_prefix"; then
6806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6807 set dummy ${ac_tool_prefix}cc; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if ${ac_cv_prog_CC+:} false; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 if test -n "$CC"; then
6814 ac_cv_prog_CC="$CC" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_prog_CC="${ac_tool_prefix}cc"
6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6826 fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831 fi
6832 fi
6833 CC=$ac_cv_prog_CC
6834 if test -n "$CC"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6836 $as_echo "$CC" >&6; }
6837 else
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6840 fi
6841
6842
6843 fi
6844 fi
6845 if test -z "$CC"; then
6846 # Extract the first word of "cc", so it can be a program name with args.
6847 set dummy cc; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if ${ac_cv_prog_CC+:} false; then :
6851 $as_echo_n "(cached) " >&6
6852 else
6853 if test -n "$CC"; then
6854 ac_cv_prog_CC="$CC" # Let the user override the test.
6855 else
6856 ac_prog_rejected=no
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6865 ac_prog_rejected=yes
6866 continue
6867 fi
6868 ac_cv_prog_CC="cc"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6875
6876 if test $ac_prog_rejected = yes; then
6877 # We found a bogon in the path, so make sure we never use it.
6878 set dummy $ac_cv_prog_CC
6879 shift
6880 if test $# != 0; then
6881 # We chose a different compiler from the bogus one.
6882 # However, it has the same basename, so the bogon will be chosen
6883 # first if we set CC to just the basename; use the full file name.
6884 shift
6885 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6886 fi
6887 fi
6888 fi
6889 fi
6890 CC=$ac_cv_prog_CC
6891 if test -n "$CC"; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6893 $as_echo "$CC" >&6; }
6894 else
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6897 fi
6898
6899
6900 fi
6901 if test -z "$CC"; then
6902 if test -n "$ac_tool_prefix"; then
6903 for ac_prog in cl.exe
6904 do
6905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if ${ac_cv_prog_CC+:} false; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 if test -n "$CC"; then
6913 ac_cv_prog_CC="$CC" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6922 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 break 2
6925 fi
6926 done
6927 done
6928 IFS=$as_save_IFS
6929
6930 fi
6931 fi
6932 CC=$ac_cv_prog_CC
6933 if test -n "$CC"; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6935 $as_echo "$CC" >&6; }
6936 else
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6939 fi
6940
6941
6942 test -n "$CC" && break
6943 done
6944 fi
6945 if test -z "$CC"; then
6946 ac_ct_CC=$CC
6947 for ac_prog in cl.exe
6948 do
6949 # Extract the first word of "$ac_prog", so it can be a program name with args.
6950 set dummy $ac_prog; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 if test -n "$ac_ct_CC"; then
6957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6966 ac_cv_prog_ac_ct_CC="$ac_prog"
6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6969 fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6977 if test -n "$ac_ct_CC"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6979 $as_echo "$ac_ct_CC" >&6; }
6980 else
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984
6985
6986 test -n "$ac_ct_CC" && break
6987 done
6988
6989 if test "x$ac_ct_CC" = x; then
6990 CC=""
6991 else
6992 case $cross_compiling:$ac_tool_warned in
6993 yes:)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6997 esac
6998 CC=$ac_ct_CC
6999 fi
7000 fi
7001
7002 fi
7003
7004
7005 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7007 as_fn_error $? "no acceptable C compiler found in \$PATH
7008 See \`config.log' for more details" "$LINENO" 5; }
7009
7010 # Provide some information about the compiler.
7011 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7012 set X $ac_compile
7013 ac_compiler=$2
7014 for ac_option in --version -v -V -qversion; do
7015 { { ac_try="$ac_compiler $ac_option >&5"
7016 case "(($ac_try" in
7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7019 esac
7020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7021 $as_echo "$ac_try_echo"; } >&5
7022 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7023 ac_status=$?
7024 if test -s conftest.err; then
7025 sed '10a\
7026 ... rest of stderr output deleted ...
7027 10q' conftest.err >conftest.er1
7028 cat conftest.er1 >&5
7029 fi
7030 rm -f conftest.er1 conftest.err
7031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7032 test $ac_status = 0; }
7033 done
7034
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7037
7038 int
7039 main ()
7040 {
7041
7042 ;
7043 return 0;
7044 }
7045 _ACEOF
7046 ac_clean_files_save=$ac_clean_files
7047 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
7048 # Try to create an executable without -o first, disregard a.out.
7049 # It will help us diagnose broken compilers, and finding out an intuition
7050 # of exeext.
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
7052 $as_echo_n "checking whether the C compiler works... " >&6; }
7053 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
7054
7055 # The possible output files:
7056 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
7057
7058 ac_rmfiles=
7059 for ac_file in $ac_files
7060 do
7061 case $ac_file in
7062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7063 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
7064 esac
7065 done
7066 rm -f $ac_rmfiles
7067
7068 if { { ac_try="$ac_link_default"
7069 case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072 esac
7073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7074 $as_echo "$ac_try_echo"; } >&5
7075 (eval "$ac_link_default") 2>&5
7076 ac_status=$?
7077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7078 test $ac_status = 0; }; then :
7079 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
7080 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
7081 # in a Makefile. We should not override ac_cv_exeext if it was cached,
7082 # so that the user can short-circuit this test for compilers unknown to
7083 # Autoconf.
7084 for ac_file in $ac_files ''
7085 do
7086 test -f "$ac_file" || continue
7087 case $ac_file in
7088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
7089 ;;
7090 [ab].out )
7091 # We found the default executable, but exeext='' is most
7092 # certainly right.
7093 break;;
7094 *.* )
7095 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
7096 then :; else
7097 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
7098 fi
7099 # We set ac_cv_exeext here because the later test for it is not
7100 # safe: cross compilers may not add the suffix if given an `-o'
7101 # argument, so we may need to know it at that point already.
7102 # Even if this section looks crufty: it has the advantage of
7103 # actually working.
7104 break;;
7105 * )
7106 break;;
7107 esac
7108 done
7109 test "$ac_cv_exeext" = no && ac_cv_exeext=
7110
7111 else
7112 ac_file=''
7113 fi
7114 if test -z "$ac_file"; then :
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7117 $as_echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7119
7120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7122 as_fn_error 77 "C compiler cannot create executables
7123 See \`config.log' for more details" "$LINENO" 5; }
7124 else
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7126 $as_echo "yes" >&6; }
7127 fi
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
7129 $as_echo_n "checking for C compiler default output file name... " >&6; }
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
7131 $as_echo "$ac_file" >&6; }
7132 ac_exeext=$ac_cv_exeext
7133
7134 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
7135 ac_clean_files=$ac_clean_files_save
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
7137 $as_echo_n "checking for suffix of executables... " >&6; }
7138 if { { ac_try="$ac_link"
7139 case "(($ac_try" in
7140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141 *) ac_try_echo=$ac_try;;
7142 esac
7143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7144 $as_echo "$ac_try_echo"; } >&5
7145 (eval "$ac_link") 2>&5
7146 ac_status=$?
7147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148 test $ac_status = 0; }; then :
7149 # If both `conftest.exe' and `conftest' are `present' (well, observable)
7150 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
7151 # work properly (i.e., refer to `conftest.exe'), while it won't with
7152 # `rm'.
7153 for ac_file in conftest.exe conftest conftest.*; do
7154 test -f "$ac_file" || continue
7155 case $ac_file in
7156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7157 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
7158 break;;
7159 * ) break;;
7160 esac
7161 done
7162 else
7163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7165 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
7166 See \`config.log' for more details" "$LINENO" 5; }
7167 fi
7168 rm -f conftest conftest$ac_cv_exeext
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
7170 $as_echo "$ac_cv_exeext" >&6; }
7171
7172 rm -f conftest.$ac_ext
7173 EXEEXT=$ac_cv_exeext
7174 ac_exeext=$EXEEXT
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 #include <stdio.h>
7178 int
7179 main ()
7180 {
7181 FILE *f = fopen ("conftest.out", "w");
7182 return ferror (f) || fclose (f) != 0;
7183
7184 ;
7185 return 0;
7186 }
7187 _ACEOF
7188 ac_clean_files="$ac_clean_files conftest.out"
7189 # Check that the compiler produces executables we can run. If not, either
7190 # the compiler is broken, or we cross compile.
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
7192 $as_echo_n "checking whether we are cross compiling... " >&6; }
7193 if test "$cross_compiling" != yes; then
7194 { { ac_try="$ac_link"
7195 case "(($ac_try" in
7196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197 *) ac_try_echo=$ac_try;;
7198 esac
7199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7200 $as_echo "$ac_try_echo"; } >&5
7201 (eval "$ac_link") 2>&5
7202 ac_status=$?
7203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7204 test $ac_status = 0; }
7205 if { ac_try='./conftest$ac_cv_exeext'
7206 { { case "(($ac_try" in
7207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7208 *) ac_try_echo=$ac_try;;
7209 esac
7210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7211 $as_echo "$ac_try_echo"; } >&5
7212 (eval "$ac_try") 2>&5
7213 ac_status=$?
7214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7215 test $ac_status = 0; }; }; then
7216 cross_compiling=no
7217 else
7218 if test "$cross_compiling" = maybe; then
7219 cross_compiling=yes
7220 else
7221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7223 as_fn_error $? "cannot run C compiled programs.
7224 If you meant to cross compile, use \`--host'.
7225 See \`config.log' for more details" "$LINENO" 5; }
7226 fi
7227 fi
7228 fi
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
7230 $as_echo "$cross_compiling" >&6; }
7231
7232 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
7233 ac_clean_files=$ac_clean_files_save
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
7235 $as_echo_n "checking for suffix of object files... " >&6; }
7236 if ${ac_cv_objext+:} false; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241
7242 int
7243 main ()
7244 {
7245
7246 ;
7247 return 0;
7248 }
7249 _ACEOF
7250 rm -f conftest.o conftest.obj
7251 if { { ac_try="$ac_compile"
7252 case "(($ac_try" in
7253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254 *) ac_try_echo=$ac_try;;
7255 esac
7256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7257 $as_echo "$ac_try_echo"; } >&5
7258 (eval "$ac_compile") 2>&5
7259 ac_status=$?
7260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7261 test $ac_status = 0; }; then :
7262 for ac_file in conftest.o conftest.obj conftest.*; do
7263 test -f "$ac_file" || continue;
7264 case $ac_file in
7265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
7266 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
7267 break;;
7268 esac
7269 done
7270 else
7271 $as_echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7273
7274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7276 as_fn_error $? "cannot compute suffix of object files: cannot compile
7277 See \`config.log' for more details" "$LINENO" 5; }
7278 fi
7279 rm -f conftest.$ac_cv_objext conftest.$ac_ext
7280 fi
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
7282 $as_echo "$ac_cv_objext" >&6; }
7283 OBJEXT=$ac_cv_objext
7284 ac_objext=$OBJEXT
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7286 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7287 if ${ac_cv_c_compiler_gnu+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7292
7293 int
7294 main ()
7295 {
7296 #ifndef __GNUC__
7297 choke me
7298 #endif
7299
7300 ;
7301 return 0;
7302 }
7303 _ACEOF
7304 if ac_fn_c_try_compile "$LINENO"; then :
7305 ac_compiler_gnu=yes
7306 else
7307 ac_compiler_gnu=no
7308 fi
7309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7310 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7311
7312 fi
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7314 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7315 if test $ac_compiler_gnu = yes; then
7316 GCC=yes
7317 else
7318 GCC=
7319 fi
7320 ac_test_CFLAGS=${CFLAGS+set}
7321 ac_save_CFLAGS=$CFLAGS
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7323 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7324 if ${ac_cv_prog_cc_g+:} false; then :
7325 $as_echo_n "(cached) " >&6
7326 else
7327 ac_save_c_werror_flag=$ac_c_werror_flag
7328 ac_c_werror_flag=yes
7329 ac_cv_prog_cc_g=no
7330 CFLAGS="-g"
7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h. */
7333
7334 int
7335 main ()
7336 {
7337
7338 ;
7339 return 0;
7340 }
7341 _ACEOF
7342 if ac_fn_c_try_compile "$LINENO"; then :
7343 ac_cv_prog_cc_g=yes
7344 else
7345 CFLAGS=""
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7348
7349 int
7350 main ()
7351 {
7352
7353 ;
7354 return 0;
7355 }
7356 _ACEOF
7357 if ac_fn_c_try_compile "$LINENO"; then :
7358
7359 else
7360 ac_c_werror_flag=$ac_save_c_werror_flag
7361 CFLAGS="-g"
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7364
7365 int
7366 main ()
7367 {
7368
7369 ;
7370 return 0;
7371 }
7372 _ACEOF
7373 if ac_fn_c_try_compile "$LINENO"; then :
7374 ac_cv_prog_cc_g=yes
7375 fi
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 fi
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 fi
7380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381 ac_c_werror_flag=$ac_save_c_werror_flag
7382 fi
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7384 $as_echo "$ac_cv_prog_cc_g" >&6; }
7385 if test "$ac_test_CFLAGS" = set; then
7386 CFLAGS=$ac_save_CFLAGS
7387 elif test $ac_cv_prog_cc_g = yes; then
7388 if test "$GCC" = yes; then
7389 CFLAGS="-g -O2"
7390 else
7391 CFLAGS="-g"
7392 fi
7393 else
7394 if test "$GCC" = yes; then
7395 CFLAGS="-O2"
7396 else
7397 CFLAGS=
7398 fi
7399 fi
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7401 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7402 if ${ac_cv_prog_cc_c89+:} false; then :
7403 $as_echo_n "(cached) " >&6
7404 else
7405 ac_cv_prog_cc_c89=no
7406 ac_save_CC=$CC
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7409 #include <stdarg.h>
7410 #include <stdio.h>
7411 #include <sys/types.h>
7412 #include <sys/stat.h>
7413 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7414 struct buf { int x; };
7415 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7416 static char *e (p, i)
7417 char **p;
7418 int i;
7419 {
7420 return p[i];
7421 }
7422 static char *f (char * (*g) (char **, int), char **p, ...)
7423 {
7424 char *s;
7425 va_list v;
7426 va_start (v,p);
7427 s = g (p, va_arg (v,int));
7428 va_end (v);
7429 return s;
7430 }
7431
7432 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7433 function prototypes and stuff, but not '\xHH' hex character constants.
7434 These don't provoke an error unfortunately, instead are silently treated
7435 as 'x'. The following induces an error, until -std is added to get
7436 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7437 array size at least. It's necessary to write '\x00'==0 to get something
7438 that's true only with -std. */
7439 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7440
7441 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7442 inside strings and character constants. */
7443 #define FOO(x) 'x'
7444 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7445
7446 int test (int i, double x);
7447 struct s1 {int (*f) (int a);};
7448 struct s2 {int (*f) (double a);};
7449 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7450 int argc;
7451 char **argv;
7452 int
7453 main ()
7454 {
7455 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7456 ;
7457 return 0;
7458 }
7459 _ACEOF
7460 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7461 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7462 do
7463 CC="$ac_save_CC $ac_arg"
7464 if ac_fn_c_try_compile "$LINENO"; then :
7465 ac_cv_prog_cc_c89=$ac_arg
7466 fi
7467 rm -f core conftest.err conftest.$ac_objext
7468 test "x$ac_cv_prog_cc_c89" != "xno" && break
7469 done
7470 rm -f conftest.$ac_ext
7471 CC=$ac_save_CC
7472
7473 fi
7474 # AC_CACHE_VAL
7475 case "x$ac_cv_prog_cc_c89" in
7476 x)
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7478 $as_echo "none needed" >&6; } ;;
7479 xno)
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7481 $as_echo "unsupported" >&6; } ;;
7482 *)
7483 CC="$CC $ac_cv_prog_cc_c89"
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7485 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7486 esac
7487 if test "x$ac_cv_prog_cc_c89" != xno; then :
7488
7489 fi
7490
7491 ac_ext=c
7492 ac_cpp='$CPP $CPPFLAGS'
7493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7496
7497
7498
7499 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
7500 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the
7501 # product you're building. The target of this build is called "host". Since this is confusing to most people, we
7502 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
7503 # to use the configure naming style.
7504
7505
7506
7507
7508
7509 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
7510 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
7511 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
7512 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
7513 OPENJDK_TARGET_AUTOCONF_NAME="$host"
7514 OPENJDK_BUILD_AUTOCONF_NAME="$build"
7515
7516
7517
7902
7903
7904 if test "x$COMPILE_TYPE" = "xcross"; then
7905 # FIXME: ... or should this include reduced builds..?
7906 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
7907 else
7908 DEFINE_CROSS_COMPILE_ARCH=""
7909 fi
7910
7911
7912 # Some Zero and Shark settings.
7913 # ZERO_ARCHFLAG tells the compiler which mode to build for
7914 case "${OPENJDK_TARGET_CPU}" in
7915 s390)
7916 ZERO_ARCHFLAG="-m31"
7917 ;;
7918 *)
7919 ZERO_ARCHFLAG="-m${OPENJDK_TARGET_CPU_BITS}"
7920 esac
7921
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5
7923 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; }
7924 saved_cflags="$CFLAGS"
7925 CFLAGS="$ZERO_ARCHFLAG"
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7928
7929
7930 int main() { return 0; }
7931
7932
7933 _ACEOF
7934 if ac_fn_c_try_compile "$LINENO"; then :
7935 supports=yes
7936 else
7937 supports=no
7938 fi
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 CFLAGS="$saved_cflags"
7941 if "x$supports" = "xyes" ; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
7943 $as_echo "$supports" >&6; }
7944
7945 else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
7947 $as_echo "$supports" >&6; }
7948 ZERO_ARCHFLAG=""
7949 fi
7950
7951
7952
7953 # ZERO_ARCHDEF is used to enable architecture-specific code
7954 case "${OPENJDK_TARGET_CPU}" in
7955 ppc*) ZERO_ARCHDEF=PPC ;;
7956 s390*) ZERO_ARCHDEF=S390 ;;
7957 sparc*) ZERO_ARCHDEF=SPARC ;;
7958 x86_64*) ZERO_ARCHDEF=AMD64 ;;
7959 x86) ZERO_ARCHDEF=IA32 ;;
7960 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
7961 esac
7962
7963
7964
7965
7966
7967 # Continue setting up basic stuff. Most remaining code require fundamental tools.
7968
7969 # Locate the directory of this script.
7970 SCRIPT="$0"
7971
8984 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
8985
8986 # The generated Makefile knows where the spec.gmk is and where the source is.
8987 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
8988 # which will look for generated configurations
8989 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
8990
8991
8992 # Save the arguments given to us
8993 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
8994
8995
8996 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
8997
8998 for ac_prog in apt-get yum port pkgutil pkgadd
8999 do
9000 # Extract the first word of "$ac_prog", so it can be a program name with args.
9001 set dummy $ac_prog; ac_word=$2
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003 $as_echo_n "checking for $ac_word... " >&6; }
9004 if ${ac_cv_prog_PKGHANDLER+:} false; then :
9005 $as_echo_n "(cached) " >&6
9006 else
9007 if test -n "$PKGHANDLER"; then
9008 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
9009 else
9010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011 for as_dir in $PATH
9012 do
9013 IFS=$as_save_IFS
9014 test -z "$as_dir" && as_dir=.
9015 for ac_exec_ext in '' $ac_executable_extensions; do
9016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9017 ac_cv_prog_PKGHANDLER="$ac_prog"
9018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9019 break 2
9020 fi
9021 done
9022 done
9023 IFS=$as_save_IFS
9024
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
9350 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
9351 fi
9352
9353 fi
9354 fi
9355 fi
9356 fi
9357
9358 if test "x$FOUND_MAKE" = x; then
9359 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
9360 fi
9361 else
9362 # Try our hardest to locate a correct version of GNU make
9363 for ac_prog in gmake
9364 do
9365 # Extract the first word of "$ac_prog", so it can be a program name with args.
9366 set dummy $ac_prog; ac_word=$2
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9368 $as_echo_n "checking for $ac_word... " >&6; }
9369 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
9370 $as_echo_n "(cached) " >&6
9371 else
9372 case $CHECK_GMAKE in
9373 [\\/]* | ?:[\\/]*)
9374 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
9375 ;;
9376 *)
9377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378 for as_dir in $PATH
9379 do
9380 IFS=$as_save_IFS
9381 test -z "$as_dir" && as_dir=.
9382 for ac_exec_ext in '' $ac_executable_extensions; do
9383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9384 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
9385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9386 break 2
9387 fi
9388 done
9389 done
9703
9704 if test "x$complete" != "x$new_complete"; then
9705 FOUND_MAKE="$new_complete"
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
9707 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
9708 fi
9709
9710 fi
9711 fi
9712 fi
9713 fi
9714
9715
9716 if test "x$FOUND_MAKE" = x; then
9717 for ac_prog in make
9718 do
9719 # Extract the first word of "$ac_prog", so it can be a program name with args.
9720 set dummy $ac_prog; ac_word=$2
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722 $as_echo_n "checking for $ac_word... " >&6; }
9723 if ${ac_cv_path_CHECK_MAKE+:} false; then :
9724 $as_echo_n "(cached) " >&6
9725 else
9726 case $CHECK_MAKE in
9727 [\\/]* | ?:[\\/]*)
9728 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
9729 ;;
9730 *)
9731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 for as_dir in $PATH
9733 do
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
9737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9738 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
9739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 break 2
9741 fi
9742 done
9743 done
10062 fi
10063
10064 fi
10065 fi
10066 fi
10067 fi
10068
10069 fi
10070
10071 if test "x$FOUND_MAKE" = x; then
10072 if test "x$TOOLS_DIR" != x; then
10073 # We have a tools-dir, check that as well before giving up.
10074 OLD_PATH=$PATH
10075 PATH=$TOOLS_DIR:$PATH
10076 for ac_prog in gmake
10077 do
10078 # Extract the first word of "$ac_prog", so it can be a program name with args.
10079 set dummy $ac_prog; ac_word=$2
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081 $as_echo_n "checking for $ac_word... " >&6; }
10082 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
10083 $as_echo_n "(cached) " >&6
10084 else
10085 case $CHECK_TOOLSDIR_GMAKE in
10086 [\\/]* | ?:[\\/]*)
10087 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
10088 ;;
10089 *)
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $PATH
10092 do
10093 IFS=$as_save_IFS
10094 test -z "$as_dir" && as_dir=.
10095 for ac_exec_ext in '' $ac_executable_extensions; do
10096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10097 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
10098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10099 break 2
10100 fi
10101 done
10102 done
10415 fi
10416
10417 if test "x$complete" != "x$new_complete"; then
10418 FOUND_MAKE="$new_complete"
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
10420 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
10421 fi
10422
10423 fi
10424 fi
10425 fi
10426 fi
10427
10428 if test "x$FOUND_MAKE" = x; then
10429 for ac_prog in make
10430 do
10431 # Extract the first word of "$ac_prog", so it can be a program name with args.
10432 set dummy $ac_prog; ac_word=$2
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10434 $as_echo_n "checking for $ac_word... " >&6; }
10435 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
10436 $as_echo_n "(cached) " >&6
10437 else
10438 case $CHECK_TOOLSDIR_MAKE in
10439 [\\/]* | ?:[\\/]*)
10440 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
10441 ;;
10442 *)
10443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10444 for as_dir in $PATH
10445 do
10446 IFS=$as_save_IFS
10447 test -z "$as_dir" && as_dir=.
10448 for ac_exec_ext in '' $ac_executable_extensions; do
10449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10450 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
10451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10452 break 2
10453 fi
10454 done
10455 done
10811 FIND_DELETE="-exec rm \{\} \+"
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10814 else
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10816 $as_echo "yes" >&6; }
10817 fi
10818 rmdir $DELETEDIR
10819
10820
10821
10822 # These tools might not be installed by default,
10823 # need hint on how to install them.
10824
10825 for ac_prog in unzip
10826 do
10827 # Extract the first word of "$ac_prog", so it can be a program name with args.
10828 set dummy $ac_prog; ac_word=$2
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830 $as_echo_n "checking for $ac_word... " >&6; }
10831 if ${ac_cv_path_UNZIP+:} false; then :
10832 $as_echo_n "(cached) " >&6
10833 else
10834 case $UNZIP in
10835 [\\/]* | ?:[\\/]*)
10836 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
10837 ;;
10838 *)
10839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840 for as_dir in $PATH
10841 do
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10846 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10849 fi
10850 done
10851 done
10870
10871 if test "x$UNZIP" = x; then
10872 if test "xunzip" = x; then
10873 PROG_NAME=unzip
10874 else
10875 PROG_NAME=unzip
10876 fi
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10878 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10879 as_fn_error $? "Cannot continue" "$LINENO" 5
10880 fi
10881
10882
10883
10884 for ac_prog in zip
10885 do
10886 # Extract the first word of "$ac_prog", so it can be a program name with args.
10887 set dummy $ac_prog; ac_word=$2
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10889 $as_echo_n "checking for $ac_word... " >&6; }
10890 if ${ac_cv_path_ZIP+:} false; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 case $ZIP in
10894 [\\/]* | ?:[\\/]*)
10895 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
10896 ;;
10897 *)
10898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899 for as_dir in $PATH
10900 do
10901 IFS=$as_save_IFS
10902 test -z "$as_dir" && as_dir=.
10903 for ac_exec_ext in '' $ac_executable_extensions; do
10904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10905 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
10906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10907 break 2
10908 fi
10909 done
10910 done
10929
10930 if test "x$ZIP" = x; then
10931 if test "xzip" = x; then
10932 PROG_NAME=zip
10933 else
10934 PROG_NAME=zip
10935 fi
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10937 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10938 as_fn_error $? "Cannot continue" "$LINENO" 5
10939 fi
10940
10941
10942
10943 # Non-required basic tools
10944
10945 # Extract the first word of "ldd", so it can be a program name with args.
10946 set dummy ldd; ac_word=$2
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10948 $as_echo_n "checking for $ac_word... " >&6; }
10949 if ${ac_cv_path_LDD+:} false; then :
10950 $as_echo_n "(cached) " >&6
10951 else
10952 case $LDD in
10953 [\\/]* | ?:[\\/]*)
10954 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10955 ;;
10956 *)
10957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10958 for as_dir in $PATH
10959 do
10960 IFS=$as_save_IFS
10961 test -z "$as_dir" && as_dir=.
10962 for ac_exec_ext in '' $ac_executable_extensions; do
10963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10964 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10966 break 2
10967 fi
10968 done
10969 done
10975 LDD=$ac_cv_path_LDD
10976 if test -n "$LDD"; then
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
10978 $as_echo "$LDD" >&6; }
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; }
10982 fi
10983
10984
10985 if test "x$LDD" = "x"; then
10986 # List shared lib dependencies is used for
10987 # debug output and checking for forbidden dependencies.
10988 # We can build without it.
10989 LDD="true"
10990 fi
10991 # Extract the first word of "otool", so it can be a program name with args.
10992 set dummy otool; ac_word=$2
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994 $as_echo_n "checking for $ac_word... " >&6; }
10995 if ${ac_cv_path_OTOOL+:} false; then :
10996 $as_echo_n "(cached) " >&6
10997 else
10998 case $OTOOL in
10999 [\\/]* | ?:[\\/]*)
11000 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
11001 ;;
11002 *)
11003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004 for as_dir in $PATH
11005 do
11006 IFS=$as_save_IFS
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11010 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
11011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 break 2
11013 fi
11014 done
11015 done
11020 fi
11021 OTOOL=$ac_cv_path_OTOOL
11022 if test -n "$OTOOL"; then
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11024 $as_echo "$OTOOL" >&6; }
11025 else
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027 $as_echo "no" >&6; }
11028 fi
11029
11030
11031 if test "x$OTOOL" = "x"; then
11032 OTOOL="true"
11033 fi
11034 for ac_prog in readelf greadelf
11035 do
11036 # Extract the first word of "$ac_prog", so it can be a program name with args.
11037 set dummy $ac_prog; ac_word=$2
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11039 $as_echo_n "checking for $ac_word... " >&6; }
11040 if ${ac_cv_path_READELF+:} false; then :
11041 $as_echo_n "(cached) " >&6
11042 else
11043 case $READELF in
11044 [\\/]* | ?:[\\/]*)
11045 ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
11046 ;;
11047 *)
11048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049 for as_dir in $PATH
11050 do
11051 IFS=$as_save_IFS
11052 test -z "$as_dir" && as_dir=.
11053 for ac_exec_ext in '' $ac_executable_extensions; do
11054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11055 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
11056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11057 break 2
11058 fi
11059 done
11060 done
11063 ;;
11064 esac
11065 fi
11066 READELF=$ac_cv_path_READELF
11067 if test -n "$READELF"; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
11069 $as_echo "$READELF" >&6; }
11070 else
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; }
11073 fi
11074
11075
11076 test -n "$READELF" && break
11077 done
11078
11079 # Extract the first word of "hg", so it can be a program name with args.
11080 set dummy hg; ac_word=$2
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082 $as_echo_n "checking for $ac_word... " >&6; }
11083 if ${ac_cv_path_HG+:} false; then :
11084 $as_echo_n "(cached) " >&6
11085 else
11086 case $HG in
11087 [\\/]* | ?:[\\/]*)
11088 ac_cv_path_HG="$HG" # Let the user override the test with a path.
11089 ;;
11090 *)
11091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 for as_dir in $PATH
11093 do
11094 IFS=$as_save_IFS
11095 test -z "$as_dir" && as_dir=.
11096 for ac_exec_ext in '' $ac_executable_extensions; do
11097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11098 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
11099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11100 break 2
11101 fi
11102 done
11103 done
11104 IFS=$as_save_IFS
11105
11106 ;;
11107 esac
11108 fi
11109 HG=$ac_cv_path_HG
11110 if test -n "$HG"; then
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
11112 $as_echo "$HG" >&6; }
11113 else
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115 $as_echo "no" >&6; }
11116 fi
11117
11118
11119 # Extract the first word of "stat", so it can be a program name with args.
11120 set dummy stat; ac_word=$2
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122 $as_echo_n "checking for $ac_word... " >&6; }
11123 if ${ac_cv_path_STAT+:} false; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 case $STAT in
11127 [\\/]* | ?:[\\/]*)
11128 ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
11129 ;;
11130 *)
11131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132 for as_dir in $PATH
11133 do
11134 IFS=$as_save_IFS
11135 test -z "$as_dir" && as_dir=.
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11138 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
11139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11140 break 2
11141 fi
11142 done
11143 done
11144 IFS=$as_save_IFS
11145
11146 ;;
11147 esac
11148 fi
11149 STAT=$ac_cv_path_STAT
11150 if test -n "$STAT"; then
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
11152 $as_echo "$STAT" >&6; }
11153 else
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155 $as_echo "no" >&6; }
11156 fi
11157
11158
11159 # Extract the first word of "time", so it can be a program name with args.
11160 set dummy time; ac_word=$2
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11162 $as_echo_n "checking for $ac_word... " >&6; }
11163 if ${ac_cv_path_TIME+:} false; then :
11164 $as_echo_n "(cached) " >&6
11165 else
11166 case $TIME in
11167 [\\/]* | ?:[\\/]*)
11168 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
11169 ;;
11170 *)
11171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172 for as_dir in $PATH
11173 do
11174 IFS=$as_save_IFS
11175 test -z "$as_dir" && as_dir=.
11176 for ac_exec_ext in '' $ac_executable_extensions; do
11177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11178 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11180 break 2
11181 fi
11182 done
11183 done
11188 fi
11189 TIME=$ac_cv_path_TIME
11190 if test -n "$TIME"; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
11192 $as_echo "$TIME" >&6; }
11193 else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195 $as_echo "no" >&6; }
11196 fi
11197
11198
11199
11200 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
11201
11202 for ac_prog in comm
11203 do
11204 # Extract the first word of "$ac_prog", so it can be a program name with args.
11205 set dummy $ac_prog; ac_word=$2
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207 $as_echo_n "checking for $ac_word... " >&6; }
11208 if ${ac_cv_path_COMM+:} false; then :
11209 $as_echo_n "(cached) " >&6
11210 else
11211 case $COMM in
11212 [\\/]* | ?:[\\/]*)
11213 ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
11214 ;;
11215 *)
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11218 do
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11223 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
11224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 break 2
11226 fi
11227 done
11228 done
11250 PROG_NAME=comm
11251 else
11252 PROG_NAME=comm
11253 fi
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
11255 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
11256 as_fn_error $? "Cannot continue" "$LINENO" 5
11257 fi
11258
11259
11260 fi
11261
11262 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
11263
11264 for ac_prog in xattr
11265 do
11266 # Extract the first word of "$ac_prog", so it can be a program name with args.
11267 set dummy $ac_prog; ac_word=$2
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11269 $as_echo_n "checking for $ac_word... " >&6; }
11270 if ${ac_cv_path_XATTR+:} false; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 case $XATTR in
11274 [\\/]* | ?:[\\/]*)
11275 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
11276 ;;
11277 *)
11278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11279 for as_dir in $PATH
11280 do
11281 IFS=$as_save_IFS
11282 test -z "$as_dir" && as_dir=.
11283 for ac_exec_ext in '' $ac_executable_extensions; do
11284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11285 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
11286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11287 break 2
11288 fi
11289 done
11290 done
11314 PROG_NAME=xattr
11315 fi
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
11317 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
11318 as_fn_error $? "Cannot continue" "$LINENO" 5
11319 fi
11320
11321
11322 fi
11323
11324
11325 # Check if pkg-config is available.
11326
11327
11328 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11329 if test -n "$ac_tool_prefix"; then
11330 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11331 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11333 $as_echo_n "checking for $ac_word... " >&6; }
11334 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11335 $as_echo_n "(cached) " >&6
11336 else
11337 case $PKG_CONFIG in
11338 [\\/]* | ?:[\\/]*)
11339 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11340 ;;
11341 *)
11342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $PATH
11344 do
11345 IFS=$as_save_IFS
11346 test -z "$as_dir" && as_dir=.
11347 for ac_exec_ext in '' $ac_executable_extensions; do
11348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11349 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11351 break 2
11352 fi
11353 done
11354 done
11357 ;;
11358 esac
11359 fi
11360 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11361 if test -n "$PKG_CONFIG"; then
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11363 $as_echo "$PKG_CONFIG" >&6; }
11364 else
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366 $as_echo "no" >&6; }
11367 fi
11368
11369
11370 fi
11371 if test -z "$ac_cv_path_PKG_CONFIG"; then
11372 ac_pt_PKG_CONFIG=$PKG_CONFIG
11373 # Extract the first word of "pkg-config", so it can be a program name with args.
11374 set dummy pkg-config; ac_word=$2
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11376 $as_echo_n "checking for $ac_word... " >&6; }
11377 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11378 $as_echo_n "(cached) " >&6
11379 else
11380 case $ac_pt_PKG_CONFIG in
11381 [\\/]* | ?:[\\/]*)
11382 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11383 ;;
11384 *)
11385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11387 do
11388 IFS=$as_save_IFS
11389 test -z "$as_dir" && as_dir=.
11390 for ac_exec_ext in '' $ac_executable_extensions; do
11391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11392 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11394 break 2
11395 fi
11396 done
11397 done
11530 echo Build stays the same $rewritten_build
11531 else
11532 echo Rewriting build for builddeps into $rewritten_build
11533 fi
11534 eval rewritten_target=\${REWRITE_${target_var}}
11535 if test "x$rewritten_target" = x; then
11536 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
11537 echo Target stays the same $rewritten_target
11538 else
11539 echo Rewriting target for builddeps into $rewritten_target
11540 fi
11541 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
11542 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
11543 fi
11544 for ac_prog in 7z unzip
11545 do
11546 # Extract the first word of "$ac_prog", so it can be a program name with args.
11547 set dummy $ac_prog; ac_word=$2
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549 $as_echo_n "checking for $ac_word... " >&6; }
11550 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
11551 $as_echo_n "(cached) " >&6
11552 else
11553 if test -n "$BDEPS_UNZIP"; then
11554 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
11555 else
11556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557 for as_dir in $PATH
11558 do
11559 IFS=$as_save_IFS
11560 test -z "$as_dir" && as_dir=.
11561 for ac_exec_ext in '' $ac_executable_extensions; do
11562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11563 ac_cv_prog_BDEPS_UNZIP="$ac_prog"
11564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11565 break 2
11566 fi
11567 done
11568 done
11569 IFS=$as_save_IFS
11570
11576 $as_echo "$BDEPS_UNZIP" >&6; }
11577 else
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579 $as_echo "no" >&6; }
11580 fi
11581
11582
11583 test -n "$BDEPS_UNZIP" && break
11584 done
11585
11586 if test "x$BDEPS_UNZIP" = x7z; then
11587 BDEPS_UNZIP="7z x"
11588 fi
11589
11590 for ac_prog in wget lftp ftp
11591 do
11592 # Extract the first word of "$ac_prog", so it can be a program name with args.
11593 set dummy $ac_prog; ac_word=$2
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11595 $as_echo_n "checking for $ac_word... " >&6; }
11596 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
11597 $as_echo_n "(cached) " >&6
11598 else
11599 if test -n "$BDEPS_FTP"; then
11600 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
11601 else
11602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11603 for as_dir in $PATH
11604 do
11605 IFS=$as_save_IFS
11606 test -z "$as_dir" && as_dir=.
11607 for ac_exec_ext in '' $ac_executable_extensions; do
11608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11609 ac_cv_prog_BDEPS_FTP="$ac_prog"
11610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11611 break 2
11612 fi
11613 done
11614 done
11615 IFS=$as_save_IFS
11616
12849 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '`
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
12851 $as_echo "$BOOT_JDK_VERSION" >&6; }
12852 fi # end check jdk version
12853 fi # end check rt.jar
12854 fi # end check javac
12855 fi # end check java
12856 fi # end check boot jdk found
12857 fi
12858
12859
12860 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
12861
12862 if test "x$BOOT_JDK_FOUND" = xno; then
12863 # Now execute the test
12864
12865 # Extract the first word of "javac", so it can be a program name with args.
12866 set dummy javac; ac_word=$2
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12868 $as_echo_n "checking for $ac_word... " >&6; }
12869 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
12870 $as_echo_n "(cached) " >&6
12871 else
12872 case $JAVAC_CHECK in
12873 [\\/]* | ?:[\\/]*)
12874 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
12875 ;;
12876 *)
12877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12878 for as_dir in $PATH
12879 do
12880 IFS=$as_save_IFS
12881 test -z "$as_dir" && as_dir=.
12882 for ac_exec_ext in '' $ac_executable_extensions; do
12883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12884 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12886 break 2
12887 fi
12888 done
12889 done
12890 IFS=$as_save_IFS
12891
12892 ;;
12893 esac
12894 fi
12895 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
12896 if test -n "$JAVAC_CHECK"; then
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
12898 $as_echo "$JAVAC_CHECK" >&6; }
12899 else
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12901 $as_echo "no" >&6; }
12902 fi
12903
12904
12905 # Extract the first word of "java", so it can be a program name with args.
12906 set dummy java; ac_word=$2
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12908 $as_echo_n "checking for $ac_word... " >&6; }
12909 if ${ac_cv_path_JAVA_CHECK+:} false; then :
12910 $as_echo_n "(cached) " >&6
12911 else
12912 case $JAVA_CHECK in
12913 [\\/]* | ?:[\\/]*)
12914 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
12915 ;;
12916 *)
12917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12918 for as_dir in $PATH
12919 do
12920 IFS=$as_save_IFS
12921 test -z "$as_dir" && as_dir=.
12922 for ac_exec_ext in '' $ac_executable_extensions; do
12923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12924 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
12925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12926 break 2
12927 fi
12928 done
12929 done
16963 EXE_OUT_OPTION='-o$(SPACE)'
16964 # When linking, how to specify the to be created dynamically linkable library.
16965 LD_OUT_OPTION='-o$(SPACE)'
16966 # When archiving, how to specify the to be create static archive for object files.
16967 AR_OUT_OPTION='rcs$(SPACE)'
16968
16969
16970
16971
16972
16973 # Locate the actual tools
16974
16975 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16976
16977 # Store path to cygwin link.exe to help excluding it when searching for
16978 # VS linker. This must be done before changing the PATH when looking for VS.
16979 # Extract the first word of "link", so it can be a program name with args.
16980 set dummy link; ac_word=$2
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16982 $as_echo_n "checking for $ac_word... " >&6; }
16983 if ${ac_cv_path_CYGWIN_LINK+:} false; then :
16984 $as_echo_n "(cached) " >&6
16985 else
16986 case $CYGWIN_LINK in
16987 [\\/]* | ?:[\\/]*)
16988 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path.
16989 ;;
16990 *)
16991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16992 for as_dir in $PATH
16993 do
16994 IFS=$as_save_IFS
16995 test -z "$as_dir" && as_dir=.
16996 for ac_exec_ext in '' $ac_executable_extensions; do
16997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16998 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext"
16999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17000 break 2
17001 fi
17002 done
17003 done
18378 # For example the binary i686-sun-solaris2.10-gcc
18379 # will cross compile for i686-sun-solaris2.10
18380 # If neither of build and host is not set, then build=host and the
18381 # default compiler found in the path will be used.
18382 # Setting only --host, does not seem to be really supported.
18383 # Please set both --build and --host if you want to cross compile.
18384
18385 if test "x$COMPILE_TYPE" = "xcross"; then
18386 # Now we to find a C/C++ compiler that can build executables for the build
18387 # platform. We can't use the AC_PROG_CC macro, since it can only be used
18388 # once. Also, we need to do this before adding a tools dir to the path,
18389 # otherwise we might pick up cross-compilers which don't use standard naming.
18390 # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have
18391 # to wait until they are properly discovered.
18392 for ac_prog in cl cc gcc
18393 do
18394 # Extract the first word of "$ac_prog", so it can be a program name with args.
18395 set dummy $ac_prog; ac_word=$2
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18397 $as_echo_n "checking for $ac_word... " >&6; }
18398 if ${ac_cv_path_BUILD_CC+:} false; then :
18399 $as_echo_n "(cached) " >&6
18400 else
18401 case $BUILD_CC in
18402 [\\/]* | ?:[\\/]*)
18403 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
18404 ;;
18405 *)
18406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18407 for as_dir in $PATH
18408 do
18409 IFS=$as_save_IFS
18410 test -z "$as_dir" && as_dir=.
18411 for ac_exec_ext in '' $ac_executable_extensions; do
18412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18413 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
18414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18415 break 2
18416 fi
18417 done
18418 done
18689
18690 # Now join together the path and the arguments once again
18691 if test "x$arguments" != xEOL; then
18692 new_complete="$new_path ${arguments% *}"
18693 else
18694 new_complete="$new_path"
18695 fi
18696
18697 if test "x$complete" != "x$new_complete"; then
18698 BUILD_CC="$new_complete"
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5
18700 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;}
18701 fi
18702
18703 for ac_prog in cl CC g++
18704 do
18705 # Extract the first word of "$ac_prog", so it can be a program name with args.
18706 set dummy $ac_prog; ac_word=$2
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18708 $as_echo_n "checking for $ac_word... " >&6; }
18709 if ${ac_cv_path_BUILD_CXX+:} false; then :
18710 $as_echo_n "(cached) " >&6
18711 else
18712 case $BUILD_CXX in
18713 [\\/]* | ?:[\\/]*)
18714 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
18715 ;;
18716 *)
18717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18718 for as_dir in $PATH
18719 do
18720 IFS=$as_save_IFS
18721 test -z "$as_dir" && as_dir=.
18722 for ac_exec_ext in '' $ac_executable_extensions; do
18723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18724 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
18725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18726 break 2
18727 fi
18728 done
18729 done
18998 fi
18999 fi
19000
19001 # Now join together the path and the arguments once again
19002 if test "x$arguments" != xEOL; then
19003 new_complete="$new_path ${arguments% *}"
19004 else
19005 new_complete="$new_path"
19006 fi
19007
19008 if test "x$complete" != "x$new_complete"; then
19009 BUILD_CXX="$new_complete"
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5
19011 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;}
19012 fi
19013
19014 # Extract the first word of "ld", so it can be a program name with args.
19015 set dummy ld; ac_word=$2
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19017 $as_echo_n "checking for $ac_word... " >&6; }
19018 if ${ac_cv_path_BUILD_LD+:} false; then :
19019 $as_echo_n "(cached) " >&6
19020 else
19021 case $BUILD_LD in
19022 [\\/]* | ?:[\\/]*)
19023 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
19024 ;;
19025 *)
19026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19027 for as_dir in $PATH
19028 do
19029 IFS=$as_save_IFS
19030 test -z "$as_dir" && as_dir=.
19031 for ac_exec_ext in '' $ac_executable_extensions; do
19032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19033 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
19034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19035 break 2
19036 fi
19037 done
19038 done
19514 COMPILER_CHECK_LIST="cc gcc"
19515 else
19516 COMPILER_CHECK_LIST="gcc cc"
19517 fi
19518
19519
19520 COMPILER_NAME=C
19521
19522 CC=
19523 # If TOOLS_DIR is set, check for all compiler names in there first
19524 # before checking the rest of the PATH.
19525 if test -n "$TOOLS_DIR"; then
19526 PATH_save="$PATH"
19527 PATH="$TOOLS_DIR"
19528 for ac_prog in $COMPILER_CHECK_LIST
19529 do
19530 # Extract the first word of "$ac_prog", so it can be a program name with args.
19531 set dummy $ac_prog; ac_word=$2
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19533 $as_echo_n "checking for $ac_word... " >&6; }
19534 if ${ac_cv_path_TOOLS_DIR_CC+:} false; then :
19535 $as_echo_n "(cached) " >&6
19536 else
19537 case $TOOLS_DIR_CC in
19538 [\\/]* | ?:[\\/]*)
19539 ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path.
19540 ;;
19541 *)
19542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19543 for as_dir in $PATH
19544 do
19545 IFS=$as_save_IFS
19546 test -z "$as_dir" && as_dir=.
19547 for ac_exec_ext in '' $ac_executable_extensions; do
19548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19549 ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext"
19550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19551 break 2
19552 fi
19553 done
19554 done
19566 $as_echo "no" >&6; }
19567 fi
19568
19569
19570 test -n "$TOOLS_DIR_CC" && break
19571 done
19572
19573 CC=$TOOLS_DIR_CC
19574 PATH="$PATH_save"
19575 fi
19576
19577 # AC_PATH_PROGS can't be run multiple times with the same variable,
19578 # so create a new name for this run.
19579 if test "x$CC" = x; then
19580 for ac_prog in $COMPILER_CHECK_LIST
19581 do
19582 # Extract the first word of "$ac_prog", so it can be a program name with args.
19583 set dummy $ac_prog; ac_word=$2
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19585 $as_echo_n "checking for $ac_word... " >&6; }
19586 if ${ac_cv_path_POTENTIAL_CC+:} false; then :
19587 $as_echo_n "(cached) " >&6
19588 else
19589 case $POTENTIAL_CC in
19590 [\\/]* | ?:[\\/]*)
19591 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
19592 ;;
19593 *)
19594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19595 for as_dir in $PATH
19596 do
19597 IFS=$as_save_IFS
19598 test -z "$as_dir" && as_dir=.
19599 for ac_exec_ext in '' $ac_executable_extensions; do
19600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19601 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
19602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19603 break 2
19604 fi
19605 done
19606 done
19979 if test "x$COMPILER_BASENAME" = "xccache"; then
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
19981 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
19982 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
19983 # We want to control ccache invocation ourselves, so ignore this cc and try
19984 # searching again.
19985
19986 # Remove the path to the fake ccache cc from the PATH
19987 RETRY_COMPILER_SAVED_PATH="$PATH"
19988 COMPILER_DIRNAME=`$DIRNAME $CC`
19989 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
19990
19991 # Try again looking for our compiler
19992 if test -n "$ac_tool_prefix"; then
19993 for ac_prog in $COMPILER_CHECK_LIST
19994 do
19995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19996 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19998 $as_echo_n "checking for $ac_word... " >&6; }
19999 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then :
20000 $as_echo_n "(cached) " >&6
20001 else
20002 if test -n "$PROPER_COMPILER_CC"; then
20003 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test.
20004 else
20005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20006 for as_dir in $PATH
20007 do
20008 IFS=$as_save_IFS
20009 test -z "$as_dir" && as_dir=.
20010 for ac_exec_ext in '' $ac_executable_extensions; do
20011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20012 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog"
20013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20014 break 2
20015 fi
20016 done
20017 done
20018 IFS=$as_save_IFS
20019
20023 if test -n "$PROPER_COMPILER_CC"; then
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
20025 $as_echo "$PROPER_COMPILER_CC" >&6; }
20026 else
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20028 $as_echo "no" >&6; }
20029 fi
20030
20031
20032 test -n "$PROPER_COMPILER_CC" && break
20033 done
20034 fi
20035 if test -z "$PROPER_COMPILER_CC"; then
20036 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC
20037 for ac_prog in $COMPILER_CHECK_LIST
20038 do
20039 # Extract the first word of "$ac_prog", so it can be a program name with args.
20040 set dummy $ac_prog; ac_word=$2
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20042 $as_echo_n "checking for $ac_word... " >&6; }
20043 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then :
20044 $as_echo_n "(cached) " >&6
20045 else
20046 if test -n "$ac_ct_PROPER_COMPILER_CC"; then
20047 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test.
20048 else
20049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20050 for as_dir in $PATH
20051 do
20052 IFS=$as_save_IFS
20053 test -z "$as_dir" && as_dir=.
20054 for ac_exec_ext in '' $ac_executable_extensions; do
20055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20056 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog"
20057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20058 break 2
20059 fi
20060 done
20061 done
20062 IFS=$as_save_IFS
20063
20473 # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
20474 CC_VENDOR="$COMPILER_VENDOR"
20475
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
20477 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
20478
20479
20480 # Now that we have resolved CC ourself, let autoconf have its go at it
20481 ac_ext=c
20482 ac_cpp='$CPP $CPPFLAGS'
20483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20486 if test -n "$ac_tool_prefix"; then
20487 for ac_prog in $CC
20488 do
20489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20492 $as_echo_n "checking for $ac_word... " >&6; }
20493 if ${ac_cv_prog_CC+:} false; then :
20494 $as_echo_n "(cached) " >&6
20495 else
20496 if test -n "$CC"; then
20497 ac_cv_prog_CC="$CC" # Let the user override the test.
20498 else
20499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20500 for as_dir in $PATH
20501 do
20502 IFS=$as_save_IFS
20503 test -z "$as_dir" && as_dir=.
20504 for ac_exec_ext in '' $ac_executable_extensions; do
20505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20506 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20508 break 2
20509 fi
20510 done
20511 done
20512 IFS=$as_save_IFS
20513
20517 if test -n "$CC"; then
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
20519 $as_echo "$CC" >&6; }
20520 else
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20522 $as_echo "no" >&6; }
20523 fi
20524
20525
20526 test -n "$CC" && break
20527 done
20528 fi
20529 if test -z "$CC"; then
20530 ac_ct_CC=$CC
20531 for ac_prog in $CC
20532 do
20533 # Extract the first word of "$ac_prog", so it can be a program name with args.
20534 set dummy $ac_prog; ac_word=$2
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20536 $as_echo_n "checking for $ac_word... " >&6; }
20537 if ${ac_cv_prog_ac_ct_CC+:} false; then :
20538 $as_echo_n "(cached) " >&6
20539 else
20540 if test -n "$ac_ct_CC"; then
20541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20542 else
20543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20544 for as_dir in $PATH
20545 do
20546 IFS=$as_save_IFS
20547 test -z "$as_dir" && as_dir=.
20548 for ac_exec_ext in '' $ac_executable_extensions; do
20549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20550 ac_cv_prog_ac_ct_CC="$ac_prog"
20551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20552 break 2
20553 fi
20554 done
20555 done
20556 IFS=$as_save_IFS
20557
20570 test -n "$ac_ct_CC" && break
20571 done
20572
20573 if test "x$ac_ct_CC" = x; then
20574 CC=""
20575 else
20576 case $cross_compiling:$ac_tool_warned in
20577 yes:)
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20580 ac_tool_warned=yes ;;
20581 esac
20582 CC=$ac_ct_CC
20583 fi
20584 fi
20585
20586
20587 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20589 as_fn_error $? "no acceptable C compiler found in \$PATH
20590 See \`config.log' for more details" "$LINENO" 5; }
20591
20592 # Provide some information about the compiler.
20593 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
20594 set X $ac_compile
20595 ac_compiler=$2
20596 for ac_option in --version -v -V -qversion; do
20597 { { ac_try="$ac_compiler $ac_option >&5"
20598 case "(($ac_try" in
20599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600 *) ac_try_echo=$ac_try;;
20601 esac
20602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20603 $as_echo "$ac_try_echo"; } >&5
20604 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
20605 ac_status=$?
20606 if test -s conftest.err; then
20607 sed '10a\
20608 ... rest of stderr output deleted ...
20609 10q' conftest.err >conftest.er1
20610 cat conftest.er1 >&5
20611 fi
20612 rm -f conftest.er1 conftest.err
20613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20614 test $ac_status = 0; }
20615 done
20616
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
20618 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20619 if ${ac_cv_c_compiler_gnu+:} false; then :
20620 $as_echo_n "(cached) " >&6
20621 else
20622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20623 /* end confdefs.h. */
20624
20625 int
20626 main ()
20627 {
20628 #ifndef __GNUC__
20629 choke me
20630 #endif
20631
20632 ;
20633 return 0;
20634 }
20635 _ACEOF
20636 if ac_fn_c_try_compile "$LINENO"; then :
20637 ac_compiler_gnu=yes
20638 else
20639 ac_compiler_gnu=no
20640 fi
20641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20643
20644 fi
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
20646 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20647 if test $ac_compiler_gnu = yes; then
20648 GCC=yes
20649 else
20650 GCC=
20651 fi
20652 ac_test_CFLAGS=${CFLAGS+set}
20653 ac_save_CFLAGS=$CFLAGS
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
20655 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20656 if ${ac_cv_prog_cc_g+:} false; then :
20657 $as_echo_n "(cached) " >&6
20658 else
20659 ac_save_c_werror_flag=$ac_c_werror_flag
20660 ac_c_werror_flag=yes
20661 ac_cv_prog_cc_g=no
20662 CFLAGS="-g"
20663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20664 /* end confdefs.h. */
20665
20666 int
20667 main ()
20668 {
20669
20670 ;
20671 return 0;
20672 }
20673 _ACEOF
20674 if ac_fn_c_try_compile "$LINENO"; then :
20675 ac_cv_prog_cc_g=yes
20676 else
20714 fi
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
20716 $as_echo "$ac_cv_prog_cc_g" >&6; }
20717 if test "$ac_test_CFLAGS" = set; then
20718 CFLAGS=$ac_save_CFLAGS
20719 elif test $ac_cv_prog_cc_g = yes; then
20720 if test "$GCC" = yes; then
20721 CFLAGS="-g -O2"
20722 else
20723 CFLAGS="-g"
20724 fi
20725 else
20726 if test "$GCC" = yes; then
20727 CFLAGS="-O2"
20728 else
20729 CFLAGS=
20730 fi
20731 fi
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
20733 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20734 if ${ac_cv_prog_cc_c89+:} false; then :
20735 $as_echo_n "(cached) " >&6
20736 else
20737 ac_cv_prog_cc_c89=no
20738 ac_save_CC=$CC
20739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20740 /* end confdefs.h. */
20741 #include <stdarg.h>
20742 #include <stdio.h>
20743 #include <sys/types.h>
20744 #include <sys/stat.h>
20745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20746 struct buf { int x; };
20747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20748 static char *e (p, i)
20749 char **p;
20750 int i;
20751 {
20752 return p[i];
20753 }
20754 static char *f (char * (*g) (char **, int), char **p, ...)
20837 COMPILER_CHECK_LIST="CC g++"
20838 else
20839 COMPILER_CHECK_LIST="g++ CC"
20840 fi
20841
20842
20843 COMPILER_NAME=C++
20844
20845 CXX=
20846 # If TOOLS_DIR is set, check for all compiler names in there first
20847 # before checking the rest of the PATH.
20848 if test -n "$TOOLS_DIR"; then
20849 PATH_save="$PATH"
20850 PATH="$TOOLS_DIR"
20851 for ac_prog in $COMPILER_CHECK_LIST
20852 do
20853 # Extract the first word of "$ac_prog", so it can be a program name with args.
20854 set dummy $ac_prog; ac_word=$2
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20856 $as_echo_n "checking for $ac_word... " >&6; }
20857 if ${ac_cv_path_TOOLS_DIR_CXX+:} false; then :
20858 $as_echo_n "(cached) " >&6
20859 else
20860 case $TOOLS_DIR_CXX in
20861 [\\/]* | ?:[\\/]*)
20862 ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path.
20863 ;;
20864 *)
20865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20866 for as_dir in $PATH
20867 do
20868 IFS=$as_save_IFS
20869 test -z "$as_dir" && as_dir=.
20870 for ac_exec_ext in '' $ac_executable_extensions; do
20871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20872 ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext"
20873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20874 break 2
20875 fi
20876 done
20877 done
20889 $as_echo "no" >&6; }
20890 fi
20891
20892
20893 test -n "$TOOLS_DIR_CXX" && break
20894 done
20895
20896 CXX=$TOOLS_DIR_CXX
20897 PATH="$PATH_save"
20898 fi
20899
20900 # AC_PATH_PROGS can't be run multiple times with the same variable,
20901 # so create a new name for this run.
20902 if test "x$CXX" = x; then
20903 for ac_prog in $COMPILER_CHECK_LIST
20904 do
20905 # Extract the first word of "$ac_prog", so it can be a program name with args.
20906 set dummy $ac_prog; ac_word=$2
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20908 $as_echo_n "checking for $ac_word... " >&6; }
20909 if ${ac_cv_path_POTENTIAL_CXX+:} false; then :
20910 $as_echo_n "(cached) " >&6
20911 else
20912 case $POTENTIAL_CXX in
20913 [\\/]* | ?:[\\/]*)
20914 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
20915 ;;
20916 *)
20917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20918 for as_dir in $PATH
20919 do
20920 IFS=$as_save_IFS
20921 test -z "$as_dir" && as_dir=.
20922 for ac_exec_ext in '' $ac_executable_extensions; do
20923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20924 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
20925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20926 break 2
20927 fi
20928 done
20929 done
21302 if test "x$COMPILER_BASENAME" = "xccache"; then
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
21304 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
21305 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
21306 # We want to control ccache invocation ourselves, so ignore this cc and try
21307 # searching again.
21308
21309 # Remove the path to the fake ccache cc from the PATH
21310 RETRY_COMPILER_SAVED_PATH="$PATH"
21311 COMPILER_DIRNAME=`$DIRNAME $CXX`
21312 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
21313
21314 # Try again looking for our compiler
21315 if test -n "$ac_tool_prefix"; then
21316 for ac_prog in $COMPILER_CHECK_LIST
21317 do
21318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21321 $as_echo_n "checking for $ac_word... " >&6; }
21322 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then :
21323 $as_echo_n "(cached) " >&6
21324 else
21325 if test -n "$PROPER_COMPILER_CXX"; then
21326 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test.
21327 else
21328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21329 for as_dir in $PATH
21330 do
21331 IFS=$as_save_IFS
21332 test -z "$as_dir" && as_dir=.
21333 for ac_exec_ext in '' $ac_executable_extensions; do
21334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21335 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog"
21336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21337 break 2
21338 fi
21339 done
21340 done
21341 IFS=$as_save_IFS
21342
21346 if test -n "$PROPER_COMPILER_CXX"; then
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
21348 $as_echo "$PROPER_COMPILER_CXX" >&6; }
21349 else
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21351 $as_echo "no" >&6; }
21352 fi
21353
21354
21355 test -n "$PROPER_COMPILER_CXX" && break
21356 done
21357 fi
21358 if test -z "$PROPER_COMPILER_CXX"; then
21359 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX
21360 for ac_prog in $COMPILER_CHECK_LIST
21361 do
21362 # Extract the first word of "$ac_prog", so it can be a program name with args.
21363 set dummy $ac_prog; ac_word=$2
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21365 $as_echo_n "checking for $ac_word... " >&6; }
21366 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then :
21367 $as_echo_n "(cached) " >&6
21368 else
21369 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
21370 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test.
21371 else
21372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21373 for as_dir in $PATH
21374 do
21375 IFS=$as_save_IFS
21376 test -z "$as_dir" && as_dir=.
21377 for ac_exec_ext in '' $ac_executable_extensions; do
21378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21379 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog"
21380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21381 break 2
21382 fi
21383 done
21384 done
21385 IFS=$as_save_IFS
21386
21800 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
21801
21802
21803 # Now that we have resolved CXX ourself, let autoconf have its go at it
21804 ac_ext=cpp
21805 ac_cpp='$CXXCPP $CPPFLAGS'
21806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21809 if test -z "$CXX"; then
21810 if test -n "$CCC"; then
21811 CXX=$CCC
21812 else
21813 if test -n "$ac_tool_prefix"; then
21814 for ac_prog in $CXX
21815 do
21816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21819 $as_echo_n "checking for $ac_word... " >&6; }
21820 if ${ac_cv_prog_CXX+:} false; then :
21821 $as_echo_n "(cached) " >&6
21822 else
21823 if test -n "$CXX"; then
21824 ac_cv_prog_CXX="$CXX" # Let the user override the test.
21825 else
21826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21827 for as_dir in $PATH
21828 do
21829 IFS=$as_save_IFS
21830 test -z "$as_dir" && as_dir=.
21831 for ac_exec_ext in '' $ac_executable_extensions; do
21832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21833 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
21834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21835 break 2
21836 fi
21837 done
21838 done
21839 IFS=$as_save_IFS
21840
21844 if test -n "$CXX"; then
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
21846 $as_echo "$CXX" >&6; }
21847 else
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21849 $as_echo "no" >&6; }
21850 fi
21851
21852
21853 test -n "$CXX" && break
21854 done
21855 fi
21856 if test -z "$CXX"; then
21857 ac_ct_CXX=$CXX
21858 for ac_prog in $CXX
21859 do
21860 # Extract the first word of "$ac_prog", so it can be a program name with args.
21861 set dummy $ac_prog; ac_word=$2
21862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21863 $as_echo_n "checking for $ac_word... " >&6; }
21864 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
21865 $as_echo_n "(cached) " >&6
21866 else
21867 if test -n "$ac_ct_CXX"; then
21868 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
21869 else
21870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21871 for as_dir in $PATH
21872 do
21873 IFS=$as_save_IFS
21874 test -z "$as_dir" && as_dir=.
21875 for ac_exec_ext in '' $ac_executable_extensions; do
21876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21877 ac_cv_prog_ac_ct_CXX="$ac_prog"
21878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21879 break 2
21880 fi
21881 done
21882 done
21883 IFS=$as_save_IFS
21884
21922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923 *) ac_try_echo=$ac_try;;
21924 esac
21925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21926 $as_echo "$ac_try_echo"; } >&5
21927 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
21928 ac_status=$?
21929 if test -s conftest.err; then
21930 sed '10a\
21931 ... rest of stderr output deleted ...
21932 10q' conftest.err >conftest.er1
21933 cat conftest.er1 >&5
21934 fi
21935 rm -f conftest.er1 conftest.err
21936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21937 test $ac_status = 0; }
21938 done
21939
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
21941 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
21942 if ${ac_cv_cxx_compiler_gnu+:} false; then :
21943 $as_echo_n "(cached) " >&6
21944 else
21945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21946 /* end confdefs.h. */
21947
21948 int
21949 main ()
21950 {
21951 #ifndef __GNUC__
21952 choke me
21953 #endif
21954
21955 ;
21956 return 0;
21957 }
21958 _ACEOF
21959 if ac_fn_cxx_try_compile "$LINENO"; then :
21960 ac_compiler_gnu=yes
21961 else
21962 ac_compiler_gnu=no
21963 fi
21964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21965 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
21966
21967 fi
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
21969 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
21970 if test $ac_compiler_gnu = yes; then
21971 GXX=yes
21972 else
21973 GXX=
21974 fi
21975 ac_test_CXXFLAGS=${CXXFLAGS+set}
21976 ac_save_CXXFLAGS=$CXXFLAGS
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
21978 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
21979 if ${ac_cv_prog_cxx_g+:} false; then :
21980 $as_echo_n "(cached) " >&6
21981 else
21982 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
21983 ac_cxx_werror_flag=yes
21984 ac_cv_prog_cxx_g=no
21985 CXXFLAGS="-g"
21986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21987 /* end confdefs.h. */
21988
21989 int
21990 main ()
21991 {
21992
21993 ;
21994 return 0;
21995 }
21996 _ACEOF
21997 if ac_fn_cxx_try_compile "$LINENO"; then :
21998 ac_cv_prog_cxx_g=yes
21999 else
22057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22060
22061
22062 ### Locate other tools
22063
22064 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
22065 ac_ext=m
22066 ac_cpp='$OBJCPP $CPPFLAGS'
22067 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22068 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22069 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
22070 if test -n "$ac_tool_prefix"; then
22071 for ac_prog in gcc objcc objc cc CC
22072 do
22073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22076 $as_echo_n "checking for $ac_word... " >&6; }
22077 if ${ac_cv_prog_OBJC+:} false; then :
22078 $as_echo_n "(cached) " >&6
22079 else
22080 if test -n "$OBJC"; then
22081 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
22082 else
22083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22084 for as_dir in $PATH
22085 do
22086 IFS=$as_save_IFS
22087 test -z "$as_dir" && as_dir=.
22088 for ac_exec_ext in '' $ac_executable_extensions; do
22089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22090 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
22091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22092 break 2
22093 fi
22094 done
22095 done
22096 IFS=$as_save_IFS
22097
22101 if test -n "$OBJC"; then
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
22103 $as_echo "$OBJC" >&6; }
22104 else
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22106 $as_echo "no" >&6; }
22107 fi
22108
22109
22110 test -n "$OBJC" && break
22111 done
22112 fi
22113 if test -z "$OBJC"; then
22114 ac_ct_OBJC=$OBJC
22115 for ac_prog in gcc objcc objc cc CC
22116 do
22117 # Extract the first word of "$ac_prog", so it can be a program name with args.
22118 set dummy $ac_prog; ac_word=$2
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22120 $as_echo_n "checking for $ac_word... " >&6; }
22121 if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
22122 $as_echo_n "(cached) " >&6
22123 else
22124 if test -n "$ac_ct_OBJC"; then
22125 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
22126 else
22127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22128 for as_dir in $PATH
22129 do
22130 IFS=$as_save_IFS
22131 test -z "$as_dir" && as_dir=.
22132 for ac_exec_ext in '' $ac_executable_extensions; do
22133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22134 ac_cv_prog_ac_ct_OBJC="$ac_prog"
22135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22136 break 2
22137 fi
22138 done
22139 done
22140 IFS=$as_save_IFS
22141
22177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178 *) ac_try_echo=$ac_try;;
22179 esac
22180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22181 $as_echo "$ac_try_echo"; } >&5
22182 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
22183 ac_status=$?
22184 if test -s conftest.err; then
22185 sed '10a\
22186 ... rest of stderr output deleted ...
22187 10q' conftest.err >conftest.er1
22188 cat conftest.er1 >&5
22189 fi
22190 rm -f conftest.er1 conftest.err
22191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22192 test $ac_status = 0; }
22193 done
22194
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
22196 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
22197 if ${ac_cv_objc_compiler_gnu+:} false; then :
22198 $as_echo_n "(cached) " >&6
22199 else
22200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22201 /* end confdefs.h. */
22202
22203 int
22204 main ()
22205 {
22206 #ifndef __GNUC__
22207 choke me
22208 #endif
22209
22210 ;
22211 return 0;
22212 }
22213 _ACEOF
22214 if ac_fn_objc_try_compile "$LINENO"; then :
22215 ac_compiler_gnu=yes
22216 else
22217 ac_compiler_gnu=no
22218 fi
22219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22220 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
22221
22222 fi
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
22224 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
22225 if test $ac_compiler_gnu = yes; then
22226 GOBJC=yes
22227 else
22228 GOBJC=
22229 fi
22230 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
22231 ac_save_OBJCFLAGS=$OBJCFLAGS
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
22233 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
22234 if ${ac_cv_prog_objc_g+:} false; then :
22235 $as_echo_n "(cached) " >&6
22236 else
22237 ac_save_objc_werror_flag=$ac_objc_werror_flag
22238 ac_objc_werror_flag=yes
22239 ac_cv_prog_objc_g=no
22240 OBJCFLAGS="-g"
22241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22242 /* end confdefs.h. */
22243
22244 int
22245 main ()
22246 {
22247
22248 ;
22249 return 0;
22250 }
22251 _ACEOF
22252 if ac_fn_objc_try_compile "$LINENO"; then :
22253 ac_cv_prog_objc_g=yes
22254 else
22590 OBJCFLAGS="$ORG_OBJCFLAGS"
22591
22592 LD="$CC"
22593 LDEXE="$CC"
22594 LDCXX="$CXX"
22595 LDEXECXX="$CXX"
22596
22597 # LDEXE is the linker to use, when creating executables.
22598
22599 # Linking C++ libraries.
22600
22601 # Linking C++ executables.
22602
22603
22604 if test "x$OPENJDK_TARGET_OS" != xwindows; then
22605 if test -n "$ac_tool_prefix"; then
22606 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
22607 set dummy ${ac_tool_prefix}ar; ac_word=$2
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22609 $as_echo_n "checking for $ac_word... " >&6; }
22610 if ${ac_cv_prog_AR+:} false; then :
22611 $as_echo_n "(cached) " >&6
22612 else
22613 if test -n "$AR"; then
22614 ac_cv_prog_AR="$AR" # Let the user override the test.
22615 else
22616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22617 for as_dir in $PATH
22618 do
22619 IFS=$as_save_IFS
22620 test -z "$as_dir" && as_dir=.
22621 for ac_exec_ext in '' $ac_executable_extensions; do
22622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22623 ac_cv_prog_AR="${ac_tool_prefix}ar"
22624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22625 break 2
22626 fi
22627 done
22628 done
22629 IFS=$as_save_IFS
22630
22631 fi
22632 fi
22633 AR=$ac_cv_prog_AR
22634 if test -n "$AR"; then
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
22636 $as_echo "$AR" >&6; }
22637 else
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22639 $as_echo "no" >&6; }
22640 fi
22641
22642
22643 fi
22644 if test -z "$ac_cv_prog_AR"; then
22645 ac_ct_AR=$AR
22646 # Extract the first word of "ar", so it can be a program name with args.
22647 set dummy ar; ac_word=$2
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22649 $as_echo_n "checking for $ac_word... " >&6; }
22650 if ${ac_cv_prog_ac_ct_AR+:} false; then :
22651 $as_echo_n "(cached) " >&6
22652 else
22653 if test -n "$ac_ct_AR"; then
22654 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
22655 else
22656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22657 for as_dir in $PATH
22658 do
22659 IFS=$as_save_IFS
22660 test -z "$as_dir" && as_dir=.
22661 for ac_exec_ext in '' $ac_executable_extensions; do
22662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22663 ac_cv_prog_ac_ct_AR="ar"
22664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22665 break 2
22666 fi
22667 done
22668 done
22669 IFS=$as_save_IFS
22670
22972 HOTSPOT_CXX="$CXX"
22973 HOTSPOT_LD="$LD"
22974
22975
22976
22977 COMPILER_NAME=gcc
22978 COMPILER_TYPE=CC
22979 if test "x$OPENJDK_TARGET_OS" = xwindows; then :
22980
22981 # For now, assume that we are always compiling using cl.exe.
22982 CC_OUT_OPTION=-Fo
22983 EXE_OUT_OPTION=-out:
22984 LD_OUT_OPTION=-out:
22985 AR_OUT_OPTION=-out:
22986 # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin
22987 # program for something completely different.
22988 # Extract the first word of "link", so it can be a program name with args.
22989 set dummy link; ac_word=$2
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22991 $as_echo_n "checking for $ac_word... " >&6; }
22992 if ${ac_cv_prog_WINLD+:} false; then :
22993 $as_echo_n "(cached) " >&6
22994 else
22995 if test -n "$WINLD"; then
22996 ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
22997 else
22998 ac_prog_rejected=no
22999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23000 for as_dir in $PATH
23001 do
23002 IFS=$as_save_IFS
23003 test -z "$as_dir" && as_dir=.
23004 for ac_exec_ext in '' $ac_executable_extensions; do
23005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23006 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then
23007 ac_prog_rejected=yes
23008 continue
23009 fi
23010 ac_cv_prog_WINLD="link"
23011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23012 break 2
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5
23312 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; }
23313 "$WINLD" --version > /dev/null
23314 if test $? -eq 0 ; then
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23316 $as_echo "no" >&6; }
23317 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5
23318 else
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23320 $as_echo "yes" >&6; }
23321 fi
23322 LD="$WINLD"
23323 LDEXE="$WINLD"
23324 LDCXX="$WINLD"
23325 LDEXECXX="$WINLD"
23326
23327 # Extract the first word of "mt", so it can be a program name with args.
23328 set dummy mt; ac_word=$2
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23330 $as_echo_n "checking for $ac_word... " >&6; }
23331 if ${ac_cv_prog_MT+:} false; then :
23332 $as_echo_n "(cached) " >&6
23333 else
23334 if test -n "$MT"; then
23335 ac_cv_prog_MT="$MT" # Let the user override the test.
23336 else
23337 ac_prog_rejected=no
23338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23339 for as_dir in $PATH
23340 do
23341 IFS=$as_save_IFS
23342 test -z "$as_dir" && as_dir=.
23343 for ac_exec_ext in '' $ac_executable_extensions; do
23344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23345 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
23346 ac_prog_rejected=yes
23347 continue
23348 fi
23349 ac_cv_prog_MT="mt"
23350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23351 break 2
23632 fi
23633
23634 # Now join together the path and the arguments once again
23635 if test "x$arguments" != xEOL; then
23636 new_complete="$new_path ${arguments% *}"
23637 else
23638 new_complete="$new_path"
23639 fi
23640
23641 if test "x$complete" != "x$new_complete"; then
23642 MT="$new_complete"
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5
23644 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;}
23645 fi
23646
23647 # The resource compiler
23648 # Extract the first word of "rc", so it can be a program name with args.
23649 set dummy rc; ac_word=$2
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23651 $as_echo_n "checking for $ac_word... " >&6; }
23652 if ${ac_cv_prog_RC+:} false; then :
23653 $as_echo_n "(cached) " >&6
23654 else
23655 if test -n "$RC"; then
23656 ac_cv_prog_RC="$RC" # Let the user override the test.
23657 else
23658 ac_prog_rejected=no
23659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23660 for as_dir in $PATH
23661 do
23662 IFS=$as_save_IFS
23663 test -z "$as_dir" && as_dir=.
23664 for ac_exec_ext in '' $ac_executable_extensions; do
23665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
23667 ac_prog_rejected=yes
23668 continue
23669 fi
23670 ac_cv_prog_RC="rc"
23671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23672 break 2
24023 fi
24024 JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION
24025 if test "x$JDK_UPDATE_VERSION" = x; then :
24026
24027 JDK_UPDATE_VERSION_NOTNULL=0
24028
24029 fi
24030 RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\""
24031 RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\""
24032 RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\""
24033 RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\""
24034 RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\""
24035 RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\""
24036 RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\""
24037
24038 # lib.exe is used to create static libraries.
24039 # Extract the first word of "lib", so it can be a program name with args.
24040 set dummy lib; ac_word=$2
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24042 $as_echo_n "checking for $ac_word... " >&6; }
24043 if ${ac_cv_prog_WINAR+:} false; then :
24044 $as_echo_n "(cached) " >&6
24045 else
24046 if test -n "$WINAR"; then
24047 ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
24048 else
24049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24050 for as_dir in $PATH
24051 do
24052 IFS=$as_save_IFS
24053 test -z "$as_dir" && as_dir=.
24054 for ac_exec_ext in '' $ac_executable_extensions; do
24055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24056 ac_cv_prog_WINAR="lib"
24057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24058 break 2
24059 fi
24060 done
24061 done
24062 IFS=$as_save_IFS
24063
24329 # Now join together the path and the arguments once again
24330 if test "x$arguments" != xEOL; then
24331 new_complete="$new_path ${arguments% *}"
24332 else
24333 new_complete="$new_path"
24334 fi
24335
24336 if test "x$complete" != "x$new_complete"; then
24337 WINAR="$new_complete"
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5
24339 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;}
24340 fi
24341
24342 AR="$WINAR"
24343 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
24344
24345 # Extract the first word of "dumpbin", so it can be a program name with args.
24346 set dummy dumpbin; ac_word=$2
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24348 $as_echo_n "checking for $ac_word... " >&6; }
24349 if ${ac_cv_prog_DUMPBIN+:} false; then :
24350 $as_echo_n "(cached) " >&6
24351 else
24352 if test -n "$DUMPBIN"; then
24353 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
24354 else
24355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24356 for as_dir in $PATH
24357 do
24358 IFS=$as_save_IFS
24359 test -z "$as_dir" && as_dir=.
24360 for ac_exec_ext in '' $ac_executable_extensions; do
24361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24362 ac_cv_prog_DUMPBIN="dumpbin"
24363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24364 break 2
24365 fi
24366 done
24367 done
24368 IFS=$as_save_IFS
24369
24648
24649 COMPILER_TYPE=CL
24650 CCXXFLAGS="$CCXXFLAGS -nologo"
24651
24652 fi
24653
24654
24655
24656 ac_ext=c
24657 ac_cpp='$CPP $CPPFLAGS'
24658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
24662 $as_echo_n "checking how to run the C preprocessor... " >&6; }
24663 # On Suns, sometimes $CPP names a directory.
24664 if test -n "$CPP" && test -d "$CPP"; then
24665 CPP=
24666 fi
24667 if test -z "$CPP"; then
24668 if ${ac_cv_prog_CPP+:} false; then :
24669 $as_echo_n "(cached) " >&6
24670 else
24671 # Double quotes because CPP needs to be expanded
24672 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
24673 do
24674 ac_preproc_ok=false
24675 for ac_c_preproc_warn_flag in '' yes
24676 do
24677 # Use a header file that comes with gcc, so configuring glibc
24678 # with a fresh cross-compiler works.
24679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24680 # <limits.h> exists even on freestanding compilers.
24681 # On the NeXT, cc -E runs the code through the compiler's parser,
24682 # not just through cpp. "Syntax error" is here to catch this case.
24683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24684 /* end confdefs.h. */
24685 #ifdef __STDC__
24686 # include <limits.h>
24687 #else
24688 # include <assert.h>
24764 _ACEOF
24765 if ac_fn_c_try_cpp "$LINENO"; then :
24766 # Broken: success on invalid input.
24767 continue
24768 else
24769 # Passes both tests.
24770 ac_preproc_ok=:
24771 break
24772 fi
24773 rm -f conftest.err conftest.i conftest.$ac_ext
24774
24775 done
24776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24777 rm -f conftest.i conftest.err conftest.$ac_ext
24778 if $ac_preproc_ok; then :
24779
24780 else
24781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24783 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
24784 See \`config.log' for more details" "$LINENO" 5; }
24785 fi
24786
24787 ac_ext=cpp
24788 ac_cpp='$CXXCPP $CPPFLAGS'
24789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24792
24793
24794 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24795
24796 # First separate the path from the arguments. This will split at the first
24797 # space.
24798 complete="$CPP"
24799 path="${complete%% *}"
24800 tmp="$complete EOL"
24801 arguments="${tmp#* }"
24802
24803 # Input might be given as Windows format, start by converting to
24804 # unix format.
25048 new_complete="$new_path ${arguments% *}"
25049 else
25050 new_complete="$new_path"
25051 fi
25052
25053 if test "x$complete" != "x$new_complete"; then
25054 CPP="$new_complete"
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5
25056 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;}
25057 fi
25058
25059
25060 ac_ext=cpp
25061 ac_cpp='$CXXCPP $CPPFLAGS'
25062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
25066 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
25067 if test -z "$CXXCPP"; then
25068 if ${ac_cv_prog_CXXCPP+:} false; then :
25069 $as_echo_n "(cached) " >&6
25070 else
25071 # Double quotes because CXXCPP needs to be expanded
25072 for CXXCPP in "$CXX -E" "/lib/cpp"
25073 do
25074 ac_preproc_ok=false
25075 for ac_cxx_preproc_warn_flag in '' yes
25076 do
25077 # Use a header file that comes with gcc, so configuring glibc
25078 # with a fresh cross-compiler works.
25079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25080 # <limits.h> exists even on freestanding compilers.
25081 # On the NeXT, cc -E runs the code through the compiler's parser,
25082 # not just through cpp. "Syntax error" is here to catch this case.
25083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25084 /* end confdefs.h. */
25085 #ifdef __STDC__
25086 # include <limits.h>
25087 #else
25088 # include <assert.h>
25164 _ACEOF
25165 if ac_fn_cxx_try_cpp "$LINENO"; then :
25166 # Broken: success on invalid input.
25167 continue
25168 else
25169 # Passes both tests.
25170 ac_preproc_ok=:
25171 break
25172 fi
25173 rm -f conftest.err conftest.i conftest.$ac_ext
25174
25175 done
25176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25177 rm -f conftest.i conftest.err conftest.$ac_ext
25178 if $ac_preproc_ok; then :
25179
25180 else
25181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25183 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
25184 See \`config.log' for more details" "$LINENO" 5; }
25185 fi
25186
25187 ac_ext=cpp
25188 ac_cpp='$CXXCPP $CPPFLAGS'
25189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25192
25193
25194 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25195
25196 # First separate the path from the arguments. This will split at the first
25197 # space.
25198 complete="$CXXCPP"
25199 path="${complete%% *}"
25200 tmp="$complete EOL"
25201 arguments="${tmp#* }"
25202
25203 # Input might be given as Windows format, start by converting to
25204 # unix format.
25466 BUILD_CXX="$CXX"
25467 BUILD_LD="$LD"
25468 fi
25469
25470 # for solaris we really need solaris tools, and not gnu equivalent
25471 # these seems to normally reside in /usr/ccs/bin so add that to path before
25472 # starting to probe
25473 #
25474 # NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH
25475 # so that it can be overriden --with-tools-dir
25476 if test "x$OPENJDK_BUILD_OS" = xsolaris; then
25477 PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}"
25478 fi
25479
25480 # Find the right assembler.
25481 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
25482 # Extract the first word of "as", so it can be a program name with args.
25483 set dummy as; ac_word=$2
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25485 $as_echo_n "checking for $ac_word... " >&6; }
25486 if ${ac_cv_path_AS+:} false; then :
25487 $as_echo_n "(cached) " >&6
25488 else
25489 case $AS in
25490 [\\/]* | ?:[\\/]*)
25491 ac_cv_path_AS="$AS" # Let the user override the test with a path.
25492 ;;
25493 *)
25494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25495 for as_dir in $PATH
25496 do
25497 IFS=$as_save_IFS
25498 test -z "$as_dir" && as_dir=.
25499 for ac_exec_ext in '' $ac_executable_extensions; do
25500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25501 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
25502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25503 break 2
25504 fi
25505 done
25506 done
25778 else
25779 new_complete="$new_path"
25780 fi
25781
25782 if test "x$complete" != "x$new_complete"; then
25783 AS="$new_complete"
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5
25785 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;}
25786 fi
25787
25788 else
25789 AS="$CC -c"
25790 fi
25791
25792
25793 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
25794 # Extract the first word of "nm", so it can be a program name with args.
25795 set dummy nm; ac_word=$2
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25797 $as_echo_n "checking for $ac_word... " >&6; }
25798 if ${ac_cv_path_NM+:} false; then :
25799 $as_echo_n "(cached) " >&6
25800 else
25801 case $NM in
25802 [\\/]* | ?:[\\/]*)
25803 ac_cv_path_NM="$NM" # Let the user override the test with a path.
25804 ;;
25805 *)
25806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25807 for as_dir in $PATH
25808 do
25809 IFS=$as_save_IFS
25810 test -z "$as_dir" && as_dir=.
25811 for ac_exec_ext in '' $ac_executable_extensions; do
25812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25813 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
25814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25815 break 2
25816 fi
25817 done
25818 done
26084 fi
26085 fi
26086
26087 # Now join together the path and the arguments once again
26088 if test "x$arguments" != xEOL; then
26089 new_complete="$new_path ${arguments% *}"
26090 else
26091 new_complete="$new_path"
26092 fi
26093
26094 if test "x$complete" != "x$new_complete"; then
26095 NM="$new_complete"
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
26097 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
26098 fi
26099
26100 # Extract the first word of "gnm", so it can be a program name with args.
26101 set dummy gnm; ac_word=$2
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26103 $as_echo_n "checking for $ac_word... " >&6; }
26104 if ${ac_cv_path_GNM+:} false; then :
26105 $as_echo_n "(cached) " >&6
26106 else
26107 case $GNM in
26108 [\\/]* | ?:[\\/]*)
26109 ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
26110 ;;
26111 *)
26112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26113 for as_dir in $PATH
26114 do
26115 IFS=$as_save_IFS
26116 test -z "$as_dir" && as_dir=.
26117 for ac_exec_ext in '' $ac_executable_extensions; do
26118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26119 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
26120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26121 break 2
26122 fi
26123 done
26124 done
26390 fi
26391 fi
26392
26393 # Now join together the path and the arguments once again
26394 if test "x$arguments" != xEOL; then
26395 new_complete="$new_path ${arguments% *}"
26396 else
26397 new_complete="$new_path"
26398 fi
26399
26400 if test "x$complete" != "x$new_complete"; then
26401 GNM="$new_complete"
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5
26403 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;}
26404 fi
26405
26406 # Extract the first word of "strip", so it can be a program name with args.
26407 set dummy strip; ac_word=$2
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26409 $as_echo_n "checking for $ac_word... " >&6; }
26410 if ${ac_cv_path_STRIP+:} false; then :
26411 $as_echo_n "(cached) " >&6
26412 else
26413 case $STRIP in
26414 [\\/]* | ?:[\\/]*)
26415 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
26416 ;;
26417 *)
26418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26419 for as_dir in $PATH
26420 do
26421 IFS=$as_save_IFS
26422 test -z "$as_dir" && as_dir=.
26423 for ac_exec_ext in '' $ac_executable_extensions; do
26424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26425 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
26426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26427 break 2
26428 fi
26429 done
26430 done
26696 fi
26697 fi
26698
26699 # Now join together the path and the arguments once again
26700 if test "x$arguments" != xEOL; then
26701 new_complete="$new_path ${arguments% *}"
26702 else
26703 new_complete="$new_path"
26704 fi
26705
26706 if test "x$complete" != "x$new_complete"; then
26707 STRIP="$new_complete"
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
26709 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
26710 fi
26711
26712 # Extract the first word of "mcs", so it can be a program name with args.
26713 set dummy mcs; ac_word=$2
26714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26715 $as_echo_n "checking for $ac_word... " >&6; }
26716 if ${ac_cv_path_MCS+:} false; then :
26717 $as_echo_n "(cached) " >&6
26718 else
26719 case $MCS in
26720 [\\/]* | ?:[\\/]*)
26721 ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
26722 ;;
26723 *)
26724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26725 for as_dir in $PATH
26726 do
26727 IFS=$as_save_IFS
26728 test -z "$as_dir" && as_dir=.
26729 for ac_exec_ext in '' $ac_executable_extensions; do
26730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26731 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
26732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26733 break 2
26734 fi
26735 done
26736 done
27004
27005 # Now join together the path and the arguments once again
27006 if test "x$arguments" != xEOL; then
27007 new_complete="$new_path ${arguments% *}"
27008 else
27009 new_complete="$new_path"
27010 fi
27011
27012 if test "x$complete" != "x$new_complete"; then
27013 MCS="$new_complete"
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
27015 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
27016 fi
27017
27018 elif test "x$OPENJDK_TARGET_OS" != xwindows; then
27019 if test -n "$ac_tool_prefix"; then
27020 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
27021 set dummy ${ac_tool_prefix}nm; ac_word=$2
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27023 $as_echo_n "checking for $ac_word... " >&6; }
27024 if ${ac_cv_prog_NM+:} false; then :
27025 $as_echo_n "(cached) " >&6
27026 else
27027 if test -n "$NM"; then
27028 ac_cv_prog_NM="$NM" # Let the user override the test.
27029 else
27030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27031 for as_dir in $PATH
27032 do
27033 IFS=$as_save_IFS
27034 test -z "$as_dir" && as_dir=.
27035 for ac_exec_ext in '' $ac_executable_extensions; do
27036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27037 ac_cv_prog_NM="${ac_tool_prefix}nm"
27038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27039 break 2
27040 fi
27041 done
27042 done
27043 IFS=$as_save_IFS
27044
27045 fi
27046 fi
27047 NM=$ac_cv_prog_NM
27048 if test -n "$NM"; then
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
27050 $as_echo "$NM" >&6; }
27051 else
27052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27053 $as_echo "no" >&6; }
27054 fi
27055
27056
27057 fi
27058 if test -z "$ac_cv_prog_NM"; then
27059 ac_ct_NM=$NM
27060 # Extract the first word of "nm", so it can be a program name with args.
27061 set dummy nm; ac_word=$2
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27063 $as_echo_n "checking for $ac_word... " >&6; }
27064 if ${ac_cv_prog_ac_ct_NM+:} false; then :
27065 $as_echo_n "(cached) " >&6
27066 else
27067 if test -n "$ac_ct_NM"; then
27068 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
27069 else
27070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27071 for as_dir in $PATH
27072 do
27073 IFS=$as_save_IFS
27074 test -z "$as_dir" && as_dir=.
27075 for ac_exec_ext in '' $ac_executable_extensions; do
27076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27077 ac_cv_prog_ac_ct_NM="nm"
27078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27079 break 2
27080 fi
27081 done
27082 done
27083 IFS=$as_save_IFS
27084
27364 # Now join together the path and the arguments once again
27365 if test "x$arguments" != xEOL; then
27366 new_complete="$new_path ${arguments% *}"
27367 else
27368 new_complete="$new_path"
27369 fi
27370
27371 if test "x$complete" != "x$new_complete"; then
27372 NM="$new_complete"
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
27374 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
27375 fi
27376
27377 GNM="$NM"
27378
27379 if test -n "$ac_tool_prefix"; then
27380 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
27381 set dummy ${ac_tool_prefix}strip; ac_word=$2
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27383 $as_echo_n "checking for $ac_word... " >&6; }
27384 if ${ac_cv_prog_STRIP+:} false; then :
27385 $as_echo_n "(cached) " >&6
27386 else
27387 if test -n "$STRIP"; then
27388 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
27389 else
27390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27391 for as_dir in $PATH
27392 do
27393 IFS=$as_save_IFS
27394 test -z "$as_dir" && as_dir=.
27395 for ac_exec_ext in '' $ac_executable_extensions; do
27396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27397 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
27398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27399 break 2
27400 fi
27401 done
27402 done
27403 IFS=$as_save_IFS
27404
27405 fi
27406 fi
27407 STRIP=$ac_cv_prog_STRIP
27408 if test -n "$STRIP"; then
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
27410 $as_echo "$STRIP" >&6; }
27411 else
27412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27413 $as_echo "no" >&6; }
27414 fi
27415
27416
27417 fi
27418 if test -z "$ac_cv_prog_STRIP"; then
27419 ac_ct_STRIP=$STRIP
27420 # Extract the first word of "strip", so it can be a program name with args.
27421 set dummy strip; ac_word=$2
27422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27423 $as_echo_n "checking for $ac_word... " >&6; }
27424 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
27425 $as_echo_n "(cached) " >&6
27426 else
27427 if test -n "$ac_ct_STRIP"; then
27428 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
27429 else
27430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27431 for as_dir in $PATH
27432 do
27433 IFS=$as_save_IFS
27434 test -z "$as_dir" && as_dir=.
27435 for ac_exec_ext in '' $ac_executable_extensions; do
27436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27437 ac_cv_prog_ac_ct_STRIP="strip"
27438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27439 break 2
27440 fi
27441 done
27442 done
27443 IFS=$as_save_IFS
27444
27729 fi
27730
27731 if test "x$complete" != "x$new_complete"; then
27732 STRIP="$new_complete"
27733 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
27734 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
27735 fi
27736
27737 fi
27738
27739 # objcopy is used for moving debug symbols to separate files when
27740 # full debug symbols are enabled.
27741 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
27742 if test -n "$ac_tool_prefix"; then
27743 for ac_prog in gobjcopy objcopy
27744 do
27745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27748 $as_echo_n "checking for $ac_word... " >&6; }
27749 if ${ac_cv_prog_OBJCOPY+:} false; then :
27750 $as_echo_n "(cached) " >&6
27751 else
27752 if test -n "$OBJCOPY"; then
27753 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
27754 else
27755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27756 for as_dir in $PATH
27757 do
27758 IFS=$as_save_IFS
27759 test -z "$as_dir" && as_dir=.
27760 for ac_exec_ext in '' $ac_executable_extensions; do
27761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27762 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
27763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27764 break 2
27765 fi
27766 done
27767 done
27768 IFS=$as_save_IFS
27769
27773 if test -n "$OBJCOPY"; then
27774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
27775 $as_echo "$OBJCOPY" >&6; }
27776 else
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27778 $as_echo "no" >&6; }
27779 fi
27780
27781
27782 test -n "$OBJCOPY" && break
27783 done
27784 fi
27785 if test -z "$OBJCOPY"; then
27786 ac_ct_OBJCOPY=$OBJCOPY
27787 for ac_prog in gobjcopy objcopy
27788 do
27789 # Extract the first word of "$ac_prog", so it can be a program name with args.
27790 set dummy $ac_prog; ac_word=$2
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27792 $as_echo_n "checking for $ac_word... " >&6; }
27793 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
27794 $as_echo_n "(cached) " >&6
27795 else
27796 if test -n "$ac_ct_OBJCOPY"; then
27797 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
27798 else
27799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27800 for as_dir in $PATH
27801 do
27802 IFS=$as_save_IFS
27803 test -z "$as_dir" && as_dir=.
27804 for ac_exec_ext in '' $ac_executable_extensions; do
27805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27806 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
27807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27808 break 2
27809 fi
27810 done
27811 done
27812 IFS=$as_save_IFS
27813
28100 else
28101 new_complete="$new_path"
28102 fi
28103
28104 if test "x$complete" != "x$new_complete"; then
28105 OBJCOPY="$new_complete"
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5
28107 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;}
28108 fi
28109
28110 fi
28111 fi
28112
28113 if test -n "$ac_tool_prefix"; then
28114 for ac_prog in gobjdump objdump
28115 do
28116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28119 $as_echo_n "checking for $ac_word... " >&6; }
28120 if ${ac_cv_prog_OBJDUMP+:} false; then :
28121 $as_echo_n "(cached) " >&6
28122 else
28123 if test -n "$OBJDUMP"; then
28124 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
28125 else
28126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28127 for as_dir in $PATH
28128 do
28129 IFS=$as_save_IFS
28130 test -z "$as_dir" && as_dir=.
28131 for ac_exec_ext in '' $ac_executable_extensions; do
28132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28133 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
28134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28135 break 2
28136 fi
28137 done
28138 done
28139 IFS=$as_save_IFS
28140
28144 if test -n "$OBJDUMP"; then
28145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
28146 $as_echo "$OBJDUMP" >&6; }
28147 else
28148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28149 $as_echo "no" >&6; }
28150 fi
28151
28152
28153 test -n "$OBJDUMP" && break
28154 done
28155 fi
28156 if test -z "$OBJDUMP"; then
28157 ac_ct_OBJDUMP=$OBJDUMP
28158 for ac_prog in gobjdump objdump
28159 do
28160 # Extract the first word of "$ac_prog", so it can be a program name with args.
28161 set dummy $ac_prog; ac_word=$2
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28163 $as_echo_n "checking for $ac_word... " >&6; }
28164 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
28165 $as_echo_n "(cached) " >&6
28166 else
28167 if test -n "$ac_ct_OBJDUMP"; then
28168 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
28169 else
28170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28171 for as_dir in $PATH
28172 do
28173 IFS=$as_save_IFS
28174 test -z "$as_dir" && as_dir=.
28175 for ac_exec_ext in '' $ac_executable_extensions; do
28176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28177 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
28178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28179 break 2
28180 fi
28181 done
28182 done
28183 IFS=$as_save_IFS
28184
28468 # Now join together the path and the arguments once again
28469 if test "x$arguments" != xEOL; then
28470 new_complete="$new_path ${arguments% *}"
28471 else
28472 new_complete="$new_path"
28473 fi
28474
28475 if test "x$complete" != "x$new_complete"; then
28476 OBJDUMP="$new_complete"
28477 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
28478 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
28479 fi
28480
28481 fi
28482
28483 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
28484 # Extract the first word of "lipo", so it can be a program name with args.
28485 set dummy lipo; ac_word=$2
28486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28487 $as_echo_n "checking for $ac_word... " >&6; }
28488 if ${ac_cv_path_LIPO+:} false; then :
28489 $as_echo_n "(cached) " >&6
28490 else
28491 case $LIPO in
28492 [\\/]* | ?:[\\/]*)
28493 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
28494 ;;
28495 *)
28496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28497 for as_dir in $PATH
28498 do
28499 IFS=$as_save_IFS
28500 test -z "$as_dir" && as_dir=.
28501 for ac_exec_ext in '' $ac_executable_extensions; do
28502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28503 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
28504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28505 break 2
28506 fi
28507 done
28508 done
28783
28784 if test "x$complete" != "x$new_complete"; then
28785 LIPO="$new_complete"
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5
28787 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;}
28788 fi
28789
28790 fi
28791
28792 # Restore old path without tools dir
28793 PATH="$OLD_PATH"
28794
28795
28796 # FIXME: Currently we must test this after paths but before flags. Fix!
28797
28798 # And we can test some aspects on the target using configure macros.
28799
28800
28801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
28802 $as_echo_n "checking for ANSI C header files... " >&6; }
28803 if ${ac_cv_header_stdc+:} false; then :
28804 $as_echo_n "(cached) " >&6
28805 else
28806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28807 /* end confdefs.h. */
28808 #include <stdlib.h>
28809 #include <stdarg.h>
28810 #include <string.h>
28811 #include <float.h>
28812
28813 int
28814 main ()
28815 {
28816
28817 ;
28818 return 0;
28819 }
28820 _ACEOF
28821 if ac_fn_cxx_try_compile "$LINENO"; then :
28822 ac_cv_header_stdc=yes
28823 else
28917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28918 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
28919 "
28920 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28921 cat >>confdefs.h <<_ACEOF
28922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28923 _ACEOF
28924
28925 fi
28926
28927 done
28928
28929
28930
28931 ###############################################################################
28932 #
28933 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code.
28934 # (The JVM can use 32 or 64 bit Java pointers but that decision
28935 # is made at runtime.)
28936 #
28937
28938
28939
28940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"\"-m${OPENJDK_TARGET_CPU_BITS}\"\"" >&5
28941 $as_echo_n "checking if compiler supports \"\"-m${OPENJDK_TARGET_CPU_BITS}\"\"... " >&6; }
28942 saved_cflags="$CFLAGS"
28943 CFLAGS=""-m${OPENJDK_TARGET_CPU_BITS}""
28944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28945 /* end confdefs.h. */
28946
28947
28948 int main() { return 0; }
28949
28950
28951 _ACEOF
28952 if ac_fn_cxx_try_compile "$LINENO"; then :
28953 supports=yes
28954 else
28955 supports=no
28956 fi
28957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28958 CFLAGS="$saved_cflags"
28959 if "x$supports" = "xyes" ; then
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
28961 $as_echo "$supports" >&6; }
28962 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true
28963 else
28964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
28965 $as_echo "$supports" >&6; }
28966 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false
28967 fi
28968
28969
28970
28971
28972 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
28973 # Always specify -m flags on Solaris
28974
28975
28976 # keep track of c/cxx flags that we added outselves...
28977 # to prevent emitting warning...
28978 ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28979 ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28980 ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28981
28982 CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
28983 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
28984 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
28985
28986 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
28987 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
28988 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
28989
28990 elif test "x$COMPILE_TYPE" = xreduced; then
28991 if test "x$OPENJDK_TARGET_OS" != xwindows; then
28992 # Specify -m if running reduced on other Posix platforms
28993
28994
28995 # keep track of c/cxx flags that we added outselves...
28996 # to prevent emitting warning...
28997 ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28998 ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28999 ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
29000
29001 CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
29002 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
29003 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
29004
29005 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
29006 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
29007 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
29008
29009 fi
29010 fi
29011
29012 # Make compilation sanity check
29013 for ac_header in stdio.h
29014 do :
29015 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
29016 if test "x$ac_cv_header_stdio_h" = xyes; then :
29017 cat >>confdefs.h <<_ACEOF
29018 #define HAVE_STDIO_H 1
29019 _ACEOF
29020
29021 else
29022
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5
29024 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;}
29025 if test "x$COMPILE_TYPE" = xreduced; then
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5
29027 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;}
29028 elif test "x$COMPILE_TYPE" = xcross; then
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5
29030 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;}
29031 fi
29032 as_fn_error $? "Cannot continue." "$LINENO" 5
29033
29034 fi
29035
29036 done
29037
29038
29039 # The cast to long int works around a bug in the HP C Compiler
29040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29042 # This bug is HP SR number 8606223364.
29043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
29044 $as_echo_n "checking size of int *... " >&6; }
29045 if ${ac_cv_sizeof_int_p+:} false; then :
29046 $as_echo_n "(cached) " >&6
29047 else
29048 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
29049
29050 else
29051 if test "$ac_cv_type_int_p" = yes; then
29052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29054 as_fn_error 77 "cannot compute sizeof (int *)
29055 See \`config.log' for more details" "$LINENO" 5; }
29056 else
29057 ac_cv_sizeof_int_p=0
29058 fi
29059 fi
29060
29061 fi
29062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
29063 $as_echo "$ac_cv_sizeof_int_p" >&6; }
29064
29065
29066
29067 cat >>confdefs.h <<_ACEOF
29068 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
29069 _ACEOF
29070
29071
29072
29073 if test "x$SIZEOF_INT_P" != "x$ac_cv_sizeof_int_p"; then
29074 # Workaround autoconf bug, see http://lists.gnu.org/archive/html/autoconf/2010-07/msg00004.html
29075 SIZEOF_INT_P="$ac_cv_sizeof_int_p"
29082 else
29083 TESTED_TARGET_CPU_BITS=`expr 8 \* $SIZEOF_INT_P`
29084
29085 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
29086 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
29087 fi
29088 fi
29089
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5
29091 $as_echo_n "checking for target address size... " >&6; }
29092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5
29093 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; }
29094
29095
29096 ###############################################################################
29097 #
29098 # Is the target little of big endian?
29099 #
29100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
29101 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
29102 if ${ac_cv_c_bigendian+:} false; then :
29103 $as_echo_n "(cached) " >&6
29104 else
29105 ac_cv_c_bigendian=unknown
29106 # See if we're dealing with a universal compiler.
29107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29108 /* end confdefs.h. */
29109 #ifndef __APPLE_CC__
29110 not a universal capable compiler
29111 #endif
29112 typedef int dummy;
29113
29114 _ACEOF
29115 if ac_fn_cxx_try_compile "$LINENO"; then :
29116
29117 # Check for potential -arch flags. It is not universal unless
29118 # there are at least two -arch flags with different values.
29119 ac_arch=
29120 ac_prev=
29121 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
29122 if test -n "$ac_prev"; then
30056 else
30057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, but explicitly disabled." >&5
30058 $as_echo "yes, but explicitly disabled." >&6; }
30059 fi
30060 else
30061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30062 $as_echo "no" >&6; }
30063 fi
30064
30065 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$USE_MACOSX_RUNTIME_SUPPORT" = xno; then
30066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on an X11 build on MacOSX?" >&5
30067 $as_echo_n "checking what is not needed on an X11 build on MacOSX?... " >&6; }
30068 X11_NOT_NEEDED=
30069 FREETYPE2_NOT_NEEDED=
30070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
30071 $as_echo "alsa pulse" >&6; }
30072 fi
30073
30074
30075
30076 ###############################################################################
30077 #
30078 # Check for X Windows
30079 #
30080
30081 # Check if the user has specified sysroot, but not --x-includes or --x-libraries.
30082 # Make a simple check for the libraries at the sysroot, and setup --x-includes and
30083 # --x-libraries for the sysroot, if that seems to be correct.
30084 if test "x$SYS_ROOT" != "x/"; then
30085 if test "x$x_includes" = xNONE; then
30086 if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then
30087 x_includes="$SYS_ROOT/usr/X11R6/include"
30088 fi
30089 fi
30090 if test "x$x_libraries" = xNONE; then
30091 if test -f "$SYS_ROOT/usr/X11R6/lib/libX11.so"; then
30092 x_libraries="$SYS_ROOT/usr/X11R6/lib"
30093 fi
30094 fi
30095 fi
30096
30097 # Now let autoconf do it's magic
30098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
30099 $as_echo_n "checking for X... " >&6; }
30100
30101
30102 # Check whether --with-x was given.
30103 if test "${with_x+set}" = set; then :
30104 withval=$with_x;
30105 fi
30106
30107 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30108 if test "x$with_x" = xno; then
30109 # The user explicitly disabled X.
30110 have_x=disabled
30111 else
30112 case $x_includes,$x_libraries in #(
30113 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
30114 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
30115 $as_echo_n "(cached) " >&6
30116 else
30117 # One or both of the vars are not set, and there is no cached value.
30118 ac_x_includes=no ac_x_libraries=no
30119 rm -f -r conftest.dir
30120 if mkdir conftest.dir; then
30121 cd conftest.dir
30122 cat >Imakefile <<'_ACEOF'
30123 incroot:
30124 @echo incroot='${INCROOT}'
30125 usrlibdir:
30126 @echo usrlibdir='${USRLIBDIR}'
30127 libdir:
30128 @echo libdir='${LIBDIR}'
30129 _ACEOF
30130 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30131 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
30132 for ac_var in incroot usrlibdir libdir; do
30133 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30134 done
30371 /* Override any GCC internal prototype to avoid an error.
30372 Use char because int might match the return type of a GCC
30373 builtin and then its argument prototype would still apply. */
30374 #ifdef __cplusplus
30375 extern "C"
30376 #endif
30377 char XOpenDisplay ();
30378 int
30379 main ()
30380 {
30381 return XOpenDisplay ();
30382 ;
30383 return 0;
30384 }
30385 _ACEOF
30386 if ac_fn_cxx_try_link "$LINENO"; then :
30387
30388 else
30389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
30390 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
30391 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
30392 $as_echo_n "(cached) " >&6
30393 else
30394 ac_check_lib_save_LIBS=$LIBS
30395 LIBS="-ldnet $LIBS"
30396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30397 /* end confdefs.h. */
30398
30399 /* Override any GCC internal prototype to avoid an error.
30400 Use char because int might match the return type of a GCC
30401 builtin and then its argument prototype would still apply. */
30402 #ifdef __cplusplus
30403 extern "C"
30404 #endif
30405 char dnet_ntoa ();
30406 int
30407 main ()
30408 {
30409 return dnet_ntoa ();
30410 ;
30411 return 0;
30412 }
30413 _ACEOF
30414 if ac_fn_cxx_try_link "$LINENO"; then :
30415 ac_cv_lib_dnet_dnet_ntoa=yes
30416 else
30417 ac_cv_lib_dnet_dnet_ntoa=no
30418 fi
30419 rm -f core conftest.err conftest.$ac_objext \
30420 conftest$ac_exeext conftest.$ac_ext
30421 LIBS=$ac_check_lib_save_LIBS
30422 fi
30423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30424 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30425 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
30426 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30427 fi
30428
30429 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
30431 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
30432 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
30433 $as_echo_n "(cached) " >&6
30434 else
30435 ac_check_lib_save_LIBS=$LIBS
30436 LIBS="-ldnet_stub $LIBS"
30437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30438 /* end confdefs.h. */
30439
30440 /* Override any GCC internal prototype to avoid an error.
30441 Use char because int might match the return type of a GCC
30442 builtin and then its argument prototype would still apply. */
30443 #ifdef __cplusplus
30444 extern "C"
30445 #endif
30446 char dnet_ntoa ();
30447 int
30448 main ()
30449 {
30450 return dnet_ntoa ();
30451 ;
30452 return 0;
30453 }
30454 _ACEOF
30455 if ac_fn_cxx_try_link "$LINENO"; then :
30456 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30457 else
30458 ac_cv_lib_dnet_stub_dnet_ntoa=no
30459 fi
30460 rm -f core conftest.err conftest.$ac_objext \
30461 conftest$ac_exeext conftest.$ac_ext
30462 LIBS=$ac_check_lib_save_LIBS
30463 fi
30464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30465 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30466 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
30467 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30468 fi
30469
30470 fi
30471 fi
30472 rm -f core conftest.err conftest.$ac_objext \
30473 conftest$ac_exeext conftest.$ac_ext
30474 LIBS="$ac_xsave_LIBS"
30475
30476 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30477 # to get the SysV transport functions.
30478 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30479 # needs -lnsl.
30480 # The nsl library prevents programs from opening the X display
30481 # on Irix 5.2, according to T.E. Dickey.
30482 # The functions gethostbyname, getservbyname, and inet_addr are
30483 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30484 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
30485 if test "x$ac_cv_func_gethostbyname" = xyes; then :
30486
30487 fi
30488
30489 if test $ac_cv_func_gethostbyname = no; then
30490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
30491 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
30492 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
30493 $as_echo_n "(cached) " >&6
30494 else
30495 ac_check_lib_save_LIBS=$LIBS
30496 LIBS="-lnsl $LIBS"
30497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30498 /* end confdefs.h. */
30499
30500 /* Override any GCC internal prototype to avoid an error.
30501 Use char because int might match the return type of a GCC
30502 builtin and then its argument prototype would still apply. */
30503 #ifdef __cplusplus
30504 extern "C"
30505 #endif
30506 char gethostbyname ();
30507 int
30508 main ()
30509 {
30510 return gethostbyname ();
30511 ;
30512 return 0;
30513 }
30514 _ACEOF
30515 if ac_fn_cxx_try_link "$LINENO"; then :
30516 ac_cv_lib_nsl_gethostbyname=yes
30517 else
30518 ac_cv_lib_nsl_gethostbyname=no
30519 fi
30520 rm -f core conftest.err conftest.$ac_objext \
30521 conftest$ac_exeext conftest.$ac_ext
30522 LIBS=$ac_check_lib_save_LIBS
30523 fi
30524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
30525 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
30526 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
30527 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30528 fi
30529
30530 if test $ac_cv_lib_nsl_gethostbyname = no; then
30531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
30532 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
30533 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
30534 $as_echo_n "(cached) " >&6
30535 else
30536 ac_check_lib_save_LIBS=$LIBS
30537 LIBS="-lbsd $LIBS"
30538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30539 /* end confdefs.h. */
30540
30541 /* Override any GCC internal prototype to avoid an error.
30542 Use char because int might match the return type of a GCC
30543 builtin and then its argument prototype would still apply. */
30544 #ifdef __cplusplus
30545 extern "C"
30546 #endif
30547 char gethostbyname ();
30548 int
30549 main ()
30550 {
30551 return gethostbyname ();
30552 ;
30553 return 0;
30554 }
30555 _ACEOF
30556 if ac_fn_cxx_try_link "$LINENO"; then :
30557 ac_cv_lib_bsd_gethostbyname=yes
30558 else
30559 ac_cv_lib_bsd_gethostbyname=no
30560 fi
30561 rm -f core conftest.err conftest.$ac_objext \
30562 conftest$ac_exeext conftest.$ac_ext
30563 LIBS=$ac_check_lib_save_LIBS
30564 fi
30565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
30566 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
30567 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
30568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30569 fi
30570
30571 fi
30572 fi
30573
30574 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30575 # socket/setsockopt and other routines are undefined under SCO ODT
30576 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30577 # on later versions), says Simon Leinen: it contains gethostby*
30578 # variants that don't use the name server (or something). -lsocket
30579 # must be given before -lnsl if both are needed. We assume that
30580 # if connect needs -lnsl, so does gethostbyname.
30581 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
30582 if test "x$ac_cv_func_connect" = xyes; then :
30583
30584 fi
30585
30586 if test $ac_cv_func_connect = no; then
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
30588 $as_echo_n "checking for connect in -lsocket... " >&6; }
30589 if ${ac_cv_lib_socket_connect+:} false; then :
30590 $as_echo_n "(cached) " >&6
30591 else
30592 ac_check_lib_save_LIBS=$LIBS
30593 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30595 /* end confdefs.h. */
30596
30597 /* Override any GCC internal prototype to avoid an error.
30598 Use char because int might match the return type of a GCC
30599 builtin and then its argument prototype would still apply. */
30600 #ifdef __cplusplus
30601 extern "C"
30602 #endif
30603 char connect ();
30604 int
30605 main ()
30606 {
30607 return connect ();
30608 ;
30609 return 0;
30610 }
30611 _ACEOF
30612 if ac_fn_cxx_try_link "$LINENO"; then :
30613 ac_cv_lib_socket_connect=yes
30614 else
30615 ac_cv_lib_socket_connect=no
30616 fi
30617 rm -f core conftest.err conftest.$ac_objext \
30618 conftest$ac_exeext conftest.$ac_ext
30619 LIBS=$ac_check_lib_save_LIBS
30620 fi
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
30622 $as_echo "$ac_cv_lib_socket_connect" >&6; }
30623 if test "x$ac_cv_lib_socket_connect" = xyes; then :
30624 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30625 fi
30626
30627 fi
30628
30629 # Guillermo Gomez says -lposix is necessary on A/UX.
30630 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
30631 if test "x$ac_cv_func_remove" = xyes; then :
30632
30633 fi
30634
30635 if test $ac_cv_func_remove = no; then
30636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
30637 $as_echo_n "checking for remove in -lposix... " >&6; }
30638 if ${ac_cv_lib_posix_remove+:} false; then :
30639 $as_echo_n "(cached) " >&6
30640 else
30641 ac_check_lib_save_LIBS=$LIBS
30642 LIBS="-lposix $LIBS"
30643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30644 /* end confdefs.h. */
30645
30646 /* Override any GCC internal prototype to avoid an error.
30647 Use char because int might match the return type of a GCC
30648 builtin and then its argument prototype would still apply. */
30649 #ifdef __cplusplus
30650 extern "C"
30651 #endif
30652 char remove ();
30653 int
30654 main ()
30655 {
30656 return remove ();
30657 ;
30658 return 0;
30659 }
30660 _ACEOF
30661 if ac_fn_cxx_try_link "$LINENO"; then :
30662 ac_cv_lib_posix_remove=yes
30663 else
30664 ac_cv_lib_posix_remove=no
30665 fi
30666 rm -f core conftest.err conftest.$ac_objext \
30667 conftest$ac_exeext conftest.$ac_ext
30668 LIBS=$ac_check_lib_save_LIBS
30669 fi
30670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
30671 $as_echo "$ac_cv_lib_posix_remove" >&6; }
30672 if test "x$ac_cv_lib_posix_remove" = xyes; then :
30673 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30674 fi
30675
30676 fi
30677
30678 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30679 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
30680 if test "x$ac_cv_func_shmat" = xyes; then :
30681
30682 fi
30683
30684 if test $ac_cv_func_shmat = no; then
30685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
30686 $as_echo_n "checking for shmat in -lipc... " >&6; }
30687 if ${ac_cv_lib_ipc_shmat+:} false; then :
30688 $as_echo_n "(cached) " >&6
30689 else
30690 ac_check_lib_save_LIBS=$LIBS
30691 LIBS="-lipc $LIBS"
30692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30693 /* end confdefs.h. */
30694
30695 /* Override any GCC internal prototype to avoid an error.
30696 Use char because int might match the return type of a GCC
30697 builtin and then its argument prototype would still apply. */
30698 #ifdef __cplusplus
30699 extern "C"
30700 #endif
30701 char shmat ();
30702 int
30703 main ()
30704 {
30705 return shmat ();
30706 ;
30707 return 0;
30708 }
30709 _ACEOF
30710 if ac_fn_cxx_try_link "$LINENO"; then :
30711 ac_cv_lib_ipc_shmat=yes
30712 else
30713 ac_cv_lib_ipc_shmat=no
30714 fi
30715 rm -f core conftest.err conftest.$ac_objext \
30716 conftest$ac_exeext conftest.$ac_ext
30717 LIBS=$ac_check_lib_save_LIBS
30718 fi
30719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
30720 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
30721 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
30722 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30723 fi
30724
30725 fi
30726 fi
30727
30728 # Check for libraries that X11R6 Xt/Xaw programs need.
30729 ac_save_LDFLAGS=$LDFLAGS
30730 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30731 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30732 # check for ICE first), but we must link in the order -lSM -lICE or
30733 # we get undefined symbols. So assume we have SM if we have ICE.
30734 # These have to be linked with before -lX11, unlike the other
30735 # libraries we check for below, so use a different variable.
30736 # John Interrante, Karl Berry
30737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
30738 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
30739 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
30740 $as_echo_n "(cached) " >&6
30741 else
30742 ac_check_lib_save_LIBS=$LIBS
30743 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30745 /* end confdefs.h. */
30746
30747 /* Override any GCC internal prototype to avoid an error.
30748 Use char because int might match the return type of a GCC
30749 builtin and then its argument prototype would still apply. */
30750 #ifdef __cplusplus
30751 extern "C"
30752 #endif
30753 char IceConnectionNumber ();
30754 int
30755 main ()
30756 {
30757 return IceConnectionNumber ();
30758 ;
30759 return 0;
30760 }
30761 _ACEOF
30762 if ac_fn_cxx_try_link "$LINENO"; then :
30763 ac_cv_lib_ICE_IceConnectionNumber=yes
30764 else
30765 ac_cv_lib_ICE_IceConnectionNumber=no
30766 fi
30767 rm -f core conftest.err conftest.$ac_objext \
30768 conftest$ac_exeext conftest.$ac_ext
30769 LIBS=$ac_check_lib_save_LIBS
30770 fi
30771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30772 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30773 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
30774 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30775 fi
30776
30777 LDFLAGS=$ac_save_LDFLAGS
30778
30779 fi
30780
30781
30782 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
30783 # this doesn't make sense so we remove it.
30784 if test "x$COMPILE_TYPE" = xcross; then
30785 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'`
30786 fi
30787
30788 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
30789
30790 # Print a helpful message on how to acquire the necessary build dependency.
30791 # x11 is the help tag: freetyp2, cups, pulse, alsa etc
30792 MISSING_DEPENDENCY=x11
30793 PKGHANDLER_COMMAND=
31766 pkgutil_help $MISSING_DEPENDENCY ;;
31767 pkgadd)
31768 pkgadd_help $MISSING_DEPENDENCY ;;
31769 * )
31770 break ;;
31771 esac
31772
31773 if test "x$PKGHANDLER_COMMAND" != x; then
31774 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
31775 fi
31776
31777 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
31778 fi
31779
31780 if test "x$OPENJDK_TARGET_OS" != xwindows; then
31781 # AC_CHECK_LIB does not support use of cl.exe
31782 PREV_LDFLAGS="$LDFLAGS"
31783 LDFLAGS="$FREETYPE2_LIBS"
31784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
31785 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
31786 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
31787 $as_echo_n "(cached) " >&6
31788 else
31789 ac_check_lib_save_LIBS=$LIBS
31790 LIBS="-lfreetype $LIBS"
31791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31792 /* end confdefs.h. */
31793
31794 /* Override any GCC internal prototype to avoid an error.
31795 Use char because int might match the return type of a GCC
31796 builtin and then its argument prototype would still apply. */
31797 #ifdef __cplusplus
31798 extern "C"
31799 #endif
31800 char FT_Init_FreeType ();
31801 int
31802 main ()
31803 {
31804 return FT_Init_FreeType ();
31805 ;
31806 return 0;
31807 }
31808 _ACEOF
31809 if ac_fn_cxx_try_link "$LINENO"; then :
31810 ac_cv_lib_freetype_FT_Init_FreeType=yes
31811 else
31812 ac_cv_lib_freetype_FT_Init_FreeType=no
31813 fi
31814 rm -f core conftest.err conftest.$ac_objext \
31815 conftest$ac_exeext conftest.$ac_ext
31816 LIBS=$ac_check_lib_save_LIBS
31817 fi
31818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
31819 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
31820 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
31821 FREETYPE2_FOUND=true
31822 else
31823 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
31824 fi
31825
31826 LDFLAGS="$PREV_LDFLAGS"
31827 fi
31828 fi
31829
31830
31831
31832
31833
31834
31835
31836
31837
31838 ###############################################################################
31839 #
31840 # Check for alsa headers and libraries. Used on Linux/GNU systems.
32088 # Put the nasty error message in config.log where it belongs
32089 echo "$ALSA_PKG_ERRORS" >&5
32090
32091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32092 $as_echo "no" >&6; }
32093 ALSA_FOUND=no
32094 elif test $pkg_failed = untried; then
32095 ALSA_FOUND=no
32096 else
32097 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
32098 ALSA_LIBS=$pkg_cv_ALSA_LIBS
32099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32100 $as_echo "yes" >&6; }
32101 ALSA_FOUND=yes
32102 fi
32103 fi
32104 if test "x$ALSA_FOUND" = xno; then
32105 for ac_header in alsa/asoundlib.h
32106 do :
32107 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
32108 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
32109 cat >>confdefs.h <<_ACEOF
32110 #define HAVE_ALSA_ASOUNDLIB_H 1
32111 _ACEOF
32112 ALSA_FOUND=yes
32113 ALSA_CFLAGS=-Iignoreme
32114 ALSA_LIBS=-lasound
32115 DEFAULT_ALSA=yes
32116 else
32117 ALSA_FOUND=no
32118 fi
32119
32120 done
32121
32122 fi
32123 if test "x$ALSA_FOUND" = xno; then
32124
32125 # Print a helpful message on how to acquire the necessary build dependency.
32126 # alsa is the help tag: freetyp2, cups, pulse, alsa etc
32127 MISSING_DEPENDENCY=alsa
32128 PKGHANDLER_COMMAND=
32147 fi
32148
32149 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
32150 fi
32151 fi
32152
32153
32154
32155
32156
32157
32158
32159 ###############################################################################
32160 #
32161 # Check for the jpeg library
32162 #
32163
32164 USE_EXTERNAL_LIBJPEG=true
32165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
32166 $as_echo_n "checking for main in -ljpeg... " >&6; }
32167 if ${ac_cv_lib_jpeg_main+:} false; then :
32168 $as_echo_n "(cached) " >&6
32169 else
32170 ac_check_lib_save_LIBS=$LIBS
32171 LIBS="-ljpeg $LIBS"
32172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32173 /* end confdefs.h. */
32174
32175
32176 int
32177 main ()
32178 {
32179 return main ();
32180 ;
32181 return 0;
32182 }
32183 _ACEOF
32184 if ac_fn_cxx_try_link "$LINENO"; then :
32185 ac_cv_lib_jpeg_main=yes
32186 else
32187 ac_cv_lib_jpeg_main=no
32188 fi
32189 rm -f core conftest.err conftest.$ac_objext \
32190 conftest$ac_exeext conftest.$ac_ext
32191 LIBS=$ac_check_lib_save_LIBS
32192 fi
32193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
32194 $as_echo "$ac_cv_lib_jpeg_main" >&6; }
32195 if test "x$ac_cv_lib_jpeg_main" = xyes; then :
32196 cat >>confdefs.h <<_ACEOF
32197 #define HAVE_LIBJPEG 1
32198 _ACEOF
32199
32200 LIBS="-ljpeg $LIBS"
32201
32202 else
32203 USE_EXTERNAL_LIBJPEG=false
32204 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
32205 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
32206
32207 fi
32208
32209
32210
32211 ###############################################################################
32212 #
32213 # Check for the gif library
32214 #
32215
32224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5
32225 $as_echo_n "checking for which giflib to use... " >&6; }
32226
32227 # default is bundled
32228 DEFAULT_GIFLIB=bundled
32229
32230 #
32231 # if user didn't specify, use DEFAULT_GIFLIB
32232 #
32233 if test "x${with_giflib}" = "x"; then
32234 with_giflib=${DEFAULT_GIFLIB}
32235 fi
32236
32237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5
32238 $as_echo "${with_giflib}" >&6; }
32239
32240 if test "x${with_giflib}" = "xbundled"; then
32241 USE_EXTERNAL_LIBGIF=false
32242 elif test "x${with_giflib}" = "xsystem"; then
32243 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
32244 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
32245
32246 else
32247 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5
32248 fi
32249
32250
32251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5
32252 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; }
32253 if ${ac_cv_lib_gif_DGifGetCode+:} false; then :
32254 $as_echo_n "(cached) " >&6
32255 else
32256 ac_check_lib_save_LIBS=$LIBS
32257 LIBS="-lgif $LIBS"
32258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32259 /* end confdefs.h. */
32260
32261 /* Override any GCC internal prototype to avoid an error.
32262 Use char because int might match the return type of a GCC
32263 builtin and then its argument prototype would still apply. */
32264 #ifdef __cplusplus
32265 extern "C"
32266 #endif
32267 char DGifGetCode ();
32268 int
32269 main ()
32270 {
32271 return DGifGetCode ();
32272 ;
32273 return 0;
32274 }
32275 _ACEOF
32276 if ac_fn_cxx_try_link "$LINENO"; then :
32277 ac_cv_lib_gif_DGifGetCode=yes
32278 else
32279 ac_cv_lib_gif_DGifGetCode=no
32280 fi
32281 rm -f core conftest.err conftest.$ac_objext \
32282 conftest$ac_exeext conftest.$ac_ext
32283 LIBS=$ac_check_lib_save_LIBS
32284 fi
32285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
32286 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
32287 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then :
32288 cat >>confdefs.h <<_ACEOF
32289 #define HAVE_LIBGIF 1
32290 _ACEOF
32291
32292 LIBS="-lgif $LIBS"
32293
32294 else
32295 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
32296 fi
32297
32298
32299 USE_EXTERNAL_LIBGIF=true
32300 else
32301 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
32302 fi
32303
32304
32305 ###############################################################################
32306 #
32307 # Check for the zlib library
32308 #
32309
32310
32311 # Check whether --with-zlib was given.
32312 if test "${with_zlib+set}" = set; then :
32313 withval=$with_zlib;
32314 fi
32315
32316
32317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
32318 $as_echo_n "checking for compress in -lz... " >&6; }
32319 if ${ac_cv_lib_z_compress+:} false; then :
32320 $as_echo_n "(cached) " >&6
32321 else
32322 ac_check_lib_save_LIBS=$LIBS
32323 LIBS="-lz $LIBS"
32324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32325 /* end confdefs.h. */
32326
32327 /* Override any GCC internal prototype to avoid an error.
32328 Use char because int might match the return type of a GCC
32329 builtin and then its argument prototype would still apply. */
32330 #ifdef __cplusplus
32331 extern "C"
32332 #endif
32333 char compress ();
32334 int
32335 main ()
32336 {
32337 return compress ();
32338 ;
32339 return 0;
32340 }
32341 _ACEOF
32342 if ac_fn_cxx_try_link "$LINENO"; then :
32343 ac_cv_lib_z_compress=yes
32344 else
32345 ac_cv_lib_z_compress=no
32346 fi
32347 rm -f core conftest.err conftest.$ac_objext \
32348 conftest$ac_exeext conftest.$ac_ext
32349 LIBS=$ac_check_lib_save_LIBS
32350 fi
32351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
32352 $as_echo "$ac_cv_lib_z_compress" >&6; }
32353 if test "x$ac_cv_lib_z_compress" = xyes; then :
32354 ZLIB_FOUND=yes
32355 else
32356 ZLIB_FOUND=no
32357 fi
32358
32359
32360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5
32361 $as_echo_n "checking for which zlib to use... " >&6; }
32362
32363 DEFAULT_ZLIB=bundled
32364 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
32365 #
32366 # On macosx default is system...on others default is
32367 #
32368 DEFAULT_ZLIB=system
32369 fi
32370
32371 if test "x${ZLIB_FOUND}" != "xyes"; then
32372 #
32373 # If we don't find any system...set default to bundled
32426 if ac_fn_cxx_try_link "$LINENO"; then :
32427 has_altzone=yes
32428 else
32429 has_altzone=no
32430 fi
32431 rm -f core conftest.err conftest.$ac_objext \
32432 conftest$ac_exeext conftest.$ac_ext
32433 if test "x$has_altzone" = xyes; then
32434
32435 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
32436
32437 fi
32438
32439 ###############################################################################
32440 #
32441 # Check the maths library
32442 #
32443
32444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
32445 $as_echo_n "checking for cos in -lm... " >&6; }
32446 if ${ac_cv_lib_m_cos+:} false; then :
32447 $as_echo_n "(cached) " >&6
32448 else
32449 ac_check_lib_save_LIBS=$LIBS
32450 LIBS="-lm $LIBS"
32451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32452 /* end confdefs.h. */
32453
32454 /* Override any GCC internal prototype to avoid an error.
32455 Use char because int might match the return type of a GCC
32456 builtin and then its argument prototype would still apply. */
32457 #ifdef __cplusplus
32458 extern "C"
32459 #endif
32460 char cos ();
32461 int
32462 main ()
32463 {
32464 return cos ();
32465 ;
32466 return 0;
32467 }
32468 _ACEOF
32469 if ac_fn_cxx_try_link "$LINENO"; then :
32470 ac_cv_lib_m_cos=yes
32471 else
32472 ac_cv_lib_m_cos=no
32473 fi
32474 rm -f core conftest.err conftest.$ac_objext \
32475 conftest$ac_exeext conftest.$ac_ext
32476 LIBS=$ac_check_lib_save_LIBS
32477 fi
32478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
32479 $as_echo "$ac_cv_lib_m_cos" >&6; }
32480 if test "x$ac_cv_lib_m_cos" = xyes; then :
32481 cat >>confdefs.h <<_ACEOF
32482 #define HAVE_LIBM 1
32483 _ACEOF
32484
32485 LIBS="-lm $LIBS"
32486
32487 else
32488
32489 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
32490 $as_echo "$as_me: Maths library was not found" >&6;}
32491
32492 fi
32493
32494
32495
32496 ###############################################################################
32497 #
32498 # Check for libdl.so
32499
32500 save_LIBS="$LIBS"
32501 LIBS=""
32502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
32503 $as_echo_n "checking for dlopen in -ldl... " >&6; }
32504 if ${ac_cv_lib_dl_dlopen+:} false; then :
32505 $as_echo_n "(cached) " >&6
32506 else
32507 ac_check_lib_save_LIBS=$LIBS
32508 LIBS="-ldl $LIBS"
32509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32510 /* end confdefs.h. */
32511
32512 /* Override any GCC internal prototype to avoid an error.
32513 Use char because int might match the return type of a GCC
32514 builtin and then its argument prototype would still apply. */
32515 #ifdef __cplusplus
32516 extern "C"
32517 #endif
32518 char dlopen ();
32519 int
32520 main ()
32521 {
32522 return dlopen ();
32523 ;
32524 return 0;
32525 }
32526 _ACEOF
32527 if ac_fn_cxx_try_link "$LINENO"; then :
32528 ac_cv_lib_dl_dlopen=yes
32529 else
32530 ac_cv_lib_dl_dlopen=no
32531 fi
32532 rm -f core conftest.err conftest.$ac_objext \
32533 conftest$ac_exeext conftest.$ac_ext
32534 LIBS=$ac_check_lib_save_LIBS
32535 fi
32536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
32537 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
32538 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
32539 cat >>confdefs.h <<_ACEOF
32540 #define HAVE_LIBDL 1
32541 _ACEOF
32542
32543 LIBS="-ldl $LIBS"
32544
32545 fi
32546
32547 LIBDL="$LIBS"
32548
32549 LIBS="$save_LIBS"
32550
32551
32552
32553 ###############################################################################
32554 #
32555 # statically link libstdc++ before C++ ABI is stablized on Linux unless
32556 # dynamic build is configured on command line.
32557 #
32558
32748
32749 Consider adjusting the PKG_CONFIG_PATH environment variable if you
32750 installed software in a non-standard prefix.
32751
32752 Alternatively, you may set the environment variables LIBFFI_CFLAGS
32753 and LIBFFI_LIBS to avoid the need to call pkg-config.
32754 See the pkg-config man page for more details.
32755 " "$LINENO" 5
32756 elif test $pkg_failed = untried; then
32757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32759 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
32760 is in your PATH or set the PKG_CONFIG environment variable to the full
32761 path to pkg-config.
32762
32763 Alternatively, you may set the environment variables LIBFFI_CFLAGS
32764 and LIBFFI_LIBS to avoid the need to call pkg-config.
32765 See the pkg-config man page for more details.
32766
32767 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32768 See \`config.log' for more details" "$LINENO" 5; }
32769 else
32770 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
32771 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
32772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32773 $as_echo "yes" >&6; }
32774 :
32775 fi
32776
32777 fi
32778
32779 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
32780 # Extract the first word of "llvm-config", so it can be a program name with args.
32781 set dummy llvm-config; ac_word=$2
32782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32783 $as_echo_n "checking for $ac_word... " >&6; }
32784 if ${ac_cv_prog_LLVM_CONFIG+:} false; then :
32785 $as_echo_n "(cached) " >&6
32786 else
32787 if test -n "$LLVM_CONFIG"; then
32788 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test.
32789 else
32790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32791 for as_dir in $PATH
32792 do
32793 IFS=$as_save_IFS
32794 test -z "$as_dir" && as_dir=.
32795 for ac_exec_ext in '' $ac_executable_extensions; do
32796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32797 ac_cv_prog_LLVM_CONFIG="llvm-config"
32798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32799 break 2
32800 fi
32801 done
32802 done
32803 IFS=$as_save_IFS
32804
33382 fi
33383 fi
33384
33385
33386
33387
33388 # Setup use of ccache, if available
33389
33390 # Check whether --enable-ccache was given.
33391 if test "${enable_ccache+set}" = set; then :
33392 enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache}
33393 else
33394 ENABLE_CCACHE=yes
33395 fi
33396
33397 if test "x$ENABLE_CCACHE" = xyes; then
33398 # Extract the first word of "ccache", so it can be a program name with args.
33399 set dummy ccache; ac_word=$2
33400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33401 $as_echo_n "checking for $ac_word... " >&6; }
33402 if ${ac_cv_path_CCACHE+:} false; then :
33403 $as_echo_n "(cached) " >&6
33404 else
33405 case $CCACHE in
33406 [\\/]* | ?:[\\/]*)
33407 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
33408 ;;
33409 *)
33410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33411 for as_dir in $PATH
33412 do
33413 IFS=$as_save_IFS
33414 test -z "$as_dir" && as_dir=.
33415 for ac_exec_ext in '' $ac_executable_extensions; do
33416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33417 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
33418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33419 break 2
33420 fi
33421 done
33422 done
33643 "s/'/'\\\\''/g;
33644 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33645 ;; #(
33646 *)
33647 # `set' quotes correctly as required by POSIX, so do not add quotes.
33648 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33649 ;;
33650 esac |
33651 sort
33652 ) |
33653 sed '
33654 /^ac_cv_env_/b end
33655 t clear
33656 :clear
33657 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33658 t end
33659 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33660 :end' >>confcache
33661 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33662 if test -w "$cache_file"; then
33663 if test "x$cache_file" != "x/dev/null"; then
33664 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33665 $as_echo "$as_me: updating cache $cache_file" >&6;}
33666 if test ! -f "$cache_file" || test -h "$cache_file"; then
33667 cat confcache >"$cache_file"
33668 else
33669 case $cache_file in #(
33670 */* | ?:*)
33671 mv -f confcache "$cache_file"$$ &&
33672 mv -f "$cache_file"$$ "$cache_file" ;; #(
33673 *)
33674 mv -f confcache "$cache_file" ;;
33675 esac
33676 fi
33677 fi
33678 else
33679 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33680 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33681 fi
33682 fi
33683 rm -f confcache
33684
33685 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33686 # Let make expand exec_prefix.
33687 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33688
33689 DEFS=-DHAVE_CONFIG_H
33690
33691 ac_libobjs=
33692 ac_ltlibobjs=
33693 U=
33694 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33695 # 1. Remove the extension, and $U if already installed.
33696 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33697 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33698 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33699 # will be set to the directory where LIBOBJS objects are built.
33700 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33701 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33702 done
33703 LIBOBJS=$ac_libobjs
33704
33705 LTLIBOBJS=$ac_ltlibobjs
33706
33707
33708
33709 : "${CONFIG_STATUS=./config.status}"
33710 ac_write_fail=0
33711 ac_clean_files_save=$ac_clean_files
33712 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33713 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33714 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33715 as_write_fail=0
33716 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33717 #! $SHELL
33718 # Generated by $as_me.
33719 # Run this file to recreate the current configuration.
33720 # Compiler output produced by configure, useful for debugging
33721 # configure, is in config.log if it exists.
33722
33723 debug=false
33724 ac_cs_recheck=false
33725 ac_cs_silent=false
33726
33727 SHELL=\${CONFIG_SHELL-$SHELL}
33728 export SHELL
33729 _ASEOF
33790 fi
33791
33792 # The user is always right.
33793 if test "${PATH_SEPARATOR+set}" != set; then
33794 PATH_SEPARATOR=:
33795 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33796 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33797 PATH_SEPARATOR=';'
33798 }
33799 fi
33800
33801
33802 # IFS
33803 # We need space, tab and new line, in precisely that order. Quoting is
33804 # there to prevent editors from complaining about space-tab.
33805 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33806 # splitting by setting IFS to empty value.)
33807 IFS=" "" $as_nl"
33808
33809 # Find who we are. Look in the path if we contain no directory separator.
33810 as_myself=
33811 case $0 in #((
33812 *[\\/]* ) as_myself=$0 ;;
33813 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33814 for as_dir in $PATH
33815 do
33816 IFS=$as_save_IFS
33817 test -z "$as_dir" && as_dir=.
33818 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33819 done
33820 IFS=$as_save_IFS
33821
33822 ;;
33823 esac
33824 # We did not find ourselves, most probably we were run as `sh COMMAND'
33825 # in which case we are not to be found in the path.
33826 if test "x$as_myself" = x; then
33827 as_myself=$0
33828 fi
33829 if test ! -f "$as_myself"; then
33830 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34098 # Sed expression to map a string onto a valid CPP name.
34099 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34100
34101 # Sed expression to map a string onto a valid variable name.
34102 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34103
34104
34105 exec 6>&1
34106 ## ----------------------------------- ##
34107 ## Main body of $CONFIG_STATUS script. ##
34108 ## ----------------------------------- ##
34109 _ASEOF
34110 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34111
34112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34113 # Save the log message, to keep $0 and so on meaningful, and to
34114 # report actual input values of CONFIG_FILES etc. instead of their
34115 # values after options handling.
34116 ac_log="
34117 This file was extended by OpenJDK $as_me jdk8, which was
34118 generated by GNU Autoconf 2.68. Invocation command line was
34119
34120 CONFIG_FILES = $CONFIG_FILES
34121 CONFIG_HEADERS = $CONFIG_HEADERS
34122 CONFIG_LINKS = $CONFIG_LINKS
34123 CONFIG_COMMANDS = $CONFIG_COMMANDS
34124 $ $0 $@
34125
34126 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34127 "
34128
34129 _ACEOF
34130
34131 case $ac_config_files in *"
34132 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34133 esac
34134
34135 case $ac_config_headers in *"
34136 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34137 esac
34138
34161 --recheck update $as_me by reconfiguring in the same conditions
34162 --file=FILE[:TEMPLATE]
34163 instantiate the configuration file FILE
34164 --header=FILE[:TEMPLATE]
34165 instantiate the configuration header FILE
34166
34167 Configuration files:
34168 $config_files
34169
34170 Configuration headers:
34171 $config_headers
34172
34173 Report bugs to <build-dev@openjdk.java.net>.
34174 OpenJDK home page: <http://openjdk.java.net>."
34175
34176 _ACEOF
34177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34178 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34179 ac_cs_version="\\
34180 OpenJDK config.status jdk8
34181 configured by $0, generated by GNU Autoconf 2.68,
34182 with options \\"\$ac_cs_config\\"
34183
34184 Copyright (C) 2010 Free Software Foundation, Inc.
34185 This config.status script is free software; the Free Software Foundation
34186 gives unlimited permission to copy, distribute and modify it."
34187
34188 ac_pwd='$ac_pwd'
34189 srcdir='$srcdir'
34190 AWK='$AWK'
34191 test -n "\$AWK" || AWK=awk
34192 _ACEOF
34193
34194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34195 # The default lists apply if the user does not specify any file.
34196 ac_need_defaults=:
34197 while test $# != 0
34198 do
34199 case $1 in
34200 --*=?*)
34201 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34290 } >&5
34291
34292 _ACEOF
34293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34294 _ACEOF
34295
34296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34297
34298 # Handling of arguments.
34299 for ac_config_target in $ac_config_targets
34300 do
34301 case $ac_config_target in
34302 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;;
34303 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;;
34304 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;;
34305 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;;
34306 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;;
34307 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;;
34308 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;;
34309
34310 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34311 esac
34312 done
34313
34314
34315 # If the user did not use the arguments to specify the items to instantiate,
34316 # then the envvar interface is used. Set only those that are not.
34317 # We use the long form for the default assignment because of an extremely
34318 # bizarre bug on SunOS 4.1.3.
34319 if $ac_need_defaults; then
34320 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34321 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34322 fi
34323
34324 # Have a temporary directory for convenience. Make it in the build tree
34325 # simply because there is no reason against having it here, and in addition,
34326 # creating and moving files from /tmp can sometimes cause problems.
34327 # Hook for its removal unless debugging.
34328 # Note that there is a small window in which the directory will not be cleaned:
34329 # after its creation but before its name has been assigned to `$tmp'.
34330 $debug ||
34331 {
34332 tmp= ac_tmp=
34333 trap 'exit_status=$?
34334 : "${ac_tmp:=$tmp}"
34335 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34336 ' 0
34337 trap 'as_fn_exit 1' 1 2 13 15
34338 }
34339 # Create a (secure) tmp directory for tmp files.
34340
34341 {
34342 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34343 test -d "$tmp"
34344 } ||
34345 {
34346 tmp=./conf$$-$RANDOM
34347 (umask 077 && mkdir "$tmp")
34348 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34349 ac_tmp=$tmp
34350
34351 # Set up the scripts for CONFIG_FILES section.
34352 # No need to generate them if there are no CONFIG_FILES.
34353 # This happens for instance with `./config.status config.h'.
34354 if test -n "$CONFIG_FILES"; then
34355
34356
34357 ac_cr=`echo X | tr X '\015'`
34358 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34359 # But we know of no other shell where ac_cr would be empty at this
34360 # point, so we can use a bashism as a fallback.
34361 if test "x$ac_cr" = x; then
34362 eval ac_cr=\$\'\\r\'
34363 fi
34364 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34365 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34366 ac_cs_awk_cr='\\r'
34367 else
34368 ac_cs_awk_cr=$ac_cr
34369 fi
34370
34371 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34372 _ACEOF
34373
34374
34375 {
34376 echo "cat >conf$$subs.awk <<_ACEOF" &&
34377 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34378 echo "_ACEOF"
34379 } >conf$$subs.sh ||
34380 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34381 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34382 ac_delim='%!_!# '
34383 for ac_last_try in false false false false false :; do
34384 . ./conf$$subs.sh ||
34385 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34386
34387 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34388 if test $ac_delim_n = $ac_delim_num; then
34389 break
34390 elif $ac_last_try; then
34391 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34392 else
34393 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34394 fi
34395 done
34396 rm -f conf$$subs.sh
34397
34398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34399 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34400 _ACEOF
34401 sed -n '
34402 h
34403 s/^/S["/; s/!.*/"]=/
34404 p
34405 g
34406 s/^[^!]*!//
34407 :repl
34408 t repl
34409 s/'"$ac_delim"'$//
34410 t delim
34411 :nl
34412 h
34413 s/\(.\{148\}\)..*/\1/
34414 t more1
34415 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34416 p
34417 n
34418 b repl
34419 :more1
34427 s/\(.\{148\}\)..*/\1/
34428 t more2
34429 s/["\\]/\\&/g; s/^/"/; s/$/"/
34430 p
34431 b
34432 :more2
34433 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34434 p
34435 g
34436 s/.\{148\}//
34437 t delim
34438 ' <conf$$subs.awk | sed '
34439 /^[^""]/{
34440 N
34441 s/\n//
34442 }
34443 ' >>$CONFIG_STATUS || ac_write_fail=1
34444 rm -f conf$$subs.awk
34445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34446 _ACAWK
34447 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
34448 for (key in S) S_is_set[key] = 1
34449 FS = ""
34450
34451 }
34452 {
34453 line = $ 0
34454 nfields = split(line, field, "@")
34455 substed = 0
34456 len = length(field[1])
34457 for (i = 2; i < nfields; i++) {
34458 key = field[i]
34459 keylen = length(key)
34460 if (S_is_set[key]) {
34461 value = S[key]
34462 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34463 len += length(value) + length(field[++i])
34464 substed = 1
34465 } else
34466 len += 1 + keylen
34467 }
34468
34469 print line
34470 }
34471
34472 _ACAWK
34473 _ACEOF
34474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34475 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34476 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34477 else
34478 cat
34479 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
34480 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34481 _ACEOF
34482
34483 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34484 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34485 # trailing colons and then remove the whole line if VPATH becomes empty
34486 # (actually we leave an empty line to preserve line numbers).
34487 if test "x$srcdir" = x.; then
34488 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34489 h
34490 s///
34491 s/^/:/
34492 s/[ ]*$/:/
34493 s/:\$(srcdir):/:/g
34494 s/:\${srcdir}:/:/g
34495 s/:@srcdir@:/:/g
34496 s/^:*//
34497 s/:*$//
34498 x
34499 s/\(=[ ]*\).*/\1/
34500 G
34501 s/\n//
34502 s/^[^=]*=[ ]*$//
34503 }'
34504 fi
34505
34506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34507 fi # test -n "$CONFIG_FILES"
34508
34509 # Set up the scripts for CONFIG_HEADERS section.
34510 # No need to generate them if there are no CONFIG_HEADERS.
34511 # This happens for instance with `./config.status Makefile'.
34512 if test -n "$CONFIG_HEADERS"; then
34513 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34514 BEGIN {
34515 _ACEOF
34516
34517 # Transform confdefs.h into an awk script `defines.awk', embedded as
34518 # here-document in config.status, that substitutes the proper values into
34519 # config.h.in to produce config.h.
34520
34521 # Create a delimiter string that does not exist in confdefs.h, to ease
34522 # handling of long lines.
34523 ac_delim='%!_!# '
34524 for ac_last_try in false false :; do
34525 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34526 if test -z "$ac_tt"; then
34527 break
34528 elif $ac_last_try; then
34529 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34530 else
34531 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34532 fi
34533 done
34534
34535 # For the awk script, D is an array of macro values keyed by name,
34536 # likewise P contains macro parameters if any. Preserve backslash
34537 # newline sequences.
34538
34539 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34540 sed -n '
34541 s/.\{148\}/&'"$ac_delim"'/g
34542 t rset
34543 :rset
34544 s/^[ ]*#[ ]*define[ ][ ]*/ /
34545 t def
34546 d
34607 }
34608 }
34609 }
34610 { print }
34611 _ACAWK
34612 _ACEOF
34613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34614 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34615 fi # test -n "$CONFIG_HEADERS"
34616
34617
34618 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
34619 shift
34620 for ac_tag
34621 do
34622 case $ac_tag in
34623 :[FHLC]) ac_mode=$ac_tag; continue;;
34624 esac
34625 case $ac_mode$ac_tag in
34626 :[FHL]*:*);;
34627 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34628 :[FH]-) ac_tag=-:-;;
34629 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34630 esac
34631 ac_save_IFS=$IFS
34632 IFS=:
34633 set x $ac_tag
34634 IFS=$ac_save_IFS
34635 shift
34636 ac_file=$1
34637 shift
34638
34639 case $ac_mode in
34640 :L) ac_source=$1;;
34641 :[FH])
34642 ac_file_inputs=
34643 for ac_f
34644 do
34645 case $ac_f in
34646 -) ac_f="$ac_tmp/stdin";;
34647 *) # Look for the file first in the build tree, then in the source tree
34648 # (if the path is not absolute). The absolute path cannot be DOS-style,
34649 # because $ac_f cannot contain `:'.
34650 test -f "$ac_f" ||
34651 case $ac_f in
34652 [\\/$]*) false;;
34653 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34654 esac ||
34655 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34656 esac
34657 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34658 as_fn_append ac_file_inputs " '$ac_f'"
34659 done
34660
34661 # Let's still pretend it is `configure' which instantiates (i.e., don't
34662 # use $as_me), people would be surprised to read:
34663 # /* config.h. Generated by config.status. */
34664 configure_input='Generated from '`
34665 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34666 `' by configure.'
34667 if test x"$ac_file" != x-; then
34668 configure_input="$ac_file. $configure_input"
34669 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34670 $as_echo "$as_me: creating $ac_file" >&6;}
34671 fi
34672 # Neutralize special characters interpreted by sed in replacement strings.
34673 case $configure_input in #(
34674 *\&* | *\|* | *\\* )
34675 ac_sed_conf_input=`$as_echo "$configure_input" |
34676 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34677 *) ac_sed_conf_input=$configure_input;;
34678 esac
34679
34680 case $ac_tag in
34681 *:-:* | *:-) cat >"$ac_tmp/stdin" \
34682 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34683 esac
34684 ;;
34685 esac
34686
34687 ac_dir=`$as_dirname -- "$ac_file" ||
34688 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34689 X"$ac_file" : 'X\(//\)[^/]' \| \
34690 X"$ac_file" : 'X\(//\)$' \| \
34691 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34692 $as_echo X"$ac_file" |
34693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34694 s//\1/
34695 q
34696 }
34697 /^X\(\/\/\)[^/].*/{
34698 s//\1/
34699 q
34700 }
34701 /^X\(\/\/\)$/{
34787 # FIXME: do we really want to maintain this feature?
34788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34789 ac_sed_extra="$ac_vpsub
34790 $extrasub
34791 _ACEOF
34792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34793 :t
34794 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34795 s|@configure_input@|$ac_sed_conf_input|;t t
34796 s&@top_builddir@&$ac_top_builddir_sub&;t t
34797 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34798 s&@srcdir@&$ac_srcdir&;t t
34799 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34800 s&@top_srcdir@&$ac_top_srcdir&;t t
34801 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34802 s&@builddir@&$ac_builddir&;t t
34803 s&@abs_builddir@&$ac_abs_builddir&;t t
34804 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34805 $ac_datarootdir_hack
34806 "
34807 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
34808 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34809
34810 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34811 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34812 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
34813 "$ac_tmp/out"`; test -z "$ac_out"; } &&
34814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34815 which seems to be undefined. Please make sure it is defined" >&5
34816 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34817 which seems to be undefined. Please make sure it is defined" >&2;}
34818
34819 rm -f "$ac_tmp/stdin"
34820 case $ac_file in
34821 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34822 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34823 esac \
34824 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34825 ;;
34826 :H)
34827 #
34828 # CONFIG_HEADER
34829 #
34830 if test x"$ac_file" != x-; then
34831 {
34832 $as_echo "/* $configure_input */" \
34833 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34834 } >"$ac_tmp/config.h" \
34835 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34836 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34837 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34838 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34839 else
34840 rm -f "$ac_file"
34841 mv "$ac_tmp/config.h" "$ac_file" \
34842 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34843 fi
34844 else
34845 $as_echo "/* $configure_input */" \
34846 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34847 || as_fn_error $? "could not create -" "$LINENO" 5
34848 fi
34849 ;;
34850
34851
34852 esac
34853
34854 done # for ac_tag
34855
34856
34857 as_fn_exit 0
34858 _ACEOF
34859 ac_clean_files=$ac_clean_files_save
34860
34861 test $ac_write_fail = 0 ||
34862 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34863
34864
34865 # configure is writing to config.log, and then calls config.status.
34866 # config.status does its own redirection, appending to config.log.
|