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=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
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
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
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}
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337 else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
464 *)
465 ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489 else
490 as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
534
535 # Name of the host.
536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
706 MT
707 WINLD
708 HOTSPOT_LD
709 HOTSPOT_CXX
710 ARFLAGS
711 AR
712 LDEXECXX
713 LDCXX
714 LDEXE
715 LD
716 ac_ct_OBJC
717 OBJCFLAGS
718 OBJC
719 ac_ct_CXX
720 CXXFLAGS
721 CXX
722 ac_ct_PROPER_COMPILER_CXX
723 PROPER_COMPILER_CXX
724 POTENTIAL_CXX
725 TOOLS_DIR_CXX
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
732 CC
733 ac_ct_PROPER_COMPILER_CC
734 PROPER_COMPILER_CC
735 POTENTIAL_CC
736 TOOLS_DIR_CC
737 BUILD_LD
738 BUILD_CXX
739 BUILD_CC
740 MSVCR_DLL
741 DXSDK_INCLUDE_PATH
742 DXSDK_LIB_PATH
743 VS_PATH
744 VS_LIB
745 VS_INCLUDE
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 \
1499 esac
1500 # Be sure to have absolute directory names.
1501 case $ac_val in
1502 [\\/$]* | ?:[\\/]* ) continue;;
1503 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1504 esac
1505 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1506 done
1507
1508 # There might be people who depend on the old broken behavior: `$host'
1509 # used to hold the argument of --host etc.
1510 # FIXME: To remove some day.
1511 build=$build_alias
1512 host=$host_alias
1513 target=$target_alias
1514
1515 # FIXME: To remove some day.
1516 if test "x$host_alias" != x; then
1517 if test "x$build_alias" = x; then
1518 cross_compiling=maybe
1519 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1520 If a cross compiler is detected then cross compile mode will be used" >&2
1521 elif test "x$build_alias" != "x$host_alias"; then
1522 cross_compiling=yes
1523 fi
1524 fi
1525
1526 ac_tool_prefix=
1527 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1528
1529 test "$silent" = yes && exec 6>/dev/null
1530
1531
1532 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1533 ac_ls_di=`ls -di .` &&
1534 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1535 as_fn_error $? "working directory cannot be determined"
1536 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1537 as_fn_error $? "pwd does not report name of working directory"
1538
1539
1540 # Find the source files, if location was not specified.
1886
1887 cd "$ac_dir" || { ac_status=$?; continue; }
1888 # Check for guested configure.
1889 if test -f "$ac_srcdir/configure.gnu"; then
1890 echo &&
1891 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1892 elif test -f "$ac_srcdir/configure"; then
1893 echo &&
1894 $SHELL "$ac_srcdir/configure" --help=recursive
1895 else
1896 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1897 fi || ac_status=$?
1898 cd "$ac_pwd" || { ac_status=$?; break; }
1899 done
1900 fi
1901
1902 test -n "$ac_init_help" && exit $ac_status
1903 if $ac_init_version; then
1904 cat <<\_ACEOF
1905 OpenJDK configure jdk8
1906 generated by GNU Autoconf 2.67
1907
1908 Copyright (C) 2010 Free Software Foundation, Inc.
1909 This configure script is free software; the Free Software Foundation
1910 gives unlimited permission to copy, distribute and modify it.
1911 _ACEOF
1912 exit
1913 fi
1914
1915 ## ------------------------ ##
1916 ## Autoconf initialization. ##
1917 ## ------------------------ ##
1918
1919 # ac_fn_c_try_compile LINENO
1920 # --------------------------
1921 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1922 ac_fn_c_try_compile ()
1923 {
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 rm -f conftest.$ac_objext
1926 if { { ac_try="$ac_compile"
1927 case "(($ac_try" in
1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 $as_echo "$ac_try_echo"; } >&5
1933 (eval "$ac_compile") 2>conftest.err
1934 ac_status=$?
1935 if test -s conftest.err; then
1936 grep -v '^ *+' conftest.err >conftest.er1
1937 cat conftest.er1 >&5
1938 mv -f conftest.er1 conftest.err
1939 fi
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; } && {
1942 test -z "$ac_c_werror_flag" ||
1943 test ! -s conftest.err
1944 } && test -s conftest.$ac_objext; then :
1945 ac_retval=0
1946 else
1947 $as_echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 ac_retval=1
1951 fi
1952 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 as_fn_set_status $ac_retval
1954
1955 } # ac_fn_c_try_compile
1956
1957 # ac_fn_cxx_try_compile LINENO
1958 # ----------------------------
1959 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1960 ac_fn_cxx_try_compile ()
1961 {
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 rm -f conftest.$ac_objext
1964 if { { ac_try="$ac_compile"
1965 case "(($ac_try" in
1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967 *) ac_try_echo=$ac_try;;
1968 esac
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971 (eval "$ac_compile") 2>conftest.err
1972 ac_status=$?
1973 if test -s conftest.err; then
1974 grep -v '^ *+' conftest.err >conftest.er1
1975 cat conftest.er1 >&5
1976 mv -f conftest.er1 conftest.err
1977 fi
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; } && {
1980 test -z "$ac_cxx_werror_flag" ||
1981 test ! -s conftest.err
1982 } && test -s conftest.$ac_objext; then :
1983 ac_retval=0
1984 else
1985 $as_echo "$as_me: failed program was:" >&5
1986 sed 's/^/| /' conftest.$ac_ext >&5
1987
1988 ac_retval=1
1989 fi
1990 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991 as_fn_set_status $ac_retval
1992
1993 } # ac_fn_cxx_try_compile
1994
1995 # ac_fn_objc_try_compile LINENO
1996 # -----------------------------
1997 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1998 ac_fn_objc_try_compile ()
1999 {
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 rm -f conftest.$ac_objext
2002 if { { ac_try="$ac_compile"
2003 case "(($ac_try" in
2004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005 *) ac_try_echo=$ac_try;;
2006 esac
2007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008 $as_echo "$ac_try_echo"; } >&5
2009 (eval "$ac_compile") 2>conftest.err
2010 ac_status=$?
2011 if test -s conftest.err; then
2012 grep -v '^ *+' conftest.err >conftest.er1
2013 cat conftest.er1 >&5
2014 mv -f conftest.er1 conftest.err
2015 fi
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; } && {
2018 test -z "$ac_objc_werror_flag" ||
2019 test ! -s conftest.err
2020 } && test -s conftest.$ac_objext; then :
2021 ac_retval=0
2022 else
2023 $as_echo "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.$ac_ext >&5
2025
2026 ac_retval=1
2027 fi
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029 as_fn_set_status $ac_retval
2030
2031 } # ac_fn_objc_try_compile
2032
2033 # ac_fn_c_try_cpp LINENO
2034 # ----------------------
2035 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2036 ac_fn_c_try_cpp ()
2037 {
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 if { { ac_try="$ac_cpp conftest.$ac_ext"
2040 case "(($ac_try" in
2041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042 *) ac_try_echo=$ac_try;;
2043 esac
2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2047 ac_status=$?
2048 if test -s conftest.err; then
2049 grep -v '^ *+' conftest.err >conftest.er1
2050 cat conftest.er1 >&5
2051 mv -f conftest.er1 conftest.err
2052 fi
2053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2054 test $ac_status = 0; } > conftest.i && {
2055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2056 test ! -s conftest.err
2057 }; then :
2058 ac_retval=0
2059 else
2060 $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2062
2063 ac_retval=1
2064 fi
2065 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066 as_fn_set_status $ac_retval
2067
2068 } # ac_fn_c_try_cpp
2069
2070 # ac_fn_cxx_try_cpp LINENO
2071 # ------------------------
2072 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2073 ac_fn_cxx_try_cpp ()
2074 {
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 if { { ac_try="$ac_cpp conftest.$ac_ext"
2077 case "(($ac_try" in
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2080 esac
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2084 ac_status=$?
2085 if test -s conftest.err; then
2086 grep -v '^ *+' conftest.err >conftest.er1
2087 cat conftest.er1 >&5
2088 mv -f conftest.er1 conftest.err
2089 fi
2090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091 test $ac_status = 0; } > conftest.i && {
2092 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2093 test ! -s conftest.err
2094 }; then :
2095 ac_retval=0
2096 else
2097 $as_echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2099
2100 ac_retval=1
2101 fi
2102 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103 as_fn_set_status $ac_retval
2104
2105 } # ac_fn_cxx_try_cpp
2106
2107 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2108 # ---------------------------------------------------------
2109 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2110 # the include files in INCLUDES and setting the cache variable VAR
2111 # accordingly.
2112 ac_fn_cxx_check_header_mongrel ()
2113 {
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 if eval "test \"\${$3+set}\"" = set; then :
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117 $as_echo_n "checking for $2... " >&6; }
2118 if eval "test \"\${$3+set}\"" = set; then :
2119 $as_echo_n "(cached) " >&6
2120 fi
2121 eval ac_res=\$$3
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 $as_echo "$ac_res" >&6; }
2124 else
2125 # Is the header compilable?
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2127 $as_echo_n "checking $2 usability... " >&6; }
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2130 $4
2131 #include <$2>
2132 _ACEOF
2133 if ac_fn_cxx_try_compile "$LINENO"; then :
2134 ac_header_compiler=yes
2135 else
2136 ac_header_compiler=no
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 ;;
2166 no:yes:* )
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2168 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2170 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2172 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2174 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2176 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2177 ( $as_echo "## ----------------------------------------- ##
2178 ## Report this to build-dev@openjdk.java.net ##
2179 ## ----------------------------------------- ##"
2180 ) | sed "s/^/$as_me: WARNING: /" >&2
2181 ;;
2182 esac
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184 $as_echo_n "checking for $2... " >&6; }
2185 if eval "test \"\${$3+set}\"" = set; then :
2186 $as_echo_n "(cached) " >&6
2187 else
2188 eval "$3=\$ac_header_compiler"
2189 fi
2190 eval ac_res=\$$3
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192 $as_echo "$ac_res" >&6; }
2193 fi
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195
2196 } # ac_fn_cxx_check_header_mongrel
2197
2198 # ac_fn_cxx_try_run LINENO
2199 # ------------------------
2200 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2201 # that executables *can* be run.
2202 ac_fn_cxx_try_run ()
2203 {
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 if { { ac_try="$ac_link"
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_link") 2>&5
2213 ac_status=$?
2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2216 { { case "(($ac_try" in
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2219 esac
2220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2221 $as_echo "$ac_try_echo"; } >&5
2222 (eval "$ac_try") 2>&5
2223 ac_status=$?
2224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2225 test $ac_status = 0; }; }; then :
2226 ac_retval=0
2227 else
2228 $as_echo "$as_me: program exited with status $ac_status" >&5
2229 $as_echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2231
2232 ac_retval=$ac_status
2233 fi
2234 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2235 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2236 as_fn_set_status $ac_retval
2237
2238 } # ac_fn_cxx_try_run
2239
2240 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2241 # ---------------------------------------------------------
2242 # Tests whether HEADER exists and can be compiled using the include files in
2243 # INCLUDES, setting the cache variable VAR accordingly.
2244 ac_fn_cxx_check_header_compile ()
2245 {
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if eval "test \"\${$3+set}\"" = set; then :
2250 $as_echo_n "(cached) " >&6
2251 else
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2254 $4
2255 #include <$2>
2256 _ACEOF
2257 if ac_fn_cxx_try_compile "$LINENO"; then :
2258 eval "$3=yes"
2259 else
2260 eval "$3=no"
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 fi
2264 eval ac_res=\$$3
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2268
2269 } # ac_fn_cxx_check_header_compile
2270
2271 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2272 # ----------------------------------------------
2273 # Tries to find the compile-time value of EXPR in a program that includes
2274 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2275 # computed
2276 ac_fn_cxx_compute_int ()
2277 {
2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279 if test "$cross_compiling" = yes; then
2280 # Depending upon the size, compute the lo and hi bounds.
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2283 $4
2284 int
2285 main ()
2286 {
2287 static int test_array [1 - 2 * !(($2) >= 0)];
2288 test_array [0] = 0
2289
2290 ;
2291 return 0;
2292 }
2293 _ACEOF
2294 if ac_fn_cxx_try_compile "$LINENO"; then :
2295 ac_lo=0 ac_mid=0
2296 while :; do
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2299 $4
2300 int
2301 main ()
2302 {
2303 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2304 test_array [0] = 0
2305
2306 ;
2307 return 0;
2308 }
2309 _ACEOF
2310 if ac_fn_cxx_try_compile "$LINENO"; then :
2311 ac_hi=$ac_mid; break
2312 else
2313 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2314 if test $ac_lo -le $ac_mid; then
2315 ac_lo= ac_hi=
2316 break
2317 fi
2318 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2319 fi
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 done
2322 else
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2325 $4
2326 int
2327 main ()
2328 {
2329 static int test_array [1 - 2 * !(($2) < 0)];
2330 test_array [0] = 0
2331
2332 ;
2333 return 0;
2334 }
2335 _ACEOF
2336 if ac_fn_cxx_try_compile "$LINENO"; then :
2337 ac_hi=-1 ac_mid=-1
2338 while :; do
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h. */
2341 $4
2342 int
2343 main ()
2344 {
2345 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2346 test_array [0] = 0
2347
2348 ;
2349 return 0;
2350 }
2351 _ACEOF
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2353 ac_lo=$ac_mid; break
2354 else
2355 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2356 if test $ac_mid -le $ac_hi; then
2357 ac_lo= ac_hi=
2358 break
2359 fi
2360 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2361 fi
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 done
2364 else
2365 ac_lo= ac_hi=
2366 fi
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 fi
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 # Binary search between lo and hi bounds.
2371 while test "x$ac_lo" != "x$ac_hi"; do
2372 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2375 $4
2376 int
2377 main ()
2378 {
2379 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2380 test_array [0] = 0
2381
2382 ;
2383 return 0;
2384 }
2385 _ACEOF
2386 if ac_fn_cxx_try_compile "$LINENO"; then :
2387 ac_hi=$ac_mid
2388 else
2389 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2390 fi
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 done
2393 case $ac_lo in #((
2394 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2395 '') ac_retval=1 ;;
2396 esac
2397 else
2398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h. */
2400 $4
2424 fprintf (f, "%lu", i);
2425 }
2426 /* Do not output a trailing newline, as this causes \r\n confusion
2427 on some platforms. */
2428 return ferror (f) || fclose (f) != 0;
2429
2430 ;
2431 return 0;
2432 }
2433 _ACEOF
2434 if ac_fn_cxx_try_run "$LINENO"; then :
2435 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2436 else
2437 ac_retval=1
2438 fi
2439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2440 conftest.$ac_objext conftest.beam conftest.$ac_ext
2441 rm -f conftest.val
2442
2443 fi
2444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445 as_fn_set_status $ac_retval
2446
2447 } # ac_fn_cxx_compute_int
2448
2449 # ac_fn_cxx_try_link LINENO
2450 # -------------------------
2451 # Try to link conftest.$ac_ext, and return whether this succeeded.
2452 ac_fn_cxx_try_link ()
2453 {
2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455 rm -f conftest.$ac_objext conftest$ac_exeext
2456 if { { ac_try="$ac_link"
2457 case "(($ac_try" in
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2460 esac
2461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462 $as_echo "$ac_try_echo"; } >&5
2463 (eval "$ac_link") 2>conftest.err
2464 ac_status=$?
2465 if test -s conftest.err; then
2466 grep -v '^ *+' conftest.err >conftest.er1
2467 cat conftest.er1 >&5
2468 mv -f conftest.er1 conftest.err
2469 fi
2470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2471 test $ac_status = 0; } && {
2472 test -z "$ac_cxx_werror_flag" ||
2473 test ! -s conftest.err
2474 } && test -s conftest$ac_exeext && {
2475 test "$cross_compiling" = yes ||
2476 $as_test_x conftest$ac_exeext
2477 }; then :
2478 ac_retval=0
2479 else
2480 $as_echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2482
2483 ac_retval=1
2484 fi
2485 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2486 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2487 # interfere with the next link command; also delete a directory that is
2488 # left behind by Apple's compiler. We do this before executing the actions.
2489 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2490 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491 as_fn_set_status $ac_retval
2492
2493 } # ac_fn_cxx_try_link
2494
2495 # ac_fn_cxx_check_func LINENO FUNC VAR
2496 # ------------------------------------
2497 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2498 ac_fn_cxx_check_func ()
2499 {
2500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2502 $as_echo_n "checking for $2... " >&6; }
2503 if eval "test \"\${$3+set}\"" = set; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h. */
2508 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2510 #define $2 innocuous_$2
2511
2512 /* System header to define __stub macros and hopefully few prototypes,
2513 which can conflict with char $2 (); below.
2514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2515 <limits.h> exists even on freestanding compilers. */
2516
2517 #ifdef __STDC__
2518 # include <limits.h>
2519 #else
2520 # include <assert.h>
2521 #endif
2522
2523 #undef $2
2538
2539 int
2540 main ()
2541 {
2542 return $2 ();
2543 ;
2544 return 0;
2545 }
2546 _ACEOF
2547 if ac_fn_cxx_try_link "$LINENO"; then :
2548 eval "$3=yes"
2549 else
2550 eval "$3=no"
2551 fi
2552 rm -f core conftest.err conftest.$ac_objext \
2553 conftest$ac_exeext conftest.$ac_ext
2554 fi
2555 eval ac_res=\$$3
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2557 $as_echo "$ac_res" >&6; }
2558 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2559
2560 } # ac_fn_cxx_check_func
2561
2562 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2563 # -------------------------------------------------------
2564 # Tests whether HEADER exists and can be compiled using the include files in
2565 # INCLUDES, setting the cache variable VAR accordingly.
2566 ac_fn_c_check_header_compile ()
2567 {
2568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2570 $as_echo_n "checking for $2... " >&6; }
2571 if eval "test \"\${$3+set}\"" = set; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575 /* end confdefs.h. */
2576 $4
2577 #include <$2>
2578 _ACEOF
2579 if ac_fn_c_try_compile "$LINENO"; then :
2580 eval "$3=yes"
2581 else
2582 eval "$3=no"
2583 fi
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 fi
2586 eval ac_res=\$$3
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2588 $as_echo "$ac_res" >&6; }
2589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2590
2591 } # ac_fn_c_check_header_compile
2592 cat >config.log <<_ACEOF
2593 This file contains any messages produced by compilers while
2594 running configure, to aid debugging if configure makes a mistake.
2595
2596 It was created by OpenJDK $as_me jdk8, which was
2597 generated by GNU Autoconf 2.67. Invocation command line was
2598
2599 $ $0 $@
2600
2601 _ACEOF
2602 exec 5>>config.log
2603 {
2604 cat <<_ASUNAME
2605 ## --------- ##
2606 ## Platform. ##
2607 ## --------- ##
2608
2609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2614
2615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2616 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2617
3401 # 2 along with this work; if not, write to the Free Software Foundation,
3402 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3403 #
3404 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3405 # or visit www.oracle.com if you need additional information or have any
3406 # questions.
3407 #
3408
3409
3410
3411
3412
3413 cygwin_help() {
3414 case $1 in
3415 unzip)
3416 PKGHANDLER_COMMAND="cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip" ;;
3417 zip)
3418 PKGHANDLER_COMMAND="cd <location of cygwin setup.exe> && cmd /c setup -q -P zip" ;;
3419 make)
3420 PKGHANDLER_COMMAND="cd <location of cygwin setup.exe> && cmd /c setup -q -P make" ;;
3421 * )
3422 break ;;
3423 esac
3424 }
3425
3426 apt_help() {
3427 case $1 in
3428 devkit)
3429 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3430 openjdk)
3431 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3432 alsa)
3433 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3434 cups)
3435 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3436 freetype2)
3437 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3438 pulse)
3439 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3440 x11)
3441 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev" ;;
3442 ccache)
3443 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3444 * )
3445 break ;;
3446 esac
3447 }
3448
3449 yum_help() {
3450 case $1 in
3451 devkit)
3452 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3453 openjdk)
3454 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3455 alsa)
3456 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3457 cups)
3458 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3459 freetype2)
3460 PKGHANDLER_COMMAND="sudo yum install freetype2-devel" ;;
3461 pulse)
3462 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3463 x11)
3464 PKGHANDLER_COMMAND="sudo yum install libXtst-devel" ;;
3465 ccache)
3466 PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3467 * )
3468 break ;;
3469 esac
3470 }
3471
3472 port_help() {
3473 PKGHANDLER_COMMAND=""
3474 }
3475
3476 pkgutil_help() {
3477 PKGHANDLER_COMMAND=""
3478 }
3479
3480 pkgadd_help() {
3481 PKGHANDLER_COMMAND=""
3482 }
3483
3484
3485
3486 #
3487 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
3488 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3777
3778 # Check if the VS env variables were setup prior to running configure.
3779 # If not, then find vcvarsall.bat and run it automatically, and integrate
3780 # the set env variables into the spec file.
3781
3782
3783
3784 # Setup the DXSDK paths
3785
3786
3787
3788
3789
3790
3791 # This line needs to be here, verbatim, after all includes and the dummy hook
3792 # definitions. It is replaced with custom functionality when building
3793 # custom sources.
3794 #CUSTOM_AUTOCONF_INCLUDE
3795
3796 # Do not change or remove the following line, it is needed for consistency checks:
3797 DATE_WHEN_GENERATED=1376695332
3798
3799 ###############################################################################
3800 #
3801 # Initialization / Boot-strapping
3802 #
3803 # The bootstrapping process needs to solve the "chicken or the egg" problem,
3804 # thus it jumps back and forth, each time gaining something needed later on.
3805 #
3806 ###############################################################################
3807
3808 # Basic initialization that must happen first of all
3809
3810 # Save the original command line. This is passed to us by the wrapper configure script.
3811
3812 DATE_WHEN_CONFIGURED=`LANG=C date`
3813
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
3815 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
3817 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
3818
3819
3820
3821 # Start with tools that do not need have cross compilation support
3822 # and can be expected to be found in the default PATH. These tools are
3823 # used by configure. Nor are these tools expected to be found in the
3824 # devkit from the builddeps server either, since they are
3825 # needed to download the devkit.
3826
3827 # First are all the simple required tools.
3828
3829 for ac_prog in basename
3830 do
3831 # Extract the first word of "$ac_prog", so it can be a program name with args.
3832 set dummy $ac_prog; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if test "${ac_cv_path_BASENAME+set}" = set; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 case $BASENAME in
3839 [\\/]* | ?:[\\/]*)
3840 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
3841 ;;
3842 *)
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3845 do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3853 fi
3854 done
3855 done
3856 IFS=$as_save_IFS
3857
3858 ;;
3859 esac
3860 fi
3861 BASENAME=$ac_cv_path_BASENAME
3862 if test -n "$BASENAME"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
3864 $as_echo "$BASENAME" >&6; }
3865 else
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3868 fi
3869
3874
3875 if test "x$BASENAME" = x; then
3876 if test "xbasename" = x; then
3877 PROG_NAME=basename
3878 else
3879 PROG_NAME=basename
3880 fi
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3882 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3883 as_fn_error $? "Cannot continue" "$LINENO" 5
3884 fi
3885
3886
3887
3888 for ac_prog in bash
3889 do
3890 # Extract the first word of "$ac_prog", so it can be a program name with args.
3891 set dummy $ac_prog; ac_word=$2
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 $as_echo_n "checking for $ac_word... " >&6; }
3894 if test "${ac_cv_path_BASH+set}" = set; then :
3895 $as_echo_n "(cached) " >&6
3896 else
3897 case $BASH in
3898 [\\/]* | ?:[\\/]*)
3899 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3900 ;;
3901 *)
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3909 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3912 fi
3913 done
3914 done
3915 IFS=$as_save_IFS
3916
3917 ;;
3918 esac
3919 fi
3920 BASH=$ac_cv_path_BASH
3921 if test -n "$BASH"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
3923 $as_echo "$BASH" >&6; }
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3927 fi
3928
3933
3934 if test "x$BASH" = x; then
3935 if test "xbash" = x; then
3936 PROG_NAME=bash
3937 else
3938 PROG_NAME=bash
3939 fi
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3941 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3942 as_fn_error $? "Cannot continue" "$LINENO" 5
3943 fi
3944
3945
3946
3947 for ac_prog in cat
3948 do
3949 # Extract the first word of "$ac_prog", so it can be a program name with args.
3950 set dummy $ac_prog; ac_word=$2
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952 $as_echo_n "checking for $ac_word... " >&6; }
3953 if test "${ac_cv_path_CAT+set}" = set; then :
3954 $as_echo_n "(cached) " >&6
3955 else
3956 case $CAT in
3957 [\\/]* | ?:[\\/]*)
3958 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3959 ;;
3960 *)
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 break 2
3971 fi
3972 done
3973 done
3974 IFS=$as_save_IFS
3975
3976 ;;
3977 esac
3978 fi
3979 CAT=$ac_cv_path_CAT
3980 if test -n "$CAT"; then
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
3982 $as_echo "$CAT" >&6; }
3983 else
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3986 fi
3987
3992
3993 if test "x$CAT" = x; then
3994 if test "xcat" = x; then
3995 PROG_NAME=cat
3996 else
3997 PROG_NAME=cat
3998 fi
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4000 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4001 as_fn_error $? "Cannot continue" "$LINENO" 5
4002 fi
4003
4004
4005
4006 for ac_prog in chmod
4007 do
4008 # Extract the first word of "$ac_prog", so it can be a program name with args.
4009 set dummy $ac_prog; ac_word=$2
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011 $as_echo_n "checking for $ac_word... " >&6; }
4012 if test "${ac_cv_path_CHMOD+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
4014 else
4015 case $CHMOD in
4016 [\\/]* | ?:[\\/]*)
4017 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4018 ;;
4019 *)
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH
4022 do
4023 IFS=$as_save_IFS
4024 test -z "$as_dir" && as_dir=.
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4027 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 break 2
4030 fi
4031 done
4032 done
4033 IFS=$as_save_IFS
4034
4035 ;;
4036 esac
4037 fi
4038 CHMOD=$ac_cv_path_CHMOD
4039 if test -n "$CHMOD"; then
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4041 $as_echo "$CHMOD" >&6; }
4042 else
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044 $as_echo "no" >&6; }
4045 fi
4046
4051
4052 if test "x$CHMOD" = x; then
4053 if test "xchmod" = x; then
4054 PROG_NAME=chmod
4055 else
4056 PROG_NAME=chmod
4057 fi
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4059 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4060 as_fn_error $? "Cannot continue" "$LINENO" 5
4061 fi
4062
4063
4064
4065 for ac_prog in cmp
4066 do
4067 # Extract the first word of "$ac_prog", so it can be a program name with args.
4068 set dummy $ac_prog; ac_word=$2
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070 $as_echo_n "checking for $ac_word... " >&6; }
4071 if test "${ac_cv_path_CMP+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 case $CMP in
4075 [\\/]* | ?:[\\/]*)
4076 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4077 ;;
4078 *)
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4081 do
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4086 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 break 2
4089 fi
4090 done
4091 done
4092 IFS=$as_save_IFS
4093
4094 ;;
4095 esac
4096 fi
4097 CMP=$ac_cv_path_CMP
4098 if test -n "$CMP"; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4100 $as_echo "$CMP" >&6; }
4101 else
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4104 fi
4105
4110
4111 if test "x$CMP" = x; then
4112 if test "xcmp" = x; then
4113 PROG_NAME=cmp
4114 else
4115 PROG_NAME=cmp
4116 fi
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4118 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4119 as_fn_error $? "Cannot continue" "$LINENO" 5
4120 fi
4121
4122
4123
4124 for ac_prog in comm
4125 do
4126 # Extract the first word of "$ac_prog", so it can be a program name with args.
4127 set dummy $ac_prog; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if test "${ac_cv_path_COMM+set}" = set; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 case $COMM in
4134 [\\/]* | ?:[\\/]*)
4135 ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
4136 ;;
4137 *)
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4145 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 break 2
4148 fi
4149 done
4150 done
4151 IFS=$as_save_IFS
4152
4153 ;;
4154 esac
4155 fi
4156 COMM=$ac_cv_path_COMM
4157 if test -n "$COMM"; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
4159 $as_echo "$COMM" >&6; }
4160 else
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4163 fi
4164
4169
4170 if test "x$COMM" = x; then
4171 if test "xcomm" = x; then
4172 PROG_NAME=comm
4173 else
4174 PROG_NAME=comm
4175 fi
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4177 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4178 as_fn_error $? "Cannot continue" "$LINENO" 5
4179 fi
4180
4181
4182
4183 for ac_prog in cp
4184 do
4185 # Extract the first word of "$ac_prog", so it can be a program name with args.
4186 set dummy $ac_prog; ac_word=$2
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if test "${ac_cv_path_CP+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 case $CP in
4193 [\\/]* | ?:[\\/]*)
4194 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4195 ;;
4196 *)
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4204 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4207 fi
4208 done
4209 done
4210 IFS=$as_save_IFS
4211
4212 ;;
4213 esac
4214 fi
4215 CP=$ac_cv_path_CP
4216 if test -n "$CP"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4218 $as_echo "$CP" >&6; }
4219 else
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4222 fi
4223
4228
4229 if test "x$CP" = x; then
4230 if test "xcp" = x; then
4231 PROG_NAME=cp
4232 else
4233 PROG_NAME=cp
4234 fi
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4236 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4237 as_fn_error $? "Cannot continue" "$LINENO" 5
4238 fi
4239
4240
4241
4242 for ac_prog in cpio
4243 do
4244 # Extract the first word of "$ac_prog", so it can be a program name with args.
4245 set dummy $ac_prog; ac_word=$2
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if test "${ac_cv_path_CPIO+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 case $CPIO in
4252 [\\/]* | ?:[\\/]*)
4253 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
4254 ;;
4255 *)
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4258 do
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
4264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 break 2
4266 fi
4267 done
4268 done
4269 IFS=$as_save_IFS
4270
4271 ;;
4272 esac
4273 fi
4274 CPIO=$ac_cv_path_CPIO
4275 if test -n "$CPIO"; then
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
4277 $as_echo "$CPIO" >&6; }
4278 else
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4281 fi
4282
4287
4288 if test "x$CPIO" = x; then
4289 if test "xcpio" = x; then
4290 PROG_NAME=cpio
4291 else
4292 PROG_NAME=cpio
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4295 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4296 as_fn_error $? "Cannot continue" "$LINENO" 5
4297 fi
4298
4299
4300
4301 for ac_prog in cut
4302 do
4303 # Extract the first word of "$ac_prog", so it can be a program name with args.
4304 set dummy $ac_prog; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if test "${ac_cv_path_CUT+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 case $CUT in
4311 [\\/]* | ?:[\\/]*)
4312 ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
4313 ;;
4314 *)
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4325 fi
4326 done
4327 done
4328 IFS=$as_save_IFS
4329
4330 ;;
4331 esac
4332 fi
4333 CUT=$ac_cv_path_CUT
4334 if test -n "$CUT"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
4336 $as_echo "$CUT" >&6; }
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4340 fi
4341
4346
4347 if test "x$CUT" = x; then
4348 if test "xcut" = x; then
4349 PROG_NAME=cut
4350 else
4351 PROG_NAME=cut
4352 fi
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4354 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4355 as_fn_error $? "Cannot continue" "$LINENO" 5
4356 fi
4357
4358
4359
4360 for ac_prog in date
4361 do
4362 # Extract the first word of "$ac_prog", so it can be a program name with args.
4363 set dummy $ac_prog; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if test "${ac_cv_path_DATE+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 case $DATE in
4370 [\\/]* | ?:[\\/]*)
4371 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4372 ;;
4373 *)
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 break 2
4384 fi
4385 done
4386 done
4387 IFS=$as_save_IFS
4388
4389 ;;
4390 esac
4391 fi
4392 DATE=$ac_cv_path_DATE
4393 if test -n "$DATE"; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
4395 $as_echo "$DATE" >&6; }
4396 else
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4399 fi
4400
4405
4406 if test "x$DATE" = x; then
4407 if test "xdate" = x; then
4408 PROG_NAME=date
4409 else
4410 PROG_NAME=date
4411 fi
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4413 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4414 as_fn_error $? "Cannot continue" "$LINENO" 5
4415 fi
4416
4417
4418
4419 for ac_prog in gdiff diff
4420 do
4421 # Extract the first word of "$ac_prog", so it can be a program name with args.
4422 set dummy $ac_prog; ac_word=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if test "${ac_cv_path_DIFF+set}" = set; then :
4426 $as_echo_n "(cached) " >&6
4427 else
4428 case $DIFF in
4429 [\\/]* | ?:[\\/]*)
4430 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
4431 ;;
4432 *)
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444 done
4445 done
4446 IFS=$as_save_IFS
4447
4448 ;;
4449 esac
4450 fi
4451 DIFF=$ac_cv_path_DIFF
4452 if test -n "$DIFF"; then
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
4454 $as_echo "$DIFF" >&6; }
4455 else
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 $as_echo "no" >&6; }
4458 fi
4459
4464
4465 if test "x$DIFF" = x; then
4466 if test "xgdiff diff" = x; then
4467 PROG_NAME=diff
4468 else
4469 PROG_NAME=gdiff diff
4470 fi
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4472 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4473 as_fn_error $? "Cannot continue" "$LINENO" 5
4474 fi
4475
4476
4477
4478 for ac_prog in dirname
4479 do
4480 # Extract the first word of "$ac_prog", so it can be a program name with args.
4481 set dummy $ac_prog; ac_word=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if test "${ac_cv_path_DIRNAME+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 case $DIRNAME in
4488 [\\/]* | ?:[\\/]*)
4489 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4490 ;;
4491 *)
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4494 do
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4499 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 break 2
4502 fi
4503 done
4504 done
4505 IFS=$as_save_IFS
4506
4507 ;;
4508 esac
4509 fi
4510 DIRNAME=$ac_cv_path_DIRNAME
4511 if test -n "$DIRNAME"; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
4513 $as_echo "$DIRNAME" >&6; }
4514 else
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4517 fi
4518
4523
4524 if test "x$DIRNAME" = x; then
4525 if test "xdirname" = x; then
4526 PROG_NAME=dirname
4527 else
4528 PROG_NAME=dirname
4529 fi
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4531 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4532 as_fn_error $? "Cannot continue" "$LINENO" 5
4533 fi
4534
4535
4536
4537 for ac_prog in echo
4538 do
4539 # Extract the first word of "$ac_prog", so it can be a program name with args.
4540 set dummy $ac_prog; ac_word=$2
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4542 $as_echo_n "checking for $ac_word... " >&6; }
4543 if test "${ac_cv_path_ECHO+set}" = set; then :
4544 $as_echo_n "(cached) " >&6
4545 else
4546 case $ECHO in
4547 [\\/]* | ?:[\\/]*)
4548 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4549 ;;
4550 *)
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4553 do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4561 fi
4562 done
4563 done
4564 IFS=$as_save_IFS
4565
4566 ;;
4567 esac
4568 fi
4569 ECHO=$ac_cv_path_ECHO
4570 if test -n "$ECHO"; then
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4572 $as_echo "$ECHO" >&6; }
4573 else
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo "no" >&6; }
4576 fi
4577
4582
4583 if test "x$ECHO" = x; then
4584 if test "xecho" = x; then
4585 PROG_NAME=echo
4586 else
4587 PROG_NAME=echo
4588 fi
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4590 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4591 as_fn_error $? "Cannot continue" "$LINENO" 5
4592 fi
4593
4594
4595
4596 for ac_prog in expr
4597 do
4598 # Extract the first word of "$ac_prog", so it can be a program name with args.
4599 set dummy $ac_prog; ac_word=$2
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if test "${ac_cv_path_EXPR+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 case $EXPR in
4606 [\\/]* | ?:[\\/]*)
4607 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
4608 ;;
4609 *)
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4612 do
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 break 2
4620 fi
4621 done
4622 done
4623 IFS=$as_save_IFS
4624
4625 ;;
4626 esac
4627 fi
4628 EXPR=$ac_cv_path_EXPR
4629 if test -n "$EXPR"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
4631 $as_echo "$EXPR" >&6; }
4632 else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4635 fi
4636
4641
4642 if test "x$EXPR" = x; then
4643 if test "xexpr" = x; then
4644 PROG_NAME=expr
4645 else
4646 PROG_NAME=expr
4647 fi
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4649 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4650 as_fn_error $? "Cannot continue" "$LINENO" 5
4651 fi
4652
4653
4654
4655 for ac_prog in file
4656 do
4657 # Extract the first word of "$ac_prog", so it can be a program name with args.
4658 set dummy $ac_prog; ac_word=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if test "${ac_cv_path_FILE+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 case $FILE in
4665 [\\/]* | ?:[\\/]*)
4666 ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
4667 ;;
4668 *)
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680 done
4681 done
4682 IFS=$as_save_IFS
4683
4684 ;;
4685 esac
4686 fi
4687 FILE=$ac_cv_path_FILE
4688 if test -n "$FILE"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
4690 $as_echo "$FILE" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4694 fi
4695
4700
4701 if test "x$FILE" = x; then
4702 if test "xfile" = x; then
4703 PROG_NAME=file
4704 else
4705 PROG_NAME=file
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4708 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4709 as_fn_error $? "Cannot continue" "$LINENO" 5
4710 fi
4711
4712
4713
4714 for ac_prog in find
4715 do
4716 # Extract the first word of "$ac_prog", so it can be a program name with args.
4717 set dummy $ac_prog; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if test "${ac_cv_path_FIND+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 case $FIND in
4724 [\\/]* | ?:[\\/]*)
4725 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4726 ;;
4727 *)
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4730 do
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4738 fi
4739 done
4740 done
4741 IFS=$as_save_IFS
4742
4743 ;;
4744 esac
4745 fi
4746 FIND=$ac_cv_path_FIND
4747 if test -n "$FIND"; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
4749 $as_echo "$FIND" >&6; }
4750 else
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 $as_echo "no" >&6; }
4753 fi
4754
4759
4760 if test "x$FIND" = x; then
4761 if test "xfind" = x; then
4762 PROG_NAME=find
4763 else
4764 PROG_NAME=find
4765 fi
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4767 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4768 as_fn_error $? "Cannot continue" "$LINENO" 5
4769 fi
4770
4771
4772
4773 for ac_prog in head
4774 do
4775 # Extract the first word of "$ac_prog", so it can be a program name with args.
4776 set dummy $ac_prog; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_path_HEAD+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 case $HEAD in
4783 [\\/]* | ?:[\\/]*)
4784 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
4785 ;;
4786 *)
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4797 fi
4798 done
4799 done
4800 IFS=$as_save_IFS
4801
4802 ;;
4803 esac
4804 fi
4805 HEAD=$ac_cv_path_HEAD
4806 if test -n "$HEAD"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
4808 $as_echo "$HEAD" >&6; }
4809 else
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4812 fi
4813
4818
4819 if test "x$HEAD" = x; then
4820 if test "xhead" = x; then
4821 PROG_NAME=head
4822 else
4823 PROG_NAME=head
4824 fi
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4826 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4827 as_fn_error $? "Cannot continue" "$LINENO" 5
4828 fi
4829
4830
4831
4832 for ac_prog in ln
4833 do
4834 # Extract the first word of "$ac_prog", so it can be a program name with args.
4835 set dummy $ac_prog; ac_word=$2
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837 $as_echo_n "checking for $ac_word... " >&6; }
4838 if test "${ac_cv_path_LN+set}" = set; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 case $LN in
4842 [\\/]* | ?:[\\/]*)
4843 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4844 ;;
4845 *)
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4848 do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4853 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 break 2
4856 fi
4857 done
4858 done
4859 IFS=$as_save_IFS
4860
4861 ;;
4862 esac
4863 fi
4864 LN=$ac_cv_path_LN
4865 if test -n "$LN"; then
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4867 $as_echo "$LN" >&6; }
4868 else
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4870 $as_echo "no" >&6; }
4871 fi
4872
4877
4878 if test "x$LN" = x; then
4879 if test "xln" = x; then
4880 PROG_NAME=ln
4881 else
4882 PROG_NAME=ln
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4885 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4886 as_fn_error $? "Cannot continue" "$LINENO" 5
4887 fi
4888
4889
4890
4891 for ac_prog in ls
4892 do
4893 # Extract the first word of "$ac_prog", so it can be a program name with args.
4894 set dummy $ac_prog; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if test "${ac_cv_path_LS+set}" = set; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 case $LS in
4901 [\\/]* | ?:[\\/]*)
4902 ac_cv_path_LS="$LS" # Let the user override the test with a path.
4903 ;;
4904 *)
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4915 fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 ;;
4921 esac
4922 fi
4923 LS=$ac_cv_path_LS
4924 if test -n "$LS"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
4926 $as_echo "$LS" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4930 fi
4931
4936
4937 if test "x$LS" = x; then
4938 if test "xls" = x; then
4939 PROG_NAME=ls
4940 else
4941 PROG_NAME=ls
4942 fi
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4944 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4945 as_fn_error $? "Cannot continue" "$LINENO" 5
4946 fi
4947
4948
4949
4950 for ac_prog in mkdir
4951 do
4952 # Extract the first word of "$ac_prog", so it can be a program name with args.
4953 set dummy $ac_prog; ac_word=$2
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4955 $as_echo_n "checking for $ac_word... " >&6; }
4956 if test "${ac_cv_path_MKDIR+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 case $MKDIR in
4960 [\\/]* | ?:[\\/]*)
4961 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4962 ;;
4963 *)
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4974 fi
4975 done
4976 done
4977 IFS=$as_save_IFS
4978
4979 ;;
4980 esac
4981 fi
4982 MKDIR=$ac_cv_path_MKDIR
4983 if test -n "$MKDIR"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4985 $as_echo "$MKDIR" >&6; }
4986 else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4989 fi
4990
4995
4996 if test "x$MKDIR" = x; then
4997 if test "xmkdir" = x; then
4998 PROG_NAME=mkdir
4999 else
5000 PROG_NAME=mkdir
5001 fi
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5003 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5004 as_fn_error $? "Cannot continue" "$LINENO" 5
5005 fi
5006
5007
5008
5009 for ac_prog in mktemp
5010 do
5011 # Extract the first word of "$ac_prog", so it can be a program name with args.
5012 set dummy $ac_prog; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if test "${ac_cv_path_MKTEMP+set}" = set; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 case $MKTEMP in
5019 [\\/]* | ?:[\\/]*)
5020 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5021 ;;
5022 *)
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034 done
5035 done
5036 IFS=$as_save_IFS
5037
5038 ;;
5039 esac
5040 fi
5041 MKTEMP=$ac_cv_path_MKTEMP
5042 if test -n "$MKTEMP"; then
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
5044 $as_echo "$MKTEMP" >&6; }
5045 else
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5048 fi
5049
5054
5055 if test "x$MKTEMP" = x; then
5056 if test "xmktemp" = x; then
5057 PROG_NAME=mktemp
5058 else
5059 PROG_NAME=mktemp
5060 fi
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5062 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5063 as_fn_error $? "Cannot continue" "$LINENO" 5
5064 fi
5065
5066
5067
5068 for ac_prog in mv
5069 do
5070 # Extract the first word of "$ac_prog", so it can be a program name with args.
5071 set dummy $ac_prog; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if test "${ac_cv_path_MV+set}" = set; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 case $MV in
5078 [\\/]* | ?:[\\/]*)
5079 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5080 ;;
5081 *)
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 break 2
5092 fi
5093 done
5094 done
5095 IFS=$as_save_IFS
5096
5097 ;;
5098 esac
5099 fi
5100 MV=$ac_cv_path_MV
5101 if test -n "$MV"; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5103 $as_echo "$MV" >&6; }
5104 else
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5107 fi
5108
5113
5114 if test "x$MV" = x; then
5115 if test "xmv" = x; then
5116 PROG_NAME=mv
5117 else
5118 PROG_NAME=mv
5119 fi
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5121 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5122 as_fn_error $? "Cannot continue" "$LINENO" 5
5123 fi
5124
5125
5126
5127 for ac_prog in printf
5128 do
5129 # Extract the first word of "$ac_prog", so it can be a program name with args.
5130 set dummy $ac_prog; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if test "${ac_cv_path_PRINTF+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 case $PRINTF in
5137 [\\/]* | ?:[\\/]*)
5138 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
5139 ;;
5140 *)
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5143 do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5151 fi
5152 done
5153 done
5154 IFS=$as_save_IFS
5155
5156 ;;
5157 esac
5158 fi
5159 PRINTF=$ac_cv_path_PRINTF
5160 if test -n "$PRINTF"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
5162 $as_echo "$PRINTF" >&6; }
5163 else
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5166 fi
5167
5172
5173 if test "x$PRINTF" = x; then
5174 if test "xprintf" = x; then
5175 PROG_NAME=printf
5176 else
5177 PROG_NAME=printf
5178 fi
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5180 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5181 as_fn_error $? "Cannot continue" "$LINENO" 5
5182 fi
5183
5184
5185
5186 for ac_prog in rm
5187 do
5188 # Extract the first word of "$ac_prog", so it can be a program name with args.
5189 set dummy $ac_prog; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if test "${ac_cv_path_RM+set}" = set; then :
5193 $as_echo_n "(cached) " >&6
5194 else
5195 case $RM in
5196 [\\/]* | ?:[\\/]*)
5197 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5198 ;;
5199 *)
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5202 do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5210 fi
5211 done
5212 done
5213 IFS=$as_save_IFS
5214
5215 ;;
5216 esac
5217 fi
5218 RM=$ac_cv_path_RM
5219 if test -n "$RM"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5221 $as_echo "$RM" >&6; }
5222 else
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 fi
5226
5231
5232 if test "x$RM" = x; then
5233 if test "xrm" = x; then
5234 PROG_NAME=rm
5235 else
5236 PROG_NAME=rm
5237 fi
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5239 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5240 as_fn_error $? "Cannot continue" "$LINENO" 5
5241 fi
5242
5243
5244
5245 for ac_prog in sh
5246 do
5247 # Extract the first word of "$ac_prog", so it can be a program name with args.
5248 set dummy $ac_prog; ac_word=$2
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250 $as_echo_n "checking for $ac_word... " >&6; }
5251 if test "${ac_cv_path_SH+set}" = set; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 case $SH in
5255 [\\/]* | ?:[\\/]*)
5256 ac_cv_path_SH="$SH" # Let the user override the test with a path.
5257 ;;
5258 *)
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5269 fi
5270 done
5271 done
5272 IFS=$as_save_IFS
5273
5274 ;;
5275 esac
5276 fi
5277 SH=$ac_cv_path_SH
5278 if test -n "$SH"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
5280 $as_echo "$SH" >&6; }
5281 else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5284 fi
5285
5290
5291 if test "x$SH" = x; then
5292 if test "xsh" = x; then
5293 PROG_NAME=sh
5294 else
5295 PROG_NAME=sh
5296 fi
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5298 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5299 as_fn_error $? "Cannot continue" "$LINENO" 5
5300 fi
5301
5302
5303
5304 for ac_prog in sort
5305 do
5306 # Extract the first word of "$ac_prog", so it can be a program name with args.
5307 set dummy $ac_prog; ac_word=$2
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if test "${ac_cv_path_SORT+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 case $SORT in
5314 [\\/]* | ?:[\\/]*)
5315 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
5316 ;;
5317 *)
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5328 fi
5329 done
5330 done
5331 IFS=$as_save_IFS
5332
5333 ;;
5334 esac
5335 fi
5336 SORT=$ac_cv_path_SORT
5337 if test -n "$SORT"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5339 $as_echo "$SORT" >&6; }
5340 else
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5343 fi
5344
5349
5350 if test "x$SORT" = x; then
5351 if test "xsort" = x; then
5352 PROG_NAME=sort
5353 else
5354 PROG_NAME=sort
5355 fi
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5357 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5358 as_fn_error $? "Cannot continue" "$LINENO" 5
5359 fi
5360
5361
5362
5363 for ac_prog in tail
5364 do
5365 # Extract the first word of "$ac_prog", so it can be a program name with args.
5366 set dummy $ac_prog; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if test "${ac_cv_path_TAIL+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 case $TAIL in
5373 [\\/]* | ?:[\\/]*)
5374 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
5375 ;;
5376 *)
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5379 do
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5384 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5387 fi
5388 done
5389 done
5390 IFS=$as_save_IFS
5391
5392 ;;
5393 esac
5394 fi
5395 TAIL=$ac_cv_path_TAIL
5396 if test -n "$TAIL"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
5398 $as_echo "$TAIL" >&6; }
5399 else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5402 fi
5403
5408
5409 if test "x$TAIL" = x; then
5410 if test "xtail" = x; then
5411 PROG_NAME=tail
5412 else
5413 PROG_NAME=tail
5414 fi
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5416 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5417 as_fn_error $? "Cannot continue" "$LINENO" 5
5418 fi
5419
5420
5421
5422 for ac_prog in tar
5423 do
5424 # Extract the first word of "$ac_prog", so it can be a program name with args.
5425 set dummy $ac_prog; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if test "${ac_cv_path_TAR+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 case $TAR in
5432 [\\/]* | ?:[\\/]*)
5433 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5434 ;;
5435 *)
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5438 do
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 break 2
5446 fi
5447 done
5448 done
5449 IFS=$as_save_IFS
5450
5451 ;;
5452 esac
5453 fi
5454 TAR=$ac_cv_path_TAR
5455 if test -n "$TAR"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
5457 $as_echo "$TAR" >&6; }
5458 else
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5461 fi
5462
5467
5468 if test "x$TAR" = x; then
5469 if test "xtar" = x; then
5470 PROG_NAME=tar
5471 else
5472 PROG_NAME=tar
5473 fi
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5475 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5476 as_fn_error $? "Cannot continue" "$LINENO" 5
5477 fi
5478
5479
5480
5481 for ac_prog in tee
5482 do
5483 # Extract the first word of "$ac_prog", so it can be a program name with args.
5484 set dummy $ac_prog; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if test "${ac_cv_path_TEE+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 case $TEE in
5491 [\\/]* | ?:[\\/]*)
5492 ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
5493 ;;
5494 *)
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5497 do
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 break 2
5505 fi
5506 done
5507 done
5508 IFS=$as_save_IFS
5509
5510 ;;
5511 esac
5512 fi
5513 TEE=$ac_cv_path_TEE
5514 if test -n "$TEE"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
5516 $as_echo "$TEE" >&6; }
5517 else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5520 fi
5521
5526
5527 if test "x$TEE" = x; then
5528 if test "xtee" = x; then
5529 PROG_NAME=tee
5530 else
5531 PROG_NAME=tee
5532 fi
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5534 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5535 as_fn_error $? "Cannot continue" "$LINENO" 5
5536 fi
5537
5538
5539
5540 for ac_prog in touch
5541 do
5542 # Extract the first word of "$ac_prog", so it can be a program name with args.
5543 set dummy $ac_prog; ac_word=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if test "${ac_cv_path_TOUCH+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 case $TOUCH in
5550 [\\/]* | ?:[\\/]*)
5551 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5552 ;;
5553 *)
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5556 do
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5561 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5564 fi
5565 done
5566 done
5567 IFS=$as_save_IFS
5568
5569 ;;
5570 esac
5571 fi
5572 TOUCH=$ac_cv_path_TOUCH
5573 if test -n "$TOUCH"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5575 $as_echo "$TOUCH" >&6; }
5576 else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5579 fi
5580
5585
5586 if test "x$TOUCH" = x; then
5587 if test "xtouch" = x; then
5588 PROG_NAME=touch
5589 else
5590 PROG_NAME=touch
5591 fi
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5593 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5594 as_fn_error $? "Cannot continue" "$LINENO" 5
5595 fi
5596
5597
5598
5599 for ac_prog in tr
5600 do
5601 # Extract the first word of "$ac_prog", so it can be a program name with args.
5602 set dummy $ac_prog; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if test "${ac_cv_path_TR+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 case $TR in
5609 [\\/]* | ?:[\\/]*)
5610 ac_cv_path_TR="$TR" # Let the user override the test with a path.
5611 ;;
5612 *)
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5615 do
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5620 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5623 fi
5624 done
5625 done
5626 IFS=$as_save_IFS
5627
5628 ;;
5629 esac
5630 fi
5631 TR=$ac_cv_path_TR
5632 if test -n "$TR"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
5634 $as_echo "$TR" >&6; }
5635 else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639
5644
5645 if test "x$TR" = x; then
5646 if test "xtr" = x; then
5647 PROG_NAME=tr
5648 else
5649 PROG_NAME=tr
5650 fi
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5652 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5653 as_fn_error $? "Cannot continue" "$LINENO" 5
5654 fi
5655
5656
5657
5658 for ac_prog in uname
5659 do
5660 # Extract the first word of "$ac_prog", so it can be a program name with args.
5661 set dummy $ac_prog; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if test "${ac_cv_path_UNAME+set}" = set; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 case $UNAME in
5668 [\\/]* | ?:[\\/]*)
5669 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
5670 ;;
5671 *)
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683 done
5684 done
5685 IFS=$as_save_IFS
5686
5687 ;;
5688 esac
5689 fi
5690 UNAME=$ac_cv_path_UNAME
5691 if test -n "$UNAME"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
5693 $as_echo "$UNAME" >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5697 fi
5698
5703
5704 if test "x$UNAME" = x; then
5705 if test "xuname" = x; then
5706 PROG_NAME=uname
5707 else
5708 PROG_NAME=uname
5709 fi
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5711 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5712 as_fn_error $? "Cannot continue" "$LINENO" 5
5713 fi
5714
5715
5716
5717 for ac_prog in uniq
5718 do
5719 # Extract the first word of "$ac_prog", so it can be a program name with args.
5720 set dummy $ac_prog; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if test "${ac_cv_path_UNIQ+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 case $UNIQ in
5727 [\\/]* | ?:[\\/]*)
5728 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
5729 ;;
5730 *)
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5733 do
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5738 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 break 2
5741 fi
5742 done
5743 done
5744 IFS=$as_save_IFS
5745
5746 ;;
5747 esac
5748 fi
5749 UNIQ=$ac_cv_path_UNIQ
5750 if test -n "$UNIQ"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5752 $as_echo "$UNIQ" >&6; }
5753 else
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5756 fi
5757
5762
5763 if test "x$UNIQ" = x; then
5764 if test "xuniq" = x; then
5765 PROG_NAME=uniq
5766 else
5767 PROG_NAME=uniq
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5770 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5771 as_fn_error $? "Cannot continue" "$LINENO" 5
5772 fi
5773
5774
5775
5776 for ac_prog in wc
5777 do
5778 # Extract the first word of "$ac_prog", so it can be a program name with args.
5779 set dummy $ac_prog; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if test "${ac_cv_path_WC+set}" = set; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 case $WC in
5786 [\\/]* | ?:[\\/]*)
5787 ac_cv_path_WC="$WC" # Let the user override the test with a path.
5788 ;;
5789 *)
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793 IFS=$as_save_IFS
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5797 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 break 2
5800 fi
5801 done
5802 done
5803 IFS=$as_save_IFS
5804
5805 ;;
5806 esac
5807 fi
5808 WC=$ac_cv_path_WC
5809 if test -n "$WC"; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
5811 $as_echo "$WC" >&6; }
5812 else
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5815 fi
5816
5821
5822 if test "x$WC" = x; then
5823 if test "xwc" = x; then
5824 PROG_NAME=wc
5825 else
5826 PROG_NAME=wc
5827 fi
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5829 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5830 as_fn_error $? "Cannot continue" "$LINENO" 5
5831 fi
5832
5833
5834
5835 for ac_prog in which
5836 do
5837 # Extract the first word of "$ac_prog", so it can be a program name with args.
5838 set dummy $ac_prog; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if test "${ac_cv_path_WHICH+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 case $WHICH in
5845 [\\/]* | ?:[\\/]*)
5846 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
5847 ;;
5848 *)
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5851 do
5852 IFS=$as_save_IFS
5853 test -z "$as_dir" && as_dir=.
5854 for ac_exec_ext in '' $ac_executable_extensions; do
5855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5856 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
5857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 break 2
5859 fi
5860 done
5861 done
5862 IFS=$as_save_IFS
5863
5864 ;;
5865 esac
5866 fi
5867 WHICH=$ac_cv_path_WHICH
5868 if test -n "$WHICH"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
5870 $as_echo "$WHICH" >&6; }
5871 else
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5874 fi
5875
5880
5881 if test "x$WHICH" = x; then
5882 if test "xwhich" = x; then
5883 PROG_NAME=which
5884 else
5885 PROG_NAME=which
5886 fi
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5888 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5889 as_fn_error $? "Cannot continue" "$LINENO" 5
5890 fi
5891
5892
5893
5894 for ac_prog in xargs
5895 do
5896 # Extract the first word of "$ac_prog", so it can be a program name with args.
5897 set dummy $ac_prog; ac_word=$2
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899 $as_echo_n "checking for $ac_word... " >&6; }
5900 if test "${ac_cv_path_XARGS+set}" = set; then :
5901 $as_echo_n "(cached) " >&6
5902 else
5903 case $XARGS in
5904 [\\/]* | ?:[\\/]*)
5905 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
5906 ;;
5907 *)
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911 IFS=$as_save_IFS
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5915 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
5916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 break 2
5918 fi
5919 done
5920 done
5921 IFS=$as_save_IFS
5922
5923 ;;
5924 esac
5925 fi
5926 XARGS=$ac_cv_path_XARGS
5927 if test -n "$XARGS"; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
5929 $as_echo "$XARGS" >&6; }
5930 else
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5933 fi
5934
5940 if test "x$XARGS" = x; then
5941 if test "xxargs" = x; then
5942 PROG_NAME=xargs
5943 else
5944 PROG_NAME=xargs
5945 fi
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5947 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5948 as_fn_error $? "Cannot continue" "$LINENO" 5
5949 fi
5950
5951
5952
5953 # Then required tools that require some special treatment.
5954 for ac_prog in gawk mawk nawk awk
5955 do
5956 # Extract the first word of "$ac_prog", so it can be a program name with args.
5957 set dummy $ac_prog; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if test "${ac_cv_prog_AWK+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if test -n "$AWK"; then
5964 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973 ac_cv_prog_AWK="$ac_prog"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977 done
5978 done
5979 IFS=$as_save_IFS
5980
5981 fi
5982 fi
5983 AWK=$ac_cv_prog_AWK
5984 if test -n "$AWK"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5986 $as_echo "$AWK" >&6; }
5987 else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5990 fi
5991
5992
5993 test -n "$AWK" && break
5994 done
5995
5996
5997 if test "x$AWK" = x; then
5998 if test "x" = x; then
5999 PROG_NAME=awk
6000 else
6001 PROG_NAME=
6002 fi
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6004 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6005 as_fn_error $? "Cannot continue" "$LINENO" 5
6006 fi
6007
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6009 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6010 if test "${ac_cv_path_GREP+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 if test -z "$GREP"; then
6014 ac_path_GREP_found=false
6015 # Loop through the user's path and test for each of PROGNAME-LIST
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6018 do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_prog in grep ggrep; do
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6024 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6025 # Check for GNU ac_path_GREP and select it if it is found.
6026 # Check for GNU $ac_path_GREP
6027 case `"$ac_path_GREP" --version 2>&1` in
6028 *GNU*)
6029 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6030 *)
6031 ac_count=0
6032 $as_echo_n 0123456789 >"conftest.in"
6033 while :
6034 do
6035 cat "conftest.in" "conftest.in" >"conftest.tmp"
6036 mv "conftest.tmp" "conftest.in"
6037 cp "conftest.in" "conftest.nl"
6038 $as_echo 'GREP' >> "conftest.nl"
6039 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6041 as_fn_arith $ac_count + 1 && ac_count=$as_val
6042 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6043 # Best one so far, save it but keep looking for a better one
6044 ac_cv_path_GREP="$ac_path_GREP"
6065 fi
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6067 $as_echo "$ac_cv_path_GREP" >&6; }
6068 GREP="$ac_cv_path_GREP"
6069
6070
6071
6072 if test "x$GREP" = x; then
6073 if test "x" = x; then
6074 PROG_NAME=grep
6075 else
6076 PROG_NAME=
6077 fi
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6079 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6080 as_fn_error $? "Cannot continue" "$LINENO" 5
6081 fi
6082
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6084 $as_echo_n "checking for egrep... " >&6; }
6085 if test "${ac_cv_path_EGREP+set}" = set; then :
6086 $as_echo_n "(cached) " >&6
6087 else
6088 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6089 then ac_cv_path_EGREP="$GREP -E"
6090 else
6091 if test -z "$EGREP"; then
6092 ac_path_EGREP_found=false
6093 # Loop through the user's path and test for each of PROGNAME-LIST
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6096 do
6097 IFS=$as_save_IFS
6098 test -z "$as_dir" && as_dir=.
6099 for ac_prog in egrep; do
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6102 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6103 # Check for GNU ac_path_EGREP and select it if it is found.
6104 # Check for GNU $ac_path_EGREP
6105 case `"$ac_path_EGREP" --version 2>&1` in
6106 *GNU*)
6107 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6108 *)
6109 ac_count=0
6110 $as_echo_n 0123456789 >"conftest.in"
6111 while :
6112 do
6113 cat "conftest.in" "conftest.in" >"conftest.tmp"
6114 mv "conftest.tmp" "conftest.in"
6115 cp "conftest.in" "conftest.nl"
6116 $as_echo 'EGREP' >> "conftest.nl"
6117 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6119 as_fn_arith $ac_count + 1 && ac_count=$as_val
6120 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6121 # Best one so far, save it but keep looking for a better one
6122 ac_cv_path_EGREP="$ac_path_EGREP"
6144 fi
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6146 $as_echo "$ac_cv_path_EGREP" >&6; }
6147 EGREP="$ac_cv_path_EGREP"
6148
6149
6150
6151 if test "x$EGREP" = x; then
6152 if test "x" = x; then
6153 PROG_NAME=egrep
6154 else
6155 PROG_NAME=
6156 fi
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6158 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6159 as_fn_error $? "Cannot continue" "$LINENO" 5
6160 fi
6161
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6163 $as_echo_n "checking for fgrep... " >&6; }
6164 if test "${ac_cv_path_FGREP+set}" = set; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6168 then ac_cv_path_FGREP="$GREP -F"
6169 else
6170 if test -z "$FGREP"; then
6171 ac_path_FGREP_found=false
6172 # Loop through the user's path and test for each of PROGNAME-LIST
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6175 do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_prog in fgrep; do
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6181 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6182 # Check for GNU ac_path_FGREP and select it if it is found.
6183 # Check for GNU $ac_path_FGREP
6184 case `"$ac_path_FGREP" --version 2>&1` in
6185 *GNU*)
6186 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6187 *)
6188 ac_count=0
6189 $as_echo_n 0123456789 >"conftest.in"
6190 while :
6191 do
6192 cat "conftest.in" "conftest.in" >"conftest.tmp"
6193 mv "conftest.tmp" "conftest.in"
6194 cp "conftest.in" "conftest.nl"
6195 $as_echo 'FGREP' >> "conftest.nl"
6196 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6198 as_fn_arith $ac_count + 1 && ac_count=$as_val
6199 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6200 # Best one so far, save it but keep looking for a better one
6201 ac_cv_path_FGREP="$ac_path_FGREP"
6223 fi
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6225 $as_echo "$ac_cv_path_FGREP" >&6; }
6226 FGREP="$ac_cv_path_FGREP"
6227
6228
6229
6230 if test "x$FGREP" = x; then
6231 if test "x" = x; then
6232 PROG_NAME=fgrep
6233 else
6234 PROG_NAME=
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6237 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6238 as_fn_error $? "Cannot continue" "$LINENO" 5
6239 fi
6240
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6242 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6243 if test "${ac_cv_path_SED+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6247 for ac_i in 1 2 3 4 5 6 7; do
6248 ac_script="$ac_script$as_nl$ac_script"
6249 done
6250 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6251 { ac_script=; unset ac_script;}
6252 if test -z "$SED"; then
6253 ac_path_SED_found=false
6254 # Loop through the user's path and test for each of PROGNAME-LIST
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_prog in sed gsed; do
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6263 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6264 # Check for GNU ac_path_SED and select it if it is found.
6265 # Check for GNU $ac_path_SED
6266 case `"$ac_path_SED" --version 2>&1` in
6267 *GNU*)
6268 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6269 *)
6270 ac_count=0
6271 $as_echo_n 0123456789 >"conftest.in"
6272 while :
6273 do
6274 cat "conftest.in" "conftest.in" >"conftest.tmp"
6275 mv "conftest.tmp" "conftest.in"
6276 cp "conftest.in" "conftest.nl"
6277 $as_echo '' >> "conftest.nl"
6278 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6280 as_fn_arith $ac_count + 1 && ac_count=$as_val
6281 if test $ac_count -gt ${ac_path_SED_max-0}; then
6282 # Best one so far, save it but keep looking for a better one
6283 ac_cv_path_SED="$ac_path_SED"
6309
6310
6311 if test "x$SED" = x; then
6312 if test "x" = x; then
6313 PROG_NAME=sed
6314 else
6315 PROG_NAME=
6316 fi
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6318 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6319 as_fn_error $? "Cannot continue" "$LINENO" 5
6320 fi
6321
6322
6323 for ac_prog in nawk gawk awk
6324 do
6325 # Extract the first word of "$ac_prog", so it can be a program name with args.
6326 set dummy $ac_prog; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if test "${ac_cv_path_NAWK+set}" = set; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 case $NAWK in
6333 [\\/]* | ?:[\\/]*)
6334 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
6335 ;;
6336 *)
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6339 do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6347 fi
6348 done
6349 done
6350 IFS=$as_save_IFS
6351
6352 ;;
6353 esac
6354 fi
6355 NAWK=$ac_cv_path_NAWK
6356 if test -n "$NAWK"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
6358 $as_echo "$NAWK" >&6; }
6359 else
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6362 fi
6363
6373 PROG_NAME=
6374 fi
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6376 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6377 as_fn_error $? "Cannot continue" "$LINENO" 5
6378 fi
6379
6380
6381 # Always force rm.
6382 RM="$RM -f"
6383
6384 # pwd behaves differently on various platforms and some don't support the -L flag.
6385 # Always use the bash builtin pwd to get uniform behavior.
6386 THEPWDCMD=pwd
6387
6388 # These are not required on all platforms
6389 # Extract the first word of "cygpath", so it can be a program name with args.
6390 set dummy cygpath; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if test "${ac_cv_path_CYGPATH+set}" = set; then :
6394 $as_echo_n "(cached) " >&6
6395 else
6396 case $CYGPATH in
6397 [\\/]* | ?:[\\/]*)
6398 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
6399 ;;
6400 *)
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6411 fi
6412 done
6413 done
6414 IFS=$as_save_IFS
6415
6416 ;;
6417 esac
6418 fi
6419 CYGPATH=$ac_cv_path_CYGPATH
6420 if test -n "$CYGPATH"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
6422 $as_echo "$CYGPATH" >&6; }
6423 else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6426 fi
6427
6428
6429 # Extract the first word of "readlink", so it can be a program name with args.
6430 set dummy readlink; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if test "${ac_cv_path_READLINK+set}" = set; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 case $READLINK in
6437 [\\/]* | ?:[\\/]*)
6438 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
6439 ;;
6440 *)
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6451 fi
6452 done
6453 done
6454 IFS=$as_save_IFS
6455
6456 ;;
6457 esac
6458 fi
6459 READLINK=$ac_cv_path_READLINK
6460 if test -n "$READLINK"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
6462 $as_echo "$READLINK" >&6; }
6463 else
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6466 fi
6467
6468
6469 # Extract the first word of "df", so it can be a program name with args.
6470 set dummy df; ac_word=$2
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if test "${ac_cv_path_DF+set}" = set; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 case $DF in
6477 [\\/]* | ?:[\\/]*)
6478 ac_cv_path_DF="$DF" # Let the user override the test with a path.
6479 ;;
6480 *)
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
6492 done
6493 done
6494 IFS=$as_save_IFS
6495
6496 ;;
6497 esac
6498 fi
6499 DF=$ac_cv_path_DF
6500 if test -n "$DF"; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
6502 $as_echo "$DF" >&6; }
6503 else
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6506 fi
6507
6508
6509 # Extract the first word of "SetFile", so it can be a program name with args.
6510 set dummy SetFile; ac_word=$2
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if test "${ac_cv_path_SETFILE+set}" = set; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 case $SETFILE in
6517 [\\/]* | ?:[\\/]*)
6518 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
6519 ;;
6520 *)
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 break 2
6531 fi
6532 done
6533 done
6534 IFS=$as_save_IFS
6535
6536 ;;
6537 esac
6538 fi
6539 SETFILE=$ac_cv_path_SETFILE
6540 if test -n "$SETFILE"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
6542 $as_echo "$SETFILE" >&6; }
6543 else
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6546 fi
6547
6548
6549
6550
6551 # Now we can determine OpenJDK build and target platforms. This is required to
6552 # have early on.
6553 # Make sure we can run config.sub.
6554 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6555 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6556
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6558 $as_echo_n "checking build system type... " >&6; }
6559 if test "${ac_cv_build+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 ac_build_alias=$build_alias
6563 test "x$ac_build_alias" = x &&
6564 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6565 test "x$ac_build_alias" = x &&
6566 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6567 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6568 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6569
6570 fi
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6572 $as_echo "$ac_cv_build" >&6; }
6573 case $ac_cv_build in
6574 *-*-*) ;;
6575 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6576 esac
6577 build=$ac_cv_build
6578 ac_save_IFS=$IFS; IFS='-'
6579 set x $ac_cv_build
6580 shift
6581 build_cpu=$1
6582 build_vendor=$2
6583 shift; shift
6584 # Remember, the first character of IFS is used to create $*,
6585 # except with old shells:
6586 build_os=$*
6587 IFS=$ac_save_IFS
6588 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6589
6590
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6592 $as_echo_n "checking host system type... " >&6; }
6593 if test "${ac_cv_host+set}" = set; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 if test "x$host_alias" = x; then
6597 ac_cv_host=$ac_cv_build
6598 else
6599 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6600 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6601 fi
6602
6603 fi
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6605 $as_echo "$ac_cv_host" >&6; }
6606 case $ac_cv_host in
6607 *-*-*) ;;
6608 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6609 esac
6610 host=$ac_cv_host
6611 ac_save_IFS=$IFS; IFS='-'
6612 set x $ac_cv_host
6613 shift
6614 host_cpu=$1
6615 host_vendor=$2
6616 shift; shift
6617 # Remember, the first character of IFS is used to create $*,
6618 # except with old shells:
6619 host_os=$*
6620 IFS=$ac_save_IFS
6621 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6622
6623
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6625 $as_echo_n "checking target system type... " >&6; }
6626 if test "${ac_cv_target+set}" = set; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 if test "x$target_alias" = x; then
6630 ac_cv_target=$ac_cv_host
6631 else
6632 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6633 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6634 fi
6635
6636 fi
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6638 $as_echo "$ac_cv_target" >&6; }
6639 case $ac_cv_target in
6640 *-*-*) ;;
6641 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6642 esac
6643 target=$ac_cv_target
6644 ac_save_IFS=$IFS; IFS='-'
6645 set x $ac_cv_target
6646 shift
6696 *darwin*)
6697 VAR_OS=macosx
6698 VAR_OS_API=posix
6699 VAR_OS_ENV=macosx
6700 ;;
6701 *bsd*)
6702 VAR_OS=bsd
6703 VAR_OS_API=posix
6704 VAR_OS_ENV=bsd
6705 ;;
6706 *cygwin*)
6707 VAR_OS=windows
6708 VAR_OS_API=winapi
6709 VAR_OS_ENV=windows.cygwin
6710 ;;
6711 *mingw*)
6712 VAR_OS=windows
6713 VAR_OS_API=winapi
6714 VAR_OS_ENV=windows.msys
6715 ;;
6716 *)
6717 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
6718 ;;
6719 esac
6720
6721
6722 # First argument is the cpu name from the trip/quad
6723 case "$build_cpu" in
6724 x86_64)
6725 VAR_CPU=x86_64
6726 VAR_CPU_ARCH=x86
6727 VAR_CPU_BITS=64
6728 VAR_CPU_ENDIAN=little
6729 ;;
6730 i?86)
6731 VAR_CPU=x86
6732 VAR_CPU_ARCH=x86
6733 VAR_CPU_BITS=32
6734 VAR_CPU_ENDIAN=little
6735 ;;
6804 *darwin*)
6805 VAR_OS=macosx
6806 VAR_OS_API=posix
6807 VAR_OS_ENV=macosx
6808 ;;
6809 *bsd*)
6810 VAR_OS=bsd
6811 VAR_OS_API=posix
6812 VAR_OS_ENV=bsd
6813 ;;
6814 *cygwin*)
6815 VAR_OS=windows
6816 VAR_OS_API=winapi
6817 VAR_OS_ENV=windows.cygwin
6818 ;;
6819 *mingw*)
6820 VAR_OS=windows
6821 VAR_OS_API=winapi
6822 VAR_OS_ENV=windows.msys
6823 ;;
6824 *)
6825 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
6826 ;;
6827 esac
6828
6829
6830 # First argument is the cpu name from the trip/quad
6831 case "$host_cpu" in
6832 x86_64)
6833 VAR_CPU=x86_64
6834 VAR_CPU_ARCH=x86
6835 VAR_CPU_BITS=64
6836 VAR_CPU_ENDIAN=little
6837 ;;
6838 i?86)
6839 VAR_CPU=x86
6840 VAR_CPU_ARCH=x86
6841 VAR_CPU_BITS=32
6842 VAR_CPU_ENDIAN=little
6843 ;;
8188 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
8189
8190 # The generated Makefile knows where the spec.gmk is and where the source is.
8191 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
8192 # which will look for generated configurations
8193 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
8194
8195
8196 # Save the arguments given to us
8197 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
8198
8199
8200 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
8201
8202 for ac_prog in apt-get yum port pkgutil pkgadd
8203 do
8204 # Extract the first word of "$ac_prog", so it can be a program name with args.
8205 set dummy $ac_prog; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if test "${ac_cv_prog_PKGHANDLER+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 if test -n "$PKGHANDLER"; then
8212 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8216 do
8217 IFS=$as_save_IFS
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221 ac_cv_prog_PKGHANDLER="$ac_prog"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 break 2
8224 fi
8225 done
8226 done
8227 IFS=$as_save_IFS
8228
8229 fi
8230 fi
8231 PKGHANDLER=$ac_cv_prog_PKGHANDLER
8232 if test -n "$PKGHANDLER"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
8234 $as_echo "$PKGHANDLER" >&6; }
8235 else
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238 fi
8239
8240
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8554 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8555 fi
8556
8557 fi
8558 fi
8559 fi
8560 fi
8561
8562 if test "x$FOUND_MAKE" = x; then
8563 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
8564 fi
8565 else
8566 # Try our hardest to locate a correct version of GNU make
8567 for ac_prog in gmake
8568 do
8569 # Extract the first word of "$ac_prog", so it can be a program name with args.
8570 set dummy $ac_prog; ac_word=$2
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572 $as_echo_n "checking for $ac_word... " >&6; }
8573 if test "${ac_cv_path_CHECK_GMAKE+set}" = set; then :
8574 $as_echo_n "(cached) " >&6
8575 else
8576 case $CHECK_GMAKE in
8577 [\\/]* | ?:[\\/]*)
8578 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
8579 ;;
8580 *)
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $PATH
8583 do
8584 IFS=$as_save_IFS
8585 test -z "$as_dir" && as_dir=.
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8588 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
8589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8590 break 2
8591 fi
8592 done
8593 done
8594 IFS=$as_save_IFS
8595
8596 ;;
8597 esac
8598 fi
8599 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
8600 if test -n "$CHECK_GMAKE"; then
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
8602 $as_echo "$CHECK_GMAKE" >&6; }
8603 else
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8606 fi
8607
8907
8908 if test "x$complete" != "x$new_complete"; then
8909 FOUND_MAKE="$new_complete"
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8911 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8912 fi
8913
8914 fi
8915 fi
8916 fi
8917 fi
8918
8919
8920 if test "x$FOUND_MAKE" = x; then
8921 for ac_prog in make
8922 do
8923 # Extract the first word of "$ac_prog", so it can be a program name with args.
8924 set dummy $ac_prog; ac_word=$2
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926 $as_echo_n "checking for $ac_word... " >&6; }
8927 if test "${ac_cv_path_CHECK_MAKE+set}" = set; then :
8928 $as_echo_n "(cached) " >&6
8929 else
8930 case $CHECK_MAKE in
8931 [\\/]* | ?:[\\/]*)
8932 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
8933 ;;
8934 *)
8935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936 for as_dir in $PATH
8937 do
8938 IFS=$as_save_IFS
8939 test -z "$as_dir" && as_dir=.
8940 for ac_exec_ext in '' $ac_executable_extensions; do
8941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8942 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
8943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 break 2
8945 fi
8946 done
8947 done
8948 IFS=$as_save_IFS
8949
8950 ;;
8951 esac
8952 fi
8953 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
8954 if test -n "$CHECK_MAKE"; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
8956 $as_echo "$CHECK_MAKE" >&6; }
8957 else
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959 $as_echo "no" >&6; }
8960 fi
8961
9266 fi
9267
9268 fi
9269 fi
9270 fi
9271 fi
9272
9273 fi
9274
9275 if test "x$FOUND_MAKE" = x; then
9276 if test "x$TOOLS_DIR" != x; then
9277 # We have a tools-dir, check that as well before giving up.
9278 OLD_PATH=$PATH
9279 PATH=$TOOLS_DIR:$PATH
9280 for ac_prog in gmake
9281 do
9282 # Extract the first word of "$ac_prog", so it can be a program name with args.
9283 set dummy $ac_prog; ac_word=$2
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9285 $as_echo_n "checking for $ac_word... " >&6; }
9286 if test "${ac_cv_path_CHECK_TOOLSDIR_GMAKE+set}" = set; then :
9287 $as_echo_n "(cached) " >&6
9288 else
9289 case $CHECK_TOOLSDIR_GMAKE in
9290 [\\/]* | ?:[\\/]*)
9291 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
9292 ;;
9293 *)
9294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295 for as_dir in $PATH
9296 do
9297 IFS=$as_save_IFS
9298 test -z "$as_dir" && as_dir=.
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9301 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
9302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9303 break 2
9304 fi
9305 done
9306 done
9307 IFS=$as_save_IFS
9308
9309 ;;
9310 esac
9311 fi
9312 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
9313 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
9315 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
9316 else
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318 $as_echo "no" >&6; }
9319 fi
9320
9619 fi
9620
9621 if test "x$complete" != "x$new_complete"; then
9622 FOUND_MAKE="$new_complete"
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
9624 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
9625 fi
9626
9627 fi
9628 fi
9629 fi
9630 fi
9631
9632 if test "x$FOUND_MAKE" = x; then
9633 for ac_prog in make
9634 do
9635 # Extract the first word of "$ac_prog", so it can be a program name with args.
9636 set dummy $ac_prog; ac_word=$2
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9638 $as_echo_n "checking for $ac_word... " >&6; }
9639 if test "${ac_cv_path_CHECK_TOOLSDIR_MAKE+set}" = set; then :
9640 $as_echo_n "(cached) " >&6
9641 else
9642 case $CHECK_TOOLSDIR_MAKE in
9643 [\\/]* | ?:[\\/]*)
9644 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
9645 ;;
9646 *)
9647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648 for as_dir in $PATH
9649 do
9650 IFS=$as_save_IFS
9651 test -z "$as_dir" && as_dir=.
9652 for ac_exec_ext in '' $ac_executable_extensions; do
9653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9654 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
9655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9656 break 2
9657 fi
9658 done
9659 done
9660 IFS=$as_save_IFS
9661
9662 ;;
9663 esac
9664 fi
9665 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
9666 if test -n "$CHECK_TOOLSDIR_MAKE"; then
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
9668 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
9669 else
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671 $as_echo "no" >&6; }
9672 fi
9673
10015 FIND_DELETE="-exec rm \{\} \+"
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10018 else
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10020 $as_echo "yes" >&6; }
10021 fi
10022 rmdir $DELETEDIR
10023
10024
10025
10026 # These tools might not be installed by default,
10027 # need hint on how to install them.
10028
10029 for ac_prog in unzip
10030 do
10031 # Extract the first word of "$ac_prog", so it can be a program name with args.
10032 set dummy $ac_prog; ac_word=$2
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034 $as_echo_n "checking for $ac_word... " >&6; }
10035 if test "${ac_cv_path_UNZIP+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
10037 else
10038 case $UNZIP in
10039 [\\/]* | ?:[\\/]*)
10040 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
10041 ;;
10042 *)
10043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044 for as_dir in $PATH
10045 do
10046 IFS=$as_save_IFS
10047 test -z "$as_dir" && as_dir=.
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10050 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
10051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10052 break 2
10053 fi
10054 done
10055 done
10056 IFS=$as_save_IFS
10057
10058 ;;
10059 esac
10060 fi
10061 UNZIP=$ac_cv_path_UNZIP
10062 if test -n "$UNZIP"; then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
10064 $as_echo "$UNZIP" >&6; }
10065 else
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 $as_echo "no" >&6; }
10068 fi
10069
10074
10075 if test "x$UNZIP" = x; then
10076 if test "xunzip" = x; then
10077 PROG_NAME=unzip
10078 else
10079 PROG_NAME=unzip
10080 fi
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10082 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10083 as_fn_error $? "Cannot continue" "$LINENO" 5
10084 fi
10085
10086
10087
10088 for ac_prog in zip
10089 do
10090 # Extract the first word of "$ac_prog", so it can be a program name with args.
10091 set dummy $ac_prog; ac_word=$2
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10093 $as_echo_n "checking for $ac_word... " >&6; }
10094 if test "${ac_cv_path_ZIP+set}" = set; then :
10095 $as_echo_n "(cached) " >&6
10096 else
10097 case $ZIP in
10098 [\\/]* | ?:[\\/]*)
10099 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
10100 ;;
10101 *)
10102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10103 for as_dir in $PATH
10104 do
10105 IFS=$as_save_IFS
10106 test -z "$as_dir" && as_dir=.
10107 for ac_exec_ext in '' $ac_executable_extensions; do
10108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10109 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
10110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10111 break 2
10112 fi
10113 done
10114 done
10115 IFS=$as_save_IFS
10116
10117 ;;
10118 esac
10119 fi
10120 ZIP=$ac_cv_path_ZIP
10121 if test -n "$ZIP"; then
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
10123 $as_echo "$ZIP" >&6; }
10124 else
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 $as_echo "no" >&6; }
10127 fi
10128
10133
10134 if test "x$ZIP" = x; then
10135 if test "xzip" = x; then
10136 PROG_NAME=zip
10137 else
10138 PROG_NAME=zip
10139 fi
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10141 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10142 as_fn_error $? "Cannot continue" "$LINENO" 5
10143 fi
10144
10145
10146
10147 # Non-required basic tools
10148
10149 # Extract the first word of "ldd", so it can be a program name with args.
10150 set dummy ldd; ac_word=$2
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10152 $as_echo_n "checking for $ac_word... " >&6; }
10153 if test "${ac_cv_path_LDD+set}" = set; then :
10154 $as_echo_n "(cached) " >&6
10155 else
10156 case $LDD in
10157 [\\/]* | ?:[\\/]*)
10158 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10159 ;;
10160 *)
10161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10163 do
10164 IFS=$as_save_IFS
10165 test -z "$as_dir" && as_dir=.
10166 for ac_exec_ext in '' $ac_executable_extensions; do
10167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10168 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10170 break 2
10171 fi
10172 done
10173 done
10174 IFS=$as_save_IFS
10175
10176 ;;
10177 esac
10178 fi
10179 LDD=$ac_cv_path_LDD
10180 if test -n "$LDD"; then
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
10182 $as_echo "$LDD" >&6; }
10183 else
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10185 $as_echo "no" >&6; }
10186 fi
10187
10188
10189 if test "x$LDD" = "x"; then
10190 # List shared lib dependencies is used for
10191 # debug output and checking for forbidden dependencies.
10192 # We can build without it.
10193 LDD="true"
10194 fi
10195 # Extract the first word of "otool", so it can be a program name with args.
10196 set dummy otool; ac_word=$2
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10198 $as_echo_n "checking for $ac_word... " >&6; }
10199 if test "${ac_cv_path_OTOOL+set}" = set; then :
10200 $as_echo_n "(cached) " >&6
10201 else
10202 case $OTOOL in
10203 [\\/]* | ?:[\\/]*)
10204 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
10205 ;;
10206 *)
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10209 do
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
10215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 break 2
10217 fi
10218 done
10219 done
10220 IFS=$as_save_IFS
10221
10222 ;;
10223 esac
10224 fi
10225 OTOOL=$ac_cv_path_OTOOL
10226 if test -n "$OTOOL"; then
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10228 $as_echo "$OTOOL" >&6; }
10229 else
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231 $as_echo "no" >&6; }
10232 fi
10233
10234
10235 if test "x$OTOOL" = "x"; then
10236 OTOOL="true"
10237 fi
10238 for ac_prog in readelf greadelf
10239 do
10240 # Extract the first word of "$ac_prog", so it can be a program name with args.
10241 set dummy $ac_prog; ac_word=$2
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243 $as_echo_n "checking for $ac_word... " >&6; }
10244 if test "${ac_cv_path_READELF+set}" = set; then :
10245 $as_echo_n "(cached) " >&6
10246 else
10247 case $READELF in
10248 [\\/]* | ?:[\\/]*)
10249 ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
10250 ;;
10251 *)
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253 for as_dir in $PATH
10254 do
10255 IFS=$as_save_IFS
10256 test -z "$as_dir" && as_dir=.
10257 for ac_exec_ext in '' $ac_executable_extensions; do
10258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10259 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
10260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10261 break 2
10262 fi
10263 done
10264 done
10265 IFS=$as_save_IFS
10266
10267 ;;
10268 esac
10269 fi
10270 READELF=$ac_cv_path_READELF
10271 if test -n "$READELF"; then
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10273 $as_echo "$READELF" >&6; }
10274 else
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10276 $as_echo "no" >&6; }
10277 fi
10278
10279
10280 test -n "$READELF" && break
10281 done
10282
10283 # Extract the first word of "hg", so it can be a program name with args.
10284 set dummy hg; ac_word=$2
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10286 $as_echo_n "checking for $ac_word... " >&6; }
10287 if test "${ac_cv_path_HG+set}" = set; then :
10288 $as_echo_n "(cached) " >&6
10289 else
10290 case $HG in
10291 [\\/]* | ?:[\\/]*)
10292 ac_cv_path_HG="$HG" # Let the user override the test with a path.
10293 ;;
10294 *)
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10297 do
10298 IFS=$as_save_IFS
10299 test -z "$as_dir" && as_dir=.
10300 for ac_exec_ext in '' $ac_executable_extensions; do
10301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10302 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
10303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304 break 2
10305 fi
10306 done
10307 done
10308 IFS=$as_save_IFS
10309
10310 ;;
10311 esac
10312 fi
10313 HG=$ac_cv_path_HG
10314 if test -n "$HG"; then
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
10316 $as_echo "$HG" >&6; }
10317 else
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10319 $as_echo "no" >&6; }
10320 fi
10321
10322
10323 # Extract the first word of "stat", so it can be a program name with args.
10324 set dummy stat; ac_word=$2
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10326 $as_echo_n "checking for $ac_word... " >&6; }
10327 if test "${ac_cv_path_STAT+set}" = set; then :
10328 $as_echo_n "(cached) " >&6
10329 else
10330 case $STAT in
10331 [\\/]* | ?:[\\/]*)
10332 ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
10333 ;;
10334 *)
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10337 do
10338 IFS=$as_save_IFS
10339 test -z "$as_dir" && as_dir=.
10340 for ac_exec_ext in '' $ac_executable_extensions; do
10341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10342 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 break 2
10345 fi
10346 done
10347 done
10348 IFS=$as_save_IFS
10349
10350 ;;
10351 esac
10352 fi
10353 STAT=$ac_cv_path_STAT
10354 if test -n "$STAT"; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
10356 $as_echo "$STAT" >&6; }
10357 else
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359 $as_echo "no" >&6; }
10360 fi
10361
10362
10363 # Extract the first word of "time", so it can be a program name with args.
10364 set dummy time; ac_word=$2
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10366 $as_echo_n "checking for $ac_word... " >&6; }
10367 if test "${ac_cv_path_TIME+set}" = set; then :
10368 $as_echo_n "(cached) " >&6
10369 else
10370 case $TIME in
10371 [\\/]* | ?:[\\/]*)
10372 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
10373 ;;
10374 *)
10375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376 for as_dir in $PATH
10377 do
10378 IFS=$as_save_IFS
10379 test -z "$as_dir" && as_dir=.
10380 for ac_exec_ext in '' $ac_executable_extensions; do
10381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10382 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
10383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10384 break 2
10385 fi
10386 done
10387 done
10388 IFS=$as_save_IFS
10389
10390 ;;
10391 esac
10392 fi
10393 TIME=$ac_cv_path_TIME
10394 if test -n "$TIME"; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10396 $as_echo "$TIME" >&6; }
10397 else
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399 $as_echo "no" >&6; }
10400 fi
10401
10402
10403 # Check if it's GNU time
10404 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
10405 if test "x$IS_GNU_TIME" != x; then
10406 IS_GNU_TIME=yes
10407 else
10408 IS_GNU_TIME=no
10409 fi
10410
10411
10412 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
10413
10414 for ac_prog in comm
10415 do
10416 # Extract the first word of "$ac_prog", so it can be a program name with args.
10417 set dummy $ac_prog; ac_word=$2
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10419 $as_echo_n "checking for $ac_word... " >&6; }
10420 if test "${ac_cv_path_COMM+set}" = set; then :
10421 $as_echo_n "(cached) " >&6
10422 else
10423 case $COMM in
10424 [\\/]* | ?:[\\/]*)
10425 ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
10426 ;;
10427 *)
10428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10429 for as_dir in $PATH
10430 do
10431 IFS=$as_save_IFS
10432 test -z "$as_dir" && as_dir=.
10433 for ac_exec_ext in '' $ac_executable_extensions; do
10434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10435 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
10436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10437 break 2
10438 fi
10439 done
10440 done
10441 IFS=$as_save_IFS
10442
10443 ;;
10444 esac
10445 fi
10446 COMM=$ac_cv_path_COMM
10447 if test -n "$COMM"; then
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
10449 $as_echo "$COMM" >&6; }
10450 else
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452 $as_echo "no" >&6; }
10453 fi
10454
10462 PROG_NAME=comm
10463 else
10464 PROG_NAME=comm
10465 fi
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10467 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10468 as_fn_error $? "Cannot continue" "$LINENO" 5
10469 fi
10470
10471
10472 fi
10473
10474 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
10475
10476 for ac_prog in xattr
10477 do
10478 # Extract the first word of "$ac_prog", so it can be a program name with args.
10479 set dummy $ac_prog; ac_word=$2
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481 $as_echo_n "checking for $ac_word... " >&6; }
10482 if test "${ac_cv_path_XATTR+set}" = set; then :
10483 $as_echo_n "(cached) " >&6
10484 else
10485 case $XATTR in
10486 [\\/]* | ?:[\\/]*)
10487 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
10488 ;;
10489 *)
10490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491 for as_dir in $PATH
10492 do
10493 IFS=$as_save_IFS
10494 test -z "$as_dir" && as_dir=.
10495 for ac_exec_ext in '' $ac_executable_extensions; do
10496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10497 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
10498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10499 break 2
10500 fi
10501 done
10502 done
10503 IFS=$as_save_IFS
10504
10505 ;;
10506 esac
10507 fi
10508 XATTR=$ac_cv_path_XATTR
10509 if test -n "$XATTR"; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
10511 $as_echo "$XATTR" >&6; }
10512 else
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; }
10515 fi
10516
10518 test -n "$XATTR" && break
10519 done
10520
10521
10522 if test "x$XATTR" = x; then
10523 if test "xxattr" = x; then
10524 PROG_NAME=xattr
10525 else
10526 PROG_NAME=xattr
10527 fi
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10529 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10530 as_fn_error $? "Cannot continue" "$LINENO" 5
10531 fi
10532
10533
10534 # Extract the first word of "codesign", so it can be a program name with args.
10535 set dummy codesign; ac_word=$2
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10537 $as_echo_n "checking for $ac_word... " >&6; }
10538 if test "${ac_cv_path_CODESIGN+set}" = set; then :
10539 $as_echo_n "(cached) " >&6
10540 else
10541 case $CODESIGN in
10542 [\\/]* | ?:[\\/]*)
10543 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
10544 ;;
10545 *)
10546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547 for as_dir in $PATH
10548 do
10549 IFS=$as_save_IFS
10550 test -z "$as_dir" && as_dir=.
10551 for ac_exec_ext in '' $ac_executable_extensions; do
10552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10553 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
10554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10555 break 2
10556 fi
10557 done
10558 done
10559 IFS=$as_save_IFS
10560
10561 ;;
10562 esac
10563 fi
10564 CODESIGN=$ac_cv_path_CODESIGN
10565 if test -n "$CODESIGN"; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
10567 $as_echo "$CODESIGN" >&6; }
10568 else
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570 $as_echo "no" >&6; }
10571 fi
10572
10582 if test "x$CODESIGN" = x; then
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10585 else
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10587 $as_echo "yes" >&6; }
10588 fi
10589 fi
10590 fi
10591
10592
10593 # Check if pkg-config is available.
10594
10595
10596 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10597 if test -n "$ac_tool_prefix"; then
10598 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10599 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10601 $as_echo_n "checking for $ac_word... " >&6; }
10602 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10603 $as_echo_n "(cached) " >&6
10604 else
10605 case $PKG_CONFIG in
10606 [\\/]* | ?:[\\/]*)
10607 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10608 ;;
10609 *)
10610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611 for as_dir in $PATH
10612 do
10613 IFS=$as_save_IFS
10614 test -z "$as_dir" && as_dir=.
10615 for ac_exec_ext in '' $ac_executable_extensions; do
10616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10617 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10619 break 2
10620 fi
10621 done
10622 done
10623 IFS=$as_save_IFS
10624
10625 ;;
10626 esac
10627 fi
10628 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10629 if test -n "$PKG_CONFIG"; then
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10631 $as_echo "$PKG_CONFIG" >&6; }
10632 else
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634 $as_echo "no" >&6; }
10635 fi
10636
10637
10638 fi
10639 if test -z "$ac_cv_path_PKG_CONFIG"; then
10640 ac_pt_PKG_CONFIG=$PKG_CONFIG
10641 # Extract the first word of "pkg-config", so it can be a program name with args.
10642 set dummy pkg-config; ac_word=$2
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10644 $as_echo_n "checking for $ac_word... " >&6; }
10645 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 case $ac_pt_PKG_CONFIG in
10649 [\\/]* | ?:[\\/]*)
10650 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10651 ;;
10652 *)
10653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10654 for as_dir in $PATH
10655 do
10656 IFS=$as_save_IFS
10657 test -z "$as_dir" && as_dir=.
10658 for ac_exec_ext in '' $ac_executable_extensions; do
10659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10660 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10662 break 2
10663 fi
10664 done
10665 done
10666 IFS=$as_save_IFS
10667
10668 ;;
10669 esac
10670 fi
10671 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10672 if test -n "$ac_pt_PKG_CONFIG"; then
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10674 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10675 else
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10677 $as_echo "no" >&6; }
10678 fi
10679
10798 echo Build stays the same $rewritten_build
10799 else
10800 echo Rewriting build for builddeps into $rewritten_build
10801 fi
10802 eval rewritten_target=\${REWRITE_${target_var}}
10803 if test "x$rewritten_target" = x; then
10804 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
10805 echo Target stays the same $rewritten_target
10806 else
10807 echo Rewriting target for builddeps into $rewritten_target
10808 fi
10809 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
10810 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
10811 fi
10812 for ac_prog in 7z unzip
10813 do
10814 # Extract the first word of "$ac_prog", so it can be a program name with args.
10815 set dummy $ac_prog; ac_word=$2
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10817 $as_echo_n "checking for $ac_word... " >&6; }
10818 if test "${ac_cv_prog_BDEPS_UNZIP+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
10820 else
10821 if test -n "$BDEPS_UNZIP"; then
10822 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
10823 else
10824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825 for as_dir in $PATH
10826 do
10827 IFS=$as_save_IFS
10828 test -z "$as_dir" && as_dir=.
10829 for ac_exec_ext in '' $ac_executable_extensions; do
10830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10831 ac_cv_prog_BDEPS_UNZIP="$ac_prog"
10832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10833 break 2
10834 fi
10835 done
10836 done
10837 IFS=$as_save_IFS
10838
10839 fi
10840 fi
10841 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
10842 if test -n "$BDEPS_UNZIP"; then
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
10844 $as_echo "$BDEPS_UNZIP" >&6; }
10845 else
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847 $as_echo "no" >&6; }
10848 fi
10849
10850
10851 test -n "$BDEPS_UNZIP" && break
10852 done
10853
10854 if test "x$BDEPS_UNZIP" = x7z; then
10855 BDEPS_UNZIP="7z x"
10856 fi
10857
10858 for ac_prog in wget lftp ftp
10859 do
10860 # Extract the first word of "$ac_prog", so it can be a program name with args.
10861 set dummy $ac_prog; ac_word=$2
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863 $as_echo_n "checking for $ac_word... " >&6; }
10864 if test "${ac_cv_prog_BDEPS_FTP+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
10866 else
10867 if test -n "$BDEPS_FTP"; then
10868 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
10869 else
10870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871 for as_dir in $PATH
10872 do
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
10875 for ac_exec_ext in '' $ac_executable_extensions; do
10876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10877 ac_cv_prog_BDEPS_FTP="$ac_prog"
10878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10879 break 2
10880 fi
10881 done
10882 done
10883 IFS=$as_save_IFS
10884
10885 fi
10886 fi
10887 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
10888 if test -n "$BDEPS_FTP"; then
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
10890 $as_echo "$BDEPS_FTP" >&6; }
10891 else
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893 $as_echo "no" >&6; }
10894 fi
10895
10896
12140 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '`
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
12142 $as_echo "$BOOT_JDK_VERSION" >&6; }
12143 fi # end check jdk version
12144 fi # end check rt.jar
12145 fi # end check javac
12146 fi # end check java
12147 fi # end check boot jdk found
12148 fi
12149
12150
12151 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
12152
12153 if test "x$BOOT_JDK_FOUND" = xno; then
12154 # Now execute the test
12155
12156 # Extract the first word of "javac", so it can be a program name with args.
12157 set dummy javac; ac_word=$2
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12159 $as_echo_n "checking for $ac_word... " >&6; }
12160 if test "${ac_cv_path_JAVAC_CHECK+set}" = set; then :
12161 $as_echo_n "(cached) " >&6
12162 else
12163 case $JAVAC_CHECK in
12164 [\\/]* | ?:[\\/]*)
12165 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
12166 ;;
12167 *)
12168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in $PATH
12170 do
12171 IFS=$as_save_IFS
12172 test -z "$as_dir" && as_dir=.
12173 for ac_exec_ext in '' $ac_executable_extensions; do
12174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12175 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12177 break 2
12178 fi
12179 done
12180 done
12181 IFS=$as_save_IFS
12182
12183 ;;
12184 esac
12185 fi
12186 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
12187 if test -n "$JAVAC_CHECK"; then
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
12189 $as_echo "$JAVAC_CHECK" >&6; }
12190 else
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192 $as_echo "no" >&6; }
12193 fi
12194
12195
12196 # Extract the first word of "java", so it can be a program name with args.
12197 set dummy java; ac_word=$2
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199 $as_echo_n "checking for $ac_word... " >&6; }
12200 if test "${ac_cv_path_JAVA_CHECK+set}" = set; then :
12201 $as_echo_n "(cached) " >&6
12202 else
12203 case $JAVA_CHECK in
12204 [\\/]* | ?:[\\/]*)
12205 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
12206 ;;
12207 *)
12208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12209 for as_dir in $PATH
12210 do
12211 IFS=$as_save_IFS
12212 test -z "$as_dir" && as_dir=.
12213 for ac_exec_ext in '' $ac_executable_extensions; do
12214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12215 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
12216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12217 break 2
12218 fi
12219 done
12220 done
12221 IFS=$as_save_IFS
12222
12223 ;;
12224 esac
12225 fi
12226 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
12227 if test -n "$JAVA_CHECK"; then
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
12229 $as_echo "$JAVA_CHECK" >&6; }
12230 else
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12233 fi
12234
15708
15709 # If we haven't found anything yet, we've truly lost. Give up.
15710 if test "x$BOOT_JDK_FOUND" = xno; then
15711
15712 # Print a helpful message on how to acquire the necessary build dependency.
15713 # openjdk is the help tag: freetyp2, cups, pulse, alsa etc
15714 MISSING_DEPENDENCY=openjdk
15715 PKGHANDLER_COMMAND=
15716
15717 case $PKGHANDLER in
15718 apt-get)
15719 apt_help $MISSING_DEPENDENCY ;;
15720 yum)
15721 yum_help $MISSING_DEPENDENCY ;;
15722 port)
15723 port_help $MISSING_DEPENDENCY ;;
15724 pkgutil)
15725 pkgutil_help $MISSING_DEPENDENCY ;;
15726 pkgadd)
15727 pkgadd_help $MISSING_DEPENDENCY ;;
15728 * )
15729 break ;;
15730 esac
15731
15732 if test "x$PKGHANDLER_COMMAND" != x; then
15733 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
15734 fi
15735
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5
15737 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;}
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
15739 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
15740 as_fn_error $? "Cannot continue" "$LINENO" 5
15741 fi
15742
15743 # Setup proper paths for what we found
15744 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
15745 if test ! -f "$BOOT_RTJAR"; then
15746 # On MacOSX it is called classes.jar
15747 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar"
15748 if test -f "$BOOT_RTJAR"; then
15749 # Remove the ..
16509
16510
16511 # jtreg win32 script works for everybody
16512 JTREGEXE="$JT_HOME/win32/bin/jtreg"
16513
16514 if test ! -f "$JTREGEXE"; then
16515 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5
16516 fi
16517
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
16519 $as_echo "$JTREGEXE" >&6; }
16520 else
16521 # try to find jtreg on path
16522
16523 for ac_prog in jtreg
16524 do
16525 # Extract the first word of "$ac_prog", so it can be a program name with args.
16526 set dummy $ac_prog; ac_word=$2
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16528 $as_echo_n "checking for $ac_word... " >&6; }
16529 if test "${ac_cv_path_JTREGEXE+set}" = set; then :
16530 $as_echo_n "(cached) " >&6
16531 else
16532 case $JTREGEXE in
16533 [\\/]* | ?:[\\/]*)
16534 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
16535 ;;
16536 *)
16537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16538 for as_dir in $PATH
16539 do
16540 IFS=$as_save_IFS
16541 test -z "$as_dir" && as_dir=.
16542 for ac_exec_ext in '' $ac_executable_extensions; do
16543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16544 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
16545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16546 break 2
16547 fi
16548 done
16549 done
16550 IFS=$as_save_IFS
16551
16552 ;;
16553 esac
16554 fi
16555 JTREGEXE=$ac_cv_path_JTREGEXE
16556 if test -n "$JTREGEXE"; then
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
16558 $as_echo "$JTREGEXE" >&6; }
16559 else
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16561 $as_echo "no" >&6; }
16562 fi
16563
16577 as_fn_error $? "Cannot continue" "$LINENO" 5
16578 fi
16579
16580
16581 JT_HOME="`$DIRNAME $JTREGEXE`"
16582 fi
16583 fi
16584
16585
16586
16587
16588
16589 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16590
16591 # Store path to cygwin link.exe to help excluding it when searching for
16592 # VS linker. This must be done before changing the PATH when looking for VS.
16593 # Extract the first word of "link", so it can be a program name with args.
16594 set dummy link; ac_word=$2
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16596 $as_echo_n "checking for $ac_word... " >&6; }
16597 if test "${ac_cv_path_CYGWIN_LINK+set}" = set; then :
16598 $as_echo_n "(cached) " >&6
16599 else
16600 case $CYGWIN_LINK in
16601 [\\/]* | ?:[\\/]*)
16602 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path.
16603 ;;
16604 *)
16605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16606 for as_dir in $PATH
16607 do
16608 IFS=$as_save_IFS
16609 test -z "$as_dir" && as_dir=.
16610 for ac_exec_ext in '' $ac_executable_extensions; do
16611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16612 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext"
16613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16614 break 2
16615 fi
16616 done
16617 done
16618 IFS=$as_save_IFS
16619
16620 ;;
16621 esac
16622 fi
16623 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK
16624 if test -n "$CYGWIN_LINK"; then
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5
16626 $as_echo "$CYGWIN_LINK" >&6; }
16627 else
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16629 $as_echo "no" >&6; }
16630 fi
16631
18020 # For example the binary i686-sun-solaris2.10-gcc
18021 # will cross compile for i686-sun-solaris2.10
18022 # If neither of build and host is not set, then build=host and the
18023 # default compiler found in the path will be used.
18024 # Setting only --host, does not seem to be really supported.
18025 # Please set both --build and --host if you want to cross compile.
18026
18027 if test "x$COMPILE_TYPE" = "xcross"; then
18028 # Now we to find a C/C++ compiler that can build executables for the build
18029 # platform. We can't use the AC_PROG_CC macro, since it can only be used
18030 # once. Also, we need to do this before adding a tools dir to the path,
18031 # otherwise we might pick up cross-compilers which don't use standard naming.
18032 # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have
18033 # to wait until they are properly discovered.
18034 for ac_prog in cl cc gcc
18035 do
18036 # Extract the first word of "$ac_prog", so it can be a program name with args.
18037 set dummy $ac_prog; ac_word=$2
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18039 $as_echo_n "checking for $ac_word... " >&6; }
18040 if test "${ac_cv_path_BUILD_CC+set}" = set; then :
18041 $as_echo_n "(cached) " >&6
18042 else
18043 case $BUILD_CC in
18044 [\\/]* | ?:[\\/]*)
18045 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
18046 ;;
18047 *)
18048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18049 for as_dir in $PATH
18050 do
18051 IFS=$as_save_IFS
18052 test -z "$as_dir" && as_dir=.
18053 for ac_exec_ext in '' $ac_executable_extensions; do
18054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18055 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
18056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18057 break 2
18058 fi
18059 done
18060 done
18061 IFS=$as_save_IFS
18062
18063 ;;
18064 esac
18065 fi
18066 BUILD_CC=$ac_cv_path_BUILD_CC
18067 if test -n "$BUILD_CC"; then
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
18069 $as_echo "$BUILD_CC" >&6; }
18070 else
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18072 $as_echo "no" >&6; }
18073 fi
18074
18331
18332 # Now join together the path and the arguments once again
18333 if test "x$arguments" != xEOL; then
18334 new_complete="$new_path ${arguments% *}"
18335 else
18336 new_complete="$new_path"
18337 fi
18338
18339 if test "x$complete" != "x$new_complete"; then
18340 BUILD_CC="$new_complete"
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5
18342 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;}
18343 fi
18344
18345 for ac_prog in cl CC g++
18346 do
18347 # Extract the first word of "$ac_prog", so it can be a program name with args.
18348 set dummy $ac_prog; ac_word=$2
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18350 $as_echo_n "checking for $ac_word... " >&6; }
18351 if test "${ac_cv_path_BUILD_CXX+set}" = set; then :
18352 $as_echo_n "(cached) " >&6
18353 else
18354 case $BUILD_CXX in
18355 [\\/]* | ?:[\\/]*)
18356 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
18357 ;;
18358 *)
18359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18360 for as_dir in $PATH
18361 do
18362 IFS=$as_save_IFS
18363 test -z "$as_dir" && as_dir=.
18364 for ac_exec_ext in '' $ac_executable_extensions; do
18365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18366 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
18367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18368 break 2
18369 fi
18370 done
18371 done
18372 IFS=$as_save_IFS
18373
18374 ;;
18375 esac
18376 fi
18377 BUILD_CXX=$ac_cv_path_BUILD_CXX
18378 if test -n "$BUILD_CXX"; then
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
18380 $as_echo "$BUILD_CXX" >&6; }
18381 else
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18383 $as_echo "no" >&6; }
18384 fi
18385
18640 fi
18641 fi
18642
18643 # Now join together the path and the arguments once again
18644 if test "x$arguments" != xEOL; then
18645 new_complete="$new_path ${arguments% *}"
18646 else
18647 new_complete="$new_path"
18648 fi
18649
18650 if test "x$complete" != "x$new_complete"; then
18651 BUILD_CXX="$new_complete"
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5
18653 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;}
18654 fi
18655
18656 # Extract the first word of "ld", so it can be a program name with args.
18657 set dummy ld; ac_word=$2
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18659 $as_echo_n "checking for $ac_word... " >&6; }
18660 if test "${ac_cv_path_BUILD_LD+set}" = set; then :
18661 $as_echo_n "(cached) " >&6
18662 else
18663 case $BUILD_LD in
18664 [\\/]* | ?:[\\/]*)
18665 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
18666 ;;
18667 *)
18668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18669 for as_dir in $PATH
18670 do
18671 IFS=$as_save_IFS
18672 test -z "$as_dir" && as_dir=.
18673 for ac_exec_ext in '' $ac_executable_extensions; do
18674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18675 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
18676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18677 break 2
18678 fi
18679 done
18680 done
18681 IFS=$as_save_IFS
18682
18683 ;;
18684 esac
18685 fi
18686 BUILD_LD=$ac_cv_path_BUILD_LD
18687 if test -n "$BUILD_LD"; then
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5
18689 $as_echo "$BUILD_LD" >&6; }
18690 else
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18692 $as_echo "no" >&6; }
18693 fi
18694
19128
19129 # autoconf magic only relies on PATH, so update it if tools dir is specified
19130 OLD_PATH="$PATH"
19131 if test "x$TOOLS_DIR" != x; then
19132 PATH=$TOOLS_DIR:$PATH
19133 fi
19134
19135
19136 ### Locate C compiler (CC)
19137
19138 # On windows, only cl.exe is supported.
19139 # On Solaris, cc is preferred to gcc.
19140 # Elsewhere, gcc is preferred to cc.
19141
19142 if test "x$CC" != x; then
19143 COMPILER_CHECK_LIST="$CC"
19144 elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then
19145 COMPILER_CHECK_LIST="cl"
19146 elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
19147 COMPILER_CHECK_LIST="cc gcc"
19148 else
19149 COMPILER_CHECK_LIST="gcc cc"
19150 fi
19151
19152
19153 COMPILER_NAME=C
19154
19155 CC=
19156 # If TOOLS_DIR is set, check for all compiler names in there first
19157 # before checking the rest of the PATH.
19158 if test -n "$TOOLS_DIR"; then
19159 PATH_save="$PATH"
19160 PATH="$TOOLS_DIR"
19161 for ac_prog in $COMPILER_CHECK_LIST
19162 do
19163 # Extract the first word of "$ac_prog", so it can be a program name with args.
19164 set dummy $ac_prog; ac_word=$2
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19166 $as_echo_n "checking for $ac_word... " >&6; }
19167 if test "${ac_cv_path_TOOLS_DIR_CC+set}" = set; then :
19168 $as_echo_n "(cached) " >&6
19169 else
19170 case $TOOLS_DIR_CC in
19171 [\\/]* | ?:[\\/]*)
19172 ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path.
19173 ;;
19174 *)
19175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19176 for as_dir in $PATH
19177 do
19178 IFS=$as_save_IFS
19179 test -z "$as_dir" && as_dir=.
19180 for ac_exec_ext in '' $ac_executable_extensions; do
19181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19182 ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext"
19183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19184 break 2
19185 fi
19186 done
19187 done
19188 IFS=$as_save_IFS
19189
19190 ;;
19191 esac
19192 fi
19193 TOOLS_DIR_CC=$ac_cv_path_TOOLS_DIR_CC
19194 if test -n "$TOOLS_DIR_CC"; then
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CC" >&5
19196 $as_echo "$TOOLS_DIR_CC" >&6; }
19197 else
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19199 $as_echo "no" >&6; }
19200 fi
19201
19202
19203 test -n "$TOOLS_DIR_CC" && break
19204 done
19205
19206 CC=$TOOLS_DIR_CC
19207 PATH="$PATH_save"
19208 fi
19209
19210 # AC_PATH_PROGS can't be run multiple times with the same variable,
19211 # so create a new name for this run.
19212 if test "x$CC" = x; then
19213 for ac_prog in $COMPILER_CHECK_LIST
19214 do
19215 # Extract the first word of "$ac_prog", so it can be a program name with args.
19216 set dummy $ac_prog; ac_word=$2
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19218 $as_echo_n "checking for $ac_word... " >&6; }
19219 if test "${ac_cv_path_POTENTIAL_CC+set}" = set; then :
19220 $as_echo_n "(cached) " >&6
19221 else
19222 case $POTENTIAL_CC in
19223 [\\/]* | ?:[\\/]*)
19224 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
19225 ;;
19226 *)
19227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19228 for as_dir in $PATH
19229 do
19230 IFS=$as_save_IFS
19231 test -z "$as_dir" && as_dir=.
19232 for ac_exec_ext in '' $ac_executable_extensions; do
19233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19234 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
19235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19236 break 2
19237 fi
19238 done
19239 done
19240 IFS=$as_save_IFS
19241
19242 ;;
19243 esac
19244 fi
19245 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC
19246 if test -n "$POTENTIAL_CC"; then
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5
19248 $as_echo "$POTENTIAL_CC" >&6; }
19249 else
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19251 $as_echo "no" >&6; }
19252 fi
19253
19259 fi
19260
19261 if test "x$CC" = x; then
19262
19263 # Print a helpful message on how to acquire the necessary build dependency.
19264 # devkit is the help tag: freetyp2, cups, pulse, alsa etc
19265 MISSING_DEPENDENCY=devkit
19266 PKGHANDLER_COMMAND=
19267
19268 case $PKGHANDLER in
19269 apt-get)
19270 apt_help $MISSING_DEPENDENCY ;;
19271 yum)
19272 yum_help $MISSING_DEPENDENCY ;;
19273 port)
19274 port_help $MISSING_DEPENDENCY ;;
19275 pkgutil)
19276 pkgutil_help $MISSING_DEPENDENCY ;;
19277 pkgadd)
19278 pkgadd_help $MISSING_DEPENDENCY ;;
19279 * )
19280 break ;;
19281 esac
19282
19283 if test "x$PKGHANDLER_COMMAND" != x; then
19284 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
19285 fi
19286
19287 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5
19288 fi
19289
19290 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19291
19292 # First separate the path from the arguments. This will split at the first
19293 # space.
19294 complete="$CC"
19295 path="${complete%% *}"
19296 tmp="$complete EOL"
19297 arguments="${tmp#* }"
19298
19299 # Input might be given as Windows format, start by converting to
19300 # unix format.
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19536 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19537 fi
19538 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
19539 fi
19540 fi
19541
19542 # Now join together the path and the arguments once again
19543 if test "x$arguments" != xEOL; then
19544 new_complete="$new_path ${arguments% *}"
19545 else
19546 new_complete="$new_path"
19547 fi
19548
19549 if test "x$complete" != "x$new_complete"; then
19550 CC="$new_complete"
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5
19552 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;}
19553 fi
19554
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5
19556 $as_echo_n "checking resolved symbolic links for CC... " >&6; }
19557 TEST_COMPILER="$CC"
19558
19559 if test "x$OPENJDK_BUILD_OS" != xwindows; then
19560 # Follow a chain of symbolic links. Use readlink
19561 # where it exists, else fall back to horribly
19562 # complicated shell code.
19563 if test "x$READLINK_TESTED" != yes; then
19564 # On MacOSX there is a readlink tool with a different
19565 # purpose than the GNU readlink tool. Check the found readlink.
19566 ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
19567 if test "x$ISGNU" = x; then
19568 # A readlink that we do not know how to use.
19569 # Are there other non-GNU readlinks out there?
19570 READLINK_TESTED=yes
19571 READLINK=
19572 fi
19573 fi
19574
19575 if test "x$READLINK" != x; then
19576 TEST_COMPILER=`$READLINK -f $TEST_COMPILER`
19577 else
19588 while test $COUNTER -lt 20; do
19589 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
19590 if test "x$ISLINK" == x; then
19591 # This is not a symbolic link! We are done!
19592 break
19593 fi
19594 # Again resolve directory symlinks since the target of the just found
19595 # link could be in a different directory
19596 cd `$DIRNAME $ISLINK`
19597 sym_link_dir=`$THEPWDCMD -P`
19598 sym_link_file=`$BASENAME $ISLINK`
19599 let COUNTER=COUNTER+1
19600 done
19601 cd $STARTDIR
19602 TEST_COMPILER=$sym_link_dir/$sym_link_file
19603 fi
19604 fi
19605
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5
19607 $as_echo "$TEST_COMPILER" >&6; }
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5
19609 $as_echo_n "checking if CC is disguised ccache... " >&6; }
19610
19611 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"`
19612 if test "x$COMPILER_BASENAME" = "xccache"; then
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
19614 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
19615 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
19616 # We want to control ccache invocation ourselves, so ignore this cc and try
19617 # searching again.
19618
19619 # Remove the path to the fake ccache cc from the PATH
19620 RETRY_COMPILER_SAVED_PATH="$PATH"
19621 COMPILER_DIRNAME=`$DIRNAME $CC`
19622 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
19623
19624 # Try again looking for our compiler
19625 if test -n "$ac_tool_prefix"; then
19626 for ac_prog in $COMPILER_CHECK_LIST
19627 do
19628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19631 $as_echo_n "checking for $ac_word... " >&6; }
19632 if test "${ac_cv_prog_PROPER_COMPILER_CC+set}" = set; then :
19633 $as_echo_n "(cached) " >&6
19634 else
19635 if test -n "$PROPER_COMPILER_CC"; then
19636 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test.
19637 else
19638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19639 for as_dir in $PATH
19640 do
19641 IFS=$as_save_IFS
19642 test -z "$as_dir" && as_dir=.
19643 for ac_exec_ext in '' $ac_executable_extensions; do
19644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19645 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog"
19646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19647 break 2
19648 fi
19649 done
19650 done
19651 IFS=$as_save_IFS
19652
19653 fi
19654 fi
19655 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC
19656 if test -n "$PROPER_COMPILER_CC"; then
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
19658 $as_echo "$PROPER_COMPILER_CC" >&6; }
19659 else
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19661 $as_echo "no" >&6; }
19662 fi
19663
19664
19665 test -n "$PROPER_COMPILER_CC" && break
19666 done
19667 fi
19668 if test -z "$PROPER_COMPILER_CC"; then
19669 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC
19670 for ac_prog in $COMPILER_CHECK_LIST
19671 do
19672 # Extract the first word of "$ac_prog", so it can be a program name with args.
19673 set dummy $ac_prog; ac_word=$2
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19675 $as_echo_n "checking for $ac_word... " >&6; }
19676 if test "${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+set}" = set; then :
19677 $as_echo_n "(cached) " >&6
19678 else
19679 if test -n "$ac_ct_PROPER_COMPILER_CC"; then
19680 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test.
19681 else
19682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19683 for as_dir in $PATH
19684 do
19685 IFS=$as_save_IFS
19686 test -z "$as_dir" && as_dir=.
19687 for ac_exec_ext in '' $ac_executable_extensions; do
19688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19689 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog"
19690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19691 break 2
19692 fi
19693 done
19694 done
19695 IFS=$as_save_IFS
19696
19697 fi
19698 fi
19699 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC
19700 if test -n "$ac_ct_PROPER_COMPILER_CC"; then
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5
19702 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; }
19703 else
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19705 $as_echo "no" >&6; }
19706 fi
19707
19708
20051
20052 COMPILER=$CC
20053 COMPILER_NAME=$COMPILER_NAME
20054
20055 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
20056 # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work
20057 COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1`
20058 $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null
20059 if test $? -ne 0; then
20060 GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
20061
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5
20063 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;}
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5
20065 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;}
20066 as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5
20067 else
20068 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"`
20069 COMPILER_VENDOR="Sun Studio"
20070 fi
20071 elif test "x$OPENJDK_TARGET_OS" = xwindows; then
20072 # First line typically looks something like:
20073 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
20074 COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
20075 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
20076 COMPILER_VENDOR="Microsoft CL.EXE"
20077 COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
20078 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then
20079 if test "x$COMPILER_CPU_TEST" != "x80x86"; then
20080 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5
20081 fi
20082 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
20083 if test "x$COMPILER_CPU_TEST" != "xx64"; then
20084 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5
20085 fi
20086 fi
20087 else
20088 COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
20089 # Check that this is likely to be GCC.
20090 $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null
20106 # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
20107 CC_VENDOR="$COMPILER_VENDOR"
20108
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
20110 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
20111
20112
20113 # Now that we have resolved CC ourself, let autoconf have its go at it
20114 ac_ext=c
20115 ac_cpp='$CPP $CPPFLAGS'
20116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20119 if test -n "$ac_tool_prefix"; then
20120 for ac_prog in $CC
20121 do
20122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20125 $as_echo_n "checking for $ac_word... " >&6; }
20126 if test "${ac_cv_prog_CC+set}" = set; then :
20127 $as_echo_n "(cached) " >&6
20128 else
20129 if test -n "$CC"; then
20130 ac_cv_prog_CC="$CC" # Let the user override the test.
20131 else
20132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20133 for as_dir in $PATH
20134 do
20135 IFS=$as_save_IFS
20136 test -z "$as_dir" && as_dir=.
20137 for ac_exec_ext in '' $ac_executable_extensions; do
20138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20139 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20141 break 2
20142 fi
20143 done
20144 done
20145 IFS=$as_save_IFS
20146
20147 fi
20148 fi
20149 CC=$ac_cv_prog_CC
20150 if test -n "$CC"; then
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
20152 $as_echo "$CC" >&6; }
20153 else
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20155 $as_echo "no" >&6; }
20156 fi
20157
20158
20159 test -n "$CC" && break
20160 done
20161 fi
20162 if test -z "$CC"; then
20163 ac_ct_CC=$CC
20164 for ac_prog in $CC
20165 do
20166 # Extract the first word of "$ac_prog", so it can be a program name with args.
20167 set dummy $ac_prog; ac_word=$2
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20169 $as_echo_n "checking for $ac_word... " >&6; }
20170 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
20171 $as_echo_n "(cached) " >&6
20172 else
20173 if test -n "$ac_ct_CC"; then
20174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20175 else
20176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20177 for as_dir in $PATH
20178 do
20179 IFS=$as_save_IFS
20180 test -z "$as_dir" && as_dir=.
20181 for ac_exec_ext in '' $ac_executable_extensions; do
20182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20183 ac_cv_prog_ac_ct_CC="$ac_prog"
20184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20185 break 2
20186 fi
20187 done
20188 done
20189 IFS=$as_save_IFS
20190
20191 fi
20192 fi
20193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20194 if test -n "$ac_ct_CC"; then
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
20196 $as_echo "$ac_ct_CC" >&6; }
20197 else
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20199 $as_echo "no" >&6; }
20200 fi
20201
20202
20431 cross_compiling=no
20432 else
20433 if test "$cross_compiling" = maybe; then
20434 cross_compiling=yes
20435 else
20436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20438 as_fn_error $? "cannot run C compiled programs.
20439 If you meant to cross compile, use \`--host'.
20440 See \`config.log' for more details" "$LINENO" 5; }
20441 fi
20442 fi
20443 fi
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
20445 $as_echo "$cross_compiling" >&6; }
20446
20447 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
20448 ac_clean_files=$ac_clean_files_save
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
20450 $as_echo_n "checking for suffix of object files... " >&6; }
20451 if test "${ac_cv_objext+set}" = set; then :
20452 $as_echo_n "(cached) " >&6
20453 else
20454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20455 /* end confdefs.h. */
20456
20457 int
20458 main ()
20459 {
20460
20461 ;
20462 return 0;
20463 }
20464 _ACEOF
20465 rm -f conftest.o conftest.obj
20466 if { { ac_try="$ac_compile"
20467 case "(($ac_try" in
20468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469 *) ac_try_echo=$ac_try;;
20470 esac
20471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20482 break;;
20483 esac
20484 done
20485 else
20486 $as_echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20488
20489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20491 as_fn_error $? "cannot compute suffix of object files: cannot compile
20492 See \`config.log' for more details" "$LINENO" 5; }
20493 fi
20494 rm -f conftest.$ac_cv_objext conftest.$ac_ext
20495 fi
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
20497 $as_echo "$ac_cv_objext" >&6; }
20498 OBJEXT=$ac_cv_objext
20499 ac_objext=$OBJEXT
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
20501 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20502 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
20503 $as_echo_n "(cached) " >&6
20504 else
20505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20506 /* end confdefs.h. */
20507
20508 int
20509 main ()
20510 {
20511 #ifndef __GNUC__
20512 choke me
20513 #endif
20514
20515 ;
20516 return 0;
20517 }
20518 _ACEOF
20519 if ac_fn_c_try_compile "$LINENO"; then :
20520 ac_compiler_gnu=yes
20521 else
20522 ac_compiler_gnu=no
20523 fi
20524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20525 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20526
20527 fi
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
20529 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20530 if test $ac_compiler_gnu = yes; then
20531 GCC=yes
20532 else
20533 GCC=
20534 fi
20535 ac_test_CFLAGS=${CFLAGS+set}
20536 ac_save_CFLAGS=$CFLAGS
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
20538 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20539 if test "${ac_cv_prog_cc_g+set}" = set; then :
20540 $as_echo_n "(cached) " >&6
20541 else
20542 ac_save_c_werror_flag=$ac_c_werror_flag
20543 ac_c_werror_flag=yes
20544 ac_cv_prog_cc_g=no
20545 CFLAGS="-g"
20546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20547 /* end confdefs.h. */
20548
20549 int
20550 main ()
20551 {
20552
20553 ;
20554 return 0;
20555 }
20556 _ACEOF
20557 if ac_fn_c_try_compile "$LINENO"; then :
20558 ac_cv_prog_cc_g=yes
20559 else
20597 fi
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
20599 $as_echo "$ac_cv_prog_cc_g" >&6; }
20600 if test "$ac_test_CFLAGS" = set; then
20601 CFLAGS=$ac_save_CFLAGS
20602 elif test $ac_cv_prog_cc_g = yes; then
20603 if test "$GCC" = yes; then
20604 CFLAGS="-g -O2"
20605 else
20606 CFLAGS="-g"
20607 fi
20608 else
20609 if test "$GCC" = yes; then
20610 CFLAGS="-O2"
20611 else
20612 CFLAGS=
20613 fi
20614 fi
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
20616 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20617 if test "${ac_cv_prog_cc_c89+set}" = set; then :
20618 $as_echo_n "(cached) " >&6
20619 else
20620 ac_cv_prog_cc_c89=no
20621 ac_save_CC=$CC
20622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20623 /* end confdefs.h. */
20624 #include <stdarg.h>
20625 #include <stdio.h>
20626 #include <sys/types.h>
20627 #include <sys/stat.h>
20628 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20629 struct buf { int x; };
20630 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20631 static char *e (p, i)
20632 char **p;
20633 int i;
20634 {
20635 return p[i];
20636 }
20637 static char *f (char * (*g) (char **, int), char **p, ...)
20638 {
20639 char *s;
20640 va_list v;
20641 va_start (v,p);
20642 s = g (p, va_arg (v,int));
20643 va_end (v);
20644 return s;
20645 }
20646
20647 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20693 $as_echo "none needed" >&6; } ;;
20694 xno)
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
20696 $as_echo "unsupported" >&6; } ;;
20697 *)
20698 CC="$CC $ac_cv_prog_cc_c89"
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
20700 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20701 esac
20702 if test "x$ac_cv_prog_cc_c89" != xno; then :
20703
20704 fi
20705
20706 ac_ext=cpp
20707 ac_cpp='$CXXCPP $CPPFLAGS'
20708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20711
20712
20713 ### Locate C++ compiler (CXX)
20714
20715 if test "x$CXX" != x; then
20716 COMPILER_CHECK_LIST="$CXX"
20717 elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then
20718 COMPILER_CHECK_LIST="cl"
20719 elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
20720 COMPILER_CHECK_LIST="CC g++"
20721 else
20722 COMPILER_CHECK_LIST="g++ CC"
20723 fi
20724
20725
20726 COMPILER_NAME=C++
20727
20728 CXX=
20729 # If TOOLS_DIR is set, check for all compiler names in there first
20730 # before checking the rest of the PATH.
20731 if test -n "$TOOLS_DIR"; then
20732 PATH_save="$PATH"
20733 PATH="$TOOLS_DIR"
20734 for ac_prog in $COMPILER_CHECK_LIST
20735 do
20736 # Extract the first word of "$ac_prog", so it can be a program name with args.
20737 set dummy $ac_prog; ac_word=$2
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20739 $as_echo_n "checking for $ac_word... " >&6; }
20740 if test "${ac_cv_path_TOOLS_DIR_CXX+set}" = set; then :
20741 $as_echo_n "(cached) " >&6
20742 else
20743 case $TOOLS_DIR_CXX in
20744 [\\/]* | ?:[\\/]*)
20745 ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path.
20746 ;;
20747 *)
20748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20749 for as_dir in $PATH
20750 do
20751 IFS=$as_save_IFS
20752 test -z "$as_dir" && as_dir=.
20753 for ac_exec_ext in '' $ac_executable_extensions; do
20754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20755 ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext"
20756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20757 break 2
20758 fi
20759 done
20760 done
20761 IFS=$as_save_IFS
20762
20763 ;;
20764 esac
20765 fi
20766 TOOLS_DIR_CXX=$ac_cv_path_TOOLS_DIR_CXX
20767 if test -n "$TOOLS_DIR_CXX"; then
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CXX" >&5
20769 $as_echo "$TOOLS_DIR_CXX" >&6; }
20770 else
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20772 $as_echo "no" >&6; }
20773 fi
20774
20775
20776 test -n "$TOOLS_DIR_CXX" && break
20777 done
20778
20779 CXX=$TOOLS_DIR_CXX
20780 PATH="$PATH_save"
20781 fi
20782
20783 # AC_PATH_PROGS can't be run multiple times with the same variable,
20784 # so create a new name for this run.
20785 if test "x$CXX" = x; then
20786 for ac_prog in $COMPILER_CHECK_LIST
20787 do
20788 # Extract the first word of "$ac_prog", so it can be a program name with args.
20789 set dummy $ac_prog; ac_word=$2
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20791 $as_echo_n "checking for $ac_word... " >&6; }
20792 if test "${ac_cv_path_POTENTIAL_CXX+set}" = set; then :
20793 $as_echo_n "(cached) " >&6
20794 else
20795 case $POTENTIAL_CXX in
20796 [\\/]* | ?:[\\/]*)
20797 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
20798 ;;
20799 *)
20800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20801 for as_dir in $PATH
20802 do
20803 IFS=$as_save_IFS
20804 test -z "$as_dir" && as_dir=.
20805 for ac_exec_ext in '' $ac_executable_extensions; do
20806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20807 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
20808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20809 break 2
20810 fi
20811 done
20812 done
20813 IFS=$as_save_IFS
20814
20815 ;;
20816 esac
20817 fi
20818 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX
20819 if test -n "$POTENTIAL_CXX"; then
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5
20821 $as_echo "$POTENTIAL_CXX" >&6; }
20822 else
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20824 $as_echo "no" >&6; }
20825 fi
20826
20832 fi
20833
20834 if test "x$CXX" = x; then
20835
20836 # Print a helpful message on how to acquire the necessary build dependency.
20837 # devkit is the help tag: freetyp2, cups, pulse, alsa etc
20838 MISSING_DEPENDENCY=devkit
20839 PKGHANDLER_COMMAND=
20840
20841 case $PKGHANDLER in
20842 apt-get)
20843 apt_help $MISSING_DEPENDENCY ;;
20844 yum)
20845 yum_help $MISSING_DEPENDENCY ;;
20846 port)
20847 port_help $MISSING_DEPENDENCY ;;
20848 pkgutil)
20849 pkgutil_help $MISSING_DEPENDENCY ;;
20850 pkgadd)
20851 pkgadd_help $MISSING_DEPENDENCY ;;
20852 * )
20853 break ;;
20854 esac
20855
20856 if test "x$PKGHANDLER_COMMAND" != x; then
20857 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
20858 fi
20859
20860 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5
20861 fi
20862
20863 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20864
20865 # First separate the path from the arguments. This will split at the first
20866 # space.
20867 complete="$CXX"
20868 path="${complete%% *}"
20869 tmp="$complete EOL"
20870 arguments="${tmp#* }"
20871
20872 # Input might be given as Windows format, start by converting to
20873 # unix format.
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21109 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21110 fi
21111 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
21112 fi
21113 fi
21114
21115 # Now join together the path and the arguments once again
21116 if test "x$arguments" != xEOL; then
21117 new_complete="$new_path ${arguments% *}"
21118 else
21119 new_complete="$new_path"
21120 fi
21121
21122 if test "x$complete" != "x$new_complete"; then
21123 CXX="$new_complete"
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5
21125 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;}
21126 fi
21127
21128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5
21129 $as_echo_n "checking resolved symbolic links for CXX... " >&6; }
21130 TEST_COMPILER="$CXX"
21131
21132 if test "x$OPENJDK_BUILD_OS" != xwindows; then
21133 # Follow a chain of symbolic links. Use readlink
21134 # where it exists, else fall back to horribly
21135 # complicated shell code.
21136 if test "x$READLINK_TESTED" != yes; then
21137 # On MacOSX there is a readlink tool with a different
21138 # purpose than the GNU readlink tool. Check the found readlink.
21139 ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21140 if test "x$ISGNU" = x; then
21141 # A readlink that we do not know how to use.
21142 # Are there other non-GNU readlinks out there?
21143 READLINK_TESTED=yes
21144 READLINK=
21145 fi
21146 fi
21147
21148 if test "x$READLINK" != x; then
21149 TEST_COMPILER=`$READLINK -f $TEST_COMPILER`
21150 else
21161 while test $COUNTER -lt 20; do
21162 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21163 if test "x$ISLINK" == x; then
21164 # This is not a symbolic link! We are done!
21165 break
21166 fi
21167 # Again resolve directory symlinks since the target of the just found
21168 # link could be in a different directory
21169 cd `$DIRNAME $ISLINK`
21170 sym_link_dir=`$THEPWDCMD -P`
21171 sym_link_file=`$BASENAME $ISLINK`
21172 let COUNTER=COUNTER+1
21173 done
21174 cd $STARTDIR
21175 TEST_COMPILER=$sym_link_dir/$sym_link_file
21176 fi
21177 fi
21178
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5
21180 $as_echo "$TEST_COMPILER" >&6; }
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5
21182 $as_echo_n "checking if CXX is disguised ccache... " >&6; }
21183
21184 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"`
21185 if test "x$COMPILER_BASENAME" = "xccache"; then
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
21187 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
21188 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
21189 # We want to control ccache invocation ourselves, so ignore this cc and try
21190 # searching again.
21191
21192 # Remove the path to the fake ccache cc from the PATH
21193 RETRY_COMPILER_SAVED_PATH="$PATH"
21194 COMPILER_DIRNAME=`$DIRNAME $CXX`
21195 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
21196
21197 # Try again looking for our compiler
21198 if test -n "$ac_tool_prefix"; then
21199 for ac_prog in $COMPILER_CHECK_LIST
21200 do
21201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21204 $as_echo_n "checking for $ac_word... " >&6; }
21205 if test "${ac_cv_prog_PROPER_COMPILER_CXX+set}" = set; then :
21206 $as_echo_n "(cached) " >&6
21207 else
21208 if test -n "$PROPER_COMPILER_CXX"; then
21209 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test.
21210 else
21211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21212 for as_dir in $PATH
21213 do
21214 IFS=$as_save_IFS
21215 test -z "$as_dir" && as_dir=.
21216 for ac_exec_ext in '' $ac_executable_extensions; do
21217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21218 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog"
21219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21220 break 2
21221 fi
21222 done
21223 done
21224 IFS=$as_save_IFS
21225
21226 fi
21227 fi
21228 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX
21229 if test -n "$PROPER_COMPILER_CXX"; then
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
21231 $as_echo "$PROPER_COMPILER_CXX" >&6; }
21232 else
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21234 $as_echo "no" >&6; }
21235 fi
21236
21237
21238 test -n "$PROPER_COMPILER_CXX" && break
21239 done
21240 fi
21241 if test -z "$PROPER_COMPILER_CXX"; then
21242 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX
21243 for ac_prog in $COMPILER_CHECK_LIST
21244 do
21245 # Extract the first word of "$ac_prog", so it can be a program name with args.
21246 set dummy $ac_prog; ac_word=$2
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21248 $as_echo_n "checking for $ac_word... " >&6; }
21249 if test "${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+set}" = set; then :
21250 $as_echo_n "(cached) " >&6
21251 else
21252 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
21253 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test.
21254 else
21255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21256 for as_dir in $PATH
21257 do
21258 IFS=$as_save_IFS
21259 test -z "$as_dir" && as_dir=.
21260 for ac_exec_ext in '' $ac_executable_extensions; do
21261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21262 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog"
21263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21264 break 2
21265 fi
21266 done
21267 done
21268 IFS=$as_save_IFS
21269
21270 fi
21271 fi
21272 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX
21273 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5
21275 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; }
21276 else
21277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21278 $as_echo "no" >&6; }
21279 fi
21280
21281
21624
21625 COMPILER=$CXX
21626 COMPILER_NAME=$COMPILER_NAME
21627
21628 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
21629 # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work
21630 COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1`
21631 $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null
21632 if test $? -ne 0; then
21633 GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
21634
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5
21636 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;}
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5
21638 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;}
21639 as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5
21640 else
21641 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"`
21642 COMPILER_VENDOR="Sun Studio"
21643 fi
21644 elif test "x$OPENJDK_TARGET_OS" = xwindows; then
21645 # First line typically looks something like:
21646 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
21647 COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
21648 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
21649 COMPILER_VENDOR="Microsoft CL.EXE"
21650 COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
21651 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then
21652 if test "x$COMPILER_CPU_TEST" != "x80x86"; then
21653 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5
21654 fi
21655 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
21656 if test "x$COMPILER_CPU_TEST" != "xx64"; then
21657 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5
21658 fi
21659 fi
21660 else
21661 COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
21662 # Check that this is likely to be GCC.
21663 $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null
21683 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
21684
21685
21686 # Now that we have resolved CXX ourself, let autoconf have its go at it
21687 ac_ext=cpp
21688 ac_cpp='$CXXCPP $CPPFLAGS'
21689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21692 if test -z "$CXX"; then
21693 if test -n "$CCC"; then
21694 CXX=$CCC
21695 else
21696 if test -n "$ac_tool_prefix"; then
21697 for ac_prog in $CXX
21698 do
21699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21702 $as_echo_n "checking for $ac_word... " >&6; }
21703 if test "${ac_cv_prog_CXX+set}" = set; then :
21704 $as_echo_n "(cached) " >&6
21705 else
21706 if test -n "$CXX"; then
21707 ac_cv_prog_CXX="$CXX" # Let the user override the test.
21708 else
21709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21710 for as_dir in $PATH
21711 do
21712 IFS=$as_save_IFS
21713 test -z "$as_dir" && as_dir=.
21714 for ac_exec_ext in '' $ac_executable_extensions; do
21715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21716 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
21717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21718 break 2
21719 fi
21720 done
21721 done
21722 IFS=$as_save_IFS
21723
21724 fi
21725 fi
21726 CXX=$ac_cv_prog_CXX
21727 if test -n "$CXX"; then
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
21729 $as_echo "$CXX" >&6; }
21730 else
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21732 $as_echo "no" >&6; }
21733 fi
21734
21735
21736 test -n "$CXX" && break
21737 done
21738 fi
21739 if test -z "$CXX"; then
21740 ac_ct_CXX=$CXX
21741 for ac_prog in $CXX
21742 do
21743 # Extract the first word of "$ac_prog", so it can be a program name with args.
21744 set dummy $ac_prog; ac_word=$2
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21746 $as_echo_n "checking for $ac_word... " >&6; }
21747 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
21748 $as_echo_n "(cached) " >&6
21749 else
21750 if test -n "$ac_ct_CXX"; then
21751 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
21752 else
21753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21754 for as_dir in $PATH
21755 do
21756 IFS=$as_save_IFS
21757 test -z "$as_dir" && as_dir=.
21758 for ac_exec_ext in '' $ac_executable_extensions; do
21759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21760 ac_cv_prog_ac_ct_CXX="$ac_prog"
21761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21762 break 2
21763 fi
21764 done
21765 done
21766 IFS=$as_save_IFS
21767
21768 fi
21769 fi
21770 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
21771 if test -n "$ac_ct_CXX"; then
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
21773 $as_echo "$ac_ct_CXX" >&6; }
21774 else
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21776 $as_echo "no" >&6; }
21777 fi
21778
21779
21805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806 *) ac_try_echo=$ac_try;;
21807 esac
21808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21809 $as_echo "$ac_try_echo"; } >&5
21810 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
21811 ac_status=$?
21812 if test -s conftest.err; then
21813 sed '10a\
21814 ... rest of stderr output deleted ...
21815 10q' conftest.err >conftest.er1
21816 cat conftest.er1 >&5
21817 fi
21818 rm -f conftest.er1 conftest.err
21819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21820 test $ac_status = 0; }
21821 done
21822
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
21824 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
21825 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
21826 $as_echo_n "(cached) " >&6
21827 else
21828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21829 /* end confdefs.h. */
21830
21831 int
21832 main ()
21833 {
21834 #ifndef __GNUC__
21835 choke me
21836 #endif
21837
21838 ;
21839 return 0;
21840 }
21841 _ACEOF
21842 if ac_fn_cxx_try_compile "$LINENO"; then :
21843 ac_compiler_gnu=yes
21844 else
21845 ac_compiler_gnu=no
21846 fi
21847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21848 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
21849
21850 fi
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
21852 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
21853 if test $ac_compiler_gnu = yes; then
21854 GXX=yes
21855 else
21856 GXX=
21857 fi
21858 ac_test_CXXFLAGS=${CXXFLAGS+set}
21859 ac_save_CXXFLAGS=$CXXFLAGS
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
21861 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
21862 if test "${ac_cv_prog_cxx_g+set}" = set; then :
21863 $as_echo_n "(cached) " >&6
21864 else
21865 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
21866 ac_cxx_werror_flag=yes
21867 ac_cv_prog_cxx_g=no
21868 CXXFLAGS="-g"
21869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21870 /* end confdefs.h. */
21871
21872 int
21873 main ()
21874 {
21875
21876 ;
21877 return 0;
21878 }
21879 _ACEOF
21880 if ac_fn_cxx_try_compile "$LINENO"; then :
21881 ac_cv_prog_cxx_g=yes
21882 else
21940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21943
21944
21945 ### Locate other tools
21946
21947 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
21948 ac_ext=m
21949 ac_cpp='$OBJCPP $CPPFLAGS'
21950 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21951 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21952 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
21953 if test -n "$ac_tool_prefix"; then
21954 for ac_prog in gcc objcc objc cc CC
21955 do
21956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21959 $as_echo_n "checking for $ac_word... " >&6; }
21960 if test "${ac_cv_prog_OBJC+set}" = set; then :
21961 $as_echo_n "(cached) " >&6
21962 else
21963 if test -n "$OBJC"; then
21964 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
21965 else
21966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21967 for as_dir in $PATH
21968 do
21969 IFS=$as_save_IFS
21970 test -z "$as_dir" && as_dir=.
21971 for ac_exec_ext in '' $ac_executable_extensions; do
21972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21973 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
21974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21975 break 2
21976 fi
21977 done
21978 done
21979 IFS=$as_save_IFS
21980
21981 fi
21982 fi
21983 OBJC=$ac_cv_prog_OBJC
21984 if test -n "$OBJC"; then
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
21986 $as_echo "$OBJC" >&6; }
21987 else
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21989 $as_echo "no" >&6; }
21990 fi
21991
21992
21993 test -n "$OBJC" && break
21994 done
21995 fi
21996 if test -z "$OBJC"; then
21997 ac_ct_OBJC=$OBJC
21998 for ac_prog in gcc objcc objc cc CC
21999 do
22000 # Extract the first word of "$ac_prog", so it can be a program name with args.
22001 set dummy $ac_prog; ac_word=$2
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22003 $as_echo_n "checking for $ac_word... " >&6; }
22004 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then :
22005 $as_echo_n "(cached) " >&6
22006 else
22007 if test -n "$ac_ct_OBJC"; then
22008 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
22009 else
22010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22011 for as_dir in $PATH
22012 do
22013 IFS=$as_save_IFS
22014 test -z "$as_dir" && as_dir=.
22015 for ac_exec_ext in '' $ac_executable_extensions; do
22016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22017 ac_cv_prog_ac_ct_OBJC="$ac_prog"
22018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22019 break 2
22020 fi
22021 done
22022 done
22023 IFS=$as_save_IFS
22024
22025 fi
22026 fi
22027 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
22028 if test -n "$ac_ct_OBJC"; then
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
22030 $as_echo "$ac_ct_OBJC" >&6; }
22031 else
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22033 $as_echo "no" >&6; }
22034 fi
22035
22036
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22062 esac
22063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22064 $as_echo "$ac_try_echo"; } >&5
22065 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
22066 ac_status=$?
22067 if test -s conftest.err; then
22068 sed '10a\
22069 ... rest of stderr output deleted ...
22070 10q' conftest.err >conftest.er1
22071 cat conftest.er1 >&5
22072 fi
22073 rm -f conftest.er1 conftest.err
22074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22075 test $ac_status = 0; }
22076 done
22077
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
22079 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
22080 if test "${ac_cv_objc_compiler_gnu+set}" = set; then :
22081 $as_echo_n "(cached) " >&6
22082 else
22083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22084 /* end confdefs.h. */
22085
22086 int
22087 main ()
22088 {
22089 #ifndef __GNUC__
22090 choke me
22091 #endif
22092
22093 ;
22094 return 0;
22095 }
22096 _ACEOF
22097 if ac_fn_objc_try_compile "$LINENO"; then :
22098 ac_compiler_gnu=yes
22099 else
22100 ac_compiler_gnu=no
22101 fi
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
22104
22105 fi
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
22107 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
22108 if test $ac_compiler_gnu = yes; then
22109 GOBJC=yes
22110 else
22111 GOBJC=
22112 fi
22113 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
22114 ac_save_OBJCFLAGS=$OBJCFLAGS
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
22116 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
22117 if test "${ac_cv_prog_objc_g+set}" = set; then :
22118 $as_echo_n "(cached) " >&6
22119 else
22120 ac_save_objc_werror_flag=$ac_objc_werror_flag
22121 ac_objc_werror_flag=yes
22122 ac_cv_prog_objc_g=no
22123 OBJCFLAGS="-g"
22124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22125 /* end confdefs.h. */
22126
22127 int
22128 main ()
22129 {
22130
22131 ;
22132 return 0;
22133 }
22134 _ACEOF
22135 if ac_fn_objc_try_compile "$LINENO"; then :
22136 ac_cv_prog_objc_g=yes
22137 else
22473 OBJCFLAGS="$ORG_OBJCFLAGS"
22474
22475 LD="$CC"
22476 LDEXE="$CC"
22477 LDCXX="$CXX"
22478 LDEXECXX="$CXX"
22479
22480 # LDEXE is the linker to use, when creating executables.
22481
22482 # Linking C++ libraries.
22483
22484 # Linking C++ executables.
22485
22486
22487 if test "x$OPENJDK_TARGET_OS" != xwindows; then
22488 if test -n "$ac_tool_prefix"; then
22489 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
22490 set dummy ${ac_tool_prefix}ar; ac_word=$2
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22492 $as_echo_n "checking for $ac_word... " >&6; }
22493 if test "${ac_cv_prog_AR+set}" = set; then :
22494 $as_echo_n "(cached) " >&6
22495 else
22496 if test -n "$AR"; then
22497 ac_cv_prog_AR="$AR" # Let the user override the test.
22498 else
22499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22500 for as_dir in $PATH
22501 do
22502 IFS=$as_save_IFS
22503 test -z "$as_dir" && as_dir=.
22504 for ac_exec_ext in '' $ac_executable_extensions; do
22505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22506 ac_cv_prog_AR="${ac_tool_prefix}ar"
22507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22508 break 2
22509 fi
22510 done
22511 done
22512 IFS=$as_save_IFS
22513
22514 fi
22515 fi
22516 AR=$ac_cv_prog_AR
22517 if test -n "$AR"; then
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
22519 $as_echo "$AR" >&6; }
22520 else
22521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22522 $as_echo "no" >&6; }
22523 fi
22524
22525
22526 fi
22527 if test -z "$ac_cv_prog_AR"; then
22528 ac_ct_AR=$AR
22529 # Extract the first word of "ar", so it can be a program name with args.
22530 set dummy ar; ac_word=$2
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22532 $as_echo_n "checking for $ac_word... " >&6; }
22533 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
22534 $as_echo_n "(cached) " >&6
22535 else
22536 if test -n "$ac_ct_AR"; then
22537 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
22538 else
22539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22540 for as_dir in $PATH
22541 do
22542 IFS=$as_save_IFS
22543 test -z "$as_dir" && as_dir=.
22544 for ac_exec_ext in '' $ac_executable_extensions; do
22545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22546 ac_cv_prog_ac_ct_AR="ar"
22547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22548 break 2
22549 fi
22550 done
22551 done
22552 IFS=$as_save_IFS
22553
22554 fi
22555 fi
22556 ac_ct_AR=$ac_cv_prog_ac_ct_AR
22557 if test -n "$ac_ct_AR"; then
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
22559 $as_echo "$ac_ct_AR" >&6; }
22560 else
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22562 $as_echo "no" >&6; }
22563 fi
22564
22565 if test "x$ac_ct_AR" = x; then
22829 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
22830 fi
22831 fi
22832
22833 # Now join together the path and the arguments once again
22834 if test "x$arguments" != xEOL; then
22835 new_complete="$new_path ${arguments% *}"
22836 else
22837 new_complete="$new_path"
22838 fi
22839
22840 if test "x$complete" != "x$new_complete"; then
22841 AR="$new_complete"
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5
22843 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;}
22844 fi
22845
22846 fi
22847 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
22848 ARFLAGS="-r"
22849 else
22850 ARFLAGS=""
22851 fi
22852
22853
22854 # For hotspot, we need these in Windows mixed path; other platforms keep them the same
22855 HOTSPOT_CXX="$CXX"
22856 HOTSPOT_LD="$LD"
22857
22858
22859
22860 COMPILER_NAME=gcc
22861 COMPILER_TYPE=CC
22862 if test "x$OPENJDK_TARGET_OS" = xwindows; then :
22863
22864 # For now, assume that we are always compiling using cl.exe.
22865 CC_OUT_OPTION=-Fo
22866 EXE_OUT_OPTION=-out:
22867 LD_OUT_OPTION=-out:
22868 AR_OUT_OPTION=-out:
22869 # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin
22870 # program for something completely different.
22871 # Extract the first word of "link", so it can be a program name with args.
22872 set dummy link; ac_word=$2
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22874 $as_echo_n "checking for $ac_word... " >&6; }
22875 if test "${ac_cv_prog_WINLD+set}" = set; then :
22876 $as_echo_n "(cached) " >&6
22877 else
22878 if test -n "$WINLD"; then
22879 ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
22880 else
22881 ac_prog_rejected=no
22882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22883 for as_dir in $PATH
22884 do
22885 IFS=$as_save_IFS
22886 test -z "$as_dir" && as_dir=.
22887 for ac_exec_ext in '' $ac_executable_extensions; do
22888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22889 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then
22890 ac_prog_rejected=yes
22891 continue
22892 fi
22893 ac_cv_prog_WINLD="link"
22894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22895 break 2
22896 fi
22897 done
22898 done
22899 IFS=$as_save_IFS
22900
22901 if test $ac_prog_rejected = yes; then
22902 # We found a bogon in the path, so make sure we never use it.
22903 set dummy $ac_cv_prog_WINLD
22904 shift
22905 if test $# != 0; then
22906 # We chose a different compiler from the bogus one.
22907 # However, it has the same basename, so the bogon will be chosen
22908 # first if we set WINLD to just the basename; use the full file name.
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5
23195 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; }
23196 "$WINLD" --version > /dev/null
23197 if test $? -eq 0 ; then
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23199 $as_echo "no" >&6; }
23200 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5
23201 else
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23203 $as_echo "yes" >&6; }
23204 fi
23205 LD="$WINLD"
23206 LDEXE="$WINLD"
23207 LDCXX="$WINLD"
23208 LDEXECXX="$WINLD"
23209
23210 # Extract the first word of "mt", so it can be a program name with args.
23211 set dummy mt; ac_word=$2
23212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23213 $as_echo_n "checking for $ac_word... " >&6; }
23214 if test "${ac_cv_prog_MT+set}" = set; then :
23215 $as_echo_n "(cached) " >&6
23216 else
23217 if test -n "$MT"; then
23218 ac_cv_prog_MT="$MT" # Let the user override the test.
23219 else
23220 ac_prog_rejected=no
23221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23222 for as_dir in $PATH
23223 do
23224 IFS=$as_save_IFS
23225 test -z "$as_dir" && as_dir=.
23226 for ac_exec_ext in '' $ac_executable_extensions; do
23227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23228 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
23229 ac_prog_rejected=yes
23230 continue
23231 fi
23232 ac_cv_prog_MT="mt"
23233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23234 break 2
23235 fi
23236 done
23237 done
23238 IFS=$as_save_IFS
23239
23240 if test $ac_prog_rejected = yes; then
23241 # We found a bogon in the path, so make sure we never use it.
23242 set dummy $ac_cv_prog_MT
23243 shift
23244 if test $# != 0; then
23245 # We chose a different compiler from the bogus one.
23246 # However, it has the same basename, so the bogon will be chosen
23247 # first if we set MT to just the basename; use the full file name.
23515 fi
23516
23517 # Now join together the path and the arguments once again
23518 if test "x$arguments" != xEOL; then
23519 new_complete="$new_path ${arguments% *}"
23520 else
23521 new_complete="$new_path"
23522 fi
23523
23524 if test "x$complete" != "x$new_complete"; then
23525 MT="$new_complete"
23526 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5
23527 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;}
23528 fi
23529
23530 # The resource compiler
23531 # Extract the first word of "rc", so it can be a program name with args.
23532 set dummy rc; ac_word=$2
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23534 $as_echo_n "checking for $ac_word... " >&6; }
23535 if test "${ac_cv_prog_RC+set}" = set; then :
23536 $as_echo_n "(cached) " >&6
23537 else
23538 if test -n "$RC"; then
23539 ac_cv_prog_RC="$RC" # Let the user override the test.
23540 else
23541 ac_prog_rejected=no
23542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23543 for as_dir in $PATH
23544 do
23545 IFS=$as_save_IFS
23546 test -z "$as_dir" && as_dir=.
23547 for ac_exec_ext in '' $ac_executable_extensions; do
23548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23549 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
23550 ac_prog_rejected=yes
23551 continue
23552 fi
23553 ac_cv_prog_RC="rc"
23554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23555 break 2
23556 fi
23557 done
23558 done
23559 IFS=$as_save_IFS
23560
23561 if test $ac_prog_rejected = yes; then
23562 # We found a bogon in the path, so make sure we never use it.
23563 set dummy $ac_cv_prog_RC
23564 shift
23565 if test $# != 0; then
23566 # We chose a different compiler from the bogus one.
23567 # However, it has the same basename, so the bogon will be chosen
23568 # first if we set RC to just the basename; use the full file name.
23907
23908 # The version variables used to create RC_FLAGS may be overridden
23909 # in a custom configure script, or possibly the command line.
23910 # Let those variables be expanded at make time in spec.gmk.
23911 # The \$ are escaped to the shell, and the $(...) variables
23912 # are evaluated by make.
23913 RC_FLAGS="$RC_FLAGS \
23914 -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \
23915 -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \
23916 -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
23917 -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \
23918 -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
23919 -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \
23920 -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\""
23921
23922 # lib.exe is used to create static libraries.
23923 # Extract the first word of "lib", so it can be a program name with args.
23924 set dummy lib; ac_word=$2
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23926 $as_echo_n "checking for $ac_word... " >&6; }
23927 if test "${ac_cv_prog_WINAR+set}" = set; then :
23928 $as_echo_n "(cached) " >&6
23929 else
23930 if test -n "$WINAR"; then
23931 ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
23932 else
23933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23934 for as_dir in $PATH
23935 do
23936 IFS=$as_save_IFS
23937 test -z "$as_dir" && as_dir=.
23938 for ac_exec_ext in '' $ac_executable_extensions; do
23939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23940 ac_cv_prog_WINAR="lib"
23941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23942 break 2
23943 fi
23944 done
23945 done
23946 IFS=$as_save_IFS
23947
23948 fi
23949 fi
23950 WINAR=$ac_cv_prog_WINAR
23951 if test -n "$WINAR"; then
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINAR" >&5
23953 $as_echo "$WINAR" >&6; }
23954 else
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23956 $as_echo "no" >&6; }
23957 fi
23958
23959
24213 # Now join together the path and the arguments once again
24214 if test "x$arguments" != xEOL; then
24215 new_complete="$new_path ${arguments% *}"
24216 else
24217 new_complete="$new_path"
24218 fi
24219
24220 if test "x$complete" != "x$new_complete"; then
24221 WINAR="$new_complete"
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5
24223 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;}
24224 fi
24225
24226 AR="$WINAR"
24227 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
24228
24229 # Extract the first word of "dumpbin", so it can be a program name with args.
24230 set dummy dumpbin; ac_word=$2
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24232 $as_echo_n "checking for $ac_word... " >&6; }
24233 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
24234 $as_echo_n "(cached) " >&6
24235 else
24236 if test -n "$DUMPBIN"; then
24237 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
24238 else
24239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24240 for as_dir in $PATH
24241 do
24242 IFS=$as_save_IFS
24243 test -z "$as_dir" && as_dir=.
24244 for ac_exec_ext in '' $ac_executable_extensions; do
24245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24246 ac_cv_prog_DUMPBIN="dumpbin"
24247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24248 break 2
24249 fi
24250 done
24251 done
24252 IFS=$as_save_IFS
24253
24254 fi
24255 fi
24256 DUMPBIN=$ac_cv_prog_DUMPBIN
24257 if test -n "$DUMPBIN"; then
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
24259 $as_echo "$DUMPBIN" >&6; }
24260 else
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24262 $as_echo "no" >&6; }
24263 fi
24264
24265
24532
24533 COMPILER_TYPE=CL
24534 CCXXFLAGS="$CCXXFLAGS -nologo"
24535
24536 fi
24537
24538
24539
24540 ac_ext=c
24541 ac_cpp='$CPP $CPPFLAGS'
24542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
24546 $as_echo_n "checking how to run the C preprocessor... " >&6; }
24547 # On Suns, sometimes $CPP names a directory.
24548 if test -n "$CPP" && test -d "$CPP"; then
24549 CPP=
24550 fi
24551 if test -z "$CPP"; then
24552 if test "${ac_cv_prog_CPP+set}" = set; then :
24553 $as_echo_n "(cached) " >&6
24554 else
24555 # Double quotes because CPP needs to be expanded
24556 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
24557 do
24558 ac_preproc_ok=false
24559 for ac_c_preproc_warn_flag in '' yes
24560 do
24561 # Use a header file that comes with gcc, so configuring glibc
24562 # with a fresh cross-compiler works.
24563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24564 # <limits.h> exists even on freestanding compilers.
24565 # On the NeXT, cc -E runs the code through the compiler's parser,
24566 # not just through cpp. "Syntax error" is here to catch this case.
24567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24568 /* end confdefs.h. */
24569 #ifdef __STDC__
24570 # include <limits.h>
24571 #else
24572 # include <assert.h>
24932 new_complete="$new_path ${arguments% *}"
24933 else
24934 new_complete="$new_path"
24935 fi
24936
24937 if test "x$complete" != "x$new_complete"; then
24938 CPP="$new_complete"
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5
24940 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;}
24941 fi
24942
24943
24944 ac_ext=cpp
24945 ac_cpp='$CXXCPP $CPPFLAGS'
24946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
24950 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
24951 if test -z "$CXXCPP"; then
24952 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
24953 $as_echo_n "(cached) " >&6
24954 else
24955 # Double quotes because CXXCPP needs to be expanded
24956 for CXXCPP in "$CXX -E" "/lib/cpp"
24957 do
24958 ac_preproc_ok=false
24959 for ac_cxx_preproc_warn_flag in '' yes
24960 do
24961 # Use a header file that comes with gcc, so configuring glibc
24962 # with a fresh cross-compiler works.
24963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24964 # <limits.h> exists even on freestanding compilers.
24965 # On the NeXT, cc -E runs the code through the compiler's parser,
24966 # not just through cpp. "Syntax error" is here to catch this case.
24967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24968 /* end confdefs.h. */
24969 #ifdef __STDC__
24970 # include <limits.h>
24971 #else
24972 # include <assert.h>
25350 BUILD_CXX="$CXX"
25351 BUILD_LD="$LD"
25352 fi
25353
25354 # for solaris we really need solaris tools, and not gnu equivalent
25355 # these seems to normally reside in /usr/ccs/bin so add that to path before
25356 # starting to probe
25357 #
25358 # NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH
25359 # so that it can be overriden --with-tools-dir
25360 if test "x$OPENJDK_BUILD_OS" = xsolaris; then
25361 PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}"
25362 fi
25363
25364 # Find the right assembler.
25365 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
25366 # Extract the first word of "as", so it can be a program name with args.
25367 set dummy as; ac_word=$2
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25369 $as_echo_n "checking for $ac_word... " >&6; }
25370 if test "${ac_cv_path_AS+set}" = set; then :
25371 $as_echo_n "(cached) " >&6
25372 else
25373 case $AS in
25374 [\\/]* | ?:[\\/]*)
25375 ac_cv_path_AS="$AS" # Let the user override the test with a path.
25376 ;;
25377 *)
25378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25379 for as_dir in $PATH
25380 do
25381 IFS=$as_save_IFS
25382 test -z "$as_dir" && as_dir=.
25383 for ac_exec_ext in '' $ac_executable_extensions; do
25384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25385 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
25386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25387 break 2
25388 fi
25389 done
25390 done
25391 IFS=$as_save_IFS
25392
25393 ;;
25394 esac
25395 fi
25396 AS=$ac_cv_path_AS
25397 if test -n "$AS"; then
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
25399 $as_echo "$AS" >&6; }
25400 else
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25402 $as_echo "no" >&6; }
25403 fi
25404
25662 else
25663 new_complete="$new_path"
25664 fi
25665
25666 if test "x$complete" != "x$new_complete"; then
25667 AS="$new_complete"
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5
25669 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;}
25670 fi
25671
25672 else
25673 AS="$CC -c"
25674 fi
25675
25676
25677 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
25678 # Extract the first word of "nm", so it can be a program name with args.
25679 set dummy nm; ac_word=$2
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25681 $as_echo_n "checking for $ac_word... " >&6; }
25682 if test "${ac_cv_path_NM+set}" = set; then :
25683 $as_echo_n "(cached) " >&6
25684 else
25685 case $NM in
25686 [\\/]* | ?:[\\/]*)
25687 ac_cv_path_NM="$NM" # Let the user override the test with a path.
25688 ;;
25689 *)
25690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25691 for as_dir in $PATH
25692 do
25693 IFS=$as_save_IFS
25694 test -z "$as_dir" && as_dir=.
25695 for ac_exec_ext in '' $ac_executable_extensions; do
25696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25697 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
25698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25699 break 2
25700 fi
25701 done
25702 done
25703 IFS=$as_save_IFS
25704
25705 ;;
25706 esac
25707 fi
25708 NM=$ac_cv_path_NM
25709 if test -n "$NM"; then
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
25711 $as_echo "$NM" >&6; }
25712 else
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25714 $as_echo "no" >&6; }
25715 fi
25716
25968 fi
25969 fi
25970
25971 # Now join together the path and the arguments once again
25972 if test "x$arguments" != xEOL; then
25973 new_complete="$new_path ${arguments% *}"
25974 else
25975 new_complete="$new_path"
25976 fi
25977
25978 if test "x$complete" != "x$new_complete"; then
25979 NM="$new_complete"
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
25981 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
25982 fi
25983
25984 # Extract the first word of "gnm", so it can be a program name with args.
25985 set dummy gnm; ac_word=$2
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25987 $as_echo_n "checking for $ac_word... " >&6; }
25988 if test "${ac_cv_path_GNM+set}" = set; then :
25989 $as_echo_n "(cached) " >&6
25990 else
25991 case $GNM in
25992 [\\/]* | ?:[\\/]*)
25993 ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
25994 ;;
25995 *)
25996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25997 for as_dir in $PATH
25998 do
25999 IFS=$as_save_IFS
26000 test -z "$as_dir" && as_dir=.
26001 for ac_exec_ext in '' $ac_executable_extensions; do
26002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26003 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
26004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26005 break 2
26006 fi
26007 done
26008 done
26009 IFS=$as_save_IFS
26010
26011 ;;
26012 esac
26013 fi
26014 GNM=$ac_cv_path_GNM
26015 if test -n "$GNM"; then
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5
26017 $as_echo "$GNM" >&6; }
26018 else
26019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26020 $as_echo "no" >&6; }
26021 fi
26022
26274 fi
26275 fi
26276
26277 # Now join together the path and the arguments once again
26278 if test "x$arguments" != xEOL; then
26279 new_complete="$new_path ${arguments% *}"
26280 else
26281 new_complete="$new_path"
26282 fi
26283
26284 if test "x$complete" != "x$new_complete"; then
26285 GNM="$new_complete"
26286 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5
26287 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;}
26288 fi
26289
26290 # Extract the first word of "strip", so it can be a program name with args.
26291 set dummy strip; ac_word=$2
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26293 $as_echo_n "checking for $ac_word... " >&6; }
26294 if test "${ac_cv_path_STRIP+set}" = set; then :
26295 $as_echo_n "(cached) " >&6
26296 else
26297 case $STRIP in
26298 [\\/]* | ?:[\\/]*)
26299 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
26300 ;;
26301 *)
26302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26303 for as_dir in $PATH
26304 do
26305 IFS=$as_save_IFS
26306 test -z "$as_dir" && as_dir=.
26307 for ac_exec_ext in '' $ac_executable_extensions; do
26308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26309 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
26310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26311 break 2
26312 fi
26313 done
26314 done
26315 IFS=$as_save_IFS
26316
26317 ;;
26318 esac
26319 fi
26320 STRIP=$ac_cv_path_STRIP
26321 if test -n "$STRIP"; then
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
26323 $as_echo "$STRIP" >&6; }
26324 else
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26326 $as_echo "no" >&6; }
26327 fi
26328
26580 fi
26581 fi
26582
26583 # Now join together the path and the arguments once again
26584 if test "x$arguments" != xEOL; then
26585 new_complete="$new_path ${arguments% *}"
26586 else
26587 new_complete="$new_path"
26588 fi
26589
26590 if test "x$complete" != "x$new_complete"; then
26591 STRIP="$new_complete"
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
26593 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
26594 fi
26595
26596 # Extract the first word of "mcs", so it can be a program name with args.
26597 set dummy mcs; ac_word=$2
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26599 $as_echo_n "checking for $ac_word... " >&6; }
26600 if test "${ac_cv_path_MCS+set}" = set; then :
26601 $as_echo_n "(cached) " >&6
26602 else
26603 case $MCS in
26604 [\\/]* | ?:[\\/]*)
26605 ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
26606 ;;
26607 *)
26608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26609 for as_dir in $PATH
26610 do
26611 IFS=$as_save_IFS
26612 test -z "$as_dir" && as_dir=.
26613 for ac_exec_ext in '' $ac_executable_extensions; do
26614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26615 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
26616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26617 break 2
26618 fi
26619 done
26620 done
26621 IFS=$as_save_IFS
26622
26623 ;;
26624 esac
26625 fi
26626 MCS=$ac_cv_path_MCS
26627 if test -n "$MCS"; then
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
26629 $as_echo "$MCS" >&6; }
26630 else
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26632 $as_echo "no" >&6; }
26633 fi
26634
26888
26889 # Now join together the path and the arguments once again
26890 if test "x$arguments" != xEOL; then
26891 new_complete="$new_path ${arguments% *}"
26892 else
26893 new_complete="$new_path"
26894 fi
26895
26896 if test "x$complete" != "x$new_complete"; then
26897 MCS="$new_complete"
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
26899 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
26900 fi
26901
26902 elif test "x$OPENJDK_TARGET_OS" != xwindows; then
26903 if test -n "$ac_tool_prefix"; then
26904 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
26905 set dummy ${ac_tool_prefix}nm; ac_word=$2
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26907 $as_echo_n "checking for $ac_word... " >&6; }
26908 if test "${ac_cv_prog_NM+set}" = set; then :
26909 $as_echo_n "(cached) " >&6
26910 else
26911 if test -n "$NM"; then
26912 ac_cv_prog_NM="$NM" # Let the user override the test.
26913 else
26914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26915 for as_dir in $PATH
26916 do
26917 IFS=$as_save_IFS
26918 test -z "$as_dir" && as_dir=.
26919 for ac_exec_ext in '' $ac_executable_extensions; do
26920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26921 ac_cv_prog_NM="${ac_tool_prefix}nm"
26922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26923 break 2
26924 fi
26925 done
26926 done
26927 IFS=$as_save_IFS
26928
26929 fi
26930 fi
26931 NM=$ac_cv_prog_NM
26932 if test -n "$NM"; then
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
26934 $as_echo "$NM" >&6; }
26935 else
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26937 $as_echo "no" >&6; }
26938 fi
26939
26940
26941 fi
26942 if test -z "$ac_cv_prog_NM"; then
26943 ac_ct_NM=$NM
26944 # Extract the first word of "nm", so it can be a program name with args.
26945 set dummy nm; ac_word=$2
26946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26947 $as_echo_n "checking for $ac_word... " >&6; }
26948 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
26949 $as_echo_n "(cached) " >&6
26950 else
26951 if test -n "$ac_ct_NM"; then
26952 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
26953 else
26954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26955 for as_dir in $PATH
26956 do
26957 IFS=$as_save_IFS
26958 test -z "$as_dir" && as_dir=.
26959 for ac_exec_ext in '' $ac_executable_extensions; do
26960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26961 ac_cv_prog_ac_ct_NM="nm"
26962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26963 break 2
26964 fi
26965 done
26966 done
26967 IFS=$as_save_IFS
26968
26969 fi
26970 fi
26971 ac_ct_NM=$ac_cv_prog_ac_ct_NM
26972 if test -n "$ac_ct_NM"; then
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
26974 $as_echo "$ac_ct_NM" >&6; }
26975 else
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26977 $as_echo "no" >&6; }
26978 fi
26979
26980 if test "x$ac_ct_NM" = x; then
27248 # Now join together the path and the arguments once again
27249 if test "x$arguments" != xEOL; then
27250 new_complete="$new_path ${arguments% *}"
27251 else
27252 new_complete="$new_path"
27253 fi
27254
27255 if test "x$complete" != "x$new_complete"; then
27256 NM="$new_complete"
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
27258 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
27259 fi
27260
27261 GNM="$NM"
27262
27263 if test -n "$ac_tool_prefix"; then
27264 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
27265 set dummy ${ac_tool_prefix}strip; ac_word=$2
27266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27267 $as_echo_n "checking for $ac_word... " >&6; }
27268 if test "${ac_cv_prog_STRIP+set}" = set; then :
27269 $as_echo_n "(cached) " >&6
27270 else
27271 if test -n "$STRIP"; then
27272 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
27273 else
27274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27275 for as_dir in $PATH
27276 do
27277 IFS=$as_save_IFS
27278 test -z "$as_dir" && as_dir=.
27279 for ac_exec_ext in '' $ac_executable_extensions; do
27280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27281 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
27282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27283 break 2
27284 fi
27285 done
27286 done
27287 IFS=$as_save_IFS
27288
27289 fi
27290 fi
27291 STRIP=$ac_cv_prog_STRIP
27292 if test -n "$STRIP"; then
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
27294 $as_echo "$STRIP" >&6; }
27295 else
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27297 $as_echo "no" >&6; }
27298 fi
27299
27300
27301 fi
27302 if test -z "$ac_cv_prog_STRIP"; then
27303 ac_ct_STRIP=$STRIP
27304 # Extract the first word of "strip", so it can be a program name with args.
27305 set dummy strip; ac_word=$2
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27307 $as_echo_n "checking for $ac_word... " >&6; }
27308 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
27309 $as_echo_n "(cached) " >&6
27310 else
27311 if test -n "$ac_ct_STRIP"; then
27312 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
27313 else
27314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27315 for as_dir in $PATH
27316 do
27317 IFS=$as_save_IFS
27318 test -z "$as_dir" && as_dir=.
27319 for ac_exec_ext in '' $ac_executable_extensions; do
27320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27321 ac_cv_prog_ac_ct_STRIP="strip"
27322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27323 break 2
27324 fi
27325 done
27326 done
27327 IFS=$as_save_IFS
27328
27329 fi
27330 fi
27331 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
27332 if test -n "$ac_ct_STRIP"; then
27333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
27334 $as_echo "$ac_ct_STRIP" >&6; }
27335 else
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27337 $as_echo "no" >&6; }
27338 fi
27339
27340 if test "x$ac_ct_STRIP" = x; then
27613 fi
27614
27615 if test "x$complete" != "x$new_complete"; then
27616 STRIP="$new_complete"
27617 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
27618 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
27619 fi
27620
27621 fi
27622
27623 # objcopy is used for moving debug symbols to separate files when
27624 # full debug symbols are enabled.
27625 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
27626 if test -n "$ac_tool_prefix"; then
27627 for ac_prog in gobjcopy objcopy
27628 do
27629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27632 $as_echo_n "checking for $ac_word... " >&6; }
27633 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
27634 $as_echo_n "(cached) " >&6
27635 else
27636 if test -n "$OBJCOPY"; then
27637 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
27638 else
27639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27640 for as_dir in $PATH
27641 do
27642 IFS=$as_save_IFS
27643 test -z "$as_dir" && as_dir=.
27644 for ac_exec_ext in '' $ac_executable_extensions; do
27645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27646 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
27647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27648 break 2
27649 fi
27650 done
27651 done
27652 IFS=$as_save_IFS
27653
27654 fi
27655 fi
27656 OBJCOPY=$ac_cv_prog_OBJCOPY
27657 if test -n "$OBJCOPY"; then
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
27659 $as_echo "$OBJCOPY" >&6; }
27660 else
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27662 $as_echo "no" >&6; }
27663 fi
27664
27665
27666 test -n "$OBJCOPY" && break
27667 done
27668 fi
27669 if test -z "$OBJCOPY"; then
27670 ac_ct_OBJCOPY=$OBJCOPY
27671 for ac_prog in gobjcopy objcopy
27672 do
27673 # Extract the first word of "$ac_prog", so it can be a program name with args.
27674 set dummy $ac_prog; ac_word=$2
27675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27676 $as_echo_n "checking for $ac_word... " >&6; }
27677 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
27678 $as_echo_n "(cached) " >&6
27679 else
27680 if test -n "$ac_ct_OBJCOPY"; then
27681 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
27682 else
27683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27684 for as_dir in $PATH
27685 do
27686 IFS=$as_save_IFS
27687 test -z "$as_dir" && as_dir=.
27688 for ac_exec_ext in '' $ac_executable_extensions; do
27689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27690 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
27691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27692 break 2
27693 fi
27694 done
27695 done
27696 IFS=$as_save_IFS
27697
27698 fi
27699 fi
27700 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
27701 if test -n "$ac_ct_OBJCOPY"; then
27702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
27703 $as_echo "$ac_ct_OBJCOPY" >&6; }
27704 else
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27706 $as_echo "no" >&6; }
27707 fi
27708
27709
27984 else
27985 new_complete="$new_path"
27986 fi
27987
27988 if test "x$complete" != "x$new_complete"; then
27989 OBJCOPY="$new_complete"
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5
27991 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;}
27992 fi
27993
27994 fi
27995 fi
27996
27997 if test -n "$ac_tool_prefix"; then
27998 for ac_prog in gobjdump objdump
27999 do
28000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28003 $as_echo_n "checking for $ac_word... " >&6; }
28004 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
28005 $as_echo_n "(cached) " >&6
28006 else
28007 if test -n "$OBJDUMP"; then
28008 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
28009 else
28010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28011 for as_dir in $PATH
28012 do
28013 IFS=$as_save_IFS
28014 test -z "$as_dir" && as_dir=.
28015 for ac_exec_ext in '' $ac_executable_extensions; do
28016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28017 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
28018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28019 break 2
28020 fi
28021 done
28022 done
28023 IFS=$as_save_IFS
28024
28025 fi
28026 fi
28027 OBJDUMP=$ac_cv_prog_OBJDUMP
28028 if test -n "$OBJDUMP"; then
28029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
28030 $as_echo "$OBJDUMP" >&6; }
28031 else
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28033 $as_echo "no" >&6; }
28034 fi
28035
28036
28037 test -n "$OBJDUMP" && break
28038 done
28039 fi
28040 if test -z "$OBJDUMP"; then
28041 ac_ct_OBJDUMP=$OBJDUMP
28042 for ac_prog in gobjdump objdump
28043 do
28044 # Extract the first word of "$ac_prog", so it can be a program name with args.
28045 set dummy $ac_prog; ac_word=$2
28046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28047 $as_echo_n "checking for $ac_word... " >&6; }
28048 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
28049 $as_echo_n "(cached) " >&6
28050 else
28051 if test -n "$ac_ct_OBJDUMP"; then
28052 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
28053 else
28054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28055 for as_dir in $PATH
28056 do
28057 IFS=$as_save_IFS
28058 test -z "$as_dir" && as_dir=.
28059 for ac_exec_ext in '' $ac_executable_extensions; do
28060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28061 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
28062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28063 break 2
28064 fi
28065 done
28066 done
28067 IFS=$as_save_IFS
28068
28069 fi
28070 fi
28071 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
28072 if test -n "$ac_ct_OBJDUMP"; then
28073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
28074 $as_echo "$ac_ct_OBJDUMP" >&6; }
28075 else
28076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28077 $as_echo "no" >&6; }
28078 fi
28079
28080
28352 # Now join together the path and the arguments once again
28353 if test "x$arguments" != xEOL; then
28354 new_complete="$new_path ${arguments% *}"
28355 else
28356 new_complete="$new_path"
28357 fi
28358
28359 if test "x$complete" != "x$new_complete"; then
28360 OBJDUMP="$new_complete"
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
28362 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
28363 fi
28364
28365 fi
28366
28367 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
28368 # Extract the first word of "lipo", so it can be a program name with args.
28369 set dummy lipo; ac_word=$2
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28371 $as_echo_n "checking for $ac_word... " >&6; }
28372 if test "${ac_cv_path_LIPO+set}" = set; then :
28373 $as_echo_n "(cached) " >&6
28374 else
28375 case $LIPO in
28376 [\\/]* | ?:[\\/]*)
28377 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
28378 ;;
28379 *)
28380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28381 for as_dir in $PATH
28382 do
28383 IFS=$as_save_IFS
28384 test -z "$as_dir" && as_dir=.
28385 for ac_exec_ext in '' $ac_executable_extensions; do
28386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28387 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
28388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28389 break 2
28390 fi
28391 done
28392 done
28393 IFS=$as_save_IFS
28394
28395 ;;
28396 esac
28397 fi
28398 LIPO=$ac_cv_path_LIPO
28399 if test -n "$LIPO"; then
28400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
28401 $as_echo "$LIPO" >&6; }
28402 else
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28404 $as_echo "no" >&6; }
28405 fi
28406
28669 LIPO="$new_complete"
28670 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5
28671 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;}
28672 fi
28673
28674 fi
28675
28676
28677
28678 # Restore old path without tools dir
28679 PATH="$OLD_PATH"
28680
28681
28682 # FIXME: Currently we must test this after paths but before flags. Fix!
28683
28684 # And we can test some aspects on the target using configure macros.
28685
28686
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
28688 $as_echo_n "checking for ANSI C header files... " >&6; }
28689 if test "${ac_cv_header_stdc+set}" = set; then :
28690 $as_echo_n "(cached) " >&6
28691 else
28692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28693 /* end confdefs.h. */
28694 #include <stdlib.h>
28695 #include <stdarg.h>
28696 #include <string.h>
28697 #include <float.h>
28698
28699 int
28700 main ()
28701 {
28702
28703 ;
28704 return 0;
28705 }
28706 _ACEOF
28707 if ac_fn_cxx_try_compile "$LINENO"; then :
28708 ac_cv_header_stdc=yes
28709 else
28804 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
28805 "
28806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28807 cat >>confdefs.h <<_ACEOF
28808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28809 _ACEOF
28810
28811 fi
28812
28813 done
28814
28815
28816
28817 ###############################################################################
28818 #
28819 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code.
28820 # (The JVM can use 32 or 64 bit Java pointers but that decision
28821 # is made at runtime.)
28822 #
28823
28824 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
28825 # Always specify -m flags on Solaris
28826
28827 # keep track of c/cxx flags that we added outselves...
28828 # to prevent emitting warning...
28829 ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28830 ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28831 ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28832
28833 CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
28834 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
28835 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
28836
28837 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
28838 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
28839 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
28840
28841 elif test "x$COMPILE_TYPE" = xreduced; then
28842 if test "x$OPENJDK_TARGET_OS" != xwindows; then
28843 # Specify -m if running reduced on other Posix platforms
28844
28845 # keep track of c/cxx flags that we added outselves...
28846 # to prevent emitting warning...
28847 ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28848 ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28849 ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28850
28851 CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
28852 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
28853 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
28854
28855 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
28856 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
28857 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
28858
28859 fi
28860 fi
28861
28862 # Make compilation sanity check
28863 for ac_header in stdio.h
28864 do :
28865 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
28866 if test "x$ac_cv_header_stdio_h" = x""yes; then :
28867 cat >>confdefs.h <<_ACEOF
28868 #define HAVE_STDIO_H 1
28869 _ACEOF
28870
28871 else
28872
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5
28874 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;}
28875 if test "x$COMPILE_TYPE" = xreduced; then
28876 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5
28877 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;}
28878 elif test "x$COMPILE_TYPE" = xcross; then
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5
28880 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;}
28881 fi
28882 as_fn_error $? "Cannot continue." "$LINENO" 5
28883
28884 fi
28885
28886 done
28887
28888
28889 # The cast to long int works around a bug in the HP C Compiler
28890 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28891 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28892 # This bug is HP SR number 8606223364.
28893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
28894 $as_echo_n "checking size of int *... " >&6; }
28895 if test "${ac_cv_sizeof_int_p+set}" = set; then :
28896 $as_echo_n "(cached) " >&6
28897 else
28898 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
28899
28900 else
28901 if test "$ac_cv_type_int_p" = yes; then
28902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28904 as_fn_error 77 "cannot compute sizeof (int *)
28905 See \`config.log' for more details" "$LINENO" 5; }
28906 else
28907 ac_cv_sizeof_int_p=0
28908 fi
28909 fi
28910
28911 fi
28912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
28913 $as_echo "$ac_cv_sizeof_int_p" >&6; }
28914
28915
28916
28917 cat >>confdefs.h <<_ACEOF
28918 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28919 _ACEOF
28920
28921
28922
28923 if test "x$SIZEOF_INT_P" != "x$ac_cv_sizeof_int_p"; then
28924 # Workaround autoconf bug, see http://lists.gnu.org/archive/html/autoconf/2010-07/msg00004.html
28925 SIZEOF_INT_P="$ac_cv_sizeof_int_p"
28926 fi
28927
28928 if test "x$SIZEOF_INT_P" = x; then
28929 # The test failed, lets stick to the assumed value.
28930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&5
28931 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;}
28932 else
28933 TESTED_TARGET_CPU_BITS=`expr 8 \* $SIZEOF_INT_P`
28934
28935 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
28936 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
28937 fi
28938 fi
28939
28940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5
28941 $as_echo_n "checking for target address size... " >&6; }
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5
28943 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; }
28944
28945
28946 ###############################################################################
28947 #
28948 # Is the target little of big endian?
28949 #
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
28951 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28952 if test "${ac_cv_c_bigendian+set}" = set; then :
28953 $as_echo_n "(cached) " >&6
28954 else
28955 ac_cv_c_bigendian=unknown
28956 # See if we're dealing with a universal compiler.
28957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28958 /* end confdefs.h. */
28959 #ifndef __APPLE_CC__
28960 not a universal capable compiler
28961 #endif
28962 typedef int dummy;
28963
28964 _ACEOF
28965 if ac_fn_cxx_try_compile "$LINENO"; then :
28966
28967 # Check for potential -arch flags. It is not universal unless
28968 # there are at least two -arch flags with different values.
28969 ac_arch=
28970 ac_prev=
28971 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28972 if test -n "$ac_prev"; then
29229 LIBRARY_PREFIX=lib
29230 SHARED_LIBRARY='lib$1.so'
29231 STATIC_LIBRARY='lib$1.a'
29232 SHARED_LIBRARY_FLAGS="-G"
29233 SHARED_LIBRARY_SUFFIX='.so'
29234 STATIC_LIBRARY_SUFFIX='.a'
29235 OBJ_SUFFIX='.o'
29236 EXE_SUFFIX=''
29237 SET_SHARED_LIBRARY_NAME=''
29238 SET_SHARED_LIBRARY_MAPFILE='-M$1'
29239 C_FLAG_REORDER='-xF'
29240 CXX_FLAG_REORDER='-xF'
29241 SET_SHARED_LIBRARY_ORIGIN='-R\$$$$ORIGIN$1'
29242 SET_EXECUTABLE_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN"
29243 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__"
29244 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__"
29245 CFLAGS_JDKLIB_EXTRA='-xstrconst'
29246 POST_STRIP_CMD="$STRIP -x"
29247 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\""
29248 fi
29249 if test "x$OPENJDK_TARGET_OS" = xwindows; then
29250 # If it is not gcc, then assume it is the MS Visual Studio compiler
29251 COMPILER_NAME=cl
29252 PICFLAG=""
29253 LIBRARY_PREFIX=
29254 SHARED_LIBRARY='$1.dll'
29255 STATIC_LIBRARY='$1.lib'
29256 SHARED_LIBRARY_FLAGS="-LD"
29257 SHARED_LIBRARY_SUFFIX='.dll'
29258 STATIC_LIBRARY_SUFFIX='.lib'
29259 OBJ_SUFFIX='.obj'
29260 EXE_SUFFIX='.exe'
29261 SET_SHARED_LIBRARY_NAME=''
29262 SET_SHARED_LIBRARY_MAPFILE=''
29263 SET_SHARED_LIBRARY_ORIGIN=''
29264 SET_EXECUTABLE_ORIGIN=''
29265 fi
29266 fi
29267
29268
29413 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium"
29414 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium"
29415 fi
29416 ;;
29417 sparc)
29418 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
29419 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
29420 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
29421 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0"
29422 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0"
29423 C_O_FLAG_NONE=""
29424 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
29425 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
29426 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
29427 CXX_O_FLAG_NONE=""
29428 ;;
29429 esac
29430
29431 CFLAGS_DEBUG_SYMBOLS="-g -xs"
29432 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs"
29433 esac
29434 ;;
29435 CL )
29436 C_O_FLAG_HIGHEST="-O2"
29437 C_O_FLAG_HI="-O1"
29438 C_O_FLAG_NORM="-O1"
29439 C_O_FLAG_NONE="-Od"
29440 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST"
29441 CXX_O_FLAG_HI="$C_O_FLAG_HI"
29442 CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
29443 CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
29444 ;;
29445 esac
29446
29447 if test -z "$C_O_FLAG_HIGHEST"; then
29448 C_O_FLAG_HIGHEST="$C_O_FLAG_HI"
29449 fi
29450
29451 if test -z "$CXX_O_FLAG_HIGHEST"; then
29452 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HI"
29536 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer"
29537 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
29538 ;;
29539 esac
29540 ;;
29541 ossc )
29542 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS"
29543 case $OPENJDK_TARGET_CPU_ARCH in
29544 x86 )
29545 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB"
29546 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE"
29547 ;;
29548 esac
29549
29550 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
29551 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
29552
29553 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext"
29554 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib"
29555 ;;
29556 cl )
29557 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
29558 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \
29559 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
29560 -DWIN32 -DIAL"
29561 case $OPENJDK_TARGET_CPU in
29562 x86 )
29563 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86"
29564 ;;
29565 x86_64 )
29566 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64"
29567 ;;
29568 esac
29569 ;;
29570 esac
29571
29572 ###############################################################################
29573
29574 # Adjust flags according to debug level.
29575 case $DEBUG_LEVEL in
29605 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h).
29606 # Note: -Dmacro is the same as #define macro 1
29607 # -Dmacro= is the same as #define macro
29608 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
29609 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN="
29610 else
29611 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN"
29612 fi
29613 else
29614 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN"
29615 fi
29616 if test "x$OPENJDK_TARGET_OS" = xlinux; then
29617 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DLINUX"
29618 fi
29619 if test "x$OPENJDK_TARGET_OS" = xwindows; then
29620 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DWINDOWS"
29621 fi
29622 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
29623 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS"
29624 fi
29625 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
29626 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE"
29627 # Setting these parameters makes it an error to link to macosx APIs that are
29628 # newer than the given OS version and makes the linked binaries compatible even
29629 # if built on a newer version of the OS.
29630 # The expected format is X.Y.Z
29631 MACOSX_VERSION_MIN=10.7.0
29632
29633 # The macro takes the version with no dots, ex: 1070
29634 # Let the flags variables get resolved in make for easier override on make
29635 # command line.
29636 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
29637 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
29638 fi
29639 if test "x$OPENJDK_TARGET_OS" = xbsd; then
29640 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE"
29641 fi
29642 if test "x$DEBUG_LEVEL" = xrelease; then
29643 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG"
29644 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
29737 fi
29738
29739
29740
29741
29742
29743
29744
29745
29746
29747
29748
29749
29750
29751
29752
29753 # Some Zero and Shark settings.
29754 # ZERO_ARCHFLAG tells the compiler which mode to build for
29755 case "${OPENJDK_TARGET_CPU}" in
29756 s390)
29757 ZERO_ARCHFLAG="-m31"
29758 ;;
29759 *)
29760 ZERO_ARCHFLAG="-m${OPENJDK_TARGET_CPU_BITS}"
29761 esac
29762
29763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5
29764 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; }
29765 supports=yes
29766
29767 saved_cflags="$CFLAGS"
29768 CFLAGS="$CFLAGS $ZERO_ARCHFLAG"
29769 ac_ext=c
29770 ac_cpp='$CPP $CPPFLAGS'
29771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29774
29775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29776 /* end confdefs.h. */
29777
29778 int i;
29779
29780 _ACEOF
29813 fi
29814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29815 ac_ext=cpp
29816 ac_cpp='$CXXCPP $CPPFLAGS'
29817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29820
29821 CXXFLAGS="$saved_cxxflags"
29822
29823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
29824 $as_echo "$supports" >&6; }
29825 if test "x$supports" = "xyes" ; then
29826 :
29827 else
29828 ZERO_ARCHFLAG=""
29829 fi
29830
29831
29832
29833 # Check that the compiler supports -mX flags
29834 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does
29835
29836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"-m${OPENJDK_TARGET_CPU_BITS}\"" >&5
29837 $as_echo_n "checking if compiler supports \"-m${OPENJDK_TARGET_CPU_BITS}\"... " >&6; }
29838 supports=yes
29839
29840 saved_cflags="$CFLAGS"
29841 CFLAGS="$CFLAGS -m${OPENJDK_TARGET_CPU_BITS}"
29842 ac_ext=c
29843 ac_cpp='$CPP $CPPFLAGS'
29844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29847
29848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29849 /* end confdefs.h. */
29850
29851 int i;
29852
29853 _ACEOF
29854 if ac_fn_c_try_compile "$LINENO"; then :
29855
29856 else
29857 supports=no
29858 fi
29859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29860 ac_ext=cpp
29861 ac_cpp='$CXXCPP $CPPFLAGS'
29862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29865
29866 CFLAGS="$saved_cflags"
29867
29868 saved_cxxflags="$CXXFLAGS"
29869 CXXFLAGS="$CXXFLAG -m${OPENJDK_TARGET_CPU_BITS}"
29870 ac_ext=cpp
29871 ac_cpp='$CXXCPP $CPPFLAGS'
29872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29875
29876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29877 /* end confdefs.h. */
29878
29879 int i;
29880
29881 _ACEOF
29882 if ac_fn_cxx_try_compile "$LINENO"; then :
29883
29884 else
29885 supports=no
29886 fi
29887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29888 ac_ext=cpp
29889 ac_cpp='$CXXCPP $CPPFLAGS'
30004 #
30005 # OS specific settings that we never will need to probe.
30006 #
30007 if test "x$OPENJDK_TARGET_OS" = xlinux; then
30008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5
30009 $as_echo_n "checking what is not needed on Linux?... " >&6; }
30010 PULSE_NOT_NEEDED=yes
30011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5
30012 $as_echo "pulse" >&6; }
30013 fi
30014
30015 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
30016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5
30017 $as_echo_n "checking what is not needed on Solaris?... " >&6; }
30018 ALSA_NOT_NEEDED=yes
30019 PULSE_NOT_NEEDED=yes
30020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
30021 $as_echo "alsa pulse" >&6; }
30022 fi
30023
30024 if test "x$OPENJDK_TARGET_OS" = xwindows; then
30025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5
30026 $as_echo_n "checking what is not needed on Windows?... " >&6; }
30027 CUPS_NOT_NEEDED=yes
30028 ALSA_NOT_NEEDED=yes
30029 PULSE_NOT_NEEDED=yes
30030 X11_NOT_NEEDED=yes
30031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5
30032 $as_echo "alsa cups pulse x11" >&6; }
30033 fi
30034
30035 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
30036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5
30037 $as_echo_n "checking what is not needed on MacOSX?... " >&6; }
30038 ALSA_NOT_NEEDED=yes
30039 PULSE_NOT_NEEDED=yes
30040 X11_NOT_NEEDED=yes
30041 FREETYPE2_NOT_NEEDED=yes
30042 # If the java runtime framework is disabled, then we need X11.
30043 # This will be adjusted below.
30130 fi
30131 fi
30132
30133 # Now let autoconf do it's magic
30134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
30135 $as_echo_n "checking for X... " >&6; }
30136
30137
30138 # Check whether --with-x was given.
30139 if test "${with_x+set}" = set; then :
30140 withval=$with_x;
30141 fi
30142
30143 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30144 if test "x$with_x" = xno; then
30145 # The user explicitly disabled X.
30146 have_x=disabled
30147 else
30148 case $x_includes,$x_libraries in #(
30149 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
30150 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
30151 $as_echo_n "(cached) " >&6
30152 else
30153 # One or both of the vars are not set, and there is no cached value.
30154 ac_x_includes=no ac_x_libraries=no
30155 rm -f -r conftest.dir
30156 if mkdir conftest.dir; then
30157 cd conftest.dir
30158 cat >Imakefile <<'_ACEOF'
30159 incroot:
30160 @echo incroot='${INCROOT}'
30161 usrlibdir:
30162 @echo usrlibdir='${USRLIBDIR}'
30163 libdir:
30164 @echo libdir='${LIBDIR}'
30165 _ACEOF
30166 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30167 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
30168 for ac_var in incroot usrlibdir libdir; do
30169 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30170 done
30407 /* Override any GCC internal prototype to avoid an error.
30408 Use char because int might match the return type of a GCC
30409 builtin and then its argument prototype would still apply. */
30410 #ifdef __cplusplus
30411 extern "C"
30412 #endif
30413 char XOpenDisplay ();
30414 int
30415 main ()
30416 {
30417 return XOpenDisplay ();
30418 ;
30419 return 0;
30420 }
30421 _ACEOF
30422 if ac_fn_cxx_try_link "$LINENO"; then :
30423
30424 else
30425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
30426 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
30427 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
30428 $as_echo_n "(cached) " >&6
30429 else
30430 ac_check_lib_save_LIBS=$LIBS
30431 LIBS="-ldnet $LIBS"
30432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30433 /* end confdefs.h. */
30434
30435 /* Override any GCC internal prototype to avoid an error.
30436 Use char because int might match the return type of a GCC
30437 builtin and then its argument prototype would still apply. */
30438 #ifdef __cplusplus
30439 extern "C"
30440 #endif
30441 char dnet_ntoa ();
30442 int
30443 main ()
30444 {
30445 return dnet_ntoa ();
30446 ;
30447 return 0;
30448 }
30449 _ACEOF
30450 if ac_fn_cxx_try_link "$LINENO"; then :
30451 ac_cv_lib_dnet_dnet_ntoa=yes
30452 else
30453 ac_cv_lib_dnet_dnet_ntoa=no
30454 fi
30455 rm -f core conftest.err conftest.$ac_objext \
30456 conftest$ac_exeext conftest.$ac_ext
30457 LIBS=$ac_check_lib_save_LIBS
30458 fi
30459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30460 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30461 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
30462 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30463 fi
30464
30465 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
30467 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
30468 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
30469 $as_echo_n "(cached) " >&6
30470 else
30471 ac_check_lib_save_LIBS=$LIBS
30472 LIBS="-ldnet_stub $LIBS"
30473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30474 /* end confdefs.h. */
30475
30476 /* Override any GCC internal prototype to avoid an error.
30477 Use char because int might match the return type of a GCC
30478 builtin and then its argument prototype would still apply. */
30479 #ifdef __cplusplus
30480 extern "C"
30481 #endif
30482 char dnet_ntoa ();
30483 int
30484 main ()
30485 {
30486 return dnet_ntoa ();
30487 ;
30488 return 0;
30489 }
30490 _ACEOF
30491 if ac_fn_cxx_try_link "$LINENO"; then :
30492 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30493 else
30494 ac_cv_lib_dnet_stub_dnet_ntoa=no
30495 fi
30496 rm -f core conftest.err conftest.$ac_objext \
30497 conftest$ac_exeext conftest.$ac_ext
30498 LIBS=$ac_check_lib_save_LIBS
30499 fi
30500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30501 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30502 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
30503 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30504 fi
30505
30506 fi
30507 fi
30508 rm -f core conftest.err conftest.$ac_objext \
30509 conftest$ac_exeext conftest.$ac_ext
30510 LIBS="$ac_xsave_LIBS"
30511
30512 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30513 # to get the SysV transport functions.
30514 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30515 # needs -lnsl.
30516 # The nsl library prevents programs from opening the X display
30517 # on Irix 5.2, according to T.E. Dickey.
30518 # The functions gethostbyname, getservbyname, and inet_addr are
30519 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30520 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
30521 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
30522
30523 fi
30524
30525 if test $ac_cv_func_gethostbyname = no; then
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
30527 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
30528 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
30529 $as_echo_n "(cached) " >&6
30530 else
30531 ac_check_lib_save_LIBS=$LIBS
30532 LIBS="-lnsl $LIBS"
30533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30534 /* end confdefs.h. */
30535
30536 /* Override any GCC internal prototype to avoid an error.
30537 Use char because int might match the return type of a GCC
30538 builtin and then its argument prototype would still apply. */
30539 #ifdef __cplusplus
30540 extern "C"
30541 #endif
30542 char gethostbyname ();
30543 int
30544 main ()
30545 {
30546 return gethostbyname ();
30547 ;
30548 return 0;
30549 }
30550 _ACEOF
30551 if ac_fn_cxx_try_link "$LINENO"; then :
30552 ac_cv_lib_nsl_gethostbyname=yes
30553 else
30554 ac_cv_lib_nsl_gethostbyname=no
30555 fi
30556 rm -f core conftest.err conftest.$ac_objext \
30557 conftest$ac_exeext conftest.$ac_ext
30558 LIBS=$ac_check_lib_save_LIBS
30559 fi
30560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
30561 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
30562 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
30563 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30564 fi
30565
30566 if test $ac_cv_lib_nsl_gethostbyname = no; then
30567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
30568 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
30569 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
30570 $as_echo_n "(cached) " >&6
30571 else
30572 ac_check_lib_save_LIBS=$LIBS
30573 LIBS="-lbsd $LIBS"
30574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30575 /* end confdefs.h. */
30576
30577 /* Override any GCC internal prototype to avoid an error.
30578 Use char because int might match the return type of a GCC
30579 builtin and then its argument prototype would still apply. */
30580 #ifdef __cplusplus
30581 extern "C"
30582 #endif
30583 char gethostbyname ();
30584 int
30585 main ()
30586 {
30587 return gethostbyname ();
30588 ;
30589 return 0;
30590 }
30591 _ACEOF
30592 if ac_fn_cxx_try_link "$LINENO"; then :
30593 ac_cv_lib_bsd_gethostbyname=yes
30594 else
30595 ac_cv_lib_bsd_gethostbyname=no
30596 fi
30597 rm -f core conftest.err conftest.$ac_objext \
30598 conftest$ac_exeext conftest.$ac_ext
30599 LIBS=$ac_check_lib_save_LIBS
30600 fi
30601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
30602 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
30603 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
30604 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30605 fi
30606
30607 fi
30608 fi
30609
30610 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30611 # socket/setsockopt and other routines are undefined under SCO ODT
30612 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30613 # on later versions), says Simon Leinen: it contains gethostby*
30614 # variants that don't use the name server (or something). -lsocket
30615 # must be given before -lnsl if both are needed. We assume that
30616 # if connect needs -lnsl, so does gethostbyname.
30617 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
30618 if test "x$ac_cv_func_connect" = x""yes; then :
30619
30620 fi
30621
30622 if test $ac_cv_func_connect = no; then
30623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
30624 $as_echo_n "checking for connect in -lsocket... " >&6; }
30625 if test "${ac_cv_lib_socket_connect+set}" = set; then :
30626 $as_echo_n "(cached) " >&6
30627 else
30628 ac_check_lib_save_LIBS=$LIBS
30629 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30631 /* end confdefs.h. */
30632
30633 /* Override any GCC internal prototype to avoid an error.
30634 Use char because int might match the return type of a GCC
30635 builtin and then its argument prototype would still apply. */
30636 #ifdef __cplusplus
30637 extern "C"
30638 #endif
30639 char connect ();
30640 int
30641 main ()
30642 {
30643 return connect ();
30644 ;
30645 return 0;
30646 }
30647 _ACEOF
30648 if ac_fn_cxx_try_link "$LINENO"; then :
30649 ac_cv_lib_socket_connect=yes
30650 else
30651 ac_cv_lib_socket_connect=no
30652 fi
30653 rm -f core conftest.err conftest.$ac_objext \
30654 conftest$ac_exeext conftest.$ac_ext
30655 LIBS=$ac_check_lib_save_LIBS
30656 fi
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
30658 $as_echo "$ac_cv_lib_socket_connect" >&6; }
30659 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
30660 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30661 fi
30662
30663 fi
30664
30665 # Guillermo Gomez says -lposix is necessary on A/UX.
30666 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
30667 if test "x$ac_cv_func_remove" = x""yes; then :
30668
30669 fi
30670
30671 if test $ac_cv_func_remove = no; then
30672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
30673 $as_echo_n "checking for remove in -lposix... " >&6; }
30674 if test "${ac_cv_lib_posix_remove+set}" = set; then :
30675 $as_echo_n "(cached) " >&6
30676 else
30677 ac_check_lib_save_LIBS=$LIBS
30678 LIBS="-lposix $LIBS"
30679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30680 /* end confdefs.h. */
30681
30682 /* Override any GCC internal prototype to avoid an error.
30683 Use char because int might match the return type of a GCC
30684 builtin and then its argument prototype would still apply. */
30685 #ifdef __cplusplus
30686 extern "C"
30687 #endif
30688 char remove ();
30689 int
30690 main ()
30691 {
30692 return remove ();
30693 ;
30694 return 0;
30695 }
30696 _ACEOF
30697 if ac_fn_cxx_try_link "$LINENO"; then :
30698 ac_cv_lib_posix_remove=yes
30699 else
30700 ac_cv_lib_posix_remove=no
30701 fi
30702 rm -f core conftest.err conftest.$ac_objext \
30703 conftest$ac_exeext conftest.$ac_ext
30704 LIBS=$ac_check_lib_save_LIBS
30705 fi
30706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
30707 $as_echo "$ac_cv_lib_posix_remove" >&6; }
30708 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
30709 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30710 fi
30711
30712 fi
30713
30714 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30715 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
30716 if test "x$ac_cv_func_shmat" = x""yes; then :
30717
30718 fi
30719
30720 if test $ac_cv_func_shmat = no; then
30721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
30722 $as_echo_n "checking for shmat in -lipc... " >&6; }
30723 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
30724 $as_echo_n "(cached) " >&6
30725 else
30726 ac_check_lib_save_LIBS=$LIBS
30727 LIBS="-lipc $LIBS"
30728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30729 /* end confdefs.h. */
30730
30731 /* Override any GCC internal prototype to avoid an error.
30732 Use char because int might match the return type of a GCC
30733 builtin and then its argument prototype would still apply. */
30734 #ifdef __cplusplus
30735 extern "C"
30736 #endif
30737 char shmat ();
30738 int
30739 main ()
30740 {
30741 return shmat ();
30742 ;
30743 return 0;
30744 }
30745 _ACEOF
30746 if ac_fn_cxx_try_link "$LINENO"; then :
30747 ac_cv_lib_ipc_shmat=yes
30748 else
30749 ac_cv_lib_ipc_shmat=no
30750 fi
30751 rm -f core conftest.err conftest.$ac_objext \
30752 conftest$ac_exeext conftest.$ac_ext
30753 LIBS=$ac_check_lib_save_LIBS
30754 fi
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
30756 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
30757 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
30758 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30759 fi
30760
30761 fi
30762 fi
30763
30764 # Check for libraries that X11R6 Xt/Xaw programs need.
30765 ac_save_LDFLAGS=$LDFLAGS
30766 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30767 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30768 # check for ICE first), but we must link in the order -lSM -lICE or
30769 # we get undefined symbols. So assume we have SM if we have ICE.
30770 # These have to be linked with before -lX11, unlike the other
30771 # libraries we check for below, so use a different variable.
30772 # John Interrante, Karl Berry
30773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
30774 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
30775 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
30776 $as_echo_n "(cached) " >&6
30777 else
30778 ac_check_lib_save_LIBS=$LIBS
30779 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30781 /* end confdefs.h. */
30782
30783 /* Override any GCC internal prototype to avoid an error.
30784 Use char because int might match the return type of a GCC
30785 builtin and then its argument prototype would still apply. */
30786 #ifdef __cplusplus
30787 extern "C"
30788 #endif
30789 char IceConnectionNumber ();
30790 int
30791 main ()
30792 {
30793 return IceConnectionNumber ();
30794 ;
30795 return 0;
30796 }
30797 _ACEOF
30798 if ac_fn_cxx_try_link "$LINENO"; then :
30799 ac_cv_lib_ICE_IceConnectionNumber=yes
30800 else
30801 ac_cv_lib_ICE_IceConnectionNumber=no
30802 fi
30803 rm -f core conftest.err conftest.$ac_objext \
30804 conftest$ac_exeext conftest.$ac_ext
30805 LIBS=$ac_check_lib_save_LIBS
30806 fi
30807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30808 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30809 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
30810 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30811 fi
30812
30813 LDFLAGS=$ac_save_LDFLAGS
30814
30815 fi
30816
30817
30818 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
30819 # this doesn't make sense so we remove it.
30820 if test "x$COMPILE_TYPE" = xcross; then
30821 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'`
30822 fi
30823
30824 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
30825
30826 # Print a helpful message on how to acquire the necessary build dependency.
30827 # x11 is the help tag: freetyp2, cups, pulse, alsa etc
30828 MISSING_DEPENDENCY=x11
30829 PKGHANDLER_COMMAND=
30830
30831 case $PKGHANDLER in
30832 apt-get)
30833 apt_help $MISSING_DEPENDENCY ;;
30834 yum)
30835 yum_help $MISSING_DEPENDENCY ;;
30836 port)
30837 port_help $MISSING_DEPENDENCY ;;
30838 pkgutil)
30839 pkgutil_help $MISSING_DEPENDENCY ;;
30840 pkgadd)
30841 pkgadd_help $MISSING_DEPENDENCY ;;
30842 * )
30843 break ;;
30844 esac
30845
30846 if test "x$PKGHANDLER_COMMAND" != x; then
30847 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
30848 fi
30849
30850 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5
30851 fi
30852
30853 # Some of the old makefiles require a setting of OPENWIN_HOME
30854 # Since the X11R6 directory has disappeared on later Linuxes,
30855 # we need to probe for it.
30856 if test "x$OPENJDK_TARGET_OS" = xlinux; then
30857 if test -d "$SYS_ROOT/usr/X11R6"; then
30858 OPENWIN_HOME="$SYS_ROOT/usr/X11R6"
30859 elif test -d "$SYS_ROOT/usr/include/X11"; then
30860 OPENWIN_HOME="$SYS_ROOT/usr"
30861 fi
30862 fi
30863 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
30915
30916
30917 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then
30918
30919 # Print a helpful message on how to acquire the necessary build dependency.
30920 # x11 is the help tag: freetyp2, cups, pulse, alsa etc
30921 MISSING_DEPENDENCY=x11
30922 PKGHANDLER_COMMAND=
30923
30924 case $PKGHANDLER in
30925 apt-get)
30926 apt_help $MISSING_DEPENDENCY ;;
30927 yum)
30928 yum_help $MISSING_DEPENDENCY ;;
30929 port)
30930 port_help $MISSING_DEPENDENCY ;;
30931 pkgutil)
30932 pkgutil_help $MISSING_DEPENDENCY ;;
30933 pkgadd)
30934 pkgadd_help $MISSING_DEPENDENCY ;;
30935 * )
30936 break ;;
30937 esac
30938
30939 if test "x$PKGHANDLER_COMMAND" != x; then
30940 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
30941 fi
30942
30943 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h). $HELP_MSG" "$LINENO" 5
30944 fi
30945
30946
30947
30948
30949
30950
30951 ###############################################################################
30952 #
30953 # The common unix printing system cups is used to print from java.
30954 #
30955
30956 # Check whether --with-cups was given.
31167 $as_echo "$CUPS_FOUND" >&6; }
31168 fi
31169 if test "x$CUPS_FOUND" = xno; then
31170
31171 # Print a helpful message on how to acquire the necessary build dependency.
31172 # cups is the help tag: freetyp2, cups, pulse, alsa etc
31173 MISSING_DEPENDENCY=cups
31174 PKGHANDLER_COMMAND=
31175
31176 case $PKGHANDLER in
31177 apt-get)
31178 apt_help $MISSING_DEPENDENCY ;;
31179 yum)
31180 yum_help $MISSING_DEPENDENCY ;;
31181 port)
31182 port_help $MISSING_DEPENDENCY ;;
31183 pkgutil)
31184 pkgutil_help $MISSING_DEPENDENCY ;;
31185 pkgadd)
31186 pkgadd_help $MISSING_DEPENDENCY ;;
31187 * )
31188 break ;;
31189 esac
31190
31191 if test "x$PKGHANDLER_COMMAND" != x; then
31192 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
31193 fi
31194
31195 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5
31196 fi
31197 fi
31198
31199
31200
31201
31202
31203
31204 ###############################################################################
31205 #
31206 # The ubiquitous freetype2 library is used to render fonts.
31207 #
31208
31790 USING_SYSTEM_FT_LIB=true
31791 fi
31792 if test "x$FREETYPE2_FOUND" = xno; then
31793
31794 # Print a helpful message on how to acquire the necessary build dependency.
31795 # freetype2 is the help tag: freetyp2, cups, pulse, alsa etc
31796 MISSING_DEPENDENCY=freetype2
31797 PKGHANDLER_COMMAND=
31798
31799 case $PKGHANDLER in
31800 apt-get)
31801 apt_help $MISSING_DEPENDENCY ;;
31802 yum)
31803 yum_help $MISSING_DEPENDENCY ;;
31804 port)
31805 port_help $MISSING_DEPENDENCY ;;
31806 pkgutil)
31807 pkgutil_help $MISSING_DEPENDENCY ;;
31808 pkgadd)
31809 pkgadd_help $MISSING_DEPENDENCY ;;
31810 * )
31811 break ;;
31812 esac
31813
31814 if test "x$PKGHANDLER_COMMAND" != x; then
31815 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
31816 fi
31817
31818 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
31819 fi
31820
31821 if test "x$OPENJDK_TARGET_OS" != xwindows; then
31822 # AC_CHECK_LIB does not support use of cl.exe
31823 PREV_LDFLAGS="$LDFLAGS"
31824 LDFLAGS="$FREETYPE2_LIBS"
31825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
31826 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
31827 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
31828 $as_echo_n "(cached) " >&6
31829 else
31830 ac_check_lib_save_LIBS=$LIBS
31831 LIBS="-lfreetype $LIBS"
31832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31833 /* end confdefs.h. */
31834
31835 /* Override any GCC internal prototype to avoid an error.
31836 Use char because int might match the return type of a GCC
31837 builtin and then its argument prototype would still apply. */
31838 #ifdef __cplusplus
31839 extern "C"
31840 #endif
31841 char FT_Init_FreeType ();
31842 int
31843 main ()
31844 {
31845 return FT_Init_FreeType ();
31846 ;
31847 return 0;
31848 }
31849 _ACEOF
31850 if ac_fn_cxx_try_link "$LINENO"; then :
31851 ac_cv_lib_freetype_FT_Init_FreeType=yes
31852 else
31853 ac_cv_lib_freetype_FT_Init_FreeType=no
31854 fi
31855 rm -f core conftest.err conftest.$ac_objext \
31856 conftest$ac_exeext conftest.$ac_ext
31857 LIBS=$ac_check_lib_save_LIBS
31858 fi
31859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
31860 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
31861 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
31862 FREETYPE2_FOUND=true
31863 else
31864 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
31865 fi
31866
31867 LDFLAGS="$PREV_LDFLAGS"
31868 fi
31869 fi
31870
31871
31872
31873
31874
31875
31876
31877
31878
31879 ###############################################################################
31880 #
31881 # Check for alsa headers and libraries. Used on Linux/GNU systems.
32129 # Put the nasty error message in config.log where it belongs
32130 echo "$ALSA_PKG_ERRORS" >&5
32131
32132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32133 $as_echo "no" >&6; }
32134 ALSA_FOUND=no
32135 elif test $pkg_failed = untried; then
32136 ALSA_FOUND=no
32137 else
32138 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
32139 ALSA_LIBS=$pkg_cv_ALSA_LIBS
32140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32141 $as_echo "yes" >&6; }
32142 ALSA_FOUND=yes
32143 fi
32144 fi
32145 if test "x$ALSA_FOUND" = xno; then
32146 for ac_header in alsa/asoundlib.h
32147 do :
32148 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
32149 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
32150 cat >>confdefs.h <<_ACEOF
32151 #define HAVE_ALSA_ASOUNDLIB_H 1
32152 _ACEOF
32153 ALSA_FOUND=yes
32154 ALSA_CFLAGS=-Iignoreme
32155 ALSA_LIBS=-lasound
32156 DEFAULT_ALSA=yes
32157 else
32158 ALSA_FOUND=no
32159 fi
32160
32161 done
32162
32163 fi
32164 if test "x$ALSA_FOUND" = xno; then
32165
32166 # Print a helpful message on how to acquire the necessary build dependency.
32167 # alsa is the help tag: freetyp2, cups, pulse, alsa etc
32168 MISSING_DEPENDENCY=alsa
32169 PKGHANDLER_COMMAND=
32170
32171 case $PKGHANDLER in
32172 apt-get)
32173 apt_help $MISSING_DEPENDENCY ;;
32174 yum)
32175 yum_help $MISSING_DEPENDENCY ;;
32176 port)
32177 port_help $MISSING_DEPENDENCY ;;
32178 pkgutil)
32179 pkgutil_help $MISSING_DEPENDENCY ;;
32180 pkgadd)
32181 pkgadd_help $MISSING_DEPENDENCY ;;
32182 * )
32183 break ;;
32184 esac
32185
32186 if test "x$PKGHANDLER_COMMAND" != x; then
32187 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
32188 fi
32189
32190 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
32191 fi
32192 fi
32193
32194
32195
32196
32197
32198
32199
32200 ###############################################################################
32201 #
32202 # Check for the jpeg library
32203 #
32204
32205 USE_EXTERNAL_LIBJPEG=true
32206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
32207 $as_echo_n "checking for main in -ljpeg... " >&6; }
32208 if test "${ac_cv_lib_jpeg_main+set}" = set; then :
32209 $as_echo_n "(cached) " >&6
32210 else
32211 ac_check_lib_save_LIBS=$LIBS
32212 LIBS="-ljpeg $LIBS"
32213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32214 /* end confdefs.h. */
32215
32216
32217 int
32218 main ()
32219 {
32220 return main ();
32221 ;
32222 return 0;
32223 }
32224 _ACEOF
32225 if ac_fn_cxx_try_link "$LINENO"; then :
32226 ac_cv_lib_jpeg_main=yes
32227 else
32228 ac_cv_lib_jpeg_main=no
32229 fi
32230 rm -f core conftest.err conftest.$ac_objext \
32231 conftest$ac_exeext conftest.$ac_ext
32232 LIBS=$ac_check_lib_save_LIBS
32233 fi
32234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
32235 $as_echo "$ac_cv_lib_jpeg_main" >&6; }
32236 if test "x$ac_cv_lib_jpeg_main" = x""yes; then :
32237 cat >>confdefs.h <<_ACEOF
32238 #define HAVE_LIBJPEG 1
32239 _ACEOF
32240
32241 LIBS="-ljpeg $LIBS"
32242
32243 else
32244 USE_EXTERNAL_LIBJPEG=false
32245 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
32246 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
32247
32248 fi
32249
32250
32251
32252 ###############################################################################
32253 #
32254 # Check for the gif library
32255 #
32256
32265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5
32266 $as_echo_n "checking for which giflib to use... " >&6; }
32267
32268 # default is bundled
32269 DEFAULT_GIFLIB=bundled
32270
32271 #
32272 # if user didn't specify, use DEFAULT_GIFLIB
32273 #
32274 if test "x${with_giflib}" = "x"; then
32275 with_giflib=${DEFAULT_GIFLIB}
32276 fi
32277
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5
32279 $as_echo "${with_giflib}" >&6; }
32280
32281 if test "x${with_giflib}" = "xbundled"; then
32282 USE_EXTERNAL_LIBGIF=false
32283 elif test "x${with_giflib}" = "xsystem"; then
32284 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
32285 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
32286
32287 else
32288 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5
32289 fi
32290
32291
32292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5
32293 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; }
32294 if test "${ac_cv_lib_gif_DGifGetCode+set}" = set; then :
32295 $as_echo_n "(cached) " >&6
32296 else
32297 ac_check_lib_save_LIBS=$LIBS
32298 LIBS="-lgif $LIBS"
32299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32300 /* end confdefs.h. */
32301
32302 /* Override any GCC internal prototype to avoid an error.
32303 Use char because int might match the return type of a GCC
32304 builtin and then its argument prototype would still apply. */
32305 #ifdef __cplusplus
32306 extern "C"
32307 #endif
32308 char DGifGetCode ();
32309 int
32310 main ()
32311 {
32312 return DGifGetCode ();
32313 ;
32314 return 0;
32315 }
32316 _ACEOF
32317 if ac_fn_cxx_try_link "$LINENO"; then :
32318 ac_cv_lib_gif_DGifGetCode=yes
32319 else
32320 ac_cv_lib_gif_DGifGetCode=no
32321 fi
32322 rm -f core conftest.err conftest.$ac_objext \
32323 conftest$ac_exeext conftest.$ac_ext
32324 LIBS=$ac_check_lib_save_LIBS
32325 fi
32326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
32327 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
32328 if test "x$ac_cv_lib_gif_DGifGetCode" = x""yes; then :
32329 cat >>confdefs.h <<_ACEOF
32330 #define HAVE_LIBGIF 1
32331 _ACEOF
32332
32333 LIBS="-lgif $LIBS"
32334
32335 else
32336 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
32337 fi
32338
32339
32340 USE_EXTERNAL_LIBGIF=true
32341 else
32342 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
32343 fi
32344
32345
32346 ###############################################################################
32347 #
32348 # Check for the zlib library
32349 #
32350
32351
32352 # Check whether --with-zlib was given.
32353 if test "${with_zlib+set}" = set; then :
32354 withval=$with_zlib;
32355 fi
32356
32357
32358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
32359 $as_echo_n "checking for compress in -lz... " >&6; }
32360 if test "${ac_cv_lib_z_compress+set}" = set; then :
32361 $as_echo_n "(cached) " >&6
32362 else
32363 ac_check_lib_save_LIBS=$LIBS
32364 LIBS="-lz $LIBS"
32365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32366 /* end confdefs.h. */
32367
32368 /* Override any GCC internal prototype to avoid an error.
32369 Use char because int might match the return type of a GCC
32370 builtin and then its argument prototype would still apply. */
32371 #ifdef __cplusplus
32372 extern "C"
32373 #endif
32374 char compress ();
32375 int
32376 main ()
32377 {
32378 return compress ();
32379 ;
32380 return 0;
32381 }
32382 _ACEOF
32383 if ac_fn_cxx_try_link "$LINENO"; then :
32384 ac_cv_lib_z_compress=yes
32385 else
32386 ac_cv_lib_z_compress=no
32387 fi
32388 rm -f core conftest.err conftest.$ac_objext \
32389 conftest$ac_exeext conftest.$ac_ext
32390 LIBS=$ac_check_lib_save_LIBS
32391 fi
32392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
32393 $as_echo "$ac_cv_lib_z_compress" >&6; }
32394 if test "x$ac_cv_lib_z_compress" = x""yes; then :
32395 ZLIB_FOUND=yes
32396 else
32397 ZLIB_FOUND=no
32398 fi
32399
32400
32401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5
32402 $as_echo_n "checking for which zlib to use... " >&6; }
32403
32404 DEFAULT_ZLIB=bundled
32405 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
32406 #
32407 # On macosx default is system...on others default is
32408 #
32409 DEFAULT_ZLIB=system
32410 fi
32411
32412 if test "x${ZLIB_FOUND}" != "xyes"; then
32413 #
32414 # If we don't find any system...set default to bundled
32467 if ac_fn_cxx_try_link "$LINENO"; then :
32468 has_altzone=yes
32469 else
32470 has_altzone=no
32471 fi
32472 rm -f core conftest.err conftest.$ac_objext \
32473 conftest$ac_exeext conftest.$ac_ext
32474 if test "x$has_altzone" = xyes; then
32475
32476 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
32477
32478 fi
32479
32480 ###############################################################################
32481 #
32482 # Check the maths library
32483 #
32484
32485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
32486 $as_echo_n "checking for cos in -lm... " >&6; }
32487 if test "${ac_cv_lib_m_cos+set}" = set; then :
32488 $as_echo_n "(cached) " >&6
32489 else
32490 ac_check_lib_save_LIBS=$LIBS
32491 LIBS="-lm $LIBS"
32492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32493 /* end confdefs.h. */
32494
32495 /* Override any GCC internal prototype to avoid an error.
32496 Use char because int might match the return type of a GCC
32497 builtin and then its argument prototype would still apply. */
32498 #ifdef __cplusplus
32499 extern "C"
32500 #endif
32501 char cos ();
32502 int
32503 main ()
32504 {
32505 return cos ();
32506 ;
32507 return 0;
32508 }
32509 _ACEOF
32510 if ac_fn_cxx_try_link "$LINENO"; then :
32511 ac_cv_lib_m_cos=yes
32512 else
32513 ac_cv_lib_m_cos=no
32514 fi
32515 rm -f core conftest.err conftest.$ac_objext \
32516 conftest$ac_exeext conftest.$ac_ext
32517 LIBS=$ac_check_lib_save_LIBS
32518 fi
32519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
32520 $as_echo "$ac_cv_lib_m_cos" >&6; }
32521 if test "x$ac_cv_lib_m_cos" = x""yes; then :
32522 cat >>confdefs.h <<_ACEOF
32523 #define HAVE_LIBM 1
32524 _ACEOF
32525
32526 LIBS="-lm $LIBS"
32527
32528 else
32529
32530 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
32531 $as_echo "$as_me: Maths library was not found" >&6;}
32532
32533 fi
32534
32535
32536
32537 ###############################################################################
32538 #
32539 # Check for libdl.so
32540
32541 save_LIBS="$LIBS"
32542 LIBS=""
32543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
32544 $as_echo_n "checking for dlopen in -ldl... " >&6; }
32545 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
32546 $as_echo_n "(cached) " >&6
32547 else
32548 ac_check_lib_save_LIBS=$LIBS
32549 LIBS="-ldl $LIBS"
32550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32551 /* end confdefs.h. */
32552
32553 /* Override any GCC internal prototype to avoid an error.
32554 Use char because int might match the return type of a GCC
32555 builtin and then its argument prototype would still apply. */
32556 #ifdef __cplusplus
32557 extern "C"
32558 #endif
32559 char dlopen ();
32560 int
32561 main ()
32562 {
32563 return dlopen ();
32564 ;
32565 return 0;
32566 }
32567 _ACEOF
32568 if ac_fn_cxx_try_link "$LINENO"; then :
32569 ac_cv_lib_dl_dlopen=yes
32570 else
32571 ac_cv_lib_dl_dlopen=no
32572 fi
32573 rm -f core conftest.err conftest.$ac_objext \
32574 conftest$ac_exeext conftest.$ac_ext
32575 LIBS=$ac_check_lib_save_LIBS
32576 fi
32577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
32578 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
32579 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
32580 cat >>confdefs.h <<_ACEOF
32581 #define HAVE_LIBDL 1
32582 _ACEOF
32583
32584 LIBS="-ldl $LIBS"
32585
32586 fi
32587
32588 LIBDL="$LIBS"
32589
32590 LIBS="$save_LIBS"
32591
32592
32593
32594 ###############################################################################
32595 #
32596 # statically link libstdc++ before C++ ABI is stablized on Linux unless
32597 # dynamic build is configured on command line.
32598 #
32599
32805 and LIBFFI_LIBS to avoid the need to call pkg-config.
32806 See the pkg-config man page for more details.
32807
32808 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32809 See \`config.log' for more details" "$LINENO" 5; }
32810 else
32811 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
32812 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
32813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32814 $as_echo "yes" >&6; }
32815 :
32816 fi
32817
32818 fi
32819
32820 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
32821 # Extract the first word of "llvm-config", so it can be a program name with args.
32822 set dummy llvm-config; ac_word=$2
32823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32824 $as_echo_n "checking for $ac_word... " >&6; }
32825 if test "${ac_cv_prog_LLVM_CONFIG+set}" = set; then :
32826 $as_echo_n "(cached) " >&6
32827 else
32828 if test -n "$LLVM_CONFIG"; then
32829 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test.
32830 else
32831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32832 for as_dir in $PATH
32833 do
32834 IFS=$as_save_IFS
32835 test -z "$as_dir" && as_dir=.
32836 for ac_exec_ext in '' $ac_executable_extensions; do
32837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32838 ac_cv_prog_LLVM_CONFIG="llvm-config"
32839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32840 break 2
32841 fi
32842 done
32843 done
32844 IFS=$as_save_IFS
32845
32846 fi
32847 fi
32848 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG
32849 if test -n "$LLVM_CONFIG"; then
32850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
32851 $as_echo "$LLVM_CONFIG" >&6; }
32852 else
32853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32854 $as_echo "no" >&6; }
32855 fi
32856
32857
33027 if test "x$with_num_cores" = x; then
33028 # The number of cores were not specified, try to probe them.
33029
33030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5
33031 $as_echo_n "checking for number of cores... " >&6; }
33032 NUM_CORES=1
33033 FOUND_CORES=no
33034
33035 if test -f /proc/cpuinfo; then
33036 # Looks like a Linux (or cygwin) system
33037 NUM_CORES=`cat /proc/cpuinfo | grep -c processor`
33038 FOUND_CORES=yes
33039 elif test -x /usr/sbin/psrinfo; then
33040 # Looks like a Solaris system
33041 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line`
33042 FOUND_CORES=yes
33043 elif test -x /usr/sbin/system_profiler; then
33044 # Looks like a MacOSX system
33045 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'`
33046 FOUND_CORES=yes
33047 elif test -n "$NUMBER_OF_PROCESSORS"; then
33048 # On windows, look in the env
33049 NUM_CORES=$NUMBER_OF_PROCESSORS
33050 FOUND_CORES=yes
33051 fi
33052
33053 if test "x$FOUND_CORES" = xyes; then
33054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5
33055 $as_echo "$NUM_CORES" >&6; }
33056 else
33057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5
33058 $as_echo "could not detect number of cores, defaulting to 1" >&6; }
33059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5
33060 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;}
33061 fi
33062
33063
33064 else
33065 NUM_CORES=$with_num_cores
33066 fi
33072 # Check whether --with-memory-size was given.
33073 if test "${with_memory_size+set}" = set; then :
33074 withval=$with_memory_size;
33075 fi
33076
33077 if test "x$with_memory_size" = x; then
33078 # The memory size was not specified, try to probe it.
33079
33080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5
33081 $as_echo_n "checking for memory size... " >&6; }
33082 # Default to 1024 MB
33083 MEMORY_SIZE=1024
33084 FOUND_MEM=no
33085
33086 if test -f /proc/meminfo; then
33087 # Looks like a Linux (or cygwin) system
33088 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'`
33089 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024`
33090 FOUND_MEM=yes
33091 elif test -x /usr/sbin/prtconf; then
33092 # Looks like a Solaris system
33093 MEMORY_SIZE=`/usr/sbin/prtconf | grep "Memory size" | awk '{ print $3 }'`
33094 FOUND_MEM=yes
33095 elif test -x /usr/sbin/system_profiler; then
33096 # Looks like a MacOSX system
33097 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'`
33098 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024`
33099 FOUND_MEM=yes
33100 elif test "x$OPENJDK_BUILD_OS" = xwindows; then
33101 # Windows, but without cygwin
33102 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-`
33103 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024`
33104 FOUND_MEM=yes
33105 fi
33106
33107 if test "x$FOUND_MEM" = xyes; then
33108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5
33109 $as_echo "$MEMORY_SIZE MB" >&6; }
33110 else
33111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5
33112 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; }
33113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5
33421
33422
33423 # Setup use of ccache, if available
33424
33425 # Check whether --enable-ccache was given.
33426 if test "${enable_ccache+set}" = set; then :
33427 enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache}
33428 else
33429 ENABLE_CCACHE=yes
33430 fi
33431
33432 if test "x$ENABLE_CCACHE" = xyes; then
33433 OLD_PATH="$PATH"
33434 if test "x$TOOLS_DIR" != x; then
33435 PATH=$TOOLS_DIR:$PATH
33436 fi
33437 # Extract the first word of "ccache", so it can be a program name with args.
33438 set dummy ccache; ac_word=$2
33439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33440 $as_echo_n "checking for $ac_word... " >&6; }
33441 if test "${ac_cv_path_CCACHE+set}" = set; then :
33442 $as_echo_n "(cached) " >&6
33443 else
33444 case $CCACHE in
33445 [\\/]* | ?:[\\/]*)
33446 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
33447 ;;
33448 *)
33449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33450 for as_dir in $PATH
33451 do
33452 IFS=$as_save_IFS
33453 test -z "$as_dir" && as_dir=.
33454 for ac_exec_ext in '' $ac_executable_extensions; do
33455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33456 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
33457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33458 break 2
33459 fi
33460 done
33461 done
33462 IFS=$as_save_IFS
33463
33464 ;;
33465 esac
33466 fi
33467 CCACHE=$ac_cv_path_CCACHE
33468 if test -n "$CCACHE"; then
33469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
33470 $as_echo "$CCACHE" >&6; }
33471 else
33472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33473 $as_echo "no" >&6; }
33474 fi
33475
33683 "s/'/'\\\\''/g;
33684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33685 ;; #(
33686 *)
33687 # `set' quotes correctly as required by POSIX, so do not add quotes.
33688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33689 ;;
33690 esac |
33691 sort
33692 ) |
33693 sed '
33694 /^ac_cv_env_/b end
33695 t clear
33696 :clear
33697 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33698 t end
33699 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33700 :end' >>confcache
33701 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33702 if test -w "$cache_file"; then
33703 test "x$cache_file" != "x/dev/null" &&
33704 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33705 $as_echo "$as_me: updating cache $cache_file" >&6;}
33706 cat confcache >$cache_file
33707 else
33708 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33709 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33710 fi
33711 fi
33712 rm -f confcache
33713
33714 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33715 # Let make expand exec_prefix.
33716 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33717
33718 DEFS=-DHAVE_CONFIG_H
33719
33720 ac_libobjs=
33721 ac_ltlibobjs=
33722 U=
33723 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33724 # 1. Remove the extension, and $U if already installed.
33725 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33726 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33727 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33728 # will be set to the directory where LIBOBJS objects are built.
33729 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33730 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33731 done
33732 LIBOBJS=$ac_libobjs
33733
33734 LTLIBOBJS=$ac_ltlibobjs
33735
33736
33737
33738 : ${CONFIG_STATUS=./config.status}
33739 ac_write_fail=0
33740 ac_clean_files_save=$ac_clean_files
33741 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33742 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33743 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33744 as_write_fail=0
33745 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33746 #! $SHELL
33747 # Generated by $as_me.
33748 # Run this file to recreate the current configuration.
33749 # Compiler output produced by configure, useful for debugging
33750 # configure, is in config.log if it exists.
33751
33752 debug=false
33753 ac_cs_recheck=false
33754 ac_cs_silent=false
33755
33756 SHELL=\${CONFIG_SHELL-$SHELL}
33757 export SHELL
33758 _ASEOF
33819 fi
33820
33821 # The user is always right.
33822 if test "${PATH_SEPARATOR+set}" != set; then
33823 PATH_SEPARATOR=:
33824 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33825 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33826 PATH_SEPARATOR=';'
33827 }
33828 fi
33829
33830
33831 # IFS
33832 # We need space, tab and new line, in precisely that order. Quoting is
33833 # there to prevent editors from complaining about space-tab.
33834 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33835 # splitting by setting IFS to empty value.)
33836 IFS=" "" $as_nl"
33837
33838 # Find who we are. Look in the path if we contain no directory separator.
33839 case $0 in #((
33840 *[\\/]* ) as_myself=$0 ;;
33841 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33842 for as_dir in $PATH
33843 do
33844 IFS=$as_save_IFS
33845 test -z "$as_dir" && as_dir=.
33846 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33847 done
33848 IFS=$as_save_IFS
33849
33850 ;;
33851 esac
33852 # We did not find ourselves, most probably we were run as `sh COMMAND'
33853 # in which case we are not to be found in the path.
33854 if test "x$as_myself" = x; then
33855 as_myself=$0
33856 fi
33857 if test ! -f "$as_myself"; then
33858 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34014 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34015 ECHO_T=' ';;
34016 esac;;
34017 *)
34018 ECHO_N='-n';;
34019 esac
34020
34021 rm -f conf$$ conf$$.exe conf$$.file
34022 if test -d conf$$.dir; then
34023 rm -f conf$$.dir/conf$$.file
34024 else
34025 rm -f conf$$.dir
34026 mkdir conf$$.dir 2>/dev/null
34027 fi
34028 if (echo >conf$$.file) 2>/dev/null; then
34029 if ln -s conf$$.file conf$$ 2>/dev/null; then
34030 as_ln_s='ln -s'
34031 # ... but there are two gotchas:
34032 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34033 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34034 # In both cases, we have to default to `cp -p'.
34035 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34036 as_ln_s='cp -p'
34037 elif ln conf$$.file conf$$ 2>/dev/null; then
34038 as_ln_s=ln
34039 else
34040 as_ln_s='cp -p'
34041 fi
34042 else
34043 as_ln_s='cp -p'
34044 fi
34045 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34046 rmdir conf$$.dir 2>/dev/null
34047
34048
34049 # as_fn_mkdir_p
34050 # -------------
34051 # Create "$as_dir" as a directory, including parents if necessary.
34052 as_fn_mkdir_p ()
34053 {
34054
34055 case $as_dir in #(
34056 -*) as_dir=./$as_dir;;
34057 esac
34058 test -d "$as_dir" || eval $as_mkdir_p || {
34059 as_dirs=
34060 while :; do
34061 case $as_dir in #(
34062 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34063 *) as_qdir=$as_dir;;
34083 }
34084 /^X\(\/\).*/{
34085 s//\1/
34086 q
34087 }
34088 s/.*/./; q'`
34089 test -d "$as_dir" && break
34090 done
34091 test -z "$as_dirs" || eval "mkdir $as_dirs"
34092 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34093
34094
34095 } # as_fn_mkdir_p
34096 if mkdir -p . 2>/dev/null; then
34097 as_mkdir_p='mkdir -p "$as_dir"'
34098 else
34099 test -d ./-p && rmdir ./-p
34100 as_mkdir_p=false
34101 fi
34102
34103 if test -x / >/dev/null 2>&1; then
34104 as_test_x='test -x'
34105 else
34106 if ls -dL / >/dev/null 2>&1; then
34107 as_ls_L_option=L
34108 else
34109 as_ls_L_option=
34110 fi
34111 as_test_x='
34112 eval sh -c '\''
34113 if test -d "$1"; then
34114 test -d "$1/.";
34115 else
34116 case $1 in #(
34117 -*)set "./$1";;
34118 esac;
34119 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
34120 ???[sx]*):;;*)false;;esac;fi
34121 '\'' sh
34122 '
34123 fi
34124 as_executable_p=$as_test_x
34125
34126 # Sed expression to map a string onto a valid CPP name.
34127 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34128
34129 # Sed expression to map a string onto a valid variable name.
34130 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34131
34132
34133 exec 6>&1
34134 ## ----------------------------------- ##
34135 ## Main body of $CONFIG_STATUS script. ##
34136 ## ----------------------------------- ##
34137 _ASEOF
34138 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34139
34140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34141 # Save the log message, to keep $0 and so on meaningful, and to
34142 # report actual input values of CONFIG_FILES etc. instead of their
34143 # values after options handling.
34144 ac_log="
34145 This file was extended by OpenJDK $as_me jdk8, which was
34146 generated by GNU Autoconf 2.67. Invocation command line was
34147
34148 CONFIG_FILES = $CONFIG_FILES
34149 CONFIG_HEADERS = $CONFIG_HEADERS
34150 CONFIG_LINKS = $CONFIG_LINKS
34151 CONFIG_COMMANDS = $CONFIG_COMMANDS
34152 $ $0 $@
34153
34154 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34155 "
34156
34157 _ACEOF
34158
34159 case $ac_config_files in *"
34160 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34161 esac
34162
34163 case $ac_config_headers in *"
34164 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34165 esac
34166
34189 --recheck update $as_me by reconfiguring in the same conditions
34190 --file=FILE[:TEMPLATE]
34191 instantiate the configuration file FILE
34192 --header=FILE[:TEMPLATE]
34193 instantiate the configuration header FILE
34194
34195 Configuration files:
34196 $config_files
34197
34198 Configuration headers:
34199 $config_headers
34200
34201 Report bugs to <build-dev@openjdk.java.net>.
34202 OpenJDK home page: <http://openjdk.java.net>."
34203
34204 _ACEOF
34205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34206 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34207 ac_cs_version="\\
34208 OpenJDK config.status jdk8
34209 configured by $0, generated by GNU Autoconf 2.67,
34210 with options \\"\$ac_cs_config\\"
34211
34212 Copyright (C) 2010 Free Software Foundation, Inc.
34213 This config.status script is free software; the Free Software Foundation
34214 gives unlimited permission to copy, distribute and modify it."
34215
34216 ac_pwd='$ac_pwd'
34217 srcdir='$srcdir'
34218 AWK='$AWK'
34219 test -n "\$AWK" || AWK=awk
34220 _ACEOF
34221
34222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34223 # The default lists apply if the user does not specify any file.
34224 ac_need_defaults=:
34225 while test $# != 0
34226 do
34227 case $1 in
34228 --*=?*)
34229 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34230 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34231 ac_shift=:
34232 ;;
34281 -*) as_fn_error $? "unrecognized option: \`$1'
34282 Try \`$0 --help' for more information." ;;
34283
34284 *) as_fn_append ac_config_targets " $1"
34285 ac_need_defaults=false ;;
34286
34287 esac
34288 shift
34289 done
34290
34291 ac_configure_extra_args=
34292
34293 if $ac_cs_silent; then
34294 exec 6>/dev/null
34295 ac_configure_extra_args="$ac_configure_extra_args --silent"
34296 fi
34297
34298 _ACEOF
34299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34300 if \$ac_cs_recheck; then
34301 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34302 shift
34303 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34304 CONFIG_SHELL='$SHELL'
34305 export CONFIG_SHELL
34306 exec "\$@"
34307 fi
34308
34309 _ACEOF
34310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34311 exec 5>>config.log
34312 {
34313 echo
34314 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34315 ## Running $as_me. ##
34316 _ASBOX
34317 $as_echo "$ac_log"
34318 } >&5
34319
34320 _ACEOF
34321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34340 done
34341
34342
34343 # If the user did not use the arguments to specify the items to instantiate,
34344 # then the envvar interface is used. Set only those that are not.
34345 # We use the long form for the default assignment because of an extremely
34346 # bizarre bug on SunOS 4.1.3.
34347 if $ac_need_defaults; then
34348 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34349 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34350 fi
34351
34352 # Have a temporary directory for convenience. Make it in the build tree
34353 # simply because there is no reason against having it here, and in addition,
34354 # creating and moving files from /tmp can sometimes cause problems.
34355 # Hook for its removal unless debugging.
34356 # Note that there is a small window in which the directory will not be cleaned:
34357 # after its creation but before its name has been assigned to `$tmp'.
34358 $debug ||
34359 {
34360 tmp=
34361 trap 'exit_status=$?
34362 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34363 ' 0
34364 trap 'as_fn_exit 1' 1 2 13 15
34365 }
34366 # Create a (secure) tmp directory for tmp files.
34367
34368 {
34369 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34370 test -n "$tmp" && test -d "$tmp"
34371 } ||
34372 {
34373 tmp=./conf$$-$RANDOM
34374 (umask 077 && mkdir "$tmp")
34375 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34376
34377 # Set up the scripts for CONFIG_FILES section.
34378 # No need to generate them if there are no CONFIG_FILES.
34379 # This happens for instance with `./config.status config.h'.
34380 if test -n "$CONFIG_FILES"; then
34381
34382
34383 ac_cr=`echo X | tr X '\015'`
34384 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34385 # But we know of no other shell where ac_cr would be empty at this
34386 # point, so we can use a bashism as a fallback.
34387 if test "x$ac_cr" = x; then
34388 eval ac_cr=\$\'\\r\'
34389 fi
34390 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34391 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34392 ac_cs_awk_cr='\\r'
34393 else
34394 ac_cs_awk_cr=$ac_cr
34395 fi
34396
34397 echo 'BEGIN {' >"$tmp/subs1.awk" &&
34398 _ACEOF
34399
34400
34401 {
34402 echo "cat >conf$$subs.awk <<_ACEOF" &&
34403 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34404 echo "_ACEOF"
34405 } >conf$$subs.sh ||
34406 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34407 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34408 ac_delim='%!_!# '
34409 for ac_last_try in false false false false false :; do
34410 . ./conf$$subs.sh ||
34411 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34412
34413 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34414 if test $ac_delim_n = $ac_delim_num; then
34415 break
34416 elif $ac_last_try; then
34417 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34418 else
34419 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34420 fi
34421 done
34422 rm -f conf$$subs.sh
34423
34424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34425 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34426 _ACEOF
34427 sed -n '
34428 h
34429 s/^/S["/; s/!.*/"]=/
34430 p
34431 g
34432 s/^[^!]*!//
34433 :repl
34434 t repl
34435 s/'"$ac_delim"'$//
34436 t delim
34437 :nl
34438 h
34439 s/\(.\{148\}\)..*/\1/
34440 t more1
34441 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34442 p
34443 n
34444 b repl
34445 :more1
34453 s/\(.\{148\}\)..*/\1/
34454 t more2
34455 s/["\\]/\\&/g; s/^/"/; s/$/"/
34456 p
34457 b
34458 :more2
34459 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34460 p
34461 g
34462 s/.\{148\}//
34463 t delim
34464 ' <conf$$subs.awk | sed '
34465 /^[^""]/{
34466 N
34467 s/\n//
34468 }
34469 ' >>$CONFIG_STATUS || ac_write_fail=1
34470 rm -f conf$$subs.awk
34471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34472 _ACAWK
34473 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34474 for (key in S) S_is_set[key] = 1
34475 FS = ""
34476
34477 }
34478 {
34479 line = $ 0
34480 nfields = split(line, field, "@")
34481 substed = 0
34482 len = length(field[1])
34483 for (i = 2; i < nfields; i++) {
34484 key = field[i]
34485 keylen = length(key)
34486 if (S_is_set[key]) {
34487 value = S[key]
34488 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34489 len += length(value) + length(field[++i])
34490 substed = 1
34491 } else
34492 len += 1 + keylen
34493 }
34494
34495 print line
34496 }
34497
34498 _ACAWK
34499 _ACEOF
34500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34501 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34502 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34503 else
34504 cat
34505 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34506 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34507 _ACEOF
34508
34509 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34510 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34511 # trailing colons and then remove the whole line if VPATH becomes empty
34512 # (actually we leave an empty line to preserve line numbers).
34513 if test "x$srcdir" = x.; then
34514 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34515 h
34516 s///
34517 s/^/:/
34518 s/[ ]*$/:/
34519 s/:\$(srcdir):/:/g
34520 s/:\${srcdir}:/:/g
34521 s/:@srcdir@:/:/g
34522 s/^:*//
34523 s/:*$//
34524 x
34525 s/\(=[ ]*\).*/\1/
34526 G
34527 s/\n//
34528 s/^[^=]*=[ ]*$//
34529 }'
34530 fi
34531
34532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34533 fi # test -n "$CONFIG_FILES"
34534
34535 # Set up the scripts for CONFIG_HEADERS section.
34536 # No need to generate them if there are no CONFIG_HEADERS.
34537 # This happens for instance with `./config.status Makefile'.
34538 if test -n "$CONFIG_HEADERS"; then
34539 cat >"$tmp/defines.awk" <<\_ACAWK ||
34540 BEGIN {
34541 _ACEOF
34542
34543 # Transform confdefs.h into an awk script `defines.awk', embedded as
34544 # here-document in config.status, that substitutes the proper values into
34545 # config.h.in to produce config.h.
34546
34547 # Create a delimiter string that does not exist in confdefs.h, to ease
34548 # handling of long lines.
34549 ac_delim='%!_!# '
34550 for ac_last_try in false false :; do
34551 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34552 if test -z "$ac_t"; then
34553 break
34554 elif $ac_last_try; then
34555 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34556 else
34557 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34558 fi
34559 done
34560
34561 # For the awk script, D is an array of macro values keyed by name,
34562 # likewise P contains macro parameters if any. Preserve backslash
34563 # newline sequences.
34564
34565 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34566 sed -n '
34567 s/.\{148\}/&'"$ac_delim"'/g
34568 t rset
34569 :rset
34570 s/^[ ]*#[ ]*define[ ][ ]*/ /
34571 t def
34572 d
34652 :[FHL]*:*);;
34653 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34654 :[FH]-) ac_tag=-:-;;
34655 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34656 esac
34657 ac_save_IFS=$IFS
34658 IFS=:
34659 set x $ac_tag
34660 IFS=$ac_save_IFS
34661 shift
34662 ac_file=$1
34663 shift
34664
34665 case $ac_mode in
34666 :L) ac_source=$1;;
34667 :[FH])
34668 ac_file_inputs=
34669 for ac_f
34670 do
34671 case $ac_f in
34672 -) ac_f="$tmp/stdin";;
34673 *) # Look for the file first in the build tree, then in the source tree
34674 # (if the path is not absolute). The absolute path cannot be DOS-style,
34675 # because $ac_f cannot contain `:'.
34676 test -f "$ac_f" ||
34677 case $ac_f in
34678 [\\/$]*) false;;
34679 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34680 esac ||
34681 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34682 esac
34683 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34684 as_fn_append ac_file_inputs " '$ac_f'"
34685 done
34686
34687 # Let's still pretend it is `configure' which instantiates (i.e., don't
34688 # use $as_me), people would be surprised to read:
34689 # /* config.h. Generated by config.status. */
34690 configure_input='Generated from '`
34691 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34692 `' by configure.'
34693 if test x"$ac_file" != x-; then
34694 configure_input="$ac_file. $configure_input"
34695 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34696 $as_echo "$as_me: creating $ac_file" >&6;}
34697 fi
34698 # Neutralize special characters interpreted by sed in replacement strings.
34699 case $configure_input in #(
34700 *\&* | *\|* | *\\* )
34701 ac_sed_conf_input=`$as_echo "$configure_input" |
34702 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34703 *) ac_sed_conf_input=$configure_input;;
34704 esac
34705
34706 case $ac_tag in
34707 *:-:* | *:-) cat >"$tmp/stdin" \
34708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34709 esac
34710 ;;
34711 esac
34712
34713 ac_dir=`$as_dirname -- "$ac_file" ||
34714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34715 X"$ac_file" : 'X\(//\)[^/]' \| \
34716 X"$ac_file" : 'X\(//\)$' \| \
34717 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34718 $as_echo X"$ac_file" |
34719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34720 s//\1/
34721 q
34722 }
34723 /^X\(\/\/\)[^/].*/{
34724 s//\1/
34725 q
34726 }
34727 /^X\(\/\/\)$/{
34813 # FIXME: do we really want to maintain this feature?
34814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34815 ac_sed_extra="$ac_vpsub
34816 $extrasub
34817 _ACEOF
34818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34819 :t
34820 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34821 s|@configure_input@|$ac_sed_conf_input|;t t
34822 s&@top_builddir@&$ac_top_builddir_sub&;t t
34823 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34824 s&@srcdir@&$ac_srcdir&;t t
34825 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34826 s&@top_srcdir@&$ac_top_srcdir&;t t
34827 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34828 s&@builddir@&$ac_builddir&;t t
34829 s&@abs_builddir@&$ac_abs_builddir&;t t
34830 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34831 $ac_datarootdir_hack
34832 "
34833 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34834 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34835
34836 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34837 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34838 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34840 which seems to be undefined. Please make sure it is defined" >&5
34841 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34842 which seems to be undefined. Please make sure it is defined" >&2;}
34843
34844 rm -f "$tmp/stdin"
34845 case $ac_file in
34846 -) cat "$tmp/out" && rm -f "$tmp/out";;
34847 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34848 esac \
34849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34850 ;;
34851 :H)
34852 #
34853 # CONFIG_HEADER
34854 #
34855 if test x"$ac_file" != x-; then
34856 {
34857 $as_echo "/* $configure_input */" \
34858 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34859 } >"$tmp/config.h" \
34860 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34861 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34862 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34863 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34864 else
34865 rm -f "$ac_file"
34866 mv "$tmp/config.h" "$ac_file" \
34867 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34868 fi
34869 else
34870 $as_echo "/* $configure_input */" \
34871 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34872 || as_fn_error $? "could not create -" "$LINENO" 5
34873 fi
34874 ;;
34875
34876
34877 esac
34878
34879 done # for ac_tag
34880
34881
34882 as_fn_exit 0
34883 _ACEOF
34884 ac_clean_files=$ac_clean_files_save
34885
34886 test $ac_write_fail = 0 ||
34887 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34888
34889
34890 # configure is writing to config.log, and then calls config.status.
34891 # config.status does its own redirection, appending to config.log.
34972 if test "x$CCACHE_HELP_MSG" != x && test "x$HIDE_PERFORMANCE_HINTS" = "xno"; then
34973 printf "Build performance tip: ccache gives a tremendous speedup for C++ recompilations.\n"
34974 printf "$CCACHE_HELP_MSG\n"
34975
34976 # Print a helpful message on how to acquire the necessary build dependency.
34977 # ccache is the help tag: freetyp2, cups, pulse, alsa etc
34978 MISSING_DEPENDENCY=ccache
34979 PKGHANDLER_COMMAND=
34980
34981 case $PKGHANDLER in
34982 apt-get)
34983 apt_help $MISSING_DEPENDENCY ;;
34984 yum)
34985 yum_help $MISSING_DEPENDENCY ;;
34986 port)
34987 port_help $MISSING_DEPENDENCY ;;
34988 pkgutil)
34989 pkgutil_help $MISSING_DEPENDENCY ;;
34990 pkgadd)
34991 pkgadd_help $MISSING_DEPENDENCY ;;
34992 * )
34993 break ;;
34994 esac
34995
34996 if test "x$PKGHANDLER_COMMAND" != x; then
34997 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
34998 fi
34999
35000 printf "$HELP_MSG\n"
35001 printf "\n"
35002 fi
35003
35004 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then
35005 printf "NOTE: You have requested to build more than one version of the JVM, which\n"
35006 printf "will result in longer build times.\n"
35007 printf "\n"
35008 fi
35009
35010 if test "x$FOUND_ALT_VARIABLES" != "x"; then
35011 printf "WARNING: You have old-style ALT_ environment variables set.\n"
35012 printf "These are not respected, and will be ignored. It is recommended\n"
35013 printf "that you clean your environment. The following variables are set:\n"
|
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenJDK jdk8.
4 #
5 # Report bugs to <build-dev@openjdk.java.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: build-dev@openjdk.java.net about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
734 MT
735 WINLD
736 HOTSPOT_LD
737 HOTSPOT_CXX
738 ARFLAGS
739 AR
740 LDEXECXX
741 LDCXX
742 LDEXE
743 LD
744 ac_ct_OBJC
745 OBJCFLAGS
746 OBJC
747 ac_ct_CXX
748 CXXFLAGS
749 CXX
750 ac_ct_PROPER_COMPILER_CXX
751 PROPER_COMPILER_CXX
752 POTENTIAL_CXX
753 TOOLS_DIR_CXX
754 COMPILER_TARGET_BITS_FLAG
755 OBJEXT
756 EXEEXT
757 ac_ct_CC
758 CPPFLAGS
759 LDFLAGS
760 CFLAGS
761 CC
762 ac_ct_PROPER_COMPILER_CC
763 PROPER_COMPILER_CC
764 POTENTIAL_CC
765 TOOLS_DIR_CC
766 BUILD_LD
767 BUILD_CXX
768 BUILD_CC
769 MSVCR_DLL
770 DXSDK_INCLUDE_PATH
771 DXSDK_LIB_PATH
772 VS_PATH
773 VS_LIB
774 VS_INCLUDE
1477
1478 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1479 Try \`$0 --help' for more information"
1480 ;;
1481
1482 *=*)
1483 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1484 # Reject names that are not valid shell variable names.
1485 case $ac_envvar in #(
1486 '' | [0-9]* | *[!_$as_cr_alnum]* )
1487 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1488 esac
1489 eval $ac_envvar=\$ac_optarg
1490 export $ac_envvar ;;
1491
1492 *)
1493 # FIXME: should be removed in autoconf 3.0.
1494 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1495 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1496 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1497 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1498 ;;
1499
1500 esac
1501 done
1502
1503 if test -n "$ac_prev"; then
1504 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1505 as_fn_error $? "missing argument to $ac_option"
1506 fi
1507
1508 if test -n "$ac_unrecognized_opts"; then
1509 case $enable_option_checking in
1510 no) ;;
1511 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1512 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1513 esac
1514 fi
1515
1516 # Check all directory arguments for consistency.
1517 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1528 esac
1529 # Be sure to have absolute directory names.
1530 case $ac_val in
1531 [\\/$]* | ?:[\\/]* ) continue;;
1532 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1533 esac
1534 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1535 done
1536
1537 # There might be people who depend on the old broken behavior: `$host'
1538 # used to hold the argument of --host etc.
1539 # FIXME: To remove some day.
1540 build=$build_alias
1541 host=$host_alias
1542 target=$target_alias
1543
1544 # FIXME: To remove some day.
1545 if test "x$host_alias" != x; then
1546 if test "x$build_alias" = x; then
1547 cross_compiling=maybe
1548 elif test "x$build_alias" != "x$host_alias"; then
1549 cross_compiling=yes
1550 fi
1551 fi
1552
1553 ac_tool_prefix=
1554 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1555
1556 test "$silent" = yes && exec 6>/dev/null
1557
1558
1559 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1560 ac_ls_di=`ls -di .` &&
1561 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1562 as_fn_error $? "working directory cannot be determined"
1563 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1564 as_fn_error $? "pwd does not report name of working directory"
1565
1566
1567 # Find the source files, if location was not specified.
1913
1914 cd "$ac_dir" || { ac_status=$?; continue; }
1915 # Check for guested configure.
1916 if test -f "$ac_srcdir/configure.gnu"; then
1917 echo &&
1918 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1919 elif test -f "$ac_srcdir/configure"; then
1920 echo &&
1921 $SHELL "$ac_srcdir/configure" --help=recursive
1922 else
1923 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1924 fi || ac_status=$?
1925 cd "$ac_pwd" || { ac_status=$?; break; }
1926 done
1927 fi
1928
1929 test -n "$ac_init_help" && exit $ac_status
1930 if $ac_init_version; then
1931 cat <<\_ACEOF
1932 OpenJDK configure jdk8
1933 generated by GNU Autoconf 2.69
1934
1935 Copyright (C) 2012 Free Software Foundation, Inc.
1936 This configure script is free software; the Free Software Foundation
1937 gives unlimited permission to copy, distribute and modify it.
1938 _ACEOF
1939 exit
1940 fi
1941
1942 ## ------------------------ ##
1943 ## Autoconf initialization. ##
1944 ## ------------------------ ##
1945
1946 # ac_fn_c_try_compile LINENO
1947 # --------------------------
1948 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1949 ac_fn_c_try_compile ()
1950 {
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 rm -f conftest.$ac_objext
1953 if { { ac_try="$ac_compile"
1954 case "(($ac_try" in
1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 $as_echo "$ac_try_echo"; } >&5
1960 (eval "$ac_compile") 2>conftest.err
1961 ac_status=$?
1962 if test -s conftest.err; then
1963 grep -v '^ *+' conftest.err >conftest.er1
1964 cat conftest.er1 >&5
1965 mv -f conftest.er1 conftest.err
1966 fi
1967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968 test $ac_status = 0; } && {
1969 test -z "$ac_c_werror_flag" ||
1970 test ! -s conftest.err
1971 } && test -s conftest.$ac_objext; then :
1972 ac_retval=0
1973 else
1974 $as_echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1976
1977 ac_retval=1
1978 fi
1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980 as_fn_set_status $ac_retval
1981
1982 } # ac_fn_c_try_compile
1983
1984 # ac_fn_cxx_try_compile LINENO
1985 # ----------------------------
1986 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1987 ac_fn_cxx_try_compile ()
1988 {
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 rm -f conftest.$ac_objext
1991 if { { ac_try="$ac_compile"
1992 case "(($ac_try" in
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_compile") 2>conftest.err
1999 ac_status=$?
2000 if test -s conftest.err; then
2001 grep -v '^ *+' conftest.err >conftest.er1
2002 cat conftest.er1 >&5
2003 mv -f conftest.er1 conftest.err
2004 fi
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } && {
2007 test -z "$ac_cxx_werror_flag" ||
2008 test ! -s conftest.err
2009 } && test -s conftest.$ac_objext; then :
2010 ac_retval=0
2011 else
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014
2015 ac_retval=1
2016 fi
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 as_fn_set_status $ac_retval
2019
2020 } # ac_fn_cxx_try_compile
2021
2022 # ac_fn_objc_try_compile LINENO
2023 # -----------------------------
2024 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2025 ac_fn_objc_try_compile ()
2026 {
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 rm -f conftest.$ac_objext
2029 if { { ac_try="$ac_compile"
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_compile") 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; } && {
2045 test -z "$ac_objc_werror_flag" ||
2046 test ! -s conftest.err
2047 } && test -s conftest.$ac_objext; 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; ${as_lineno_stack:+:} unset as_lineno
2056 as_fn_set_status $ac_retval
2057
2058 } # ac_fn_objc_try_compile
2059
2060 # ac_fn_c_try_cpp LINENO
2061 # ----------------------
2062 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2063 ac_fn_c_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_c_preproc_warn_flag$ac_c_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; ${as_lineno_stack:+:} unset as_lineno
2093 as_fn_set_status $ac_retval
2094
2095 } # ac_fn_c_try_cpp
2096
2097 # ac_fn_cxx_try_cpp LINENO
2098 # ------------------------
2099 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2100 ac_fn_cxx_try_cpp ()
2101 {
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 if { { ac_try="$ac_cpp conftest.$ac_ext"
2104 case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107 esac
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2111 ac_status=$?
2112 if test -s conftest.err; then
2113 grep -v '^ *+' conftest.err >conftest.er1
2114 cat conftest.er1 >&5
2115 mv -f conftest.er1 conftest.err
2116 fi
2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118 test $ac_status = 0; } > conftest.i && {
2119 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2120 test ! -s conftest.err
2121 }; then :
2122 ac_retval=0
2123 else
2124 $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2126
2127 ac_retval=1
2128 fi
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 as_fn_set_status $ac_retval
2131
2132 } # ac_fn_cxx_try_cpp
2133
2134 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2135 # ---------------------------------------------------------
2136 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2137 # the include files in INCLUDES and setting the cache variable VAR
2138 # accordingly.
2139 ac_fn_cxx_check_header_mongrel ()
2140 {
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 if eval \${$3+:} false; then :
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144 $as_echo_n "checking for $2... " >&6; }
2145 if eval \${$3+:} false; then :
2146 $as_echo_n "(cached) " >&6
2147 fi
2148 eval ac_res=\$$3
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 $as_echo "$ac_res" >&6; }
2151 else
2152 # Is the header compilable?
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2154 $as_echo_n "checking $2 usability... " >&6; }
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2157 $4
2158 #include <$2>
2159 _ACEOF
2160 if ac_fn_cxx_try_compile "$LINENO"; then :
2161 ac_header_compiler=yes
2162 else
2163 ac_header_compiler=no
2164 fi
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 ;;
2193 no:yes:* )
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2195 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2197 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2199 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2201 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2203 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2204 ( $as_echo "## ----------------------------------------- ##
2205 ## Report this to build-dev@openjdk.java.net ##
2206 ## ----------------------------------------- ##"
2207 ) | sed "s/^/$as_me: WARNING: /" >&2
2208 ;;
2209 esac
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2211 $as_echo_n "checking for $2... " >&6; }
2212 if eval \${$3+:} false; then :
2213 $as_echo_n "(cached) " >&6
2214 else
2215 eval "$3=\$ac_header_compiler"
2216 fi
2217 eval ac_res=\$$3
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219 $as_echo "$ac_res" >&6; }
2220 fi
2221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2222
2223 } # ac_fn_cxx_check_header_mongrel
2224
2225 # ac_fn_cxx_try_run LINENO
2226 # ------------------------
2227 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2228 # that executables *can* be run.
2229 ac_fn_cxx_try_run ()
2230 {
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 if { { ac_try="$ac_link"
2233 case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2236 esac
2237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2238 $as_echo "$ac_try_echo"; } >&5
2239 (eval "$ac_link") 2>&5
2240 ac_status=$?
2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2243 { { case "(($ac_try" in
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2246 esac
2247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2248 $as_echo "$ac_try_echo"; } >&5
2249 (eval "$ac_try") 2>&5
2250 ac_status=$?
2251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2252 test $ac_status = 0; }; }; then :
2253 ac_retval=0
2254 else
2255 $as_echo "$as_me: program exited with status $ac_status" >&5
2256 $as_echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.$ac_ext >&5
2258
2259 ac_retval=$ac_status
2260 fi
2261 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 as_fn_set_status $ac_retval
2264
2265 } # ac_fn_cxx_try_run
2266
2267 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2268 # ---------------------------------------------------------
2269 # Tests whether HEADER exists and can be compiled using the include files in
2270 # INCLUDES, setting the cache variable VAR accordingly.
2271 ac_fn_cxx_check_header_compile ()
2272 {
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2275 $as_echo_n "checking for $2... " >&6; }
2276 if eval \${$3+:} false; then :
2277 $as_echo_n "(cached) " >&6
2278 else
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2281 $4
2282 #include <$2>
2283 _ACEOF
2284 if ac_fn_cxx_try_compile "$LINENO"; then :
2285 eval "$3=yes"
2286 else
2287 eval "$3=no"
2288 fi
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 fi
2291 eval ac_res=\$$3
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295
2296 } # ac_fn_cxx_check_header_compile
2297
2298 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2299 # ----------------------------------------------
2300 # Tries to find the compile-time value of EXPR in a program that includes
2301 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2302 # computed
2303 ac_fn_cxx_compute_int ()
2304 {
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 if test "$cross_compiling" = yes; then
2307 # Depending upon the size, compute the lo and hi bounds.
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2310 $4
2311 int
2312 main ()
2313 {
2314 static int test_array [1 - 2 * !(($2) >= 0)];
2315 test_array [0] = 0;
2316 return test_array [0];
2317
2318 ;
2319 return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_cxx_try_compile "$LINENO"; then :
2323 ac_lo=0 ac_mid=0
2324 while :; do
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2327 $4
2328 int
2329 main ()
2330 {
2331 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2332 test_array [0] = 0;
2333 return test_array [0];
2334
2335 ;
2336 return 0;
2337 }
2338 _ACEOF
2339 if ac_fn_cxx_try_compile "$LINENO"; then :
2340 ac_hi=$ac_mid; break
2341 else
2342 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2343 if test $ac_lo -le $ac_mid; then
2344 ac_lo= ac_hi=
2345 break
2346 fi
2347 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2348 fi
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 done
2351 else
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2354 $4
2355 int
2356 main ()
2357 {
2358 static int test_array [1 - 2 * !(($2) < 0)];
2359 test_array [0] = 0;
2360 return test_array [0];
2361
2362 ;
2363 return 0;
2364 }
2365 _ACEOF
2366 if ac_fn_cxx_try_compile "$LINENO"; then :
2367 ac_hi=-1 ac_mid=-1
2368 while :; do
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2371 $4
2372 int
2373 main ()
2374 {
2375 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2376 test_array [0] = 0;
2377 return test_array [0];
2378
2379 ;
2380 return 0;
2381 }
2382 _ACEOF
2383 if ac_fn_cxx_try_compile "$LINENO"; then :
2384 ac_lo=$ac_mid; break
2385 else
2386 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2387 if test $ac_mid -le $ac_hi; then
2388 ac_lo= ac_hi=
2389 break
2390 fi
2391 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2392 fi
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 done
2395 else
2396 ac_lo= ac_hi=
2397 fi
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 fi
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 # Binary search between lo and hi bounds.
2402 while test "x$ac_lo" != "x$ac_hi"; do
2403 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2406 $4
2407 int
2408 main ()
2409 {
2410 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2411 test_array [0] = 0;
2412 return test_array [0];
2413
2414 ;
2415 return 0;
2416 }
2417 _ACEOF
2418 if ac_fn_cxx_try_compile "$LINENO"; then :
2419 ac_hi=$ac_mid
2420 else
2421 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2422 fi
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 done
2425 case $ac_lo in #((
2426 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2427 '') ac_retval=1 ;;
2428 esac
2429 else
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2432 $4
2456 fprintf (f, "%lu", i);
2457 }
2458 /* Do not output a trailing newline, as this causes \r\n confusion
2459 on some platforms. */
2460 return ferror (f) || fclose (f) != 0;
2461
2462 ;
2463 return 0;
2464 }
2465 _ACEOF
2466 if ac_fn_cxx_try_run "$LINENO"; then :
2467 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2468 else
2469 ac_retval=1
2470 fi
2471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2472 conftest.$ac_objext conftest.beam conftest.$ac_ext
2473 rm -f conftest.val
2474
2475 fi
2476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2477 as_fn_set_status $ac_retval
2478
2479 } # ac_fn_cxx_compute_int
2480
2481 # ac_fn_cxx_try_link LINENO
2482 # -------------------------
2483 # Try to link conftest.$ac_ext, and return whether this succeeded.
2484 ac_fn_cxx_try_link ()
2485 {
2486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2487 rm -f conftest.$ac_objext conftest$ac_exeext
2488 if { { ac_try="$ac_link"
2489 case "(($ac_try" in
2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491 *) ac_try_echo=$ac_try;;
2492 esac
2493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2494 $as_echo "$ac_try_echo"; } >&5
2495 (eval "$ac_link") 2>conftest.err
2496 ac_status=$?
2497 if test -s conftest.err; then
2498 grep -v '^ *+' conftest.err >conftest.er1
2499 cat conftest.er1 >&5
2500 mv -f conftest.er1 conftest.err
2501 fi
2502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2503 test $ac_status = 0; } && {
2504 test -z "$ac_cxx_werror_flag" ||
2505 test ! -s conftest.err
2506 } && test -s conftest$ac_exeext && {
2507 test "$cross_compiling" = yes ||
2508 test -x conftest$ac_exeext
2509 }; then :
2510 ac_retval=0
2511 else
2512 $as_echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2514
2515 ac_retval=1
2516 fi
2517 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2518 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2519 # interfere with the next link command; also delete a directory that is
2520 # left behind by Apple's compiler. We do this before executing the actions.
2521 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2523 as_fn_set_status $ac_retval
2524
2525 } # ac_fn_cxx_try_link
2526
2527 # ac_fn_cxx_check_func LINENO FUNC VAR
2528 # ------------------------------------
2529 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2530 ac_fn_cxx_check_func ()
2531 {
2532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2534 $as_echo_n "checking for $2... " >&6; }
2535 if eval \${$3+:} false; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2540 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2542 #define $2 innocuous_$2
2543
2544 /* System header to define __stub macros and hopefully few prototypes,
2545 which can conflict with char $2 (); below.
2546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2547 <limits.h> exists even on freestanding compilers. */
2548
2549 #ifdef __STDC__
2550 # include <limits.h>
2551 #else
2552 # include <assert.h>
2553 #endif
2554
2555 #undef $2
2570
2571 int
2572 main ()
2573 {
2574 return $2 ();
2575 ;
2576 return 0;
2577 }
2578 _ACEOF
2579 if ac_fn_cxx_try_link "$LINENO"; then :
2580 eval "$3=yes"
2581 else
2582 eval "$3=no"
2583 fi
2584 rm -f core conftest.err conftest.$ac_objext \
2585 conftest$ac_exeext conftest.$ac_ext
2586 fi
2587 eval ac_res=\$$3
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2589 $as_echo "$ac_res" >&6; }
2590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2591
2592 } # ac_fn_cxx_check_func
2593
2594 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2595 # -------------------------------------------------------
2596 # Tests whether HEADER exists and can be compiled using the include files in
2597 # INCLUDES, setting the cache variable VAR accordingly.
2598 ac_fn_c_check_header_compile ()
2599 {
2600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2602 $as_echo_n "checking for $2... " >&6; }
2603 if eval \${$3+:} false; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2608 $4
2609 #include <$2>
2610 _ACEOF
2611 if ac_fn_c_try_compile "$LINENO"; then :
2612 eval "$3=yes"
2613 else
2614 eval "$3=no"
2615 fi
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 fi
2618 eval ac_res=\$$3
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2620 $as_echo "$ac_res" >&6; }
2621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2622
2623 } # ac_fn_c_check_header_compile
2624 cat >config.log <<_ACEOF
2625 This file contains any messages produced by compilers while
2626 running configure, to aid debugging if configure makes a mistake.
2627
2628 It was created by OpenJDK $as_me jdk8, which was
2629 generated by GNU Autoconf 2.69. Invocation command line was
2630
2631 $ $0 $@
2632
2633 _ACEOF
2634 exec 5>>config.log
2635 {
2636 cat <<_ASUNAME
2637 ## --------- ##
2638 ## Platform. ##
2639 ## --------- ##
2640
2641 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2642 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2643 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2644 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2645 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2646
2647 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2648 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2649
3433 # 2 along with this work; if not, write to the Free Software Foundation,
3434 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3435 #
3436 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3437 # or visit www.oracle.com if you need additional information or have any
3438 # questions.
3439 #
3440
3441
3442
3443
3444
3445 cygwin_help() {
3446 case $1 in
3447 unzip)
3448 PKGHANDLER_COMMAND="cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip" ;;
3449 zip)
3450 PKGHANDLER_COMMAND="cd <location of cygwin setup.exe> && cmd /c setup -q -P zip" ;;
3451 make)
3452 PKGHANDLER_COMMAND="cd <location of cygwin setup.exe> && cmd /c setup -q -P make" ;;
3453 esac
3454 }
3455
3456 apt_help() {
3457 case $1 in
3458 devkit)
3459 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3460 openjdk)
3461 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3462 alsa)
3463 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3464 cups)
3465 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3466 freetype2)
3467 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3468 pulse)
3469 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3470 x11)
3471 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev" ;;
3472 ccache)
3473 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3474 esac
3475 }
3476
3477 yum_help() {
3478 case $1 in
3479 devkit)
3480 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3481 openjdk)
3482 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3483 alsa)
3484 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3485 cups)
3486 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3487 freetype2)
3488 PKGHANDLER_COMMAND="sudo yum install freetype2-devel" ;;
3489 pulse)
3490 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3491 x11)
3492 PKGHANDLER_COMMAND="sudo yum install libXtst-devel" ;;
3493 ccache)
3494 PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3495 esac
3496 }
3497
3498 port_help() {
3499 PKGHANDLER_COMMAND=""
3500 }
3501
3502 pkgutil_help() {
3503 PKGHANDLER_COMMAND=""
3504 }
3505
3506 pkgadd_help() {
3507 PKGHANDLER_COMMAND=""
3508 }
3509
3510
3511
3512 #
3513 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
3514 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3803
3804 # Check if the VS env variables were setup prior to running configure.
3805 # If not, then find vcvarsall.bat and run it automatically, and integrate
3806 # the set env variables into the spec file.
3807
3808
3809
3810 # Setup the DXSDK paths
3811
3812
3813
3814
3815
3816
3817 # This line needs to be here, verbatim, after all includes and the dummy hook
3818 # definitions. It is replaced with custom functionality when building
3819 # custom sources.
3820 #CUSTOM_AUTOCONF_INCLUDE
3821
3822 # Do not change or remove the following line, it is needed for consistency checks:
3823 DATE_WHEN_GENERATED=1378803104
3824
3825 ###############################################################################
3826 #
3827 # Initialization / Boot-strapping
3828 #
3829 # The bootstrapping process needs to solve the "chicken or the egg" problem,
3830 # thus it jumps back and forth, each time gaining something needed later on.
3831 #
3832 ###############################################################################
3833
3834 # Basic initialization that must happen first of all
3835
3836 # Save the original command line. This is passed to us by the wrapper configure script.
3837
3838 DATE_WHEN_CONFIGURED=`LANG=C date`
3839
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
3841 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
3843 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
3844
3845
3846
3847 # Start with tools that do not need have cross compilation support
3848 # and can be expected to be found in the default PATH. These tools are
3849 # used by configure. Nor are these tools expected to be found in the
3850 # devkit from the builddeps server either, since they are
3851 # needed to download the devkit.
3852
3853 # First are all the simple required tools.
3854
3855 for ac_prog in basename
3856 do
3857 # Extract the first word of "$ac_prog", so it can be a program name with args.
3858 set dummy $ac_prog; ac_word=$2
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860 $as_echo_n "checking for $ac_word... " >&6; }
3861 if ${ac_cv_path_BASENAME+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 case $BASENAME in
3865 [\\/]* | ?:[\\/]*)
3866 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
3867 ;;
3868 *)
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3871 do
3872 IFS=$as_save_IFS
3873 test -z "$as_dir" && as_dir=.
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3876 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
3877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 break 2
3879 fi
3880 done
3881 done
3882 IFS=$as_save_IFS
3883
3884 ;;
3885 esac
3886 fi
3887 BASENAME=$ac_cv_path_BASENAME
3888 if test -n "$BASENAME"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
3890 $as_echo "$BASENAME" >&6; }
3891 else
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3894 fi
3895
3900
3901 if test "x$BASENAME" = x; then
3902 if test "xbasename" = x; then
3903 PROG_NAME=basename
3904 else
3905 PROG_NAME=basename
3906 fi
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3908 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3909 as_fn_error $? "Cannot continue" "$LINENO" 5
3910 fi
3911
3912
3913
3914 for ac_prog in bash
3915 do
3916 # Extract the first word of "$ac_prog", so it can be a program name with args.
3917 set dummy $ac_prog; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if ${ac_cv_path_BASH+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 case $BASH in
3924 [\\/]* | ?:[\\/]*)
3925 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3926 ;;
3927 *)
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3935 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 break 2
3938 fi
3939 done
3940 done
3941 IFS=$as_save_IFS
3942
3943 ;;
3944 esac
3945 fi
3946 BASH=$ac_cv_path_BASH
3947 if test -n "$BASH"; then
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
3949 $as_echo "$BASH" >&6; }
3950 else
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3953 fi
3954
3959
3960 if test "x$BASH" = x; then
3961 if test "xbash" = x; then
3962 PROG_NAME=bash
3963 else
3964 PROG_NAME=bash
3965 fi
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3967 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3968 as_fn_error $? "Cannot continue" "$LINENO" 5
3969 fi
3970
3971
3972
3973 for ac_prog in cat
3974 do
3975 # Extract the first word of "$ac_prog", so it can be a program name with args.
3976 set dummy $ac_prog; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if ${ac_cv_path_CAT+:} false; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 case $CAT in
3983 [\\/]* | ?:[\\/]*)
3984 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3985 ;;
3986 *)
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH
3989 do
3990 IFS=$as_save_IFS
3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3994 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 break 2
3997 fi
3998 done
3999 done
4000 IFS=$as_save_IFS
4001
4002 ;;
4003 esac
4004 fi
4005 CAT=$ac_cv_path_CAT
4006 if test -n "$CAT"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4008 $as_echo "$CAT" >&6; }
4009 else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4012 fi
4013
4018
4019 if test "x$CAT" = x; then
4020 if test "xcat" = x; then
4021 PROG_NAME=cat
4022 else
4023 PROG_NAME=cat
4024 fi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4026 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4027 as_fn_error $? "Cannot continue" "$LINENO" 5
4028 fi
4029
4030
4031
4032 for ac_prog in chmod
4033 do
4034 # Extract the first word of "$ac_prog", so it can be a program name with args.
4035 set dummy $ac_prog; ac_word=$2
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037 $as_echo_n "checking for $ac_word... " >&6; }
4038 if ${ac_cv_path_CHMOD+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 case $CHMOD in
4042 [\\/]* | ?:[\\/]*)
4043 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4044 ;;
4045 *)
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4048 do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4053 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 break 2
4056 fi
4057 done
4058 done
4059 IFS=$as_save_IFS
4060
4061 ;;
4062 esac
4063 fi
4064 CHMOD=$ac_cv_path_CHMOD
4065 if test -n "$CHMOD"; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4067 $as_echo "$CHMOD" >&6; }
4068 else
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 $as_echo "no" >&6; }
4071 fi
4072
4077
4078 if test "x$CHMOD" = x; then
4079 if test "xchmod" = x; then
4080 PROG_NAME=chmod
4081 else
4082 PROG_NAME=chmod
4083 fi
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4085 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4086 as_fn_error $? "Cannot continue" "$LINENO" 5
4087 fi
4088
4089
4090
4091 for ac_prog in cmp
4092 do
4093 # Extract the first word of "$ac_prog", so it can be a program name with args.
4094 set dummy $ac_prog; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if ${ac_cv_path_CMP+:} false; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 case $CMP in
4101 [\\/]* | ?:[\\/]*)
4102 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4103 ;;
4104 *)
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116 done
4117 done
4118 IFS=$as_save_IFS
4119
4120 ;;
4121 esac
4122 fi
4123 CMP=$ac_cv_path_CMP
4124 if test -n "$CMP"; then
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4126 $as_echo "$CMP" >&6; }
4127 else
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 $as_echo "no" >&6; }
4130 fi
4131
4136
4137 if test "x$CMP" = x; then
4138 if test "xcmp" = x; then
4139 PROG_NAME=cmp
4140 else
4141 PROG_NAME=cmp
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4144 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4145 as_fn_error $? "Cannot continue" "$LINENO" 5
4146 fi
4147
4148
4149
4150 for ac_prog in comm
4151 do
4152 # Extract the first word of "$ac_prog", so it can be a program name with args.
4153 set dummy $ac_prog; ac_word=$2
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155 $as_echo_n "checking for $ac_word... " >&6; }
4156 if ${ac_cv_path_COMM+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 case $COMM in
4160 [\\/]* | ?:[\\/]*)
4161 ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
4162 ;;
4163 *)
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH
4166 do
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4171 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
4172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 break 2
4174 fi
4175 done
4176 done
4177 IFS=$as_save_IFS
4178
4179 ;;
4180 esac
4181 fi
4182 COMM=$ac_cv_path_COMM
4183 if test -n "$COMM"; then
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
4185 $as_echo "$COMM" >&6; }
4186 else
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 $as_echo "no" >&6; }
4189 fi
4190
4195
4196 if test "x$COMM" = x; then
4197 if test "xcomm" = x; then
4198 PROG_NAME=comm
4199 else
4200 PROG_NAME=comm
4201 fi
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4203 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4204 as_fn_error $? "Cannot continue" "$LINENO" 5
4205 fi
4206
4207
4208
4209 for ac_prog in cp
4210 do
4211 # Extract the first word of "$ac_prog", so it can be a program name with args.
4212 set dummy $ac_prog; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_path_CP+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 case $CP in
4219 [\\/]* | ?:[\\/]*)
4220 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4221 ;;
4222 *)
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4225 do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4230 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4233 fi
4234 done
4235 done
4236 IFS=$as_save_IFS
4237
4238 ;;
4239 esac
4240 fi
4241 CP=$ac_cv_path_CP
4242 if test -n "$CP"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4244 $as_echo "$CP" >&6; }
4245 else
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4248 fi
4249
4254
4255 if test "x$CP" = x; then
4256 if test "xcp" = x; then
4257 PROG_NAME=cp
4258 else
4259 PROG_NAME=cp
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4262 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4263 as_fn_error $? "Cannot continue" "$LINENO" 5
4264 fi
4265
4266
4267
4268 for ac_prog in cpio
4269 do
4270 # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if ${ac_cv_path_CPIO+:} false; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 case $CPIO in
4278 [\\/]* | ?:[\\/]*)
4279 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
4280 ;;
4281 *)
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 break 2
4292 fi
4293 done
4294 done
4295 IFS=$as_save_IFS
4296
4297 ;;
4298 esac
4299 fi
4300 CPIO=$ac_cv_path_CPIO
4301 if test -n "$CPIO"; then
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
4303 $as_echo "$CPIO" >&6; }
4304 else
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4307 fi
4308
4313
4314 if test "x$CPIO" = x; then
4315 if test "xcpio" = x; then
4316 PROG_NAME=cpio
4317 else
4318 PROG_NAME=cpio
4319 fi
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4321 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4322 as_fn_error $? "Cannot continue" "$LINENO" 5
4323 fi
4324
4325
4326
4327 for ac_prog in cut
4328 do
4329 # Extract the first word of "$ac_prog", so it can be a program name with args.
4330 set dummy $ac_prog; ac_word=$2
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332 $as_echo_n "checking for $ac_word... " >&6; }
4333 if ${ac_cv_path_CUT+:} false; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 case $CUT in
4337 [\\/]* | ?:[\\/]*)
4338 ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
4339 ;;
4340 *)
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH
4343 do
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4348 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
4349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 break 2
4351 fi
4352 done
4353 done
4354 IFS=$as_save_IFS
4355
4356 ;;
4357 esac
4358 fi
4359 CUT=$ac_cv_path_CUT
4360 if test -n "$CUT"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
4362 $as_echo "$CUT" >&6; }
4363 else
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4366 fi
4367
4372
4373 if test "x$CUT" = x; then
4374 if test "xcut" = x; then
4375 PROG_NAME=cut
4376 else
4377 PROG_NAME=cut
4378 fi
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4380 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4381 as_fn_error $? "Cannot continue" "$LINENO" 5
4382 fi
4383
4384
4385
4386 for ac_prog in date
4387 do
4388 # Extract the first word of "$ac_prog", so it can be a program name with args.
4389 set dummy $ac_prog; ac_word=$2
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if ${ac_cv_path_DATE+:} false; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 case $DATE in
4396 [\\/]* | ?:[\\/]*)
4397 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4398 ;;
4399 *)
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4402 do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4410 fi
4411 done
4412 done
4413 IFS=$as_save_IFS
4414
4415 ;;
4416 esac
4417 fi
4418 DATE=$ac_cv_path_DATE
4419 if test -n "$DATE"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
4421 $as_echo "$DATE" >&6; }
4422 else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4425 fi
4426
4431
4432 if test "x$DATE" = x; then
4433 if test "xdate" = x; then
4434 PROG_NAME=date
4435 else
4436 PROG_NAME=date
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4439 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4440 as_fn_error $? "Cannot continue" "$LINENO" 5
4441 fi
4442
4443
4444
4445 for ac_prog in gdiff diff
4446 do
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set dummy $ac_prog; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_path_DIFF+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 case $DIFF in
4455 [\\/]* | ?:[\\/]*)
4456 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
4457 ;;
4458 *)
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4461 do
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4466 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 break 2
4469 fi
4470 done
4471 done
4472 IFS=$as_save_IFS
4473
4474 ;;
4475 esac
4476 fi
4477 DIFF=$ac_cv_path_DIFF
4478 if test -n "$DIFF"; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
4480 $as_echo "$DIFF" >&6; }
4481 else
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4484 fi
4485
4490
4491 if test "x$DIFF" = x; then
4492 if test "xgdiff diff" = x; then
4493 PROG_NAME=diff
4494 else
4495 PROG_NAME=gdiff diff
4496 fi
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4498 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4499 as_fn_error $? "Cannot continue" "$LINENO" 5
4500 fi
4501
4502
4503
4504 for ac_prog in dirname
4505 do
4506 # Extract the first word of "$ac_prog", so it can be a program name with args.
4507 set dummy $ac_prog; ac_word=$2
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 $as_echo_n "checking for $ac_word... " >&6; }
4510 if ${ac_cv_path_DIRNAME+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 case $DIRNAME in
4514 [\\/]* | ?:[\\/]*)
4515 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4516 ;;
4517 *)
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4520 do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4528 fi
4529 done
4530 done
4531 IFS=$as_save_IFS
4532
4533 ;;
4534 esac
4535 fi
4536 DIRNAME=$ac_cv_path_DIRNAME
4537 if test -n "$DIRNAME"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
4539 $as_echo "$DIRNAME" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543 fi
4544
4549
4550 if test "x$DIRNAME" = x; then
4551 if test "xdirname" = x; then
4552 PROG_NAME=dirname
4553 else
4554 PROG_NAME=dirname
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4557 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4558 as_fn_error $? "Cannot continue" "$LINENO" 5
4559 fi
4560
4561
4562
4563 for ac_prog in echo
4564 do
4565 # Extract the first word of "$ac_prog", so it can be a program name with args.
4566 set dummy $ac_prog; ac_word=$2
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568 $as_echo_n "checking for $ac_word... " >&6; }
4569 if ${ac_cv_path_ECHO+:} false; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 case $ECHO in
4573 [\\/]* | ?:[\\/]*)
4574 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4575 ;;
4576 *)
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 break 2
4587 fi
4588 done
4589 done
4590 IFS=$as_save_IFS
4591
4592 ;;
4593 esac
4594 fi
4595 ECHO=$ac_cv_path_ECHO
4596 if test -n "$ECHO"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4598 $as_echo "$ECHO" >&6; }
4599 else
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4602 fi
4603
4608
4609 if test "x$ECHO" = x; then
4610 if test "xecho" = x; then
4611 PROG_NAME=echo
4612 else
4613 PROG_NAME=echo
4614 fi
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4616 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4617 as_fn_error $? "Cannot continue" "$LINENO" 5
4618 fi
4619
4620
4621
4622 for ac_prog in expr
4623 do
4624 # Extract the first word of "$ac_prog", so it can be a program name with args.
4625 set dummy $ac_prog; ac_word=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if ${ac_cv_path_EXPR+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 case $EXPR in
4632 [\\/]* | ?:[\\/]*)
4633 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
4634 ;;
4635 *)
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4638 do
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
4644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 break 2
4646 fi
4647 done
4648 done
4649 IFS=$as_save_IFS
4650
4651 ;;
4652 esac
4653 fi
4654 EXPR=$ac_cv_path_EXPR
4655 if test -n "$EXPR"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
4657 $as_echo "$EXPR" >&6; }
4658 else
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4661 fi
4662
4667
4668 if test "x$EXPR" = x; then
4669 if test "xexpr" = x; then
4670 PROG_NAME=expr
4671 else
4672 PROG_NAME=expr
4673 fi
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4675 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4676 as_fn_error $? "Cannot continue" "$LINENO" 5
4677 fi
4678
4679
4680
4681 for ac_prog in file
4682 do
4683 # Extract the first word of "$ac_prog", so it can be a program name with args.
4684 set dummy $ac_prog; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if ${ac_cv_path_FILE+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 case $FILE in
4691 [\\/]* | ?:[\\/]*)
4692 ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
4693 ;;
4694 *)
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4697 do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4702 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4705 fi
4706 done
4707 done
4708 IFS=$as_save_IFS
4709
4710 ;;
4711 esac
4712 fi
4713 FILE=$ac_cv_path_FILE
4714 if test -n "$FILE"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
4716 $as_echo "$FILE" >&6; }
4717 else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4720 fi
4721
4726
4727 if test "x$FILE" = x; then
4728 if test "xfile" = x; then
4729 PROG_NAME=file
4730 else
4731 PROG_NAME=file
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4734 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4735 as_fn_error $? "Cannot continue" "$LINENO" 5
4736 fi
4737
4738
4739
4740 for ac_prog in find
4741 do
4742 # Extract the first word of "$ac_prog", so it can be a program name with args.
4743 set dummy $ac_prog; ac_word=$2
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745 $as_echo_n "checking for $ac_word... " >&6; }
4746 if ${ac_cv_path_FIND+:} false; then :
4747 $as_echo_n "(cached) " >&6
4748 else
4749 case $FIND in
4750 [\\/]* | ?:[\\/]*)
4751 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4752 ;;
4753 *)
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4756 do
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4761 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 break 2
4764 fi
4765 done
4766 done
4767 IFS=$as_save_IFS
4768
4769 ;;
4770 esac
4771 fi
4772 FIND=$ac_cv_path_FIND
4773 if test -n "$FIND"; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
4775 $as_echo "$FIND" >&6; }
4776 else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4779 fi
4780
4785
4786 if test "x$FIND" = x; then
4787 if test "xfind" = x; then
4788 PROG_NAME=find
4789 else
4790 PROG_NAME=find
4791 fi
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4793 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4794 as_fn_error $? "Cannot continue" "$LINENO" 5
4795 fi
4796
4797
4798
4799 for ac_prog in head
4800 do
4801 # Extract the first word of "$ac_prog", so it can be a program name with args.
4802 set dummy $ac_prog; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if ${ac_cv_path_HEAD+:} false; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 case $HEAD in
4809 [\\/]* | ?:[\\/]*)
4810 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
4811 ;;
4812 *)
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4823 fi
4824 done
4825 done
4826 IFS=$as_save_IFS
4827
4828 ;;
4829 esac
4830 fi
4831 HEAD=$ac_cv_path_HEAD
4832 if test -n "$HEAD"; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
4834 $as_echo "$HEAD" >&6; }
4835 else
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4838 fi
4839
4844
4845 if test "x$HEAD" = x; then
4846 if test "xhead" = x; then
4847 PROG_NAME=head
4848 else
4849 PROG_NAME=head
4850 fi
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4852 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4853 as_fn_error $? "Cannot continue" "$LINENO" 5
4854 fi
4855
4856
4857
4858 for ac_prog in ln
4859 do
4860 # Extract the first word of "$ac_prog", so it can be a program name with args.
4861 set dummy $ac_prog; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if ${ac_cv_path_LN+:} false; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 case $LN in
4868 [\\/]* | ?:[\\/]*)
4869 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4870 ;;
4871 *)
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4879 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 break 2
4882 fi
4883 done
4884 done
4885 IFS=$as_save_IFS
4886
4887 ;;
4888 esac
4889 fi
4890 LN=$ac_cv_path_LN
4891 if test -n "$LN"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4893 $as_echo "$LN" >&6; }
4894 else
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4897 fi
4898
4903
4904 if test "x$LN" = x; then
4905 if test "xln" = x; then
4906 PROG_NAME=ln
4907 else
4908 PROG_NAME=ln
4909 fi
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4911 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4912 as_fn_error $? "Cannot continue" "$LINENO" 5
4913 fi
4914
4915
4916
4917 for ac_prog in ls
4918 do
4919 # Extract the first word of "$ac_prog", so it can be a program name with args.
4920 set dummy $ac_prog; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if ${ac_cv_path_LS+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 case $LS in
4927 [\\/]* | ?:[\\/]*)
4928 ac_cv_path_LS="$LS" # Let the user override the test with a path.
4929 ;;
4930 *)
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4938 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 break 2
4941 fi
4942 done
4943 done
4944 IFS=$as_save_IFS
4945
4946 ;;
4947 esac
4948 fi
4949 LS=$ac_cv_path_LS
4950 if test -n "$LS"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
4952 $as_echo "$LS" >&6; }
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956 fi
4957
4962
4963 if test "x$LS" = x; then
4964 if test "xls" = x; then
4965 PROG_NAME=ls
4966 else
4967 PROG_NAME=ls
4968 fi
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4970 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4971 as_fn_error $? "Cannot continue" "$LINENO" 5
4972 fi
4973
4974
4975
4976 for ac_prog in mkdir
4977 do
4978 # Extract the first word of "$ac_prog", so it can be a program name with args.
4979 set dummy $ac_prog; ac_word=$2
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981 $as_echo_n "checking for $ac_word... " >&6; }
4982 if ${ac_cv_path_MKDIR+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984 else
4985 case $MKDIR in
4986 [\\/]* | ?:[\\/]*)
4987 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4988 ;;
4989 *)
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4992 do
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5000 fi
5001 done
5002 done
5003 IFS=$as_save_IFS
5004
5005 ;;
5006 esac
5007 fi
5008 MKDIR=$ac_cv_path_MKDIR
5009 if test -n "$MKDIR"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5011 $as_echo "$MKDIR" >&6; }
5012 else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5015 fi
5016
5021
5022 if test "x$MKDIR" = x; then
5023 if test "xmkdir" = x; then
5024 PROG_NAME=mkdir
5025 else
5026 PROG_NAME=mkdir
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5029 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5030 as_fn_error $? "Cannot continue" "$LINENO" 5
5031 fi
5032
5033
5034
5035 for ac_prog in mktemp
5036 do
5037 # Extract the first word of "$ac_prog", so it can be a program name with args.
5038 set dummy $ac_prog; ac_word=$2
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5040 $as_echo_n "checking for $ac_word... " >&6; }
5041 if ${ac_cv_path_MKTEMP+:} false; then :
5042 $as_echo_n "(cached) " >&6
5043 else
5044 case $MKTEMP in
5045 [\\/]* | ?:[\\/]*)
5046 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5047 ;;
5048 *)
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5059 fi
5060 done
5061 done
5062 IFS=$as_save_IFS
5063
5064 ;;
5065 esac
5066 fi
5067 MKTEMP=$ac_cv_path_MKTEMP
5068 if test -n "$MKTEMP"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
5070 $as_echo "$MKTEMP" >&6; }
5071 else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5074 fi
5075
5080
5081 if test "x$MKTEMP" = x; then
5082 if test "xmktemp" = x; then
5083 PROG_NAME=mktemp
5084 else
5085 PROG_NAME=mktemp
5086 fi
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5088 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5089 as_fn_error $? "Cannot continue" "$LINENO" 5
5090 fi
5091
5092
5093
5094 for ac_prog in mv
5095 do
5096 # Extract the first word of "$ac_prog", so it can be a program name with args.
5097 set dummy $ac_prog; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_path_MV+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 case $MV in
5104 [\\/]* | ?:[\\/]*)
5105 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5106 ;;
5107 *)
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119 done
5120 done
5121 IFS=$as_save_IFS
5122
5123 ;;
5124 esac
5125 fi
5126 MV=$ac_cv_path_MV
5127 if test -n "$MV"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5129 $as_echo "$MV" >&6; }
5130 else
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5133 fi
5134
5139
5140 if test "x$MV" = x; then
5141 if test "xmv" = x; then
5142 PROG_NAME=mv
5143 else
5144 PROG_NAME=mv
5145 fi
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5147 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5148 as_fn_error $? "Cannot continue" "$LINENO" 5
5149 fi
5150
5151
5152
5153 for ac_prog in printf
5154 do
5155 # Extract the first word of "$ac_prog", so it can be a program name with args.
5156 set dummy $ac_prog; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if ${ac_cv_path_PRINTF+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 case $PRINTF in
5163 [\\/]* | ?:[\\/]*)
5164 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
5165 ;;
5166 *)
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5177 fi
5178 done
5179 done
5180 IFS=$as_save_IFS
5181
5182 ;;
5183 esac
5184 fi
5185 PRINTF=$ac_cv_path_PRINTF
5186 if test -n "$PRINTF"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
5188 $as_echo "$PRINTF" >&6; }
5189 else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5192 fi
5193
5198
5199 if test "x$PRINTF" = x; then
5200 if test "xprintf" = x; then
5201 PROG_NAME=printf
5202 else
5203 PROG_NAME=printf
5204 fi
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5206 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5207 as_fn_error $? "Cannot continue" "$LINENO" 5
5208 fi
5209
5210
5211
5212 for ac_prog in rm
5213 do
5214 # Extract the first word of "$ac_prog", so it can be a program name with args.
5215 set dummy $ac_prog; ac_word=$2
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if ${ac_cv_path_RM+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 case $RM in
5222 [\\/]* | ?:[\\/]*)
5223 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5224 ;;
5225 *)
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5228 do
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2
5236 fi
5237 done
5238 done
5239 IFS=$as_save_IFS
5240
5241 ;;
5242 esac
5243 fi
5244 RM=$ac_cv_path_RM
5245 if test -n "$RM"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5247 $as_echo "$RM" >&6; }
5248 else
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5251 fi
5252
5257
5258 if test "x$RM" = x; then
5259 if test "xrm" = x; then
5260 PROG_NAME=rm
5261 else
5262 PROG_NAME=rm
5263 fi
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5265 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5266 as_fn_error $? "Cannot continue" "$LINENO" 5
5267 fi
5268
5269
5270
5271 for ac_prog in sh
5272 do
5273 # Extract the first word of "$ac_prog", so it can be a program name with args.
5274 set dummy $ac_prog; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_path_SH+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 case $SH in
5281 [\\/]* | ?:[\\/]*)
5282 ac_cv_path_SH="$SH" # Let the user override the test with a path.
5283 ;;
5284 *)
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 break 2
5295 fi
5296 done
5297 done
5298 IFS=$as_save_IFS
5299
5300 ;;
5301 esac
5302 fi
5303 SH=$ac_cv_path_SH
5304 if test -n "$SH"; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
5306 $as_echo "$SH" >&6; }
5307 else
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5310 fi
5311
5316
5317 if test "x$SH" = x; then
5318 if test "xsh" = x; then
5319 PROG_NAME=sh
5320 else
5321 PROG_NAME=sh
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5324 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5325 as_fn_error $? "Cannot continue" "$LINENO" 5
5326 fi
5327
5328
5329
5330 for ac_prog in sort
5331 do
5332 # Extract the first word of "$ac_prog", so it can be a program name with args.
5333 set dummy $ac_prog; ac_word=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if ${ac_cv_path_SORT+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 case $SORT in
5340 [\\/]* | ?:[\\/]*)
5341 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
5342 ;;
5343 *)
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5346 do
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5354 fi
5355 done
5356 done
5357 IFS=$as_save_IFS
5358
5359 ;;
5360 esac
5361 fi
5362 SORT=$ac_cv_path_SORT
5363 if test -n "$SORT"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5365 $as_echo "$SORT" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5369 fi
5370
5375
5376 if test "x$SORT" = x; then
5377 if test "xsort" = x; then
5378 PROG_NAME=sort
5379 else
5380 PROG_NAME=sort
5381 fi
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5383 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5384 as_fn_error $? "Cannot continue" "$LINENO" 5
5385 fi
5386
5387
5388
5389 for ac_prog in tail
5390 do
5391 # Extract the first word of "$ac_prog", so it can be a program name with args.
5392 set dummy $ac_prog; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_path_TAIL+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 case $TAIL in
5399 [\\/]* | ?:[\\/]*)
5400 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
5401 ;;
5402 *)
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5413 fi
5414 done
5415 done
5416 IFS=$as_save_IFS
5417
5418 ;;
5419 esac
5420 fi
5421 TAIL=$ac_cv_path_TAIL
5422 if test -n "$TAIL"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
5424 $as_echo "$TAIL" >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5434
5435 if test "x$TAIL" = x; then
5436 if test "xtail" = x; then
5437 PROG_NAME=tail
5438 else
5439 PROG_NAME=tail
5440 fi
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5442 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5443 as_fn_error $? "Cannot continue" "$LINENO" 5
5444 fi
5445
5446
5447
5448 for ac_prog in tar
5449 do
5450 # Extract the first word of "$ac_prog", so it can be a program name with args.
5451 set dummy $ac_prog; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_path_TAR+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 case $TAR in
5458 [\\/]* | ?:[\\/]*)
5459 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5460 ;;
5461 *)
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 break 2
5472 fi
5473 done
5474 done
5475 IFS=$as_save_IFS
5476
5477 ;;
5478 esac
5479 fi
5480 TAR=$ac_cv_path_TAR
5481 if test -n "$TAR"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
5483 $as_echo "$TAR" >&6; }
5484 else
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5487 fi
5488
5493
5494 if test "x$TAR" = x; then
5495 if test "xtar" = x; then
5496 PROG_NAME=tar
5497 else
5498 PROG_NAME=tar
5499 fi
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5501 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5502 as_fn_error $? "Cannot continue" "$LINENO" 5
5503 fi
5504
5505
5506
5507 for ac_prog in tee
5508 do
5509 # Extract the first word of "$ac_prog", so it can be a program name with args.
5510 set dummy $ac_prog; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if ${ac_cv_path_TEE+:} false; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 case $TEE in
5517 [\\/]* | ?:[\\/]*)
5518 ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
5519 ;;
5520 *)
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5523 do
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 break 2
5531 fi
5532 done
5533 done
5534 IFS=$as_save_IFS
5535
5536 ;;
5537 esac
5538 fi
5539 TEE=$ac_cv_path_TEE
5540 if test -n "$TEE"; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
5542 $as_echo "$TEE" >&6; }
5543 else
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 fi
5547
5552
5553 if test "x$TEE" = x; then
5554 if test "xtee" = x; then
5555 PROG_NAME=tee
5556 else
5557 PROG_NAME=tee
5558 fi
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5560 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5561 as_fn_error $? "Cannot continue" "$LINENO" 5
5562 fi
5563
5564
5565
5566 for ac_prog in touch
5567 do
5568 # Extract the first word of "$ac_prog", so it can be a program name with args.
5569 set dummy $ac_prog; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if ${ac_cv_path_TOUCH+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 case $TOUCH in
5576 [\\/]* | ?:[\\/]*)
5577 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5578 ;;
5579 *)
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5590 fi
5591 done
5592 done
5593 IFS=$as_save_IFS
5594
5595 ;;
5596 esac
5597 fi
5598 TOUCH=$ac_cv_path_TOUCH
5599 if test -n "$TOUCH"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5601 $as_echo "$TOUCH" >&6; }
5602 else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5605 fi
5606
5611
5612 if test "x$TOUCH" = x; then
5613 if test "xtouch" = x; then
5614 PROG_NAME=touch
5615 else
5616 PROG_NAME=touch
5617 fi
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5619 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5620 as_fn_error $? "Cannot continue" "$LINENO" 5
5621 fi
5622
5623
5624
5625 for ac_prog in tr
5626 do
5627 # Extract the first word of "$ac_prog", so it can be a program name with args.
5628 set dummy $ac_prog; ac_word=$2
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630 $as_echo_n "checking for $ac_word... " >&6; }
5631 if ${ac_cv_path_TR+:} false; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5634 case $TR in
5635 [\\/]* | ?:[\\/]*)
5636 ac_cv_path_TR="$TR" # Let the user override the test with a path.
5637 ;;
5638 *)
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650 done
5651 done
5652 IFS=$as_save_IFS
5653
5654 ;;
5655 esac
5656 fi
5657 TR=$ac_cv_path_TR
5658 if test -n "$TR"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
5660 $as_echo "$TR" >&6; }
5661 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5664 fi
5665
5670
5671 if test "x$TR" = x; then
5672 if test "xtr" = x; then
5673 PROG_NAME=tr
5674 else
5675 PROG_NAME=tr
5676 fi
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5678 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5679 as_fn_error $? "Cannot continue" "$LINENO" 5
5680 fi
5681
5682
5683
5684 for ac_prog in uname
5685 do
5686 # Extract the first word of "$ac_prog", so it can be a program name with args.
5687 set dummy $ac_prog; ac_word=$2
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689 $as_echo_n "checking for $ac_word... " >&6; }
5690 if ${ac_cv_path_UNAME+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 case $UNAME in
5694 [\\/]* | ?:[\\/]*)
5695 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
5696 ;;
5697 *)
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5700 do
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 break 2
5708 fi
5709 done
5710 done
5711 IFS=$as_save_IFS
5712
5713 ;;
5714 esac
5715 fi
5716 UNAME=$ac_cv_path_UNAME
5717 if test -n "$UNAME"; then
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
5719 $as_echo "$UNAME" >&6; }
5720 else
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722 $as_echo "no" >&6; }
5723 fi
5724
5729
5730 if test "x$UNAME" = x; then
5731 if test "xuname" = x; then
5732 PROG_NAME=uname
5733 else
5734 PROG_NAME=uname
5735 fi
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5737 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5738 as_fn_error $? "Cannot continue" "$LINENO" 5
5739 fi
5740
5741
5742
5743 for ac_prog in uniq
5744 do
5745 # Extract the first word of "$ac_prog", so it can be a program name with args.
5746 set dummy $ac_prog; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if ${ac_cv_path_UNIQ+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 case $UNIQ in
5753 [\\/]* | ?:[\\/]*)
5754 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
5755 ;;
5756 *)
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5767 fi
5768 done
5769 done
5770 IFS=$as_save_IFS
5771
5772 ;;
5773 esac
5774 fi
5775 UNIQ=$ac_cv_path_UNIQ
5776 if test -n "$UNIQ"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5778 $as_echo "$UNIQ" >&6; }
5779 else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5782 fi
5783
5788
5789 if test "x$UNIQ" = x; then
5790 if test "xuniq" = x; then
5791 PROG_NAME=uniq
5792 else
5793 PROG_NAME=uniq
5794 fi
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5796 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5797 as_fn_error $? "Cannot continue" "$LINENO" 5
5798 fi
5799
5800
5801
5802 for ac_prog in wc
5803 do
5804 # Extract the first word of "$ac_prog", so it can be a program name with args.
5805 set dummy $ac_prog; ac_word=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if ${ac_cv_path_WC+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 case $WC in
5812 [\\/]* | ?:[\\/]*)
5813 ac_cv_path_WC="$WC" # Let the user override the test with a path.
5814 ;;
5815 *)
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5818 do
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5823 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
5824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5826 fi
5827 done
5828 done
5829 IFS=$as_save_IFS
5830
5831 ;;
5832 esac
5833 fi
5834 WC=$ac_cv_path_WC
5835 if test -n "$WC"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
5837 $as_echo "$WC" >&6; }
5838 else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5841 fi
5842
5847
5848 if test "x$WC" = x; then
5849 if test "xwc" = x; then
5850 PROG_NAME=wc
5851 else
5852 PROG_NAME=wc
5853 fi
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5855 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5856 as_fn_error $? "Cannot continue" "$LINENO" 5
5857 fi
5858
5859
5860
5861 for ac_prog in which
5862 do
5863 # Extract the first word of "$ac_prog", so it can be a program name with args.
5864 set dummy $ac_prog; ac_word=$2
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866 $as_echo_n "checking for $ac_word... " >&6; }
5867 if ${ac_cv_path_WHICH+:} false; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 case $WHICH in
5871 [\\/]* | ?:[\\/]*)
5872 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
5873 ;;
5874 *)
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH
5877 do
5878 IFS=$as_save_IFS
5879 test -z "$as_dir" && as_dir=.
5880 for ac_exec_ext in '' $ac_executable_extensions; do
5881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5882 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 break 2
5885 fi
5886 done
5887 done
5888 IFS=$as_save_IFS
5889
5890 ;;
5891 esac
5892 fi
5893 WHICH=$ac_cv_path_WHICH
5894 if test -n "$WHICH"; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
5896 $as_echo "$WHICH" >&6; }
5897 else
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899 $as_echo "no" >&6; }
5900 fi
5901
5906
5907 if test "x$WHICH" = x; then
5908 if test "xwhich" = x; then
5909 PROG_NAME=which
5910 else
5911 PROG_NAME=which
5912 fi
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5914 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5915 as_fn_error $? "Cannot continue" "$LINENO" 5
5916 fi
5917
5918
5919
5920 for ac_prog in xargs
5921 do
5922 # Extract the first word of "$ac_prog", so it can be a program name with args.
5923 set dummy $ac_prog; ac_word=$2
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925 $as_echo_n "checking for $ac_word... " >&6; }
5926 if ${ac_cv_path_XARGS+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 case $XARGS in
5930 [\\/]* | ?:[\\/]*)
5931 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
5932 ;;
5933 *)
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5944 fi
5945 done
5946 done
5947 IFS=$as_save_IFS
5948
5949 ;;
5950 esac
5951 fi
5952 XARGS=$ac_cv_path_XARGS
5953 if test -n "$XARGS"; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
5955 $as_echo "$XARGS" >&6; }
5956 else
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960
5966 if test "x$XARGS" = x; then
5967 if test "xxargs" = x; then
5968 PROG_NAME=xargs
5969 else
5970 PROG_NAME=xargs
5971 fi
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5973 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5974 as_fn_error $? "Cannot continue" "$LINENO" 5
5975 fi
5976
5977
5978
5979 # Then required tools that require some special treatment.
5980 for ac_prog in gawk mawk nawk awk
5981 do
5982 # Extract the first word of "$ac_prog", so it can be a program name with args.
5983 set dummy $ac_prog; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if ${ac_cv_prog_AWK+:} false; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5989 if test -n "$AWK"; then
5990 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999 ac_cv_prog_AWK="$ac_prog"
6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 break 2
6002 fi
6003 done
6004 done
6005 IFS=$as_save_IFS
6006
6007 fi
6008 fi
6009 AWK=$ac_cv_prog_AWK
6010 if test -n "$AWK"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6012 $as_echo "$AWK" >&6; }
6013 else
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6016 fi
6017
6018
6019 test -n "$AWK" && break
6020 done
6021
6022
6023 if test "x$AWK" = x; then
6024 if test "x" = x; then
6025 PROG_NAME=awk
6026 else
6027 PROG_NAME=
6028 fi
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6030 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6031 as_fn_error $? "Cannot continue" "$LINENO" 5
6032 fi
6033
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6035 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6036 if ${ac_cv_path_GREP+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 if test -z "$GREP"; then
6040 ac_path_GREP_found=false
6041 # Loop through the user's path and test for each of PROGNAME-LIST
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6044 do
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_prog in grep ggrep; do
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6050 as_fn_executable_p "$ac_path_GREP" || continue
6051 # Check for GNU ac_path_GREP and select it if it is found.
6052 # Check for GNU $ac_path_GREP
6053 case `"$ac_path_GREP" --version 2>&1` in
6054 *GNU*)
6055 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6056 *)
6057 ac_count=0
6058 $as_echo_n 0123456789 >"conftest.in"
6059 while :
6060 do
6061 cat "conftest.in" "conftest.in" >"conftest.tmp"
6062 mv "conftest.tmp" "conftest.in"
6063 cp "conftest.in" "conftest.nl"
6064 $as_echo 'GREP' >> "conftest.nl"
6065 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6067 as_fn_arith $ac_count + 1 && ac_count=$as_val
6068 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6069 # Best one so far, save it but keep looking for a better one
6070 ac_cv_path_GREP="$ac_path_GREP"
6091 fi
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6093 $as_echo "$ac_cv_path_GREP" >&6; }
6094 GREP="$ac_cv_path_GREP"
6095
6096
6097
6098 if test "x$GREP" = x; then
6099 if test "x" = x; then
6100 PROG_NAME=grep
6101 else
6102 PROG_NAME=
6103 fi
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6105 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6106 as_fn_error $? "Cannot continue" "$LINENO" 5
6107 fi
6108
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6110 $as_echo_n "checking for egrep... " >&6; }
6111 if ${ac_cv_path_EGREP+:} false; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6115 then ac_cv_path_EGREP="$GREP -E"
6116 else
6117 if test -z "$EGREP"; then
6118 ac_path_EGREP_found=false
6119 # Loop through the user's path and test for each of PROGNAME-LIST
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6122 do
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
6125 for ac_prog in egrep; do
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6128 as_fn_executable_p "$ac_path_EGREP" || continue
6129 # Check for GNU ac_path_EGREP and select it if it is found.
6130 # Check for GNU $ac_path_EGREP
6131 case `"$ac_path_EGREP" --version 2>&1` in
6132 *GNU*)
6133 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6134 *)
6135 ac_count=0
6136 $as_echo_n 0123456789 >"conftest.in"
6137 while :
6138 do
6139 cat "conftest.in" "conftest.in" >"conftest.tmp"
6140 mv "conftest.tmp" "conftest.in"
6141 cp "conftest.in" "conftest.nl"
6142 $as_echo 'EGREP' >> "conftest.nl"
6143 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6144 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6145 as_fn_arith $ac_count + 1 && ac_count=$as_val
6146 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6147 # Best one so far, save it but keep looking for a better one
6148 ac_cv_path_EGREP="$ac_path_EGREP"
6170 fi
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6172 $as_echo "$ac_cv_path_EGREP" >&6; }
6173 EGREP="$ac_cv_path_EGREP"
6174
6175
6176
6177 if test "x$EGREP" = x; then
6178 if test "x" = x; then
6179 PROG_NAME=egrep
6180 else
6181 PROG_NAME=
6182 fi
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6184 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6185 as_fn_error $? "Cannot continue" "$LINENO" 5
6186 fi
6187
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6189 $as_echo_n "checking for fgrep... " >&6; }
6190 if ${ac_cv_path_FGREP+:} false; then :
6191 $as_echo_n "(cached) " >&6
6192 else
6193 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6194 then ac_cv_path_FGREP="$GREP -F"
6195 else
6196 if test -z "$FGREP"; then
6197 ac_path_FGREP_found=false
6198 # Loop through the user's path and test for each of PROGNAME-LIST
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6201 do
6202 IFS=$as_save_IFS
6203 test -z "$as_dir" && as_dir=.
6204 for ac_prog in fgrep; do
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6207 as_fn_executable_p "$ac_path_FGREP" || continue
6208 # Check for GNU ac_path_FGREP and select it if it is found.
6209 # Check for GNU $ac_path_FGREP
6210 case `"$ac_path_FGREP" --version 2>&1` in
6211 *GNU*)
6212 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6213 *)
6214 ac_count=0
6215 $as_echo_n 0123456789 >"conftest.in"
6216 while :
6217 do
6218 cat "conftest.in" "conftest.in" >"conftest.tmp"
6219 mv "conftest.tmp" "conftest.in"
6220 cp "conftest.in" "conftest.nl"
6221 $as_echo 'FGREP' >> "conftest.nl"
6222 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6223 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6224 as_fn_arith $ac_count + 1 && ac_count=$as_val
6225 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6226 # Best one so far, save it but keep looking for a better one
6227 ac_cv_path_FGREP="$ac_path_FGREP"
6249 fi
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6251 $as_echo "$ac_cv_path_FGREP" >&6; }
6252 FGREP="$ac_cv_path_FGREP"
6253
6254
6255
6256 if test "x$FGREP" = x; then
6257 if test "x" = x; then
6258 PROG_NAME=fgrep
6259 else
6260 PROG_NAME=
6261 fi
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6263 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6264 as_fn_error $? "Cannot continue" "$LINENO" 5
6265 fi
6266
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6268 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6269 if ${ac_cv_path_SED+:} false; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6272 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6273 for ac_i in 1 2 3 4 5 6 7; do
6274 ac_script="$ac_script$as_nl$ac_script"
6275 done
6276 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6277 { ac_script=; unset ac_script;}
6278 if test -z "$SED"; then
6279 ac_path_SED_found=false
6280 # Loop through the user's path and test for each of PROGNAME-LIST
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_prog in sed gsed; do
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6289 as_fn_executable_p "$ac_path_SED" || continue
6290 # Check for GNU ac_path_SED and select it if it is found.
6291 # Check for GNU $ac_path_SED
6292 case `"$ac_path_SED" --version 2>&1` in
6293 *GNU*)
6294 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6295 *)
6296 ac_count=0
6297 $as_echo_n 0123456789 >"conftest.in"
6298 while :
6299 do
6300 cat "conftest.in" "conftest.in" >"conftest.tmp"
6301 mv "conftest.tmp" "conftest.in"
6302 cp "conftest.in" "conftest.nl"
6303 $as_echo '' >> "conftest.nl"
6304 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6306 as_fn_arith $ac_count + 1 && ac_count=$as_val
6307 if test $ac_count -gt ${ac_path_SED_max-0}; then
6308 # Best one so far, save it but keep looking for a better one
6309 ac_cv_path_SED="$ac_path_SED"
6335
6336
6337 if test "x$SED" = x; then
6338 if test "x" = x; then
6339 PROG_NAME=sed
6340 else
6341 PROG_NAME=
6342 fi
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6344 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6345 as_fn_error $? "Cannot continue" "$LINENO" 5
6346 fi
6347
6348
6349 for ac_prog in nawk gawk awk
6350 do
6351 # Extract the first word of "$ac_prog", so it can be a program name with args.
6352 set dummy $ac_prog; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if ${ac_cv_path_NAWK+:} false; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 case $NAWK in
6359 [\\/]* | ?:[\\/]*)
6360 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
6361 ;;
6362 *)
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6370 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
6371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 break 2
6373 fi
6374 done
6375 done
6376 IFS=$as_save_IFS
6377
6378 ;;
6379 esac
6380 fi
6381 NAWK=$ac_cv_path_NAWK
6382 if test -n "$NAWK"; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
6384 $as_echo "$NAWK" >&6; }
6385 else
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6388 fi
6389
6399 PROG_NAME=
6400 fi
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6402 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6403 as_fn_error $? "Cannot continue" "$LINENO" 5
6404 fi
6405
6406
6407 # Always force rm.
6408 RM="$RM -f"
6409
6410 # pwd behaves differently on various platforms and some don't support the -L flag.
6411 # Always use the bash builtin pwd to get uniform behavior.
6412 THEPWDCMD=pwd
6413
6414 # These are not required on all platforms
6415 # Extract the first word of "cygpath", so it can be a program name with args.
6416 set dummy cygpath; ac_word=$2
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if ${ac_cv_path_CYGPATH+:} false; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 case $CYGPATH in
6423 [\\/]* | ?:[\\/]*)
6424 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
6425 ;;
6426 *)
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6434 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6437 fi
6438 done
6439 done
6440 IFS=$as_save_IFS
6441
6442 ;;
6443 esac
6444 fi
6445 CYGPATH=$ac_cv_path_CYGPATH
6446 if test -n "$CYGPATH"; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
6448 $as_echo "$CYGPATH" >&6; }
6449 else
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451 $as_echo "no" >&6; }
6452 fi
6453
6454
6455 # Extract the first word of "readlink", so it can be a program name with args.
6456 set dummy readlink; ac_word=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if ${ac_cv_path_READLINK+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 case $READLINK in
6463 [\\/]* | ?:[\\/]*)
6464 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
6465 ;;
6466 *)
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6474 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478 done
6479 done
6480 IFS=$as_save_IFS
6481
6482 ;;
6483 esac
6484 fi
6485 READLINK=$ac_cv_path_READLINK
6486 if test -n "$READLINK"; then
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
6488 $as_echo "$READLINK" >&6; }
6489 else
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491 $as_echo "no" >&6; }
6492 fi
6493
6494
6495 # Extract the first word of "df", so it can be a program name with args.
6496 set dummy df; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if ${ac_cv_path_DF+:} false; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 case $DF in
6503 [\\/]* | ?:[\\/]*)
6504 ac_cv_path_DF="$DF" # Let the user override the test with a path.
6505 ;;
6506 *)
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 break 2
6517 fi
6518 done
6519 done
6520 IFS=$as_save_IFS
6521
6522 ;;
6523 esac
6524 fi
6525 DF=$ac_cv_path_DF
6526 if test -n "$DF"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
6528 $as_echo "$DF" >&6; }
6529 else
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6532 fi
6533
6534
6535 # Extract the first word of "SetFile", so it can be a program name with args.
6536 set dummy SetFile; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if ${ac_cv_path_SETFILE+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 case $SETFILE in
6543 [\\/]* | ?:[\\/]*)
6544 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
6545 ;;
6546 *)
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6549 do
6550 IFS=$as_save_IFS
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6554 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 break 2
6557 fi
6558 done
6559 done
6560 IFS=$as_save_IFS
6561
6562 ;;
6563 esac
6564 fi
6565 SETFILE=$ac_cv_path_SETFILE
6566 if test -n "$SETFILE"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
6568 $as_echo "$SETFILE" >&6; }
6569 else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6572 fi
6573
6574
6575
6576
6577 # Now we can determine OpenJDK build and target platforms. This is required to
6578 # have early on.
6579 # Make sure we can run config.sub.
6580 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6581 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6582
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6584 $as_echo_n "checking build system type... " >&6; }
6585 if ${ac_cv_build+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 ac_build_alias=$build_alias
6589 test "x$ac_build_alias" = x &&
6590 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6591 test "x$ac_build_alias" = x &&
6592 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6593 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6594 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6595
6596 fi
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6598 $as_echo "$ac_cv_build" >&6; }
6599 case $ac_cv_build in
6600 *-*-*) ;;
6601 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6602 esac
6603 build=$ac_cv_build
6604 ac_save_IFS=$IFS; IFS='-'
6605 set x $ac_cv_build
6606 shift
6607 build_cpu=$1
6608 build_vendor=$2
6609 shift; shift
6610 # Remember, the first character of IFS is used to create $*,
6611 # except with old shells:
6612 build_os=$*
6613 IFS=$ac_save_IFS
6614 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6615
6616
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6618 $as_echo_n "checking host system type... " >&6; }
6619 if ${ac_cv_host+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621 else
6622 if test "x$host_alias" = x; then
6623 ac_cv_host=$ac_cv_build
6624 else
6625 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6626 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6627 fi
6628
6629 fi
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6631 $as_echo "$ac_cv_host" >&6; }
6632 case $ac_cv_host in
6633 *-*-*) ;;
6634 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6635 esac
6636 host=$ac_cv_host
6637 ac_save_IFS=$IFS; IFS='-'
6638 set x $ac_cv_host
6639 shift
6640 host_cpu=$1
6641 host_vendor=$2
6642 shift; shift
6643 # Remember, the first character of IFS is used to create $*,
6644 # except with old shells:
6645 host_os=$*
6646 IFS=$ac_save_IFS
6647 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6648
6649
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6651 $as_echo_n "checking target system type... " >&6; }
6652 if ${ac_cv_target+:} false; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 if test "x$target_alias" = x; then
6656 ac_cv_target=$ac_cv_host
6657 else
6658 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6659 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6660 fi
6661
6662 fi
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6664 $as_echo "$ac_cv_target" >&6; }
6665 case $ac_cv_target in
6666 *-*-*) ;;
6667 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6668 esac
6669 target=$ac_cv_target
6670 ac_save_IFS=$IFS; IFS='-'
6671 set x $ac_cv_target
6672 shift
6722 *darwin*)
6723 VAR_OS=macosx
6724 VAR_OS_API=posix
6725 VAR_OS_ENV=macosx
6726 ;;
6727 *bsd*)
6728 VAR_OS=bsd
6729 VAR_OS_API=posix
6730 VAR_OS_ENV=bsd
6731 ;;
6732 *cygwin*)
6733 VAR_OS=windows
6734 VAR_OS_API=winapi
6735 VAR_OS_ENV=windows.cygwin
6736 ;;
6737 *mingw*)
6738 VAR_OS=windows
6739 VAR_OS_API=winapi
6740 VAR_OS_ENV=windows.msys
6741 ;;
6742 *aix*)
6743 VAR_OS=aix
6744 VAR_OS_API=posix
6745 VAR_OS_ENV=aix
6746 ;;
6747 *)
6748 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
6749 ;;
6750 esac
6751
6752
6753 # First argument is the cpu name from the trip/quad
6754 case "$build_cpu" in
6755 x86_64)
6756 VAR_CPU=x86_64
6757 VAR_CPU_ARCH=x86
6758 VAR_CPU_BITS=64
6759 VAR_CPU_ENDIAN=little
6760 ;;
6761 i?86)
6762 VAR_CPU=x86
6763 VAR_CPU_ARCH=x86
6764 VAR_CPU_BITS=32
6765 VAR_CPU_ENDIAN=little
6766 ;;
6835 *darwin*)
6836 VAR_OS=macosx
6837 VAR_OS_API=posix
6838 VAR_OS_ENV=macosx
6839 ;;
6840 *bsd*)
6841 VAR_OS=bsd
6842 VAR_OS_API=posix
6843 VAR_OS_ENV=bsd
6844 ;;
6845 *cygwin*)
6846 VAR_OS=windows
6847 VAR_OS_API=winapi
6848 VAR_OS_ENV=windows.cygwin
6849 ;;
6850 *mingw*)
6851 VAR_OS=windows
6852 VAR_OS_API=winapi
6853 VAR_OS_ENV=windows.msys
6854 ;;
6855 *aix*)
6856 VAR_OS=aix
6857 VAR_OS_API=posix
6858 VAR_OS_ENV=aix
6859 ;;
6860 *)
6861 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
6862 ;;
6863 esac
6864
6865
6866 # First argument is the cpu name from the trip/quad
6867 case "$host_cpu" in
6868 x86_64)
6869 VAR_CPU=x86_64
6870 VAR_CPU_ARCH=x86
6871 VAR_CPU_BITS=64
6872 VAR_CPU_ENDIAN=little
6873 ;;
6874 i?86)
6875 VAR_CPU=x86
6876 VAR_CPU_ARCH=x86
6877 VAR_CPU_BITS=32
6878 VAR_CPU_ENDIAN=little
6879 ;;
8224 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
8225
8226 # The generated Makefile knows where the spec.gmk is and where the source is.
8227 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
8228 # which will look for generated configurations
8229 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
8230
8231
8232 # Save the arguments given to us
8233 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
8234
8235
8236 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
8237
8238 for ac_prog in apt-get yum port pkgutil pkgadd
8239 do
8240 # Extract the first word of "$ac_prog", so it can be a program name with args.
8241 set dummy $ac_prog; ac_word=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if ${ac_cv_prog_PKGHANDLER+:} false; then :
8245 $as_echo_n "(cached) " >&6
8246 else
8247 if test -n "$PKGHANDLER"; then
8248 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
8249 else
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8252 do
8253 IFS=$as_save_IFS
8254 test -z "$as_dir" && as_dir=.
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8257 ac_cv_prog_PKGHANDLER="$ac_prog"
8258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259 break 2
8260 fi
8261 done
8262 done
8263 IFS=$as_save_IFS
8264
8265 fi
8266 fi
8267 PKGHANDLER=$ac_cv_prog_PKGHANDLER
8268 if test -n "$PKGHANDLER"; then
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
8270 $as_echo "$PKGHANDLER" >&6; }
8271 else
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 $as_echo "no" >&6; }
8274 fi
8275
8276
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8590 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8591 fi
8592
8593 fi
8594 fi
8595 fi
8596 fi
8597
8598 if test "x$FOUND_MAKE" = x; then
8599 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
8600 fi
8601 else
8602 # Try our hardest to locate a correct version of GNU make
8603 for ac_prog in gmake
8604 do
8605 # Extract the first word of "$ac_prog", so it can be a program name with args.
8606 set dummy $ac_prog; ac_word=$2
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608 $as_echo_n "checking for $ac_word... " >&6; }
8609 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
8610 $as_echo_n "(cached) " >&6
8611 else
8612 case $CHECK_GMAKE in
8613 [\\/]* | ?:[\\/]*)
8614 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
8615 ;;
8616 *)
8617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618 for as_dir in $PATH
8619 do
8620 IFS=$as_save_IFS
8621 test -z "$as_dir" && as_dir=.
8622 for ac_exec_ext in '' $ac_executable_extensions; do
8623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8624 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
8625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8626 break 2
8627 fi
8628 done
8629 done
8630 IFS=$as_save_IFS
8631
8632 ;;
8633 esac
8634 fi
8635 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
8636 if test -n "$CHECK_GMAKE"; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
8638 $as_echo "$CHECK_GMAKE" >&6; }
8639 else
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641 $as_echo "no" >&6; }
8642 fi
8643
8943
8944 if test "x$complete" != "x$new_complete"; then
8945 FOUND_MAKE="$new_complete"
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8947 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8948 fi
8949
8950 fi
8951 fi
8952 fi
8953 fi
8954
8955
8956 if test "x$FOUND_MAKE" = x; then
8957 for ac_prog in make
8958 do
8959 # Extract the first word of "$ac_prog", so it can be a program name with args.
8960 set dummy $ac_prog; ac_word=$2
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962 $as_echo_n "checking for $ac_word... " >&6; }
8963 if ${ac_cv_path_CHECK_MAKE+:} false; then :
8964 $as_echo_n "(cached) " >&6
8965 else
8966 case $CHECK_MAKE in
8967 [\\/]* | ?:[\\/]*)
8968 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
8969 ;;
8970 *)
8971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8973 do
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8978 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
8979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 break 2
8981 fi
8982 done
8983 done
8984 IFS=$as_save_IFS
8985
8986 ;;
8987 esac
8988 fi
8989 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
8990 if test -n "$CHECK_MAKE"; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
8992 $as_echo "$CHECK_MAKE" >&6; }
8993 else
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
8996 fi
8997
9302 fi
9303
9304 fi
9305 fi
9306 fi
9307 fi
9308
9309 fi
9310
9311 if test "x$FOUND_MAKE" = x; then
9312 if test "x$TOOLS_DIR" != x; then
9313 # We have a tools-dir, check that as well before giving up.
9314 OLD_PATH=$PATH
9315 PATH=$TOOLS_DIR:$PATH
9316 for ac_prog in gmake
9317 do
9318 # Extract the first word of "$ac_prog", so it can be a program name with args.
9319 set dummy $ac_prog; ac_word=$2
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321 $as_echo_n "checking for $ac_word... " >&6; }
9322 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
9323 $as_echo_n "(cached) " >&6
9324 else
9325 case $CHECK_TOOLSDIR_GMAKE in
9326 [\\/]* | ?:[\\/]*)
9327 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
9328 ;;
9329 *)
9330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331 for as_dir in $PATH
9332 do
9333 IFS=$as_save_IFS
9334 test -z "$as_dir" && as_dir=.
9335 for ac_exec_ext in '' $ac_executable_extensions; do
9336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9337 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
9338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9339 break 2
9340 fi
9341 done
9342 done
9343 IFS=$as_save_IFS
9344
9345 ;;
9346 esac
9347 fi
9348 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
9349 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
9351 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
9352 else
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354 $as_echo "no" >&6; }
9355 fi
9356
9655 fi
9656
9657 if test "x$complete" != "x$new_complete"; then
9658 FOUND_MAKE="$new_complete"
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
9660 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
9661 fi
9662
9663 fi
9664 fi
9665 fi
9666 fi
9667
9668 if test "x$FOUND_MAKE" = x; then
9669 for ac_prog in make
9670 do
9671 # Extract the first word of "$ac_prog", so it can be a program name with args.
9672 set dummy $ac_prog; ac_word=$2
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674 $as_echo_n "checking for $ac_word... " >&6; }
9675 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 case $CHECK_TOOLSDIR_MAKE in
9679 [\\/]* | ?:[\\/]*)
9680 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
9681 ;;
9682 *)
9683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9684 for as_dir in $PATH
9685 do
9686 IFS=$as_save_IFS
9687 test -z "$as_dir" && as_dir=.
9688 for ac_exec_ext in '' $ac_executable_extensions; do
9689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9690 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
9691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9692 break 2
9693 fi
9694 done
9695 done
9696 IFS=$as_save_IFS
9697
9698 ;;
9699 esac
9700 fi
9701 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
9702 if test -n "$CHECK_TOOLSDIR_MAKE"; then
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
9704 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
9705 else
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9707 $as_echo "no" >&6; }
9708 fi
9709
10051 FIND_DELETE="-exec rm \{\} \+"
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10054 else
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10056 $as_echo "yes" >&6; }
10057 fi
10058 rmdir $DELETEDIR
10059
10060
10061
10062 # These tools might not be installed by default,
10063 # need hint on how to install them.
10064
10065 for ac_prog in unzip
10066 do
10067 # Extract the first word of "$ac_prog", so it can be a program name with args.
10068 set dummy $ac_prog; ac_word=$2
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10070 $as_echo_n "checking for $ac_word... " >&6; }
10071 if ${ac_cv_path_UNZIP+:} false; then :
10072 $as_echo_n "(cached) " >&6
10073 else
10074 case $UNZIP in
10075 [\\/]* | ?:[\\/]*)
10076 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
10077 ;;
10078 *)
10079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080 for as_dir in $PATH
10081 do
10082 IFS=$as_save_IFS
10083 test -z "$as_dir" && as_dir=.
10084 for ac_exec_ext in '' $ac_executable_extensions; do
10085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10086 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
10087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10088 break 2
10089 fi
10090 done
10091 done
10092 IFS=$as_save_IFS
10093
10094 ;;
10095 esac
10096 fi
10097 UNZIP=$ac_cv_path_UNZIP
10098 if test -n "$UNZIP"; then
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
10100 $as_echo "$UNZIP" >&6; }
10101 else
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103 $as_echo "no" >&6; }
10104 fi
10105
10110
10111 if test "x$UNZIP" = x; then
10112 if test "xunzip" = x; then
10113 PROG_NAME=unzip
10114 else
10115 PROG_NAME=unzip
10116 fi
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10118 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10119 as_fn_error $? "Cannot continue" "$LINENO" 5
10120 fi
10121
10122
10123
10124 for ac_prog in zip
10125 do
10126 # Extract the first word of "$ac_prog", so it can be a program name with args.
10127 set dummy $ac_prog; ac_word=$2
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129 $as_echo_n "checking for $ac_word... " >&6; }
10130 if ${ac_cv_path_ZIP+:} false; then :
10131 $as_echo_n "(cached) " >&6
10132 else
10133 case $ZIP in
10134 [\\/]* | ?:[\\/]*)
10135 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
10136 ;;
10137 *)
10138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139 for as_dir in $PATH
10140 do
10141 IFS=$as_save_IFS
10142 test -z "$as_dir" && as_dir=.
10143 for ac_exec_ext in '' $ac_executable_extensions; do
10144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10145 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
10146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10147 break 2
10148 fi
10149 done
10150 done
10151 IFS=$as_save_IFS
10152
10153 ;;
10154 esac
10155 fi
10156 ZIP=$ac_cv_path_ZIP
10157 if test -n "$ZIP"; then
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
10159 $as_echo "$ZIP" >&6; }
10160 else
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162 $as_echo "no" >&6; }
10163 fi
10164
10169
10170 if test "x$ZIP" = x; then
10171 if test "xzip" = x; then
10172 PROG_NAME=zip
10173 else
10174 PROG_NAME=zip
10175 fi
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10177 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10178 as_fn_error $? "Cannot continue" "$LINENO" 5
10179 fi
10180
10181
10182
10183 # Non-required basic tools
10184
10185 # Extract the first word of "ldd", so it can be a program name with args.
10186 set dummy ldd; ac_word=$2
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10188 $as_echo_n "checking for $ac_word... " >&6; }
10189 if ${ac_cv_path_LDD+:} false; then :
10190 $as_echo_n "(cached) " >&6
10191 else
10192 case $LDD in
10193 [\\/]* | ?:[\\/]*)
10194 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10195 ;;
10196 *)
10197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198 for as_dir in $PATH
10199 do
10200 IFS=$as_save_IFS
10201 test -z "$as_dir" && as_dir=.
10202 for ac_exec_ext in '' $ac_executable_extensions; do
10203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10204 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10206 break 2
10207 fi
10208 done
10209 done
10210 IFS=$as_save_IFS
10211
10212 ;;
10213 esac
10214 fi
10215 LDD=$ac_cv_path_LDD
10216 if test -n "$LDD"; then
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
10218 $as_echo "$LDD" >&6; }
10219 else
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 $as_echo "no" >&6; }
10222 fi
10223
10224
10225 if test "x$LDD" = "x"; then
10226 # List shared lib dependencies is used for
10227 # debug output and checking for forbidden dependencies.
10228 # We can build without it.
10229 LDD="true"
10230 fi
10231 # Extract the first word of "otool", so it can be a program name with args.
10232 set dummy otool; ac_word=$2
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10234 $as_echo_n "checking for $ac_word... " >&6; }
10235 if ${ac_cv_path_OTOOL+:} false; then :
10236 $as_echo_n "(cached) " >&6
10237 else
10238 case $OTOOL in
10239 [\\/]* | ?:[\\/]*)
10240 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
10241 ;;
10242 *)
10243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10244 for as_dir in $PATH
10245 do
10246 IFS=$as_save_IFS
10247 test -z "$as_dir" && as_dir=.
10248 for ac_exec_ext in '' $ac_executable_extensions; do
10249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10250 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
10251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10252 break 2
10253 fi
10254 done
10255 done
10256 IFS=$as_save_IFS
10257
10258 ;;
10259 esac
10260 fi
10261 OTOOL=$ac_cv_path_OTOOL
10262 if test -n "$OTOOL"; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10264 $as_echo "$OTOOL" >&6; }
10265 else
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267 $as_echo "no" >&6; }
10268 fi
10269
10270
10271 if test "x$OTOOL" = "x"; then
10272 OTOOL="true"
10273 fi
10274 for ac_prog in readelf greadelf
10275 do
10276 # Extract the first word of "$ac_prog", so it can be a program name with args.
10277 set dummy $ac_prog; ac_word=$2
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10279 $as_echo_n "checking for $ac_word... " >&6; }
10280 if ${ac_cv_path_READELF+:} false; then :
10281 $as_echo_n "(cached) " >&6
10282 else
10283 case $READELF in
10284 [\\/]* | ?:[\\/]*)
10285 ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
10286 ;;
10287 *)
10288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289 for as_dir in $PATH
10290 do
10291 IFS=$as_save_IFS
10292 test -z "$as_dir" && as_dir=.
10293 for ac_exec_ext in '' $ac_executable_extensions; do
10294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10295 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
10296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10297 break 2
10298 fi
10299 done
10300 done
10301 IFS=$as_save_IFS
10302
10303 ;;
10304 esac
10305 fi
10306 READELF=$ac_cv_path_READELF
10307 if test -n "$READELF"; then
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10309 $as_echo "$READELF" >&6; }
10310 else
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10312 $as_echo "no" >&6; }
10313 fi
10314
10315
10316 test -n "$READELF" && break
10317 done
10318
10319 # Extract the first word of "hg", so it can be a program name with args.
10320 set dummy hg; 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 ${ac_cv_path_HG+:} false; then :
10324 $as_echo_n "(cached) " >&6
10325 else
10326 case $HG in
10327 [\\/]* | ?:[\\/]*)
10328 ac_cv_path_HG="$HG" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10338 ac_cv_path_HG="$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
10344 IFS=$as_save_IFS
10345
10346 ;;
10347 esac
10348 fi
10349 HG=$ac_cv_path_HG
10350 if test -n "$HG"; then
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
10352 $as_echo "$HG" >&6; }
10353 else
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10355 $as_echo "no" >&6; }
10356 fi
10357
10358
10359 # Extract the first word of "stat", so it can be a program name with args.
10360 set dummy stat; ac_word=$2
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10362 $as_echo_n "checking for $ac_word... " >&6; }
10363 if ${ac_cv_path_STAT+:} false; then :
10364 $as_echo_n "(cached) " >&6
10365 else
10366 case $STAT in
10367 [\\/]* | ?:[\\/]*)
10368 ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
10369 ;;
10370 *)
10371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10372 for as_dir in $PATH
10373 do
10374 IFS=$as_save_IFS
10375 test -z "$as_dir" && as_dir=.
10376 for ac_exec_ext in '' $ac_executable_extensions; do
10377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10378 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
10379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10380 break 2
10381 fi
10382 done
10383 done
10384 IFS=$as_save_IFS
10385
10386 ;;
10387 esac
10388 fi
10389 STAT=$ac_cv_path_STAT
10390 if test -n "$STAT"; then
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
10392 $as_echo "$STAT" >&6; }
10393 else
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10395 $as_echo "no" >&6; }
10396 fi
10397
10398
10399 # Extract the first word of "time", so it can be a program name with args.
10400 set dummy time; ac_word=$2
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10402 $as_echo_n "checking for $ac_word... " >&6; }
10403 if ${ac_cv_path_TIME+:} false; then :
10404 $as_echo_n "(cached) " >&6
10405 else
10406 case $TIME in
10407 [\\/]* | ?:[\\/]*)
10408 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
10409 ;;
10410 *)
10411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412 for as_dir in $PATH
10413 do
10414 IFS=$as_save_IFS
10415 test -z "$as_dir" && as_dir=.
10416 for ac_exec_ext in '' $ac_executable_extensions; do
10417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10418 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
10419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10420 break 2
10421 fi
10422 done
10423 done
10424 IFS=$as_save_IFS
10425
10426 ;;
10427 esac
10428 fi
10429 TIME=$ac_cv_path_TIME
10430 if test -n "$TIME"; then
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10432 $as_echo "$TIME" >&6; }
10433 else
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10435 $as_echo "no" >&6; }
10436 fi
10437
10438
10439 # Check if it's GNU time
10440 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
10441 if test "x$IS_GNU_TIME" != x; then
10442 IS_GNU_TIME=yes
10443 else
10444 IS_GNU_TIME=no
10445 fi
10446
10447
10448 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
10449
10450 for ac_prog in comm
10451 do
10452 # Extract the first word of "$ac_prog", so it can be a program name with args.
10453 set dummy $ac_prog; ac_word=$2
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10455 $as_echo_n "checking for $ac_word... " >&6; }
10456 if ${ac_cv_path_COMM+:} false; then :
10457 $as_echo_n "(cached) " >&6
10458 else
10459 case $COMM in
10460 [\\/]* | ?:[\\/]*)
10461 ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
10462 ;;
10463 *)
10464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465 for as_dir in $PATH
10466 do
10467 IFS=$as_save_IFS
10468 test -z "$as_dir" && as_dir=.
10469 for ac_exec_ext in '' $ac_executable_extensions; do
10470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10471 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
10472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 break 2
10474 fi
10475 done
10476 done
10477 IFS=$as_save_IFS
10478
10479 ;;
10480 esac
10481 fi
10482 COMM=$ac_cv_path_COMM
10483 if test -n "$COMM"; then
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
10485 $as_echo "$COMM" >&6; }
10486 else
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10488 $as_echo "no" >&6; }
10489 fi
10490
10498 PROG_NAME=comm
10499 else
10500 PROG_NAME=comm
10501 fi
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10503 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10504 as_fn_error $? "Cannot continue" "$LINENO" 5
10505 fi
10506
10507
10508 fi
10509
10510 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
10511
10512 for ac_prog in xattr
10513 do
10514 # Extract the first word of "$ac_prog", so it can be a program name with args.
10515 set dummy $ac_prog; ac_word=$2
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10517 $as_echo_n "checking for $ac_word... " >&6; }
10518 if ${ac_cv_path_XATTR+:} false; then :
10519 $as_echo_n "(cached) " >&6
10520 else
10521 case $XATTR in
10522 [\\/]* | ?:[\\/]*)
10523 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
10524 ;;
10525 *)
10526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527 for as_dir in $PATH
10528 do
10529 IFS=$as_save_IFS
10530 test -z "$as_dir" && as_dir=.
10531 for ac_exec_ext in '' $ac_executable_extensions; do
10532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10533 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 break 2
10536 fi
10537 done
10538 done
10539 IFS=$as_save_IFS
10540
10541 ;;
10542 esac
10543 fi
10544 XATTR=$ac_cv_path_XATTR
10545 if test -n "$XATTR"; then
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
10547 $as_echo "$XATTR" >&6; }
10548 else
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550 $as_echo "no" >&6; }
10551 fi
10552
10554 test -n "$XATTR" && break
10555 done
10556
10557
10558 if test "x$XATTR" = x; then
10559 if test "xxattr" = x; then
10560 PROG_NAME=xattr
10561 else
10562 PROG_NAME=xattr
10563 fi
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10565 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10566 as_fn_error $? "Cannot continue" "$LINENO" 5
10567 fi
10568
10569
10570 # Extract the first word of "codesign", so it can be a program name with args.
10571 set dummy codesign; ac_word=$2
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10573 $as_echo_n "checking for $ac_word... " >&6; }
10574 if ${ac_cv_path_CODESIGN+:} false; then :
10575 $as_echo_n "(cached) " >&6
10576 else
10577 case $CODESIGN in
10578 [\\/]* | ?:[\\/]*)
10579 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
10580 ;;
10581 *)
10582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10583 for as_dir in $PATH
10584 do
10585 IFS=$as_save_IFS
10586 test -z "$as_dir" && as_dir=.
10587 for ac_exec_ext in '' $ac_executable_extensions; do
10588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10589 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
10590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10591 break 2
10592 fi
10593 done
10594 done
10595 IFS=$as_save_IFS
10596
10597 ;;
10598 esac
10599 fi
10600 CODESIGN=$ac_cv_path_CODESIGN
10601 if test -n "$CODESIGN"; then
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
10603 $as_echo "$CODESIGN" >&6; }
10604 else
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10606 $as_echo "no" >&6; }
10607 fi
10608
10618 if test "x$CODESIGN" = x; then
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620 $as_echo "no" >&6; }
10621 else
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10623 $as_echo "yes" >&6; }
10624 fi
10625 fi
10626 fi
10627
10628
10629 # Check if pkg-config is available.
10630
10631
10632 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10633 if test -n "$ac_tool_prefix"; then
10634 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10635 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10637 $as_echo_n "checking for $ac_word... " >&6; }
10638 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10639 $as_echo_n "(cached) " >&6
10640 else
10641 case $PKG_CONFIG in
10642 [\\/]* | ?:[\\/]*)
10643 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10644 ;;
10645 *)
10646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10647 for as_dir in $PATH
10648 do
10649 IFS=$as_save_IFS
10650 test -z "$as_dir" && as_dir=.
10651 for ac_exec_ext in '' $ac_executable_extensions; do
10652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10653 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10655 break 2
10656 fi
10657 done
10658 done
10659 IFS=$as_save_IFS
10660
10661 ;;
10662 esac
10663 fi
10664 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10665 if test -n "$PKG_CONFIG"; then
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10667 $as_echo "$PKG_CONFIG" >&6; }
10668 else
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; }
10671 fi
10672
10673
10674 fi
10675 if test -z "$ac_cv_path_PKG_CONFIG"; then
10676 ac_pt_PKG_CONFIG=$PKG_CONFIG
10677 # Extract the first word of "pkg-config", so it can be a program name with args.
10678 set dummy pkg-config; ac_word=$2
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10680 $as_echo_n "checking for $ac_word... " >&6; }
10681 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10682 $as_echo_n "(cached) " >&6
10683 else
10684 case $ac_pt_PKG_CONFIG in
10685 [\\/]* | ?:[\\/]*)
10686 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10687 ;;
10688 *)
10689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10690 for as_dir in $PATH
10691 do
10692 IFS=$as_save_IFS
10693 test -z "$as_dir" && as_dir=.
10694 for ac_exec_ext in '' $ac_executable_extensions; do
10695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10696 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10698 break 2
10699 fi
10700 done
10701 done
10702 IFS=$as_save_IFS
10703
10704 ;;
10705 esac
10706 fi
10707 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10708 if test -n "$ac_pt_PKG_CONFIG"; then
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10710 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10711 else
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713 $as_echo "no" >&6; }
10714 fi
10715
10834 echo Build stays the same $rewritten_build
10835 else
10836 echo Rewriting build for builddeps into $rewritten_build
10837 fi
10838 eval rewritten_target=\${REWRITE_${target_var}}
10839 if test "x$rewritten_target" = x; then
10840 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
10841 echo Target stays the same $rewritten_target
10842 else
10843 echo Rewriting target for builddeps into $rewritten_target
10844 fi
10845 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
10846 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
10847 fi
10848 for ac_prog in 7z unzip
10849 do
10850 # Extract the first word of "$ac_prog", so it can be a program name with args.
10851 set dummy $ac_prog; ac_word=$2
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10853 $as_echo_n "checking for $ac_word... " >&6; }
10854 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
10855 $as_echo_n "(cached) " >&6
10856 else
10857 if test -n "$BDEPS_UNZIP"; then
10858 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
10859 else
10860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861 for as_dir in $PATH
10862 do
10863 IFS=$as_save_IFS
10864 test -z "$as_dir" && as_dir=.
10865 for ac_exec_ext in '' $ac_executable_extensions; do
10866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10867 ac_cv_prog_BDEPS_UNZIP="$ac_prog"
10868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10869 break 2
10870 fi
10871 done
10872 done
10873 IFS=$as_save_IFS
10874
10875 fi
10876 fi
10877 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
10878 if test -n "$BDEPS_UNZIP"; then
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
10880 $as_echo "$BDEPS_UNZIP" >&6; }
10881 else
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10883 $as_echo "no" >&6; }
10884 fi
10885
10886
10887 test -n "$BDEPS_UNZIP" && break
10888 done
10889
10890 if test "x$BDEPS_UNZIP" = x7z; then
10891 BDEPS_UNZIP="7z x"
10892 fi
10893
10894 for ac_prog in wget lftp ftp
10895 do
10896 # Extract the first word of "$ac_prog", so it can be a program name with args.
10897 set dummy $ac_prog; ac_word=$2
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10899 $as_echo_n "checking for $ac_word... " >&6; }
10900 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
10901 $as_echo_n "(cached) " >&6
10902 else
10903 if test -n "$BDEPS_FTP"; then
10904 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
10905 else
10906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10907 for as_dir in $PATH
10908 do
10909 IFS=$as_save_IFS
10910 test -z "$as_dir" && as_dir=.
10911 for ac_exec_ext in '' $ac_executable_extensions; do
10912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10913 ac_cv_prog_BDEPS_FTP="$ac_prog"
10914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10915 break 2
10916 fi
10917 done
10918 done
10919 IFS=$as_save_IFS
10920
10921 fi
10922 fi
10923 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
10924 if test -n "$BDEPS_FTP"; then
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
10926 $as_echo "$BDEPS_FTP" >&6; }
10927 else
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929 $as_echo "no" >&6; }
10930 fi
10931
10932
12176 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '`
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
12178 $as_echo "$BOOT_JDK_VERSION" >&6; }
12179 fi # end check jdk version
12180 fi # end check rt.jar
12181 fi # end check javac
12182 fi # end check java
12183 fi # end check boot jdk found
12184 fi
12185
12186
12187 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
12188
12189 if test "x$BOOT_JDK_FOUND" = xno; then
12190 # Now execute the test
12191
12192 # Extract the first word of "javac", so it can be a program name with args.
12193 set dummy javac; ac_word=$2
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195 $as_echo_n "checking for $ac_word... " >&6; }
12196 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 case $JAVAC_CHECK in
12200 [\\/]* | ?:[\\/]*)
12201 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
12202 ;;
12203 *)
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12206 do
12207 IFS=$as_save_IFS
12208 test -z "$as_dir" && as_dir=.
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12213 break 2
12214 fi
12215 done
12216 done
12217 IFS=$as_save_IFS
12218
12219 ;;
12220 esac
12221 fi
12222 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
12223 if test -n "$JAVAC_CHECK"; then
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
12225 $as_echo "$JAVAC_CHECK" >&6; }
12226 else
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12229 fi
12230
12231
12232 # Extract the first word of "java", so it can be a program name with args.
12233 set dummy java; ac_word=$2
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12235 $as_echo_n "checking for $ac_word... " >&6; }
12236 if ${ac_cv_path_JAVA_CHECK+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 case $JAVA_CHECK in
12240 [\\/]* | ?:[\\/]*)
12241 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
12242 ;;
12243 *)
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $PATH
12246 do
12247 IFS=$as_save_IFS
12248 test -z "$as_dir" && as_dir=.
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12251 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
12252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12253 break 2
12254 fi
12255 done
12256 done
12257 IFS=$as_save_IFS
12258
12259 ;;
12260 esac
12261 fi
12262 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
12263 if test -n "$JAVA_CHECK"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
12265 $as_echo "$JAVA_CHECK" >&6; }
12266 else
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12269 fi
12270
15744
15745 # If we haven't found anything yet, we've truly lost. Give up.
15746 if test "x$BOOT_JDK_FOUND" = xno; then
15747
15748 # Print a helpful message on how to acquire the necessary build dependency.
15749 # openjdk is the help tag: freetyp2, cups, pulse, alsa etc
15750 MISSING_DEPENDENCY=openjdk
15751 PKGHANDLER_COMMAND=
15752
15753 case $PKGHANDLER in
15754 apt-get)
15755 apt_help $MISSING_DEPENDENCY ;;
15756 yum)
15757 yum_help $MISSING_DEPENDENCY ;;
15758 port)
15759 port_help $MISSING_DEPENDENCY ;;
15760 pkgutil)
15761 pkgutil_help $MISSING_DEPENDENCY ;;
15762 pkgadd)
15763 pkgadd_help $MISSING_DEPENDENCY ;;
15764 esac
15765
15766 if test "x$PKGHANDLER_COMMAND" != x; then
15767 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
15768 fi
15769
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5
15771 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;}
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
15773 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
15774 as_fn_error $? "Cannot continue" "$LINENO" 5
15775 fi
15776
15777 # Setup proper paths for what we found
15778 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
15779 if test ! -f "$BOOT_RTJAR"; then
15780 # On MacOSX it is called classes.jar
15781 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar"
15782 if test -f "$BOOT_RTJAR"; then
15783 # Remove the ..
16543
16544
16545 # jtreg win32 script works for everybody
16546 JTREGEXE="$JT_HOME/win32/bin/jtreg"
16547
16548 if test ! -f "$JTREGEXE"; then
16549 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5
16550 fi
16551
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
16553 $as_echo "$JTREGEXE" >&6; }
16554 else
16555 # try to find jtreg on path
16556
16557 for ac_prog in jtreg
16558 do
16559 # Extract the first word of "$ac_prog", so it can be a program name with args.
16560 set dummy $ac_prog; ac_word=$2
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16562 $as_echo_n "checking for $ac_word... " >&6; }
16563 if ${ac_cv_path_JTREGEXE+:} false; then :
16564 $as_echo_n "(cached) " >&6
16565 else
16566 case $JTREGEXE in
16567 [\\/]* | ?:[\\/]*)
16568 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
16569 ;;
16570 *)
16571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16572 for as_dir in $PATH
16573 do
16574 IFS=$as_save_IFS
16575 test -z "$as_dir" && as_dir=.
16576 for ac_exec_ext in '' $ac_executable_extensions; do
16577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16578 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
16579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16580 break 2
16581 fi
16582 done
16583 done
16584 IFS=$as_save_IFS
16585
16586 ;;
16587 esac
16588 fi
16589 JTREGEXE=$ac_cv_path_JTREGEXE
16590 if test -n "$JTREGEXE"; then
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
16592 $as_echo "$JTREGEXE" >&6; }
16593 else
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16595 $as_echo "no" >&6; }
16596 fi
16597
16611 as_fn_error $? "Cannot continue" "$LINENO" 5
16612 fi
16613
16614
16615 JT_HOME="`$DIRNAME $JTREGEXE`"
16616 fi
16617 fi
16618
16619
16620
16621
16622
16623 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16624
16625 # Store path to cygwin link.exe to help excluding it when searching for
16626 # VS linker. This must be done before changing the PATH when looking for VS.
16627 # Extract the first word of "link", so it can be a program name with args.
16628 set dummy link; ac_word=$2
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16630 $as_echo_n "checking for $ac_word... " >&6; }
16631 if ${ac_cv_path_CYGWIN_LINK+:} false; then :
16632 $as_echo_n "(cached) " >&6
16633 else
16634 case $CYGWIN_LINK in
16635 [\\/]* | ?:[\\/]*)
16636 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path.
16637 ;;
16638 *)
16639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16640 for as_dir in $PATH
16641 do
16642 IFS=$as_save_IFS
16643 test -z "$as_dir" && as_dir=.
16644 for ac_exec_ext in '' $ac_executable_extensions; do
16645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16646 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext"
16647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16648 break 2
16649 fi
16650 done
16651 done
16652 IFS=$as_save_IFS
16653
16654 ;;
16655 esac
16656 fi
16657 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK
16658 if test -n "$CYGWIN_LINK"; then
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5
16660 $as_echo "$CYGWIN_LINK" >&6; }
16661 else
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16663 $as_echo "no" >&6; }
16664 fi
16665
18054 # For example the binary i686-sun-solaris2.10-gcc
18055 # will cross compile for i686-sun-solaris2.10
18056 # If neither of build and host is not set, then build=host and the
18057 # default compiler found in the path will be used.
18058 # Setting only --host, does not seem to be really supported.
18059 # Please set both --build and --host if you want to cross compile.
18060
18061 if test "x$COMPILE_TYPE" = "xcross"; then
18062 # Now we to find a C/C++ compiler that can build executables for the build
18063 # platform. We can't use the AC_PROG_CC macro, since it can only be used
18064 # once. Also, we need to do this before adding a tools dir to the path,
18065 # otherwise we might pick up cross-compilers which don't use standard naming.
18066 # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have
18067 # to wait until they are properly discovered.
18068 for ac_prog in cl cc gcc
18069 do
18070 # Extract the first word of "$ac_prog", so it can be a program name with args.
18071 set dummy $ac_prog; ac_word=$2
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18073 $as_echo_n "checking for $ac_word... " >&6; }
18074 if ${ac_cv_path_BUILD_CC+:} false; then :
18075 $as_echo_n "(cached) " >&6
18076 else
18077 case $BUILD_CC in
18078 [\\/]* | ?:[\\/]*)
18079 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
18080 ;;
18081 *)
18082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18083 for as_dir in $PATH
18084 do
18085 IFS=$as_save_IFS
18086 test -z "$as_dir" && as_dir=.
18087 for ac_exec_ext in '' $ac_executable_extensions; do
18088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18089 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
18090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18091 break 2
18092 fi
18093 done
18094 done
18095 IFS=$as_save_IFS
18096
18097 ;;
18098 esac
18099 fi
18100 BUILD_CC=$ac_cv_path_BUILD_CC
18101 if test -n "$BUILD_CC"; then
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
18103 $as_echo "$BUILD_CC" >&6; }
18104 else
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18106 $as_echo "no" >&6; }
18107 fi
18108
18365
18366 # Now join together the path and the arguments once again
18367 if test "x$arguments" != xEOL; then
18368 new_complete="$new_path ${arguments% *}"
18369 else
18370 new_complete="$new_path"
18371 fi
18372
18373 if test "x$complete" != "x$new_complete"; then
18374 BUILD_CC="$new_complete"
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5
18376 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;}
18377 fi
18378
18379 for ac_prog in cl CC g++
18380 do
18381 # Extract the first word of "$ac_prog", so it can be a program name with args.
18382 set dummy $ac_prog; ac_word=$2
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18384 $as_echo_n "checking for $ac_word... " >&6; }
18385 if ${ac_cv_path_BUILD_CXX+:} false; then :
18386 $as_echo_n "(cached) " >&6
18387 else
18388 case $BUILD_CXX in
18389 [\\/]* | ?:[\\/]*)
18390 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
18391 ;;
18392 *)
18393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18394 for as_dir in $PATH
18395 do
18396 IFS=$as_save_IFS
18397 test -z "$as_dir" && as_dir=.
18398 for ac_exec_ext in '' $ac_executable_extensions; do
18399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18400 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
18401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18402 break 2
18403 fi
18404 done
18405 done
18406 IFS=$as_save_IFS
18407
18408 ;;
18409 esac
18410 fi
18411 BUILD_CXX=$ac_cv_path_BUILD_CXX
18412 if test -n "$BUILD_CXX"; then
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
18414 $as_echo "$BUILD_CXX" >&6; }
18415 else
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18417 $as_echo "no" >&6; }
18418 fi
18419
18674 fi
18675 fi
18676
18677 # Now join together the path and the arguments once again
18678 if test "x$arguments" != xEOL; then
18679 new_complete="$new_path ${arguments% *}"
18680 else
18681 new_complete="$new_path"
18682 fi
18683
18684 if test "x$complete" != "x$new_complete"; then
18685 BUILD_CXX="$new_complete"
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5
18687 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;}
18688 fi
18689
18690 # Extract the first word of "ld", so it can be a program name with args.
18691 set dummy ld; 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 ${ac_cv_path_BUILD_LD+:} false; then :
18695 $as_echo_n "(cached) " >&6
18696 else
18697 case $BUILD_LD in
18698 [\\/]* | ?:[\\/]*)
18699 ac_cv_path_BUILD_LD="$BUILD_LD" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18709 ac_cv_path_BUILD_LD="$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
18715 IFS=$as_save_IFS
18716
18717 ;;
18718 esac
18719 fi
18720 BUILD_LD=$ac_cv_path_BUILD_LD
18721 if test -n "$BUILD_LD"; then
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5
18723 $as_echo "$BUILD_LD" >&6; }
18724 else
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18726 $as_echo "no" >&6; }
18727 fi
18728
19162
19163 # autoconf magic only relies on PATH, so update it if tools dir is specified
19164 OLD_PATH="$PATH"
19165 if test "x$TOOLS_DIR" != x; then
19166 PATH=$TOOLS_DIR:$PATH
19167 fi
19168
19169
19170 ### Locate C compiler (CC)
19171
19172 # On windows, only cl.exe is supported.
19173 # On Solaris, cc is preferred to gcc.
19174 # Elsewhere, gcc is preferred to cc.
19175
19176 if test "x$CC" != x; then
19177 COMPILER_CHECK_LIST="$CC"
19178 elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then
19179 COMPILER_CHECK_LIST="cl"
19180 elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
19181 COMPILER_CHECK_LIST="cc gcc"
19182 elif test "x$OPENJDK_TARGET_OS" = "xaix"; then
19183 # Do not probe for cc on AIX.
19184 COMPILER_CHECK_LIST="xlc_r"
19185 else
19186 COMPILER_CHECK_LIST="gcc cc"
19187 fi
19188
19189
19190 COMPILER_NAME=C
19191
19192 CC=
19193 # If TOOLS_DIR is set, check for all compiler names in there first
19194 # before checking the rest of the PATH.
19195 if test -n "$TOOLS_DIR"; then
19196 PATH_save="$PATH"
19197 PATH="$TOOLS_DIR"
19198 for ac_prog in $COMPILER_CHECK_LIST
19199 do
19200 # Extract the first word of "$ac_prog", so it can be a program name with args.
19201 set dummy $ac_prog; ac_word=$2
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19203 $as_echo_n "checking for $ac_word... " >&6; }
19204 if ${ac_cv_path_TOOLS_DIR_CC+:} false; then :
19205 $as_echo_n "(cached) " >&6
19206 else
19207 case $TOOLS_DIR_CC in
19208 [\\/]* | ?:[\\/]*)
19209 ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path.
19210 ;;
19211 *)
19212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19213 for as_dir in $PATH
19214 do
19215 IFS=$as_save_IFS
19216 test -z "$as_dir" && as_dir=.
19217 for ac_exec_ext in '' $ac_executable_extensions; do
19218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19219 ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext"
19220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19221 break 2
19222 fi
19223 done
19224 done
19225 IFS=$as_save_IFS
19226
19227 ;;
19228 esac
19229 fi
19230 TOOLS_DIR_CC=$ac_cv_path_TOOLS_DIR_CC
19231 if test -n "$TOOLS_DIR_CC"; then
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CC" >&5
19233 $as_echo "$TOOLS_DIR_CC" >&6; }
19234 else
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19236 $as_echo "no" >&6; }
19237 fi
19238
19239
19240 test -n "$TOOLS_DIR_CC" && break
19241 done
19242
19243 CC=$TOOLS_DIR_CC
19244 PATH="$PATH_save"
19245 fi
19246
19247 # AC_PATH_PROGS can't be run multiple times with the same variable,
19248 # so create a new name for this run.
19249 if test "x$CC" = x; then
19250 for ac_prog in $COMPILER_CHECK_LIST
19251 do
19252 # Extract the first word of "$ac_prog", so it can be a program name with args.
19253 set dummy $ac_prog; ac_word=$2
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19255 $as_echo_n "checking for $ac_word... " >&6; }
19256 if ${ac_cv_path_POTENTIAL_CC+:} false; then :
19257 $as_echo_n "(cached) " >&6
19258 else
19259 case $POTENTIAL_CC in
19260 [\\/]* | ?:[\\/]*)
19261 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
19262 ;;
19263 *)
19264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19265 for as_dir in $PATH
19266 do
19267 IFS=$as_save_IFS
19268 test -z "$as_dir" && as_dir=.
19269 for ac_exec_ext in '' $ac_executable_extensions; do
19270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19271 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
19272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19273 break 2
19274 fi
19275 done
19276 done
19277 IFS=$as_save_IFS
19278
19279 ;;
19280 esac
19281 fi
19282 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC
19283 if test -n "$POTENTIAL_CC"; then
19284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5
19285 $as_echo "$POTENTIAL_CC" >&6; }
19286 else
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19288 $as_echo "no" >&6; }
19289 fi
19290
19296 fi
19297
19298 if test "x$CC" = x; then
19299
19300 # Print a helpful message on how to acquire the necessary build dependency.
19301 # devkit is the help tag: freetyp2, cups, pulse, alsa etc
19302 MISSING_DEPENDENCY=devkit
19303 PKGHANDLER_COMMAND=
19304
19305 case $PKGHANDLER in
19306 apt-get)
19307 apt_help $MISSING_DEPENDENCY ;;
19308 yum)
19309 yum_help $MISSING_DEPENDENCY ;;
19310 port)
19311 port_help $MISSING_DEPENDENCY ;;
19312 pkgutil)
19313 pkgutil_help $MISSING_DEPENDENCY ;;
19314 pkgadd)
19315 pkgadd_help $MISSING_DEPENDENCY ;;
19316 esac
19317
19318 if test "x$PKGHANDLER_COMMAND" != x; then
19319 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
19320 fi
19321
19322 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5
19323 fi
19324
19325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19326
19327 # First separate the path from the arguments. This will split at the first
19328 # space.
19329 complete="$CC"
19330 path="${complete%% *}"
19331 tmp="$complete EOL"
19332 arguments="${tmp#* }"
19333
19334 # Input might be given as Windows format, start by converting to
19335 # unix format.
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19571 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19572 fi
19573 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
19574 fi
19575 fi
19576
19577 # Now join together the path and the arguments once again
19578 if test "x$arguments" != xEOL; then
19579 new_complete="$new_path ${arguments% *}"
19580 else
19581 new_complete="$new_path"
19582 fi
19583
19584 if test "x$complete" != "x$new_complete"; then
19585 CC="$new_complete"
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5
19587 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;}
19588 fi
19589
19590 TEST_COMPILER="$CC"
19591 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links
19592 # to 'xlc' but it is crucial that we invoke the compiler with the right name!
19593 if test "x$OPENJDK_BUILD_OS" != xaix; then
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5
19595 $as_echo_n "checking resolved symbolic links for CC... " >&6; }
19596
19597 if test "x$OPENJDK_BUILD_OS" != xwindows; then
19598 # Follow a chain of symbolic links. Use readlink
19599 # where it exists, else fall back to horribly
19600 # complicated shell code.
19601 if test "x$READLINK_TESTED" != yes; then
19602 # On MacOSX there is a readlink tool with a different
19603 # purpose than the GNU readlink tool. Check the found readlink.
19604 ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
19605 if test "x$ISGNU" = x; then
19606 # A readlink that we do not know how to use.
19607 # Are there other non-GNU readlinks out there?
19608 READLINK_TESTED=yes
19609 READLINK=
19610 fi
19611 fi
19612
19613 if test "x$READLINK" != x; then
19614 TEST_COMPILER=`$READLINK -f $TEST_COMPILER`
19615 else
19626 while test $COUNTER -lt 20; do
19627 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
19628 if test "x$ISLINK" == x; then
19629 # This is not a symbolic link! We are done!
19630 break
19631 fi
19632 # Again resolve directory symlinks since the target of the just found
19633 # link could be in a different directory
19634 cd `$DIRNAME $ISLINK`
19635 sym_link_dir=`$THEPWDCMD -P`
19636 sym_link_file=`$BASENAME $ISLINK`
19637 let COUNTER=COUNTER+1
19638 done
19639 cd $STARTDIR
19640 TEST_COMPILER=$sym_link_dir/$sym_link_file
19641 fi
19642 fi
19643
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5
19645 $as_echo "$TEST_COMPILER" >&6; }
19646 fi
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5
19648 $as_echo_n "checking if CC is disguised ccache... " >&6; }
19649
19650 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"`
19651 if test "x$COMPILER_BASENAME" = "xccache"; then
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
19653 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
19654 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
19655 # We want to control ccache invocation ourselves, so ignore this cc and try
19656 # searching again.
19657
19658 # Remove the path to the fake ccache cc from the PATH
19659 RETRY_COMPILER_SAVED_PATH="$PATH"
19660 COMPILER_DIRNAME=`$DIRNAME $CC`
19661 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
19662
19663 # Try again looking for our compiler
19664 if test -n "$ac_tool_prefix"; then
19665 for ac_prog in $COMPILER_CHECK_LIST
19666 do
19667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19670 $as_echo_n "checking for $ac_word... " >&6; }
19671 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then :
19672 $as_echo_n "(cached) " >&6
19673 else
19674 if test -n "$PROPER_COMPILER_CC"; then
19675 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test.
19676 else
19677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19678 for as_dir in $PATH
19679 do
19680 IFS=$as_save_IFS
19681 test -z "$as_dir" && as_dir=.
19682 for ac_exec_ext in '' $ac_executable_extensions; do
19683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19684 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog"
19685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19686 break 2
19687 fi
19688 done
19689 done
19690 IFS=$as_save_IFS
19691
19692 fi
19693 fi
19694 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC
19695 if test -n "$PROPER_COMPILER_CC"; then
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
19697 $as_echo "$PROPER_COMPILER_CC" >&6; }
19698 else
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19700 $as_echo "no" >&6; }
19701 fi
19702
19703
19704 test -n "$PROPER_COMPILER_CC" && break
19705 done
19706 fi
19707 if test -z "$PROPER_COMPILER_CC"; then
19708 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC
19709 for ac_prog in $COMPILER_CHECK_LIST
19710 do
19711 # Extract the first word of "$ac_prog", so it can be a program name with args.
19712 set dummy $ac_prog; ac_word=$2
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19714 $as_echo_n "checking for $ac_word... " >&6; }
19715 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then :
19716 $as_echo_n "(cached) " >&6
19717 else
19718 if test -n "$ac_ct_PROPER_COMPILER_CC"; then
19719 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test.
19720 else
19721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19722 for as_dir in $PATH
19723 do
19724 IFS=$as_save_IFS
19725 test -z "$as_dir" && as_dir=.
19726 for ac_exec_ext in '' $ac_executable_extensions; do
19727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19728 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog"
19729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19730 break 2
19731 fi
19732 done
19733 done
19734 IFS=$as_save_IFS
19735
19736 fi
19737 fi
19738 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC
19739 if test -n "$ac_ct_PROPER_COMPILER_CC"; then
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5
19741 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; }
19742 else
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19744 $as_echo "no" >&6; }
19745 fi
19746
19747
20090
20091 COMPILER=$CC
20092 COMPILER_NAME=$COMPILER_NAME
20093
20094 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
20095 # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work
20096 COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1`
20097 $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null
20098 if test $? -ne 0; then
20099 GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
20100
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5
20102 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;}
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5
20104 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;}
20105 as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5
20106 else
20107 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"`
20108 COMPILER_VENDOR="Sun Studio"
20109 fi
20110 elif test "x$OPENJDK_TARGET_OS" = xaix; then
20111 COMPILER_VERSION_TEST=`$COMPILER -qversion 2>&1 | $TAIL -n 1`
20112 $ECHO $COMPILER_VERSION_TEST | $GREP "^Version: " > /dev/null
20113 if test $? -ne 0; then
20114 as_fn_error $? "Failed to detect the compiler version of $COMPILER ...." "$LINENO" 5
20115 else
20116 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n 's/Version: \(0-90-9\.0-90-9*\).*/\1/p'`
20117 COMPILER_VENDOR='IBM'
20118 fi
20119 elif test "x$OPENJDK_TARGET_OS" = xwindows; then
20120 # First line typically looks something like:
20121 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
20122 COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
20123 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
20124 COMPILER_VENDOR="Microsoft CL.EXE"
20125 COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
20126 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then
20127 if test "x$COMPILER_CPU_TEST" != "x80x86"; then
20128 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5
20129 fi
20130 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
20131 if test "x$COMPILER_CPU_TEST" != "xx64"; then
20132 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5
20133 fi
20134 fi
20135 else
20136 COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
20137 # Check that this is likely to be GCC.
20138 $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null
20154 # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
20155 CC_VENDOR="$COMPILER_VENDOR"
20156
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
20158 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
20159
20160
20161 # Now that we have resolved CC ourself, let autoconf have its go at it
20162 ac_ext=c
20163 ac_cpp='$CPP $CPPFLAGS'
20164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20167 if test -n "$ac_tool_prefix"; then
20168 for ac_prog in $CC
20169 do
20170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20173 $as_echo_n "checking for $ac_word... " >&6; }
20174 if ${ac_cv_prog_CC+:} false; then :
20175 $as_echo_n "(cached) " >&6
20176 else
20177 if test -n "$CC"; then
20178 ac_cv_prog_CC="$CC" # Let the user override the test.
20179 else
20180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20181 for as_dir in $PATH
20182 do
20183 IFS=$as_save_IFS
20184 test -z "$as_dir" && as_dir=.
20185 for ac_exec_ext in '' $ac_executable_extensions; do
20186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20187 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20189 break 2
20190 fi
20191 done
20192 done
20193 IFS=$as_save_IFS
20194
20195 fi
20196 fi
20197 CC=$ac_cv_prog_CC
20198 if test -n "$CC"; then
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
20200 $as_echo "$CC" >&6; }
20201 else
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20203 $as_echo "no" >&6; }
20204 fi
20205
20206
20207 test -n "$CC" && break
20208 done
20209 fi
20210 if test -z "$CC"; then
20211 ac_ct_CC=$CC
20212 for ac_prog in $CC
20213 do
20214 # Extract the first word of "$ac_prog", so it can be a program name with args.
20215 set dummy $ac_prog; ac_word=$2
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20217 $as_echo_n "checking for $ac_word... " >&6; }
20218 if ${ac_cv_prog_ac_ct_CC+:} false; then :
20219 $as_echo_n "(cached) " >&6
20220 else
20221 if test -n "$ac_ct_CC"; then
20222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20223 else
20224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20225 for as_dir in $PATH
20226 do
20227 IFS=$as_save_IFS
20228 test -z "$as_dir" && as_dir=.
20229 for ac_exec_ext in '' $ac_executable_extensions; do
20230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20231 ac_cv_prog_ac_ct_CC="$ac_prog"
20232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20233 break 2
20234 fi
20235 done
20236 done
20237 IFS=$as_save_IFS
20238
20239 fi
20240 fi
20241 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20242 if test -n "$ac_ct_CC"; then
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
20244 $as_echo "$ac_ct_CC" >&6; }
20245 else
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20247 $as_echo "no" >&6; }
20248 fi
20249
20250
20479 cross_compiling=no
20480 else
20481 if test "$cross_compiling" = maybe; then
20482 cross_compiling=yes
20483 else
20484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20486 as_fn_error $? "cannot run C compiled programs.
20487 If you meant to cross compile, use \`--host'.
20488 See \`config.log' for more details" "$LINENO" 5; }
20489 fi
20490 fi
20491 fi
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
20493 $as_echo "$cross_compiling" >&6; }
20494
20495 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
20496 ac_clean_files=$ac_clean_files_save
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
20498 $as_echo_n "checking for suffix of object files... " >&6; }
20499 if ${ac_cv_objext+:} false; then :
20500 $as_echo_n "(cached) " >&6
20501 else
20502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20503 /* end confdefs.h. */
20504
20505 int
20506 main ()
20507 {
20508
20509 ;
20510 return 0;
20511 }
20512 _ACEOF
20513 rm -f conftest.o conftest.obj
20514 if { { ac_try="$ac_compile"
20515 case "(($ac_try" in
20516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517 *) ac_try_echo=$ac_try;;
20518 esac
20519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20530 break;;
20531 esac
20532 done
20533 else
20534 $as_echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20536
20537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20539 as_fn_error $? "cannot compute suffix of object files: cannot compile
20540 See \`config.log' for more details" "$LINENO" 5; }
20541 fi
20542 rm -f conftest.$ac_cv_objext conftest.$ac_ext
20543 fi
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
20545 $as_echo "$ac_cv_objext" >&6; }
20546 OBJEXT=$ac_cv_objext
20547 ac_objext=$OBJEXT
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
20549 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20550 if ${ac_cv_c_compiler_gnu+:} false; then :
20551 $as_echo_n "(cached) " >&6
20552 else
20553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20554 /* end confdefs.h. */
20555
20556 int
20557 main ()
20558 {
20559 #ifndef __GNUC__
20560 choke me
20561 #endif
20562
20563 ;
20564 return 0;
20565 }
20566 _ACEOF
20567 if ac_fn_c_try_compile "$LINENO"; then :
20568 ac_compiler_gnu=yes
20569 else
20570 ac_compiler_gnu=no
20571 fi
20572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20573 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20574
20575 fi
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
20577 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20578 if test $ac_compiler_gnu = yes; then
20579 GCC=yes
20580 else
20581 GCC=
20582 fi
20583 ac_test_CFLAGS=${CFLAGS+set}
20584 ac_save_CFLAGS=$CFLAGS
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
20586 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20587 if ${ac_cv_prog_cc_g+:} false; then :
20588 $as_echo_n "(cached) " >&6
20589 else
20590 ac_save_c_werror_flag=$ac_c_werror_flag
20591 ac_c_werror_flag=yes
20592 ac_cv_prog_cc_g=no
20593 CFLAGS="-g"
20594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20595 /* end confdefs.h. */
20596
20597 int
20598 main ()
20599 {
20600
20601 ;
20602 return 0;
20603 }
20604 _ACEOF
20605 if ac_fn_c_try_compile "$LINENO"; then :
20606 ac_cv_prog_cc_g=yes
20607 else
20645 fi
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
20647 $as_echo "$ac_cv_prog_cc_g" >&6; }
20648 if test "$ac_test_CFLAGS" = set; then
20649 CFLAGS=$ac_save_CFLAGS
20650 elif test $ac_cv_prog_cc_g = yes; then
20651 if test "$GCC" = yes; then
20652 CFLAGS="-g -O2"
20653 else
20654 CFLAGS="-g"
20655 fi
20656 else
20657 if test "$GCC" = yes; then
20658 CFLAGS="-O2"
20659 else
20660 CFLAGS=
20661 fi
20662 fi
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
20664 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20665 if ${ac_cv_prog_cc_c89+:} false; then :
20666 $as_echo_n "(cached) " >&6
20667 else
20668 ac_cv_prog_cc_c89=no
20669 ac_save_CC=$CC
20670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20671 /* end confdefs.h. */
20672 #include <stdarg.h>
20673 #include <stdio.h>
20674 struct stat;
20675 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20676 struct buf { int x; };
20677 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20678 static char *e (p, i)
20679 char **p;
20680 int i;
20681 {
20682 return p[i];
20683 }
20684 static char *f (char * (*g) (char **, int), char **p, ...)
20685 {
20686 char *s;
20687 va_list v;
20688 va_start (v,p);
20689 s = g (p, va_arg (v,int));
20690 va_end (v);
20691 return s;
20692 }
20693
20694 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20740 $as_echo "none needed" >&6; } ;;
20741 xno)
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
20743 $as_echo "unsupported" >&6; } ;;
20744 *)
20745 CC="$CC $ac_cv_prog_cc_c89"
20746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
20747 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20748 esac
20749 if test "x$ac_cv_prog_cc_c89" != xno; then :
20750
20751 fi
20752
20753 ac_ext=cpp
20754 ac_cpp='$CXXCPP $CPPFLAGS'
20755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20758
20759
20760 # Option used to tell the compiler whether to create 32- or 64-bit executables
20761 # Notice that CC contains the full compiler path at this point.
20762 case $CC in
20763 *xlc_r) COMPILER_TARGET_BITS_FLAG="-q";;
20764 *) COMPILER_TARGET_BITS_FLAG="-m";;
20765 esac
20766
20767
20768 ### Locate C++ compiler (CXX)
20769
20770 if test "x$CXX" != x; then
20771 COMPILER_CHECK_LIST="$CXX"
20772 elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then
20773 COMPILER_CHECK_LIST="cl"
20774 elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
20775 COMPILER_CHECK_LIST="CC g++"
20776 elif test "x$OPENJDK_TARGET_OS" = "xaix"; then
20777 # Do not probe for CC on AIX .
20778 COMPILER_CHECK_LIST="xlC_r"
20779 else
20780 COMPILER_CHECK_LIST="g++ CC"
20781 fi
20782
20783
20784 COMPILER_NAME=C++
20785
20786 CXX=
20787 # If TOOLS_DIR is set, check for all compiler names in there first
20788 # before checking the rest of the PATH.
20789 if test -n "$TOOLS_DIR"; then
20790 PATH_save="$PATH"
20791 PATH="$TOOLS_DIR"
20792 for ac_prog in $COMPILER_CHECK_LIST
20793 do
20794 # Extract the first word of "$ac_prog", so it can be a program name with args.
20795 set dummy $ac_prog; ac_word=$2
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20797 $as_echo_n "checking for $ac_word... " >&6; }
20798 if ${ac_cv_path_TOOLS_DIR_CXX+:} false; then :
20799 $as_echo_n "(cached) " >&6
20800 else
20801 case $TOOLS_DIR_CXX in
20802 [\\/]* | ?:[\\/]*)
20803 ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path.
20804 ;;
20805 *)
20806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20807 for as_dir in $PATH
20808 do
20809 IFS=$as_save_IFS
20810 test -z "$as_dir" && as_dir=.
20811 for ac_exec_ext in '' $ac_executable_extensions; do
20812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20813 ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext"
20814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20815 break 2
20816 fi
20817 done
20818 done
20819 IFS=$as_save_IFS
20820
20821 ;;
20822 esac
20823 fi
20824 TOOLS_DIR_CXX=$ac_cv_path_TOOLS_DIR_CXX
20825 if test -n "$TOOLS_DIR_CXX"; then
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CXX" >&5
20827 $as_echo "$TOOLS_DIR_CXX" >&6; }
20828 else
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20830 $as_echo "no" >&6; }
20831 fi
20832
20833
20834 test -n "$TOOLS_DIR_CXX" && break
20835 done
20836
20837 CXX=$TOOLS_DIR_CXX
20838 PATH="$PATH_save"
20839 fi
20840
20841 # AC_PATH_PROGS can't be run multiple times with the same variable,
20842 # so create a new name for this run.
20843 if test "x$CXX" = x; then
20844 for ac_prog in $COMPILER_CHECK_LIST
20845 do
20846 # Extract the first word of "$ac_prog", so it can be a program name with args.
20847 set dummy $ac_prog; ac_word=$2
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20849 $as_echo_n "checking for $ac_word... " >&6; }
20850 if ${ac_cv_path_POTENTIAL_CXX+:} false; then :
20851 $as_echo_n "(cached) " >&6
20852 else
20853 case $POTENTIAL_CXX in
20854 [\\/]* | ?:[\\/]*)
20855 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
20856 ;;
20857 *)
20858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20859 for as_dir in $PATH
20860 do
20861 IFS=$as_save_IFS
20862 test -z "$as_dir" && as_dir=.
20863 for ac_exec_ext in '' $ac_executable_extensions; do
20864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20865 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
20866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20867 break 2
20868 fi
20869 done
20870 done
20871 IFS=$as_save_IFS
20872
20873 ;;
20874 esac
20875 fi
20876 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX
20877 if test -n "$POTENTIAL_CXX"; then
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5
20879 $as_echo "$POTENTIAL_CXX" >&6; }
20880 else
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20882 $as_echo "no" >&6; }
20883 fi
20884
20890 fi
20891
20892 if test "x$CXX" = x; then
20893
20894 # Print a helpful message on how to acquire the necessary build dependency.
20895 # devkit is the help tag: freetyp2, cups, pulse, alsa etc
20896 MISSING_DEPENDENCY=devkit
20897 PKGHANDLER_COMMAND=
20898
20899 case $PKGHANDLER in
20900 apt-get)
20901 apt_help $MISSING_DEPENDENCY ;;
20902 yum)
20903 yum_help $MISSING_DEPENDENCY ;;
20904 port)
20905 port_help $MISSING_DEPENDENCY ;;
20906 pkgutil)
20907 pkgutil_help $MISSING_DEPENDENCY ;;
20908 pkgadd)
20909 pkgadd_help $MISSING_DEPENDENCY ;;
20910 esac
20911
20912 if test "x$PKGHANDLER_COMMAND" != x; then
20913 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
20914 fi
20915
20916 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5
20917 fi
20918
20919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20920
20921 # First separate the path from the arguments. This will split at the first
20922 # space.
20923 complete="$CXX"
20924 path="${complete%% *}"
20925 tmp="$complete EOL"
20926 arguments="${tmp#* }"
20927
20928 # Input might be given as Windows format, start by converting to
20929 # unix format.
21164 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21165 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21166 fi
21167 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
21168 fi
21169 fi
21170
21171 # Now join together the path and the arguments once again
21172 if test "x$arguments" != xEOL; then
21173 new_complete="$new_path ${arguments% *}"
21174 else
21175 new_complete="$new_path"
21176 fi
21177
21178 if test "x$complete" != "x$new_complete"; then
21179 CXX="$new_complete"
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5
21181 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;}
21182 fi
21183
21184 TEST_COMPILER="$CXX"
21185 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links
21186 # to 'xlc' but it is crucial that we invoke the compiler with the right name!
21187 if test "x$OPENJDK_BUILD_OS" != xaix; then
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5
21189 $as_echo_n "checking resolved symbolic links for CXX... " >&6; }
21190
21191 if test "x$OPENJDK_BUILD_OS" != xwindows; then
21192 # Follow a chain of symbolic links. Use readlink
21193 # where it exists, else fall back to horribly
21194 # complicated shell code.
21195 if test "x$READLINK_TESTED" != yes; then
21196 # On MacOSX there is a readlink tool with a different
21197 # purpose than the GNU readlink tool. Check the found readlink.
21198 ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21199 if test "x$ISGNU" = x; then
21200 # A readlink that we do not know how to use.
21201 # Are there other non-GNU readlinks out there?
21202 READLINK_TESTED=yes
21203 READLINK=
21204 fi
21205 fi
21206
21207 if test "x$READLINK" != x; then
21208 TEST_COMPILER=`$READLINK -f $TEST_COMPILER`
21209 else
21220 while test $COUNTER -lt 20; do
21221 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21222 if test "x$ISLINK" == x; then
21223 # This is not a symbolic link! We are done!
21224 break
21225 fi
21226 # Again resolve directory symlinks since the target of the just found
21227 # link could be in a different directory
21228 cd `$DIRNAME $ISLINK`
21229 sym_link_dir=`$THEPWDCMD -P`
21230 sym_link_file=`$BASENAME $ISLINK`
21231 let COUNTER=COUNTER+1
21232 done
21233 cd $STARTDIR
21234 TEST_COMPILER=$sym_link_dir/$sym_link_file
21235 fi
21236 fi
21237
21238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5
21239 $as_echo "$TEST_COMPILER" >&6; }
21240 fi
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5
21242 $as_echo_n "checking if CXX is disguised ccache... " >&6; }
21243
21244 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"`
21245 if test "x$COMPILER_BASENAME" = "xccache"; then
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
21247 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
21248 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
21249 # We want to control ccache invocation ourselves, so ignore this cc and try
21250 # searching again.
21251
21252 # Remove the path to the fake ccache cc from the PATH
21253 RETRY_COMPILER_SAVED_PATH="$PATH"
21254 COMPILER_DIRNAME=`$DIRNAME $CXX`
21255 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
21256
21257 # Try again looking for our compiler
21258 if test -n "$ac_tool_prefix"; then
21259 for ac_prog in $COMPILER_CHECK_LIST
21260 do
21261 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21262 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21264 $as_echo_n "checking for $ac_word... " >&6; }
21265 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then :
21266 $as_echo_n "(cached) " >&6
21267 else
21268 if test -n "$PROPER_COMPILER_CXX"; then
21269 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test.
21270 else
21271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21272 for as_dir in $PATH
21273 do
21274 IFS=$as_save_IFS
21275 test -z "$as_dir" && as_dir=.
21276 for ac_exec_ext in '' $ac_executable_extensions; do
21277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21278 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog"
21279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21280 break 2
21281 fi
21282 done
21283 done
21284 IFS=$as_save_IFS
21285
21286 fi
21287 fi
21288 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX
21289 if test -n "$PROPER_COMPILER_CXX"; then
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
21291 $as_echo "$PROPER_COMPILER_CXX" >&6; }
21292 else
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21294 $as_echo "no" >&6; }
21295 fi
21296
21297
21298 test -n "$PROPER_COMPILER_CXX" && break
21299 done
21300 fi
21301 if test -z "$PROPER_COMPILER_CXX"; then
21302 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX
21303 for ac_prog in $COMPILER_CHECK_LIST
21304 do
21305 # Extract the first word of "$ac_prog", so it can be a program name with args.
21306 set dummy $ac_prog; ac_word=$2
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21308 $as_echo_n "checking for $ac_word... " >&6; }
21309 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then :
21310 $as_echo_n "(cached) " >&6
21311 else
21312 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
21313 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test.
21314 else
21315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21316 for as_dir in $PATH
21317 do
21318 IFS=$as_save_IFS
21319 test -z "$as_dir" && as_dir=.
21320 for ac_exec_ext in '' $ac_executable_extensions; do
21321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21322 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog"
21323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21324 break 2
21325 fi
21326 done
21327 done
21328 IFS=$as_save_IFS
21329
21330 fi
21331 fi
21332 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX
21333 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5
21335 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; }
21336 else
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21338 $as_echo "no" >&6; }
21339 fi
21340
21341
21684
21685 COMPILER=$CXX
21686 COMPILER_NAME=$COMPILER_NAME
21687
21688 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
21689 # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work
21690 COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1`
21691 $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null
21692 if test $? -ne 0; then
21693 GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
21694
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5
21696 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;}
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5
21698 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;}
21699 as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5
21700 else
21701 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"`
21702 COMPILER_VENDOR="Sun Studio"
21703 fi
21704 elif test "x$OPENJDK_TARGET_OS" = xaix; then
21705 COMPILER_VERSION_TEST=`$COMPILER -qversion 2>&1 | $TAIL -n 1`
21706 $ECHO $COMPILER_VERSION_TEST | $GREP "^Version: " > /dev/null
21707 if test $? -ne 0; then
21708 as_fn_error $? "Failed to detect the compiler version of $COMPILER ...." "$LINENO" 5
21709 else
21710 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n 's/Version: \(0-90-9\.0-90-9*\).*/\1/p'`
21711 COMPILER_VENDOR='IBM'
21712 fi
21713 elif test "x$OPENJDK_TARGET_OS" = xwindows; then
21714 # First line typically looks something like:
21715 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
21716 COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
21717 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
21718 COMPILER_VENDOR="Microsoft CL.EXE"
21719 COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
21720 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then
21721 if test "x$COMPILER_CPU_TEST" != "x80x86"; then
21722 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5
21723 fi
21724 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
21725 if test "x$COMPILER_CPU_TEST" != "xx64"; then
21726 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5
21727 fi
21728 fi
21729 else
21730 COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
21731 # Check that this is likely to be GCC.
21732 $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null
21752 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
21753
21754
21755 # Now that we have resolved CXX ourself, let autoconf have its go at it
21756 ac_ext=cpp
21757 ac_cpp='$CXXCPP $CPPFLAGS'
21758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21761 if test -z "$CXX"; then
21762 if test -n "$CCC"; then
21763 CXX=$CCC
21764 else
21765 if test -n "$ac_tool_prefix"; then
21766 for ac_prog in $CXX
21767 do
21768 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21769 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21771 $as_echo_n "checking for $ac_word... " >&6; }
21772 if ${ac_cv_prog_CXX+:} false; then :
21773 $as_echo_n "(cached) " >&6
21774 else
21775 if test -n "$CXX"; then
21776 ac_cv_prog_CXX="$CXX" # Let the user override the test.
21777 else
21778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21779 for as_dir in $PATH
21780 do
21781 IFS=$as_save_IFS
21782 test -z "$as_dir" && as_dir=.
21783 for ac_exec_ext in '' $ac_executable_extensions; do
21784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21785 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
21786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21787 break 2
21788 fi
21789 done
21790 done
21791 IFS=$as_save_IFS
21792
21793 fi
21794 fi
21795 CXX=$ac_cv_prog_CXX
21796 if test -n "$CXX"; then
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
21798 $as_echo "$CXX" >&6; }
21799 else
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21801 $as_echo "no" >&6; }
21802 fi
21803
21804
21805 test -n "$CXX" && break
21806 done
21807 fi
21808 if test -z "$CXX"; then
21809 ac_ct_CXX=$CXX
21810 for ac_prog in $CXX
21811 do
21812 # Extract the first word of "$ac_prog", so it can be a program name with args.
21813 set dummy $ac_prog; ac_word=$2
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21815 $as_echo_n "checking for $ac_word... " >&6; }
21816 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
21817 $as_echo_n "(cached) " >&6
21818 else
21819 if test -n "$ac_ct_CXX"; then
21820 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
21821 else
21822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21823 for as_dir in $PATH
21824 do
21825 IFS=$as_save_IFS
21826 test -z "$as_dir" && as_dir=.
21827 for ac_exec_ext in '' $ac_executable_extensions; do
21828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21829 ac_cv_prog_ac_ct_CXX="$ac_prog"
21830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21831 break 2
21832 fi
21833 done
21834 done
21835 IFS=$as_save_IFS
21836
21837 fi
21838 fi
21839 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
21840 if test -n "$ac_ct_CXX"; then
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
21842 $as_echo "$ac_ct_CXX" >&6; }
21843 else
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21845 $as_echo "no" >&6; }
21846 fi
21847
21848
21874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21875 *) ac_try_echo=$ac_try;;
21876 esac
21877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21878 $as_echo "$ac_try_echo"; } >&5
21879 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
21880 ac_status=$?
21881 if test -s conftest.err; then
21882 sed '10a\
21883 ... rest of stderr output deleted ...
21884 10q' conftest.err >conftest.er1
21885 cat conftest.er1 >&5
21886 fi
21887 rm -f conftest.er1 conftest.err
21888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21889 test $ac_status = 0; }
21890 done
21891
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
21893 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
21894 if ${ac_cv_cxx_compiler_gnu+:} false; then :
21895 $as_echo_n "(cached) " >&6
21896 else
21897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21898 /* end confdefs.h. */
21899
21900 int
21901 main ()
21902 {
21903 #ifndef __GNUC__
21904 choke me
21905 #endif
21906
21907 ;
21908 return 0;
21909 }
21910 _ACEOF
21911 if ac_fn_cxx_try_compile "$LINENO"; then :
21912 ac_compiler_gnu=yes
21913 else
21914 ac_compiler_gnu=no
21915 fi
21916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21917 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
21918
21919 fi
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
21921 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
21922 if test $ac_compiler_gnu = yes; then
21923 GXX=yes
21924 else
21925 GXX=
21926 fi
21927 ac_test_CXXFLAGS=${CXXFLAGS+set}
21928 ac_save_CXXFLAGS=$CXXFLAGS
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
21930 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
21931 if ${ac_cv_prog_cxx_g+:} false; then :
21932 $as_echo_n "(cached) " >&6
21933 else
21934 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
21935 ac_cxx_werror_flag=yes
21936 ac_cv_prog_cxx_g=no
21937 CXXFLAGS="-g"
21938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21939 /* end confdefs.h. */
21940
21941 int
21942 main ()
21943 {
21944
21945 ;
21946 return 0;
21947 }
21948 _ACEOF
21949 if ac_fn_cxx_try_compile "$LINENO"; then :
21950 ac_cv_prog_cxx_g=yes
21951 else
22009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22012
22013
22014 ### Locate other tools
22015
22016 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
22017 ac_ext=m
22018 ac_cpp='$OBJCPP $CPPFLAGS'
22019 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22020 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22021 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
22022 if test -n "$ac_tool_prefix"; then
22023 for ac_prog in gcc objcc objc cc CC
22024 do
22025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22026 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22028 $as_echo_n "checking for $ac_word... " >&6; }
22029 if ${ac_cv_prog_OBJC+:} false; then :
22030 $as_echo_n "(cached) " >&6
22031 else
22032 if test -n "$OBJC"; then
22033 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
22034 else
22035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22036 for as_dir in $PATH
22037 do
22038 IFS=$as_save_IFS
22039 test -z "$as_dir" && as_dir=.
22040 for ac_exec_ext in '' $ac_executable_extensions; do
22041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22042 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
22043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22044 break 2
22045 fi
22046 done
22047 done
22048 IFS=$as_save_IFS
22049
22050 fi
22051 fi
22052 OBJC=$ac_cv_prog_OBJC
22053 if test -n "$OBJC"; then
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
22055 $as_echo "$OBJC" >&6; }
22056 else
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22058 $as_echo "no" >&6; }
22059 fi
22060
22061
22062 test -n "$OBJC" && break
22063 done
22064 fi
22065 if test -z "$OBJC"; then
22066 ac_ct_OBJC=$OBJC
22067 for ac_prog in gcc objcc objc cc CC
22068 do
22069 # Extract the first word of "$ac_prog", so it can be a program name with args.
22070 set dummy $ac_prog; ac_word=$2
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22072 $as_echo_n "checking for $ac_word... " >&6; }
22073 if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
22074 $as_echo_n "(cached) " >&6
22075 else
22076 if test -n "$ac_ct_OBJC"; then
22077 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
22078 else
22079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22080 for as_dir in $PATH
22081 do
22082 IFS=$as_save_IFS
22083 test -z "$as_dir" && as_dir=.
22084 for ac_exec_ext in '' $ac_executable_extensions; do
22085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22086 ac_cv_prog_ac_ct_OBJC="$ac_prog"
22087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22088 break 2
22089 fi
22090 done
22091 done
22092 IFS=$as_save_IFS
22093
22094 fi
22095 fi
22096 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
22097 if test -n "$ac_ct_OBJC"; then
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
22099 $as_echo "$ac_ct_OBJC" >&6; }
22100 else
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22102 $as_echo "no" >&6; }
22103 fi
22104
22105
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22131 esac
22132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22133 $as_echo "$ac_try_echo"; } >&5
22134 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
22135 ac_status=$?
22136 if test -s conftest.err; then
22137 sed '10a\
22138 ... rest of stderr output deleted ...
22139 10q' conftest.err >conftest.er1
22140 cat conftest.er1 >&5
22141 fi
22142 rm -f conftest.er1 conftest.err
22143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22144 test $ac_status = 0; }
22145 done
22146
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
22148 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
22149 if ${ac_cv_objc_compiler_gnu+:} false; then :
22150 $as_echo_n "(cached) " >&6
22151 else
22152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22153 /* end confdefs.h. */
22154
22155 int
22156 main ()
22157 {
22158 #ifndef __GNUC__
22159 choke me
22160 #endif
22161
22162 ;
22163 return 0;
22164 }
22165 _ACEOF
22166 if ac_fn_objc_try_compile "$LINENO"; then :
22167 ac_compiler_gnu=yes
22168 else
22169 ac_compiler_gnu=no
22170 fi
22171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22172 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
22173
22174 fi
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
22176 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
22177 if test $ac_compiler_gnu = yes; then
22178 GOBJC=yes
22179 else
22180 GOBJC=
22181 fi
22182 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
22183 ac_save_OBJCFLAGS=$OBJCFLAGS
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
22185 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
22186 if ${ac_cv_prog_objc_g+:} false; then :
22187 $as_echo_n "(cached) " >&6
22188 else
22189 ac_save_objc_werror_flag=$ac_objc_werror_flag
22190 ac_objc_werror_flag=yes
22191 ac_cv_prog_objc_g=no
22192 OBJCFLAGS="-g"
22193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22194 /* end confdefs.h. */
22195
22196 int
22197 main ()
22198 {
22199
22200 ;
22201 return 0;
22202 }
22203 _ACEOF
22204 if ac_fn_objc_try_compile "$LINENO"; then :
22205 ac_cv_prog_objc_g=yes
22206 else
22542 OBJCFLAGS="$ORG_OBJCFLAGS"
22543
22544 LD="$CC"
22545 LDEXE="$CC"
22546 LDCXX="$CXX"
22547 LDEXECXX="$CXX"
22548
22549 # LDEXE is the linker to use, when creating executables.
22550
22551 # Linking C++ libraries.
22552
22553 # Linking C++ executables.
22554
22555
22556 if test "x$OPENJDK_TARGET_OS" != xwindows; then
22557 if test -n "$ac_tool_prefix"; then
22558 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
22559 set dummy ${ac_tool_prefix}ar; ac_word=$2
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22561 $as_echo_n "checking for $ac_word... " >&6; }
22562 if ${ac_cv_prog_AR+:} false; then :
22563 $as_echo_n "(cached) " >&6
22564 else
22565 if test -n "$AR"; then
22566 ac_cv_prog_AR="$AR" # Let the user override the test.
22567 else
22568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22569 for as_dir in $PATH
22570 do
22571 IFS=$as_save_IFS
22572 test -z "$as_dir" && as_dir=.
22573 for ac_exec_ext in '' $ac_executable_extensions; do
22574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22575 ac_cv_prog_AR="${ac_tool_prefix}ar"
22576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22577 break 2
22578 fi
22579 done
22580 done
22581 IFS=$as_save_IFS
22582
22583 fi
22584 fi
22585 AR=$ac_cv_prog_AR
22586 if test -n "$AR"; then
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
22588 $as_echo "$AR" >&6; }
22589 else
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22591 $as_echo "no" >&6; }
22592 fi
22593
22594
22595 fi
22596 if test -z "$ac_cv_prog_AR"; then
22597 ac_ct_AR=$AR
22598 # Extract the first word of "ar", so it can be a program name with args.
22599 set dummy ar; ac_word=$2
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22601 $as_echo_n "checking for $ac_word... " >&6; }
22602 if ${ac_cv_prog_ac_ct_AR+:} false; then :
22603 $as_echo_n "(cached) " >&6
22604 else
22605 if test -n "$ac_ct_AR"; then
22606 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
22607 else
22608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22609 for as_dir in $PATH
22610 do
22611 IFS=$as_save_IFS
22612 test -z "$as_dir" && as_dir=.
22613 for ac_exec_ext in '' $ac_executable_extensions; do
22614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22615 ac_cv_prog_ac_ct_AR="ar"
22616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22617 break 2
22618 fi
22619 done
22620 done
22621 IFS=$as_save_IFS
22622
22623 fi
22624 fi
22625 ac_ct_AR=$ac_cv_prog_ac_ct_AR
22626 if test -n "$ac_ct_AR"; then
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
22628 $as_echo "$ac_ct_AR" >&6; }
22629 else
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22631 $as_echo "no" >&6; }
22632 fi
22633
22634 if test "x$ac_ct_AR" = x; then
22898 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
22899 fi
22900 fi
22901
22902 # Now join together the path and the arguments once again
22903 if test "x$arguments" != xEOL; then
22904 new_complete="$new_path ${arguments% *}"
22905 else
22906 new_complete="$new_path"
22907 fi
22908
22909 if test "x$complete" != "x$new_complete"; then
22910 AR="$new_complete"
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5
22912 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;}
22913 fi
22914
22915 fi
22916 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
22917 ARFLAGS="-r"
22918 elif test "x$OPENJDK_TARGET_OS" = xaix; then
22919 ARFLAGS="-X64"
22920 else
22921 ARFLAGS=""
22922 fi
22923
22924
22925 # For hotspot, we need these in Windows mixed path; other platforms keep them the same
22926 HOTSPOT_CXX="$CXX"
22927 HOTSPOT_LD="$LD"
22928
22929
22930
22931 COMPILER_NAME=gcc
22932 COMPILER_TYPE=CC
22933 if test "x$OPENJDK_TARGET_OS" = xwindows; then :
22934
22935 # For now, assume that we are always compiling using cl.exe.
22936 CC_OUT_OPTION=-Fo
22937 EXE_OUT_OPTION=-out:
22938 LD_OUT_OPTION=-out:
22939 AR_OUT_OPTION=-out:
22940 # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin
22941 # program for something completely different.
22942 # Extract the first word of "link", so it can be a program name with args.
22943 set dummy link; ac_word=$2
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22945 $as_echo_n "checking for $ac_word... " >&6; }
22946 if ${ac_cv_prog_WINLD+:} false; then :
22947 $as_echo_n "(cached) " >&6
22948 else
22949 if test -n "$WINLD"; then
22950 ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
22951 else
22952 ac_prog_rejected=no
22953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22954 for as_dir in $PATH
22955 do
22956 IFS=$as_save_IFS
22957 test -z "$as_dir" && as_dir=.
22958 for ac_exec_ext in '' $ac_executable_extensions; do
22959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22960 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then
22961 ac_prog_rejected=yes
22962 continue
22963 fi
22964 ac_cv_prog_WINLD="link"
22965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22966 break 2
22967 fi
22968 done
22969 done
22970 IFS=$as_save_IFS
22971
22972 if test $ac_prog_rejected = yes; then
22973 # We found a bogon in the path, so make sure we never use it.
22974 set dummy $ac_cv_prog_WINLD
22975 shift
22976 if test $# != 0; then
22977 # We chose a different compiler from the bogus one.
22978 # However, it has the same basename, so the bogon will be chosen
22979 # first if we set WINLD to just the basename; use the full file name.
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5
23266 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; }
23267 "$WINLD" --version > /dev/null
23268 if test $? -eq 0 ; then
23269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23270 $as_echo "no" >&6; }
23271 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5
23272 else
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23274 $as_echo "yes" >&6; }
23275 fi
23276 LD="$WINLD"
23277 LDEXE="$WINLD"
23278 LDCXX="$WINLD"
23279 LDEXECXX="$WINLD"
23280
23281 # Extract the first word of "mt", so it can be a program name with args.
23282 set dummy mt; ac_word=$2
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23284 $as_echo_n "checking for $ac_word... " >&6; }
23285 if ${ac_cv_prog_MT+:} false; then :
23286 $as_echo_n "(cached) " >&6
23287 else
23288 if test -n "$MT"; then
23289 ac_cv_prog_MT="$MT" # Let the user override the test.
23290 else
23291 ac_prog_rejected=no
23292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23293 for as_dir in $PATH
23294 do
23295 IFS=$as_save_IFS
23296 test -z "$as_dir" && as_dir=.
23297 for ac_exec_ext in '' $ac_executable_extensions; do
23298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23299 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
23300 ac_prog_rejected=yes
23301 continue
23302 fi
23303 ac_cv_prog_MT="mt"
23304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23305 break 2
23306 fi
23307 done
23308 done
23309 IFS=$as_save_IFS
23310
23311 if test $ac_prog_rejected = yes; then
23312 # We found a bogon in the path, so make sure we never use it.
23313 set dummy $ac_cv_prog_MT
23314 shift
23315 if test $# != 0; then
23316 # We chose a different compiler from the bogus one.
23317 # However, it has the same basename, so the bogon will be chosen
23318 # first if we set MT to just the basename; use the full file name.
23586 fi
23587
23588 # Now join together the path and the arguments once again
23589 if test "x$arguments" != xEOL; then
23590 new_complete="$new_path ${arguments% *}"
23591 else
23592 new_complete="$new_path"
23593 fi
23594
23595 if test "x$complete" != "x$new_complete"; then
23596 MT="$new_complete"
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5
23598 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;}
23599 fi
23600
23601 # The resource compiler
23602 # Extract the first word of "rc", so it can be a program name with args.
23603 set dummy rc; ac_word=$2
23604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23605 $as_echo_n "checking for $ac_word... " >&6; }
23606 if ${ac_cv_prog_RC+:} false; then :
23607 $as_echo_n "(cached) " >&6
23608 else
23609 if test -n "$RC"; then
23610 ac_cv_prog_RC="$RC" # Let the user override the test.
23611 else
23612 ac_prog_rejected=no
23613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23614 for as_dir in $PATH
23615 do
23616 IFS=$as_save_IFS
23617 test -z "$as_dir" && as_dir=.
23618 for ac_exec_ext in '' $ac_executable_extensions; do
23619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
23621 ac_prog_rejected=yes
23622 continue
23623 fi
23624 ac_cv_prog_RC="rc"
23625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23626 break 2
23627 fi
23628 done
23629 done
23630 IFS=$as_save_IFS
23631
23632 if test $ac_prog_rejected = yes; then
23633 # We found a bogon in the path, so make sure we never use it.
23634 set dummy $ac_cv_prog_RC
23635 shift
23636 if test $# != 0; then
23637 # We chose a different compiler from the bogus one.
23638 # However, it has the same basename, so the bogon will be chosen
23639 # first if we set RC to just the basename; use the full file name.
23978
23979 # The version variables used to create RC_FLAGS may be overridden
23980 # in a custom configure script, or possibly the command line.
23981 # Let those variables be expanded at make time in spec.gmk.
23982 # The \$ are escaped to the shell, and the $(...) variables
23983 # are evaluated by make.
23984 RC_FLAGS="$RC_FLAGS \
23985 -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \
23986 -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \
23987 -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
23988 -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \
23989 -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
23990 -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \
23991 -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\""
23992
23993 # lib.exe is used to create static libraries.
23994 # Extract the first word of "lib", so it can be a program name with args.
23995 set dummy lib; ac_word=$2
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23997 $as_echo_n "checking for $ac_word... " >&6; }
23998 if ${ac_cv_prog_WINAR+:} false; then :
23999 $as_echo_n "(cached) " >&6
24000 else
24001 if test -n "$WINAR"; then
24002 ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
24003 else
24004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24005 for as_dir in $PATH
24006 do
24007 IFS=$as_save_IFS
24008 test -z "$as_dir" && as_dir=.
24009 for ac_exec_ext in '' $ac_executable_extensions; do
24010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24011 ac_cv_prog_WINAR="lib"
24012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24013 break 2
24014 fi
24015 done
24016 done
24017 IFS=$as_save_IFS
24018
24019 fi
24020 fi
24021 WINAR=$ac_cv_prog_WINAR
24022 if test -n "$WINAR"; then
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINAR" >&5
24024 $as_echo "$WINAR" >&6; }
24025 else
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24027 $as_echo "no" >&6; }
24028 fi
24029
24030
24284 # Now join together the path and the arguments once again
24285 if test "x$arguments" != xEOL; then
24286 new_complete="$new_path ${arguments% *}"
24287 else
24288 new_complete="$new_path"
24289 fi
24290
24291 if test "x$complete" != "x$new_complete"; then
24292 WINAR="$new_complete"
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5
24294 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;}
24295 fi
24296
24297 AR="$WINAR"
24298 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
24299
24300 # Extract the first word of "dumpbin", so it can be a program name with args.
24301 set dummy dumpbin; ac_word=$2
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24303 $as_echo_n "checking for $ac_word... " >&6; }
24304 if ${ac_cv_prog_DUMPBIN+:} false; then :
24305 $as_echo_n "(cached) " >&6
24306 else
24307 if test -n "$DUMPBIN"; then
24308 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
24309 else
24310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24311 for as_dir in $PATH
24312 do
24313 IFS=$as_save_IFS
24314 test -z "$as_dir" && as_dir=.
24315 for ac_exec_ext in '' $ac_executable_extensions; do
24316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24317 ac_cv_prog_DUMPBIN="dumpbin"
24318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24319 break 2
24320 fi
24321 done
24322 done
24323 IFS=$as_save_IFS
24324
24325 fi
24326 fi
24327 DUMPBIN=$ac_cv_prog_DUMPBIN
24328 if test -n "$DUMPBIN"; then
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
24330 $as_echo "$DUMPBIN" >&6; }
24331 else
24332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24333 $as_echo "no" >&6; }
24334 fi
24335
24336
24603
24604 COMPILER_TYPE=CL
24605 CCXXFLAGS="$CCXXFLAGS -nologo"
24606
24607 fi
24608
24609
24610
24611 ac_ext=c
24612 ac_cpp='$CPP $CPPFLAGS'
24613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
24617 $as_echo_n "checking how to run the C preprocessor... " >&6; }
24618 # On Suns, sometimes $CPP names a directory.
24619 if test -n "$CPP" && test -d "$CPP"; then
24620 CPP=
24621 fi
24622 if test -z "$CPP"; then
24623 if ${ac_cv_prog_CPP+:} false; then :
24624 $as_echo_n "(cached) " >&6
24625 else
24626 # Double quotes because CPP needs to be expanded
24627 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
24628 do
24629 ac_preproc_ok=false
24630 for ac_c_preproc_warn_flag in '' yes
24631 do
24632 # Use a header file that comes with gcc, so configuring glibc
24633 # with a fresh cross-compiler works.
24634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24635 # <limits.h> exists even on freestanding compilers.
24636 # On the NeXT, cc -E runs the code through the compiler's parser,
24637 # not just through cpp. "Syntax error" is here to catch this case.
24638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24639 /* end confdefs.h. */
24640 #ifdef __STDC__
24641 # include <limits.h>
24642 #else
24643 # include <assert.h>
25003 new_complete="$new_path ${arguments% *}"
25004 else
25005 new_complete="$new_path"
25006 fi
25007
25008 if test "x$complete" != "x$new_complete"; then
25009 CPP="$new_complete"
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5
25011 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;}
25012 fi
25013
25014
25015 ac_ext=cpp
25016 ac_cpp='$CXXCPP $CPPFLAGS'
25017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
25021 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
25022 if test -z "$CXXCPP"; then
25023 if ${ac_cv_prog_CXXCPP+:} false; then :
25024 $as_echo_n "(cached) " >&6
25025 else
25026 # Double quotes because CXXCPP needs to be expanded
25027 for CXXCPP in "$CXX -E" "/lib/cpp"
25028 do
25029 ac_preproc_ok=false
25030 for ac_cxx_preproc_warn_flag in '' yes
25031 do
25032 # Use a header file that comes with gcc, so configuring glibc
25033 # with a fresh cross-compiler works.
25034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25035 # <limits.h> exists even on freestanding compilers.
25036 # On the NeXT, cc -E runs the code through the compiler's parser,
25037 # not just through cpp. "Syntax error" is here to catch this case.
25038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25039 /* end confdefs.h. */
25040 #ifdef __STDC__
25041 # include <limits.h>
25042 #else
25043 # include <assert.h>
25421 BUILD_CXX="$CXX"
25422 BUILD_LD="$LD"
25423 fi
25424
25425 # for solaris we really need solaris tools, and not gnu equivalent
25426 # these seems to normally reside in /usr/ccs/bin so add that to path before
25427 # starting to probe
25428 #
25429 # NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH
25430 # so that it can be overriden --with-tools-dir
25431 if test "x$OPENJDK_BUILD_OS" = xsolaris; then
25432 PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}"
25433 fi
25434
25435 # Find the right assembler.
25436 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
25437 # Extract the first word of "as", so it can be a program name with args.
25438 set dummy as; ac_word=$2
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25440 $as_echo_n "checking for $ac_word... " >&6; }
25441 if ${ac_cv_path_AS+:} false; then :
25442 $as_echo_n "(cached) " >&6
25443 else
25444 case $AS in
25445 [\\/]* | ?:[\\/]*)
25446 ac_cv_path_AS="$AS" # Let the user override the test with a path.
25447 ;;
25448 *)
25449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25450 for as_dir in $PATH
25451 do
25452 IFS=$as_save_IFS
25453 test -z "$as_dir" && as_dir=.
25454 for ac_exec_ext in '' $ac_executable_extensions; do
25455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25456 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
25457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25458 break 2
25459 fi
25460 done
25461 done
25462 IFS=$as_save_IFS
25463
25464 ;;
25465 esac
25466 fi
25467 AS=$ac_cv_path_AS
25468 if test -n "$AS"; then
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
25470 $as_echo "$AS" >&6; }
25471 else
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25473 $as_echo "no" >&6; }
25474 fi
25475
25733 else
25734 new_complete="$new_path"
25735 fi
25736
25737 if test "x$complete" != "x$new_complete"; then
25738 AS="$new_complete"
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5
25740 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;}
25741 fi
25742
25743 else
25744 AS="$CC -c"
25745 fi
25746
25747
25748 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
25749 # Extract the first word of "nm", so it can be a program name with args.
25750 set dummy nm; ac_word=$2
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25752 $as_echo_n "checking for $ac_word... " >&6; }
25753 if ${ac_cv_path_NM+:} false; then :
25754 $as_echo_n "(cached) " >&6
25755 else
25756 case $NM in
25757 [\\/]* | ?:[\\/]*)
25758 ac_cv_path_NM="$NM" # Let the user override the test with a path.
25759 ;;
25760 *)
25761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25762 for as_dir in $PATH
25763 do
25764 IFS=$as_save_IFS
25765 test -z "$as_dir" && as_dir=.
25766 for ac_exec_ext in '' $ac_executable_extensions; do
25767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25768 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
25769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25770 break 2
25771 fi
25772 done
25773 done
25774 IFS=$as_save_IFS
25775
25776 ;;
25777 esac
25778 fi
25779 NM=$ac_cv_path_NM
25780 if test -n "$NM"; then
25781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
25782 $as_echo "$NM" >&6; }
25783 else
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25785 $as_echo "no" >&6; }
25786 fi
25787
26039 fi
26040 fi
26041
26042 # Now join together the path and the arguments once again
26043 if test "x$arguments" != xEOL; then
26044 new_complete="$new_path ${arguments% *}"
26045 else
26046 new_complete="$new_path"
26047 fi
26048
26049 if test "x$complete" != "x$new_complete"; then
26050 NM="$new_complete"
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
26052 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
26053 fi
26054
26055 # Extract the first word of "gnm", so it can be a program name with args.
26056 set dummy gnm; ac_word=$2
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26058 $as_echo_n "checking for $ac_word... " >&6; }
26059 if ${ac_cv_path_GNM+:} false; then :
26060 $as_echo_n "(cached) " >&6
26061 else
26062 case $GNM in
26063 [\\/]* | ?:[\\/]*)
26064 ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
26065 ;;
26066 *)
26067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26068 for as_dir in $PATH
26069 do
26070 IFS=$as_save_IFS
26071 test -z "$as_dir" && as_dir=.
26072 for ac_exec_ext in '' $ac_executable_extensions; do
26073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26074 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
26075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26076 break 2
26077 fi
26078 done
26079 done
26080 IFS=$as_save_IFS
26081
26082 ;;
26083 esac
26084 fi
26085 GNM=$ac_cv_path_GNM
26086 if test -n "$GNM"; then
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5
26088 $as_echo "$GNM" >&6; }
26089 else
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26091 $as_echo "no" >&6; }
26092 fi
26093
26345 fi
26346 fi
26347
26348 # Now join together the path and the arguments once again
26349 if test "x$arguments" != xEOL; then
26350 new_complete="$new_path ${arguments% *}"
26351 else
26352 new_complete="$new_path"
26353 fi
26354
26355 if test "x$complete" != "x$new_complete"; then
26356 GNM="$new_complete"
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5
26358 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;}
26359 fi
26360
26361 # Extract the first word of "strip", so it can be a program name with args.
26362 set dummy strip; ac_word=$2
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26364 $as_echo_n "checking for $ac_word... " >&6; }
26365 if ${ac_cv_path_STRIP+:} false; then :
26366 $as_echo_n "(cached) " >&6
26367 else
26368 case $STRIP in
26369 [\\/]* | ?:[\\/]*)
26370 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
26371 ;;
26372 *)
26373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26374 for as_dir in $PATH
26375 do
26376 IFS=$as_save_IFS
26377 test -z "$as_dir" && as_dir=.
26378 for ac_exec_ext in '' $ac_executable_extensions; do
26379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26380 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
26381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26382 break 2
26383 fi
26384 done
26385 done
26386 IFS=$as_save_IFS
26387
26388 ;;
26389 esac
26390 fi
26391 STRIP=$ac_cv_path_STRIP
26392 if test -n "$STRIP"; then
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
26394 $as_echo "$STRIP" >&6; }
26395 else
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26397 $as_echo "no" >&6; }
26398 fi
26399
26651 fi
26652 fi
26653
26654 # Now join together the path and the arguments once again
26655 if test "x$arguments" != xEOL; then
26656 new_complete="$new_path ${arguments% *}"
26657 else
26658 new_complete="$new_path"
26659 fi
26660
26661 if test "x$complete" != "x$new_complete"; then
26662 STRIP="$new_complete"
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
26664 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
26665 fi
26666
26667 # Extract the first word of "mcs", so it can be a program name with args.
26668 set dummy mcs; ac_word=$2
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26670 $as_echo_n "checking for $ac_word... " >&6; }
26671 if ${ac_cv_path_MCS+:} false; then :
26672 $as_echo_n "(cached) " >&6
26673 else
26674 case $MCS in
26675 [\\/]* | ?:[\\/]*)
26676 ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
26677 ;;
26678 *)
26679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26680 for as_dir in $PATH
26681 do
26682 IFS=$as_save_IFS
26683 test -z "$as_dir" && as_dir=.
26684 for ac_exec_ext in '' $ac_executable_extensions; do
26685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26686 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
26687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26688 break 2
26689 fi
26690 done
26691 done
26692 IFS=$as_save_IFS
26693
26694 ;;
26695 esac
26696 fi
26697 MCS=$ac_cv_path_MCS
26698 if test -n "$MCS"; then
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
26700 $as_echo "$MCS" >&6; }
26701 else
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26703 $as_echo "no" >&6; }
26704 fi
26705
26959
26960 # Now join together the path and the arguments once again
26961 if test "x$arguments" != xEOL; then
26962 new_complete="$new_path ${arguments% *}"
26963 else
26964 new_complete="$new_path"
26965 fi
26966
26967 if test "x$complete" != "x$new_complete"; then
26968 MCS="$new_complete"
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
26970 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
26971 fi
26972
26973 elif test "x$OPENJDK_TARGET_OS" != xwindows; then
26974 if test -n "$ac_tool_prefix"; then
26975 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
26976 set dummy ${ac_tool_prefix}nm; ac_word=$2
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26978 $as_echo_n "checking for $ac_word... " >&6; }
26979 if ${ac_cv_prog_NM+:} false; then :
26980 $as_echo_n "(cached) " >&6
26981 else
26982 if test -n "$NM"; then
26983 ac_cv_prog_NM="$NM" # Let the user override the test.
26984 else
26985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26986 for as_dir in $PATH
26987 do
26988 IFS=$as_save_IFS
26989 test -z "$as_dir" && as_dir=.
26990 for ac_exec_ext in '' $ac_executable_extensions; do
26991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26992 ac_cv_prog_NM="${ac_tool_prefix}nm"
26993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26994 break 2
26995 fi
26996 done
26997 done
26998 IFS=$as_save_IFS
26999
27000 fi
27001 fi
27002 NM=$ac_cv_prog_NM
27003 if test -n "$NM"; then
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
27005 $as_echo "$NM" >&6; }
27006 else
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27008 $as_echo "no" >&6; }
27009 fi
27010
27011
27012 fi
27013 if test -z "$ac_cv_prog_NM"; then
27014 ac_ct_NM=$NM
27015 # Extract the first word of "nm", so it can be a program name with args.
27016 set dummy nm; ac_word=$2
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27018 $as_echo_n "checking for $ac_word... " >&6; }
27019 if ${ac_cv_prog_ac_ct_NM+:} false; then :
27020 $as_echo_n "(cached) " >&6
27021 else
27022 if test -n "$ac_ct_NM"; then
27023 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
27024 else
27025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27026 for as_dir in $PATH
27027 do
27028 IFS=$as_save_IFS
27029 test -z "$as_dir" && as_dir=.
27030 for ac_exec_ext in '' $ac_executable_extensions; do
27031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27032 ac_cv_prog_ac_ct_NM="nm"
27033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27034 break 2
27035 fi
27036 done
27037 done
27038 IFS=$as_save_IFS
27039
27040 fi
27041 fi
27042 ac_ct_NM=$ac_cv_prog_ac_ct_NM
27043 if test -n "$ac_ct_NM"; then
27044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
27045 $as_echo "$ac_ct_NM" >&6; }
27046 else
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27048 $as_echo "no" >&6; }
27049 fi
27050
27051 if test "x$ac_ct_NM" = x; then
27319 # Now join together the path and the arguments once again
27320 if test "x$arguments" != xEOL; then
27321 new_complete="$new_path ${arguments% *}"
27322 else
27323 new_complete="$new_path"
27324 fi
27325
27326 if test "x$complete" != "x$new_complete"; then
27327 NM="$new_complete"
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
27329 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
27330 fi
27331
27332 GNM="$NM"
27333
27334 if test -n "$ac_tool_prefix"; then
27335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
27336 set dummy ${ac_tool_prefix}strip; ac_word=$2
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27338 $as_echo_n "checking for $ac_word... " >&6; }
27339 if ${ac_cv_prog_STRIP+:} false; then :
27340 $as_echo_n "(cached) " >&6
27341 else
27342 if test -n "$STRIP"; then
27343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
27344 else
27345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27346 for as_dir in $PATH
27347 do
27348 IFS=$as_save_IFS
27349 test -z "$as_dir" && as_dir=.
27350 for ac_exec_ext in '' $ac_executable_extensions; do
27351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27352 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
27353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27354 break 2
27355 fi
27356 done
27357 done
27358 IFS=$as_save_IFS
27359
27360 fi
27361 fi
27362 STRIP=$ac_cv_prog_STRIP
27363 if test -n "$STRIP"; then
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
27365 $as_echo "$STRIP" >&6; }
27366 else
27367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27368 $as_echo "no" >&6; }
27369 fi
27370
27371
27372 fi
27373 if test -z "$ac_cv_prog_STRIP"; then
27374 ac_ct_STRIP=$STRIP
27375 # Extract the first word of "strip", so it can be a program name with args.
27376 set dummy strip; ac_word=$2
27377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27378 $as_echo_n "checking for $ac_word... " >&6; }
27379 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
27380 $as_echo_n "(cached) " >&6
27381 else
27382 if test -n "$ac_ct_STRIP"; then
27383 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
27384 else
27385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27386 for as_dir in $PATH
27387 do
27388 IFS=$as_save_IFS
27389 test -z "$as_dir" && as_dir=.
27390 for ac_exec_ext in '' $ac_executable_extensions; do
27391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27392 ac_cv_prog_ac_ct_STRIP="strip"
27393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27394 break 2
27395 fi
27396 done
27397 done
27398 IFS=$as_save_IFS
27399
27400 fi
27401 fi
27402 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
27403 if test -n "$ac_ct_STRIP"; then
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
27405 $as_echo "$ac_ct_STRIP" >&6; }
27406 else
27407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27408 $as_echo "no" >&6; }
27409 fi
27410
27411 if test "x$ac_ct_STRIP" = x; then
27684 fi
27685
27686 if test "x$complete" != "x$new_complete"; then
27687 STRIP="$new_complete"
27688 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
27689 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
27690 fi
27691
27692 fi
27693
27694 # objcopy is used for moving debug symbols to separate files when
27695 # full debug symbols are enabled.
27696 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
27697 if test -n "$ac_tool_prefix"; then
27698 for ac_prog in gobjcopy objcopy
27699 do
27700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27701 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27703 $as_echo_n "checking for $ac_word... " >&6; }
27704 if ${ac_cv_prog_OBJCOPY+:} false; then :
27705 $as_echo_n "(cached) " >&6
27706 else
27707 if test -n "$OBJCOPY"; then
27708 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
27709 else
27710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27711 for as_dir in $PATH
27712 do
27713 IFS=$as_save_IFS
27714 test -z "$as_dir" && as_dir=.
27715 for ac_exec_ext in '' $ac_executable_extensions; do
27716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27717 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
27718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27719 break 2
27720 fi
27721 done
27722 done
27723 IFS=$as_save_IFS
27724
27725 fi
27726 fi
27727 OBJCOPY=$ac_cv_prog_OBJCOPY
27728 if test -n "$OBJCOPY"; then
27729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
27730 $as_echo "$OBJCOPY" >&6; }
27731 else
27732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27733 $as_echo "no" >&6; }
27734 fi
27735
27736
27737 test -n "$OBJCOPY" && break
27738 done
27739 fi
27740 if test -z "$OBJCOPY"; then
27741 ac_ct_OBJCOPY=$OBJCOPY
27742 for ac_prog in gobjcopy objcopy
27743 do
27744 # Extract the first word of "$ac_prog", so it can be a program name with args.
27745 set dummy $ac_prog; ac_word=$2
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27747 $as_echo_n "checking for $ac_word... " >&6; }
27748 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
27749 $as_echo_n "(cached) " >&6
27750 else
27751 if test -n "$ac_ct_OBJCOPY"; then
27752 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
27753 else
27754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27755 for as_dir in $PATH
27756 do
27757 IFS=$as_save_IFS
27758 test -z "$as_dir" && as_dir=.
27759 for ac_exec_ext in '' $ac_executable_extensions; do
27760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27761 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
27762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27763 break 2
27764 fi
27765 done
27766 done
27767 IFS=$as_save_IFS
27768
27769 fi
27770 fi
27771 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
27772 if test -n "$ac_ct_OBJCOPY"; then
27773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
27774 $as_echo "$ac_ct_OBJCOPY" >&6; }
27775 else
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27777 $as_echo "no" >&6; }
27778 fi
27779
27780
28055 else
28056 new_complete="$new_path"
28057 fi
28058
28059 if test "x$complete" != "x$new_complete"; then
28060 OBJCOPY="$new_complete"
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5
28062 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;}
28063 fi
28064
28065 fi
28066 fi
28067
28068 if test -n "$ac_tool_prefix"; then
28069 for ac_prog in gobjdump objdump
28070 do
28071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28074 $as_echo_n "checking for $ac_word... " >&6; }
28075 if ${ac_cv_prog_OBJDUMP+:} false; then :
28076 $as_echo_n "(cached) " >&6
28077 else
28078 if test -n "$OBJDUMP"; then
28079 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
28080 else
28081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28082 for as_dir in $PATH
28083 do
28084 IFS=$as_save_IFS
28085 test -z "$as_dir" && as_dir=.
28086 for ac_exec_ext in '' $ac_executable_extensions; do
28087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28088 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
28089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28090 break 2
28091 fi
28092 done
28093 done
28094 IFS=$as_save_IFS
28095
28096 fi
28097 fi
28098 OBJDUMP=$ac_cv_prog_OBJDUMP
28099 if test -n "$OBJDUMP"; then
28100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
28101 $as_echo "$OBJDUMP" >&6; }
28102 else
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28104 $as_echo "no" >&6; }
28105 fi
28106
28107
28108 test -n "$OBJDUMP" && break
28109 done
28110 fi
28111 if test -z "$OBJDUMP"; then
28112 ac_ct_OBJDUMP=$OBJDUMP
28113 for ac_prog in gobjdump objdump
28114 do
28115 # Extract the first word of "$ac_prog", so it can be a program name with args.
28116 set dummy $ac_prog; ac_word=$2
28117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28118 $as_echo_n "checking for $ac_word... " >&6; }
28119 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
28120 $as_echo_n "(cached) " >&6
28121 else
28122 if test -n "$ac_ct_OBJDUMP"; then
28123 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
28124 else
28125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28126 for as_dir in $PATH
28127 do
28128 IFS=$as_save_IFS
28129 test -z "$as_dir" && as_dir=.
28130 for ac_exec_ext in '' $ac_executable_extensions; do
28131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28132 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
28133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28134 break 2
28135 fi
28136 done
28137 done
28138 IFS=$as_save_IFS
28139
28140 fi
28141 fi
28142 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
28143 if test -n "$ac_ct_OBJDUMP"; then
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
28145 $as_echo "$ac_ct_OBJDUMP" >&6; }
28146 else
28147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28148 $as_echo "no" >&6; }
28149 fi
28150
28151
28423 # Now join together the path and the arguments once again
28424 if test "x$arguments" != xEOL; then
28425 new_complete="$new_path ${arguments% *}"
28426 else
28427 new_complete="$new_path"
28428 fi
28429
28430 if test "x$complete" != "x$new_complete"; then
28431 OBJDUMP="$new_complete"
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
28433 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
28434 fi
28435
28436 fi
28437
28438 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
28439 # Extract the first word of "lipo", so it can be a program name with args.
28440 set dummy lipo; ac_word=$2
28441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28442 $as_echo_n "checking for $ac_word... " >&6; }
28443 if ${ac_cv_path_LIPO+:} false; then :
28444 $as_echo_n "(cached) " >&6
28445 else
28446 case $LIPO in
28447 [\\/]* | ?:[\\/]*)
28448 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
28449 ;;
28450 *)
28451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28452 for as_dir in $PATH
28453 do
28454 IFS=$as_save_IFS
28455 test -z "$as_dir" && as_dir=.
28456 for ac_exec_ext in '' $ac_executable_extensions; do
28457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28458 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
28459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28460 break 2
28461 fi
28462 done
28463 done
28464 IFS=$as_save_IFS
28465
28466 ;;
28467 esac
28468 fi
28469 LIPO=$ac_cv_path_LIPO
28470 if test -n "$LIPO"; then
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
28472 $as_echo "$LIPO" >&6; }
28473 else
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28475 $as_echo "no" >&6; }
28476 fi
28477
28740 LIPO="$new_complete"
28741 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5
28742 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;}
28743 fi
28744
28745 fi
28746
28747
28748
28749 # Restore old path without tools dir
28750 PATH="$OLD_PATH"
28751
28752
28753 # FIXME: Currently we must test this after paths but before flags. Fix!
28754
28755 # And we can test some aspects on the target using configure macros.
28756
28757
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
28759 $as_echo_n "checking for ANSI C header files... " >&6; }
28760 if ${ac_cv_header_stdc+:} false; then :
28761 $as_echo_n "(cached) " >&6
28762 else
28763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28764 /* end confdefs.h. */
28765 #include <stdlib.h>
28766 #include <stdarg.h>
28767 #include <string.h>
28768 #include <float.h>
28769
28770 int
28771 main ()
28772 {
28773
28774 ;
28775 return 0;
28776 }
28777 _ACEOF
28778 if ac_fn_cxx_try_compile "$LINENO"; then :
28779 ac_cv_header_stdc=yes
28780 else
28875 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
28876 "
28877 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28878 cat >>confdefs.h <<_ACEOF
28879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28880 _ACEOF
28881
28882 fi
28883
28884 done
28885
28886
28887
28888 ###############################################################################
28889 #
28890 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code.
28891 # (The JVM can use 32 or 64 bit Java pointers but that decision
28892 # is made at runtime.)
28893 #
28894
28895 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then
28896 # Always specify -m flag on Solaris
28897 # And -q on AIX because otherwise the compiler produces 32-bit objects by default
28898
28899
28900 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
28901 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
28902 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
28903
28904 CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
28905 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
28906 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
28907
28908 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
28909 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
28910 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
28911
28912 elif test "x$COMPILE_TYPE" = xreduced; then
28913 if test "x$OPENJDK_TARGET_OS" != xwindows; then
28914 # Specify -m if running reduced on other Posix platforms
28915
28916
28917 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
28918 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
28919 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
28920
28921 CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
28922 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
28923 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
28924
28925 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
28926 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
28927 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
28928
28929 fi
28930 fi
28931
28932 # Make compilation sanity check
28933 for ac_header in stdio.h
28934 do :
28935 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
28936 if test "x$ac_cv_header_stdio_h" = xyes; then :
28937 cat >>confdefs.h <<_ACEOF
28938 #define HAVE_STDIO_H 1
28939 _ACEOF
28940
28941 else
28942
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5
28944 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;}
28945 if test "x$COMPILE_TYPE" = xreduced; then
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5
28947 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;}
28948 elif test "x$COMPILE_TYPE" = xcross; then
28949 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5
28950 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;}
28951 fi
28952 as_fn_error $? "Cannot continue." "$LINENO" 5
28953
28954 fi
28955
28956 done
28957
28958
28959 # The cast to long int works around a bug in the HP C Compiler
28960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28962 # This bug is HP SR number 8606223364.
28963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
28964 $as_echo_n "checking size of int *... " >&6; }
28965 if ${ac_cv_sizeof_int_p+:} false; then :
28966 $as_echo_n "(cached) " >&6
28967 else
28968 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
28969
28970 else
28971 if test "$ac_cv_type_int_p" = yes; then
28972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28974 as_fn_error 77 "cannot compute sizeof (int *)
28975 See \`config.log' for more details" "$LINENO" 5; }
28976 else
28977 ac_cv_sizeof_int_p=0
28978 fi
28979 fi
28980
28981 fi
28982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
28983 $as_echo "$ac_cv_sizeof_int_p" >&6; }
28984
28985
28986
28987 cat >>confdefs.h <<_ACEOF
28988 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28989 _ACEOF
28990
28991
28992
28993 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*'
28994 if test "x$ac_cv_sizeof_int_p" = x; then
28995 # The test failed, lets stick to the assumed value.
28996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&5
28997 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;}
28998 else
28999 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p`
29000
29001 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
29002 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects
29003 # Let's try to implicitely set the compilers target architecture and retry the test
29004 { $as_echo "$as_me:${as_lineno-$LINENO}: 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)." >&5
29005 $as_echo "$as_me: 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)." >&6;}
29006 { $as_echo "$as_me:${as_lineno-$LINENO}: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5
29007 $as_echo "$as_me: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;}
29008
29009
29010 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
29011 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
29012 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
29013
29014 CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
29015 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
29016 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
29017
29018 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
29019 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
29020 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
29021
29022
29023 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value!
29024 unset ac_cv_sizeof_int_p
29025 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF
29026 cat >>confdefs.h <<_ACEOF
29027 #undef SIZEOF_INT_P
29028 _ACEOF
29029
29030 # The cast to long int works around a bug in the HP C Compiler
29031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29033 # This bug is HP SR number 8606223364.
29034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
29035 $as_echo_n "checking size of int *... " >&6; }
29036 if ${ac_cv_sizeof_int_p+:} false; then :
29037 $as_echo_n "(cached) " >&6
29038 else
29039 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
29040
29041 else
29042 if test "$ac_cv_type_int_p" = yes; then
29043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29045 as_fn_error 77 "cannot compute sizeof (int *)
29046 See \`config.log' for more details" "$LINENO" 5; }
29047 else
29048 ac_cv_sizeof_int_p=0
29049 fi
29050 fi
29051
29052 fi
29053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
29054 $as_echo "$ac_cv_sizeof_int_p" >&6; }
29055
29056
29057
29058 cat >>confdefs.h <<_ACEOF
29059 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
29060 _ACEOF
29061
29062
29063
29064 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p`
29065
29066 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
29067 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
29068 fi
29069 fi
29070 fi
29071
29072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5
29073 $as_echo_n "checking for target address size... " >&6; }
29074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5
29075 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; }
29076
29077
29078 ###############################################################################
29079 #
29080 # Is the target little of big endian?
29081 #
29082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
29083 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
29084 if ${ac_cv_c_bigendian+:} false; then :
29085 $as_echo_n "(cached) " >&6
29086 else
29087 ac_cv_c_bigendian=unknown
29088 # See if we're dealing with a universal compiler.
29089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29090 /* end confdefs.h. */
29091 #ifndef __APPLE_CC__
29092 not a universal capable compiler
29093 #endif
29094 typedef int dummy;
29095
29096 _ACEOF
29097 if ac_fn_cxx_try_compile "$LINENO"; then :
29098
29099 # Check for potential -arch flags. It is not universal unless
29100 # there are at least two -arch flags with different values.
29101 ac_arch=
29102 ac_prev=
29103 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
29104 if test -n "$ac_prev"; then
29361 LIBRARY_PREFIX=lib
29362 SHARED_LIBRARY='lib$1.so'
29363 STATIC_LIBRARY='lib$1.a'
29364 SHARED_LIBRARY_FLAGS="-G"
29365 SHARED_LIBRARY_SUFFIX='.so'
29366 STATIC_LIBRARY_SUFFIX='.a'
29367 OBJ_SUFFIX='.o'
29368 EXE_SUFFIX=''
29369 SET_SHARED_LIBRARY_NAME=''
29370 SET_SHARED_LIBRARY_MAPFILE='-M$1'
29371 C_FLAG_REORDER='-xF'
29372 CXX_FLAG_REORDER='-xF'
29373 SET_SHARED_LIBRARY_ORIGIN='-R\$$$$ORIGIN$1'
29374 SET_EXECUTABLE_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN"
29375 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__"
29376 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__"
29377 CFLAGS_JDKLIB_EXTRA='-xstrconst'
29378 POST_STRIP_CMD="$STRIP -x"
29379 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\""
29380 fi
29381 if test "x$OPENJDK_TARGET_OS" = xaix; then
29382 COMPILER_NAME=xlc
29383 PICFLAG="-qpic=large"
29384 LIBRARY_PREFIX=lib
29385 SHARED_LIBRARY='lib$1.so'
29386 STATIC_LIBRARY='lib$1.a'
29387 SHARED_LIBRARY_FLAGS="-qmkshrobj"
29388 SHARED_LIBRARY_SUFFIX='.so'
29389 STATIC_LIBRARY_SUFFIX='.a'
29390 OBJ_SUFFIX='.o'
29391 EXE_SUFFIX=''
29392 SET_SHARED_LIBRARY_NAME=''
29393 SET_SHARED_LIBRARY_MAPFILE=''
29394 C_FLAG_REORDER=''
29395 CXX_FLAG_REORDER=''
29396 SET_SHARED_LIBRARY_ORIGIN=''
29397 SET_EXECUTABLE_ORIGIN=""
29398 CFLAGS_JDK=""
29399 CXXFLAGS_JDK=""
29400 CFLAGS_JDKLIB_EXTRA=''
29401 POST_STRIP_CMD="$STRIP -X32_64"
29402 POST_MCS_CMD=""
29403 fi
29404 if test "x$OPENJDK_TARGET_OS" = xwindows; then
29405 # If it is not gcc, then assume it is the MS Visual Studio compiler
29406 COMPILER_NAME=cl
29407 PICFLAG=""
29408 LIBRARY_PREFIX=
29409 SHARED_LIBRARY='$1.dll'
29410 STATIC_LIBRARY='$1.lib'
29411 SHARED_LIBRARY_FLAGS="-LD"
29412 SHARED_LIBRARY_SUFFIX='.dll'
29413 STATIC_LIBRARY_SUFFIX='.lib'
29414 OBJ_SUFFIX='.obj'
29415 EXE_SUFFIX='.exe'
29416 SET_SHARED_LIBRARY_NAME=''
29417 SET_SHARED_LIBRARY_MAPFILE=''
29418 SET_SHARED_LIBRARY_ORIGIN=''
29419 SET_EXECUTABLE_ORIGIN=''
29420 fi
29421 fi
29422
29423
29568 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium"
29569 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium"
29570 fi
29571 ;;
29572 sparc)
29573 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
29574 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
29575 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
29576 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0"
29577 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0"
29578 C_O_FLAG_NONE=""
29579 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
29580 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
29581 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
29582 CXX_O_FLAG_NONE=""
29583 ;;
29584 esac
29585
29586 CFLAGS_DEBUG_SYMBOLS="-g -xs"
29587 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs"
29588 ;;
29589 xlc )
29590 C_FLAG_DEPS="-qmakedep=gcc -MF"
29591 CXX_FLAG_DEPS="-qmakedep=gcc -MF"
29592 C_O_FLAG_HIGHEST="-O3"
29593 C_O_FLAG_HI="-O3 -qstrict"
29594 C_O_FLAG_NORM="-O2"
29595 C_O_FLAG_NONE=""
29596 CXX_O_FLAG_HIGHEST="-O3"
29597 CXX_O_FLAG_HI="-O3 -qstrict"
29598 CXX_O_FLAG_NORM="-O2"
29599 CXX_O_FLAG_NONE=""
29600 CFLAGS_DEBUG_SYMBOLS="-g"
29601 CXXFLAGS_DEBUG_SYMBOLS="-g"
29602 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall"
29603 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
29604 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
29605 ;;
29606 esac
29607 ;;
29608 CL )
29609 C_O_FLAG_HIGHEST="-O2"
29610 C_O_FLAG_HI="-O1"
29611 C_O_FLAG_NORM="-O1"
29612 C_O_FLAG_NONE="-Od"
29613 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST"
29614 CXX_O_FLAG_HI="$C_O_FLAG_HI"
29615 CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
29616 CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
29617 ;;
29618 esac
29619
29620 if test -z "$C_O_FLAG_HIGHEST"; then
29621 C_O_FLAG_HIGHEST="$C_O_FLAG_HI"
29622 fi
29623
29624 if test -z "$CXX_O_FLAG_HIGHEST"; then
29625 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HI"
29709 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer"
29710 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
29711 ;;
29712 esac
29713 ;;
29714 ossc )
29715 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS"
29716 case $OPENJDK_TARGET_CPU_ARCH in
29717 x86 )
29718 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB"
29719 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE"
29720 ;;
29721 esac
29722
29723 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
29724 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
29725
29726 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext"
29727 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib"
29728 ;;
29729 xlc )
29730 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
29731 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
29732
29733 LDFLAGS_JDK="$LDFLAGS_JDK"
29734 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK"
29735 ;;
29736 cl )
29737 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
29738 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \
29739 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
29740 -DWIN32 -DIAL"
29741 case $OPENJDK_TARGET_CPU in
29742 x86 )
29743 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86"
29744 ;;
29745 x86_64 )
29746 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64"
29747 ;;
29748 esac
29749 ;;
29750 esac
29751
29752 ###############################################################################
29753
29754 # Adjust flags according to debug level.
29755 case $DEBUG_LEVEL in
29785 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h).
29786 # Note: -Dmacro is the same as #define macro 1
29787 # -Dmacro= is the same as #define macro
29788 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
29789 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN="
29790 else
29791 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN"
29792 fi
29793 else
29794 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN"
29795 fi
29796 if test "x$OPENJDK_TARGET_OS" = xlinux; then
29797 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DLINUX"
29798 fi
29799 if test "x$OPENJDK_TARGET_OS" = xwindows; then
29800 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DWINDOWS"
29801 fi
29802 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
29803 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS"
29804 fi
29805 if test "x$OPENJDK_TARGET_OS" = xaix; then
29806 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DAIX -DPPC64"
29807 fi
29808 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
29809 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE"
29810 # Setting these parameters makes it an error to link to macosx APIs that are
29811 # newer than the given OS version and makes the linked binaries compatible even
29812 # if built on a newer version of the OS.
29813 # The expected format is X.Y.Z
29814 MACOSX_VERSION_MIN=10.7.0
29815
29816 # The macro takes the version with no dots, ex: 1070
29817 # Let the flags variables get resolved in make for easier override on make
29818 # command line.
29819 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
29820 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
29821 fi
29822 if test "x$OPENJDK_TARGET_OS" = xbsd; then
29823 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE"
29824 fi
29825 if test "x$DEBUG_LEVEL" = xrelease; then
29826 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG"
29827 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
29920 fi
29921
29922
29923
29924
29925
29926
29927
29928
29929
29930
29931
29932
29933
29934
29935
29936 # Some Zero and Shark settings.
29937 # ZERO_ARCHFLAG tells the compiler which mode to build for
29938 case "${OPENJDK_TARGET_CPU}" in
29939 s390)
29940 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31"
29941 ;;
29942 *)
29943 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
29944 esac
29945
29946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5
29947 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; }
29948 supports=yes
29949
29950 saved_cflags="$CFLAGS"
29951 CFLAGS="$CFLAGS $ZERO_ARCHFLAG"
29952 ac_ext=c
29953 ac_cpp='$CPP $CPPFLAGS'
29954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29957
29958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29959 /* end confdefs.h. */
29960
29961 int i;
29962
29963 _ACEOF
29996 fi
29997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29998 ac_ext=cpp
29999 ac_cpp='$CXXCPP $CPPFLAGS'
30000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30003
30004 CXXFLAGS="$saved_cxxflags"
30005
30006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
30007 $as_echo "$supports" >&6; }
30008 if test "x$supports" = "xyes" ; then
30009 :
30010 else
30011 ZERO_ARCHFLAG=""
30012 fi
30013
30014
30015
30016 # Check that the compiler supports -mX (or -qX on AIX) flags
30017 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does
30018
30019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5
30020 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; }
30021 supports=yes
30022
30023 saved_cflags="$CFLAGS"
30024 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
30025 ac_ext=c
30026 ac_cpp='$CPP $CPPFLAGS'
30027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30030
30031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30032 /* end confdefs.h. */
30033
30034 int i;
30035
30036 _ACEOF
30037 if ac_fn_c_try_compile "$LINENO"; then :
30038
30039 else
30040 supports=no
30041 fi
30042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30043 ac_ext=cpp
30044 ac_cpp='$CXXCPP $CPPFLAGS'
30045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30048
30049 CFLAGS="$saved_cflags"
30050
30051 saved_cxxflags="$CXXFLAGS"
30052 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
30053 ac_ext=cpp
30054 ac_cpp='$CXXCPP $CPPFLAGS'
30055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30058
30059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30060 /* end confdefs.h. */
30061
30062 int i;
30063
30064 _ACEOF
30065 if ac_fn_cxx_try_compile "$LINENO"; then :
30066
30067 else
30068 supports=no
30069 fi
30070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30071 ac_ext=cpp
30072 ac_cpp='$CXXCPP $CPPFLAGS'
30187 #
30188 # OS specific settings that we never will need to probe.
30189 #
30190 if test "x$OPENJDK_TARGET_OS" = xlinux; then
30191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5
30192 $as_echo_n "checking what is not needed on Linux?... " >&6; }
30193 PULSE_NOT_NEEDED=yes
30194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5
30195 $as_echo "pulse" >&6; }
30196 fi
30197
30198 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
30199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5
30200 $as_echo_n "checking what is not needed on Solaris?... " >&6; }
30201 ALSA_NOT_NEEDED=yes
30202 PULSE_NOT_NEEDED=yes
30203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
30204 $as_echo "alsa pulse" >&6; }
30205 fi
30206
30207 if test "x$OPENJDK_TARGET_OS" = xaix; then
30208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5
30209 $as_echo_n "checking what is not needed on AIX?... " >&6; }
30210 ALSA_NOT_NEEDED=yes
30211 PULSE_NOT_NEEDED=yes
30212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
30213 $as_echo "alsa pulse" >&6; }
30214 fi
30215
30216
30217 if test "x$OPENJDK_TARGET_OS" = xwindows; then
30218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5
30219 $as_echo_n "checking what is not needed on Windows?... " >&6; }
30220 CUPS_NOT_NEEDED=yes
30221 ALSA_NOT_NEEDED=yes
30222 PULSE_NOT_NEEDED=yes
30223 X11_NOT_NEEDED=yes
30224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5
30225 $as_echo "alsa cups pulse x11" >&6; }
30226 fi
30227
30228 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
30229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5
30230 $as_echo_n "checking what is not needed on MacOSX?... " >&6; }
30231 ALSA_NOT_NEEDED=yes
30232 PULSE_NOT_NEEDED=yes
30233 X11_NOT_NEEDED=yes
30234 FREETYPE2_NOT_NEEDED=yes
30235 # If the java runtime framework is disabled, then we need X11.
30236 # This will be adjusted below.
30323 fi
30324 fi
30325
30326 # Now let autoconf do it's magic
30327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
30328 $as_echo_n "checking for X... " >&6; }
30329
30330
30331 # Check whether --with-x was given.
30332 if test "${with_x+set}" = set; then :
30333 withval=$with_x;
30334 fi
30335
30336 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30337 if test "x$with_x" = xno; then
30338 # The user explicitly disabled X.
30339 have_x=disabled
30340 else
30341 case $x_includes,$x_libraries in #(
30342 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
30343 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
30344 $as_echo_n "(cached) " >&6
30345 else
30346 # One or both of the vars are not set, and there is no cached value.
30347 ac_x_includes=no ac_x_libraries=no
30348 rm -f -r conftest.dir
30349 if mkdir conftest.dir; then
30350 cd conftest.dir
30351 cat >Imakefile <<'_ACEOF'
30352 incroot:
30353 @echo incroot='${INCROOT}'
30354 usrlibdir:
30355 @echo usrlibdir='${USRLIBDIR}'
30356 libdir:
30357 @echo libdir='${LIBDIR}'
30358 _ACEOF
30359 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30360 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
30361 for ac_var in incroot usrlibdir libdir; do
30362 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30363 done
30600 /* Override any GCC internal prototype to avoid an error.
30601 Use char because int might match the return type of a GCC
30602 builtin and then its argument prototype would still apply. */
30603 #ifdef __cplusplus
30604 extern "C"
30605 #endif
30606 char XOpenDisplay ();
30607 int
30608 main ()
30609 {
30610 return XOpenDisplay ();
30611 ;
30612 return 0;
30613 }
30614 _ACEOF
30615 if ac_fn_cxx_try_link "$LINENO"; then :
30616
30617 else
30618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
30619 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
30620 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
30621 $as_echo_n "(cached) " >&6
30622 else
30623 ac_check_lib_save_LIBS=$LIBS
30624 LIBS="-ldnet $LIBS"
30625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30626 /* end confdefs.h. */
30627
30628 /* Override any GCC internal prototype to avoid an error.
30629 Use char because int might match the return type of a GCC
30630 builtin and then its argument prototype would still apply. */
30631 #ifdef __cplusplus
30632 extern "C"
30633 #endif
30634 char dnet_ntoa ();
30635 int
30636 main ()
30637 {
30638 return dnet_ntoa ();
30639 ;
30640 return 0;
30641 }
30642 _ACEOF
30643 if ac_fn_cxx_try_link "$LINENO"; then :
30644 ac_cv_lib_dnet_dnet_ntoa=yes
30645 else
30646 ac_cv_lib_dnet_dnet_ntoa=no
30647 fi
30648 rm -f core conftest.err conftest.$ac_objext \
30649 conftest$ac_exeext conftest.$ac_ext
30650 LIBS=$ac_check_lib_save_LIBS
30651 fi
30652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30653 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30654 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
30655 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30656 fi
30657
30658 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
30660 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
30661 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
30662 $as_echo_n "(cached) " >&6
30663 else
30664 ac_check_lib_save_LIBS=$LIBS
30665 LIBS="-ldnet_stub $LIBS"
30666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30667 /* end confdefs.h. */
30668
30669 /* Override any GCC internal prototype to avoid an error.
30670 Use char because int might match the return type of a GCC
30671 builtin and then its argument prototype would still apply. */
30672 #ifdef __cplusplus
30673 extern "C"
30674 #endif
30675 char dnet_ntoa ();
30676 int
30677 main ()
30678 {
30679 return dnet_ntoa ();
30680 ;
30681 return 0;
30682 }
30683 _ACEOF
30684 if ac_fn_cxx_try_link "$LINENO"; then :
30685 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30686 else
30687 ac_cv_lib_dnet_stub_dnet_ntoa=no
30688 fi
30689 rm -f core conftest.err conftest.$ac_objext \
30690 conftest$ac_exeext conftest.$ac_ext
30691 LIBS=$ac_check_lib_save_LIBS
30692 fi
30693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30694 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30695 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
30696 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30697 fi
30698
30699 fi
30700 fi
30701 rm -f core conftest.err conftest.$ac_objext \
30702 conftest$ac_exeext conftest.$ac_ext
30703 LIBS="$ac_xsave_LIBS"
30704
30705 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30706 # to get the SysV transport functions.
30707 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30708 # needs -lnsl.
30709 # The nsl library prevents programs from opening the X display
30710 # on Irix 5.2, according to T.E. Dickey.
30711 # The functions gethostbyname, getservbyname, and inet_addr are
30712 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30713 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
30714 if test "x$ac_cv_func_gethostbyname" = xyes; then :
30715
30716 fi
30717
30718 if test $ac_cv_func_gethostbyname = no; then
30719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
30720 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
30721 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
30722 $as_echo_n "(cached) " >&6
30723 else
30724 ac_check_lib_save_LIBS=$LIBS
30725 LIBS="-lnsl $LIBS"
30726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30727 /* end confdefs.h. */
30728
30729 /* Override any GCC internal prototype to avoid an error.
30730 Use char because int might match the return type of a GCC
30731 builtin and then its argument prototype would still apply. */
30732 #ifdef __cplusplus
30733 extern "C"
30734 #endif
30735 char gethostbyname ();
30736 int
30737 main ()
30738 {
30739 return gethostbyname ();
30740 ;
30741 return 0;
30742 }
30743 _ACEOF
30744 if ac_fn_cxx_try_link "$LINENO"; then :
30745 ac_cv_lib_nsl_gethostbyname=yes
30746 else
30747 ac_cv_lib_nsl_gethostbyname=no
30748 fi
30749 rm -f core conftest.err conftest.$ac_objext \
30750 conftest$ac_exeext conftest.$ac_ext
30751 LIBS=$ac_check_lib_save_LIBS
30752 fi
30753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
30754 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
30755 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
30756 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30757 fi
30758
30759 if test $ac_cv_lib_nsl_gethostbyname = no; then
30760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
30761 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
30762 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
30763 $as_echo_n "(cached) " >&6
30764 else
30765 ac_check_lib_save_LIBS=$LIBS
30766 LIBS="-lbsd $LIBS"
30767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30768 /* end confdefs.h. */
30769
30770 /* Override any GCC internal prototype to avoid an error.
30771 Use char because int might match the return type of a GCC
30772 builtin and then its argument prototype would still apply. */
30773 #ifdef __cplusplus
30774 extern "C"
30775 #endif
30776 char gethostbyname ();
30777 int
30778 main ()
30779 {
30780 return gethostbyname ();
30781 ;
30782 return 0;
30783 }
30784 _ACEOF
30785 if ac_fn_cxx_try_link "$LINENO"; then :
30786 ac_cv_lib_bsd_gethostbyname=yes
30787 else
30788 ac_cv_lib_bsd_gethostbyname=no
30789 fi
30790 rm -f core conftest.err conftest.$ac_objext \
30791 conftest$ac_exeext conftest.$ac_ext
30792 LIBS=$ac_check_lib_save_LIBS
30793 fi
30794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
30795 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
30796 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
30797 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30798 fi
30799
30800 fi
30801 fi
30802
30803 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30804 # socket/setsockopt and other routines are undefined under SCO ODT
30805 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30806 # on later versions), says Simon Leinen: it contains gethostby*
30807 # variants that don't use the name server (or something). -lsocket
30808 # must be given before -lnsl if both are needed. We assume that
30809 # if connect needs -lnsl, so does gethostbyname.
30810 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
30811 if test "x$ac_cv_func_connect" = xyes; then :
30812
30813 fi
30814
30815 if test $ac_cv_func_connect = no; then
30816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
30817 $as_echo_n "checking for connect in -lsocket... " >&6; }
30818 if ${ac_cv_lib_socket_connect+:} false; then :
30819 $as_echo_n "(cached) " >&6
30820 else
30821 ac_check_lib_save_LIBS=$LIBS
30822 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30824 /* end confdefs.h. */
30825
30826 /* Override any GCC internal prototype to avoid an error.
30827 Use char because int might match the return type of a GCC
30828 builtin and then its argument prototype would still apply. */
30829 #ifdef __cplusplus
30830 extern "C"
30831 #endif
30832 char connect ();
30833 int
30834 main ()
30835 {
30836 return connect ();
30837 ;
30838 return 0;
30839 }
30840 _ACEOF
30841 if ac_fn_cxx_try_link "$LINENO"; then :
30842 ac_cv_lib_socket_connect=yes
30843 else
30844 ac_cv_lib_socket_connect=no
30845 fi
30846 rm -f core conftest.err conftest.$ac_objext \
30847 conftest$ac_exeext conftest.$ac_ext
30848 LIBS=$ac_check_lib_save_LIBS
30849 fi
30850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
30851 $as_echo "$ac_cv_lib_socket_connect" >&6; }
30852 if test "x$ac_cv_lib_socket_connect" = xyes; then :
30853 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30854 fi
30855
30856 fi
30857
30858 # Guillermo Gomez says -lposix is necessary on A/UX.
30859 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
30860 if test "x$ac_cv_func_remove" = xyes; then :
30861
30862 fi
30863
30864 if test $ac_cv_func_remove = no; then
30865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
30866 $as_echo_n "checking for remove in -lposix... " >&6; }
30867 if ${ac_cv_lib_posix_remove+:} false; then :
30868 $as_echo_n "(cached) " >&6
30869 else
30870 ac_check_lib_save_LIBS=$LIBS
30871 LIBS="-lposix $LIBS"
30872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30873 /* end confdefs.h. */
30874
30875 /* Override any GCC internal prototype to avoid an error.
30876 Use char because int might match the return type of a GCC
30877 builtin and then its argument prototype would still apply. */
30878 #ifdef __cplusplus
30879 extern "C"
30880 #endif
30881 char remove ();
30882 int
30883 main ()
30884 {
30885 return remove ();
30886 ;
30887 return 0;
30888 }
30889 _ACEOF
30890 if ac_fn_cxx_try_link "$LINENO"; then :
30891 ac_cv_lib_posix_remove=yes
30892 else
30893 ac_cv_lib_posix_remove=no
30894 fi
30895 rm -f core conftest.err conftest.$ac_objext \
30896 conftest$ac_exeext conftest.$ac_ext
30897 LIBS=$ac_check_lib_save_LIBS
30898 fi
30899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
30900 $as_echo "$ac_cv_lib_posix_remove" >&6; }
30901 if test "x$ac_cv_lib_posix_remove" = xyes; then :
30902 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30903 fi
30904
30905 fi
30906
30907 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30908 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
30909 if test "x$ac_cv_func_shmat" = xyes; then :
30910
30911 fi
30912
30913 if test $ac_cv_func_shmat = no; then
30914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
30915 $as_echo_n "checking for shmat in -lipc... " >&6; }
30916 if ${ac_cv_lib_ipc_shmat+:} false; then :
30917 $as_echo_n "(cached) " >&6
30918 else
30919 ac_check_lib_save_LIBS=$LIBS
30920 LIBS="-lipc $LIBS"
30921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30922 /* end confdefs.h. */
30923
30924 /* Override any GCC internal prototype to avoid an error.
30925 Use char because int might match the return type of a GCC
30926 builtin and then its argument prototype would still apply. */
30927 #ifdef __cplusplus
30928 extern "C"
30929 #endif
30930 char shmat ();
30931 int
30932 main ()
30933 {
30934 return shmat ();
30935 ;
30936 return 0;
30937 }
30938 _ACEOF
30939 if ac_fn_cxx_try_link "$LINENO"; then :
30940 ac_cv_lib_ipc_shmat=yes
30941 else
30942 ac_cv_lib_ipc_shmat=no
30943 fi
30944 rm -f core conftest.err conftest.$ac_objext \
30945 conftest$ac_exeext conftest.$ac_ext
30946 LIBS=$ac_check_lib_save_LIBS
30947 fi
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
30949 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
30950 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
30951 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30952 fi
30953
30954 fi
30955 fi
30956
30957 # Check for libraries that X11R6 Xt/Xaw programs need.
30958 ac_save_LDFLAGS=$LDFLAGS
30959 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30960 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30961 # check for ICE first), but we must link in the order -lSM -lICE or
30962 # we get undefined symbols. So assume we have SM if we have ICE.
30963 # These have to be linked with before -lX11, unlike the other
30964 # libraries we check for below, so use a different variable.
30965 # John Interrante, Karl Berry
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
30967 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
30968 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
30969 $as_echo_n "(cached) " >&6
30970 else
30971 ac_check_lib_save_LIBS=$LIBS
30972 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30974 /* end confdefs.h. */
30975
30976 /* Override any GCC internal prototype to avoid an error.
30977 Use char because int might match the return type of a GCC
30978 builtin and then its argument prototype would still apply. */
30979 #ifdef __cplusplus
30980 extern "C"
30981 #endif
30982 char IceConnectionNumber ();
30983 int
30984 main ()
30985 {
30986 return IceConnectionNumber ();
30987 ;
30988 return 0;
30989 }
30990 _ACEOF
30991 if ac_fn_cxx_try_link "$LINENO"; then :
30992 ac_cv_lib_ICE_IceConnectionNumber=yes
30993 else
30994 ac_cv_lib_ICE_IceConnectionNumber=no
30995 fi
30996 rm -f core conftest.err conftest.$ac_objext \
30997 conftest$ac_exeext conftest.$ac_ext
30998 LIBS=$ac_check_lib_save_LIBS
30999 fi
31000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31001 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31002 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
31003 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31004 fi
31005
31006 LDFLAGS=$ac_save_LDFLAGS
31007
31008 fi
31009
31010
31011 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
31012 # this doesn't make sense so we remove it.
31013 if test "x$COMPILE_TYPE" = xcross; then
31014 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'`
31015 fi
31016
31017 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
31018
31019 # Print a helpful message on how to acquire the necessary build dependency.
31020 # x11 is the help tag: freetyp2, cups, pulse, alsa etc
31021 MISSING_DEPENDENCY=x11
31022 PKGHANDLER_COMMAND=
31023
31024 case $PKGHANDLER in
31025 apt-get)
31026 apt_help $MISSING_DEPENDENCY ;;
31027 yum)
31028 yum_help $MISSING_DEPENDENCY ;;
31029 port)
31030 port_help $MISSING_DEPENDENCY ;;
31031 pkgutil)
31032 pkgutil_help $MISSING_DEPENDENCY ;;
31033 pkgadd)
31034 pkgadd_help $MISSING_DEPENDENCY ;;
31035 esac
31036
31037 if test "x$PKGHANDLER_COMMAND" != x; then
31038 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
31039 fi
31040
31041 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5
31042 fi
31043
31044 # Some of the old makefiles require a setting of OPENWIN_HOME
31045 # Since the X11R6 directory has disappeared on later Linuxes,
31046 # we need to probe for it.
31047 if test "x$OPENJDK_TARGET_OS" = xlinux; then
31048 if test -d "$SYS_ROOT/usr/X11R6"; then
31049 OPENWIN_HOME="$SYS_ROOT/usr/X11R6"
31050 elif test -d "$SYS_ROOT/usr/include/X11"; then
31051 OPENWIN_HOME="$SYS_ROOT/usr"
31052 fi
31053 fi
31054 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
31106
31107
31108 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then
31109
31110 # Print a helpful message on how to acquire the necessary build dependency.
31111 # x11 is the help tag: freetyp2, cups, pulse, alsa etc
31112 MISSING_DEPENDENCY=x11
31113 PKGHANDLER_COMMAND=
31114
31115 case $PKGHANDLER in
31116 apt-get)
31117 apt_help $MISSING_DEPENDENCY ;;
31118 yum)
31119 yum_help $MISSING_DEPENDENCY ;;
31120 port)
31121 port_help $MISSING_DEPENDENCY ;;
31122 pkgutil)
31123 pkgutil_help $MISSING_DEPENDENCY ;;
31124 pkgadd)
31125 pkgadd_help $MISSING_DEPENDENCY ;;
31126 esac
31127
31128 if test "x$PKGHANDLER_COMMAND" != x; then
31129 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
31130 fi
31131
31132 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h). $HELP_MSG" "$LINENO" 5
31133 fi
31134
31135
31136
31137
31138
31139
31140 ###############################################################################
31141 #
31142 # The common unix printing system cups is used to print from java.
31143 #
31144
31145 # Check whether --with-cups was given.
31356 $as_echo "$CUPS_FOUND" >&6; }
31357 fi
31358 if test "x$CUPS_FOUND" = xno; then
31359
31360 # Print a helpful message on how to acquire the necessary build dependency.
31361 # cups is the help tag: freetyp2, cups, pulse, alsa etc
31362 MISSING_DEPENDENCY=cups
31363 PKGHANDLER_COMMAND=
31364
31365 case $PKGHANDLER in
31366 apt-get)
31367 apt_help $MISSING_DEPENDENCY ;;
31368 yum)
31369 yum_help $MISSING_DEPENDENCY ;;
31370 port)
31371 port_help $MISSING_DEPENDENCY ;;
31372 pkgutil)
31373 pkgutil_help $MISSING_DEPENDENCY ;;
31374 pkgadd)
31375 pkgadd_help $MISSING_DEPENDENCY ;;
31376 esac
31377
31378 if test "x$PKGHANDLER_COMMAND" != x; then
31379 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
31380 fi
31381
31382 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5
31383 fi
31384 fi
31385
31386
31387
31388
31389
31390
31391 ###############################################################################
31392 #
31393 # The ubiquitous freetype2 library is used to render fonts.
31394 #
31395
31977 USING_SYSTEM_FT_LIB=true
31978 fi
31979 if test "x$FREETYPE2_FOUND" = xno; then
31980
31981 # Print a helpful message on how to acquire the necessary build dependency.
31982 # freetype2 is the help tag: freetyp2, cups, pulse, alsa etc
31983 MISSING_DEPENDENCY=freetype2
31984 PKGHANDLER_COMMAND=
31985
31986 case $PKGHANDLER in
31987 apt-get)
31988 apt_help $MISSING_DEPENDENCY ;;
31989 yum)
31990 yum_help $MISSING_DEPENDENCY ;;
31991 port)
31992 port_help $MISSING_DEPENDENCY ;;
31993 pkgutil)
31994 pkgutil_help $MISSING_DEPENDENCY ;;
31995 pkgadd)
31996 pkgadd_help $MISSING_DEPENDENCY ;;
31997 esac
31998
31999 if test "x$PKGHANDLER_COMMAND" != x; then
32000 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
32001 fi
32002
32003 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
32004 fi
32005
32006 if test "x$OPENJDK_TARGET_OS" != xwindows; then
32007 # AC_CHECK_LIB does not support use of cl.exe
32008 PREV_LDFLAGS="$LDFLAGS"
32009 LDFLAGS="$FREETYPE2_LIBS"
32010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
32011 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
32012 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
32013 $as_echo_n "(cached) " >&6
32014 else
32015 ac_check_lib_save_LIBS=$LIBS
32016 LIBS="-lfreetype $LIBS"
32017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32018 /* end confdefs.h. */
32019
32020 /* Override any GCC internal prototype to avoid an error.
32021 Use char because int might match the return type of a GCC
32022 builtin and then its argument prototype would still apply. */
32023 #ifdef __cplusplus
32024 extern "C"
32025 #endif
32026 char FT_Init_FreeType ();
32027 int
32028 main ()
32029 {
32030 return FT_Init_FreeType ();
32031 ;
32032 return 0;
32033 }
32034 _ACEOF
32035 if ac_fn_cxx_try_link "$LINENO"; then :
32036 ac_cv_lib_freetype_FT_Init_FreeType=yes
32037 else
32038 ac_cv_lib_freetype_FT_Init_FreeType=no
32039 fi
32040 rm -f core conftest.err conftest.$ac_objext \
32041 conftest$ac_exeext conftest.$ac_ext
32042 LIBS=$ac_check_lib_save_LIBS
32043 fi
32044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
32045 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
32046 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
32047 FREETYPE2_FOUND=true
32048 else
32049 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
32050 fi
32051
32052 LDFLAGS="$PREV_LDFLAGS"
32053 fi
32054 fi
32055
32056
32057
32058
32059
32060
32061
32062
32063
32064 ###############################################################################
32065 #
32066 # Check for alsa headers and libraries. Used on Linux/GNU systems.
32314 # Put the nasty error message in config.log where it belongs
32315 echo "$ALSA_PKG_ERRORS" >&5
32316
32317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32318 $as_echo "no" >&6; }
32319 ALSA_FOUND=no
32320 elif test $pkg_failed = untried; then
32321 ALSA_FOUND=no
32322 else
32323 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
32324 ALSA_LIBS=$pkg_cv_ALSA_LIBS
32325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32326 $as_echo "yes" >&6; }
32327 ALSA_FOUND=yes
32328 fi
32329 fi
32330 if test "x$ALSA_FOUND" = xno; then
32331 for ac_header in alsa/asoundlib.h
32332 do :
32333 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
32334 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
32335 cat >>confdefs.h <<_ACEOF
32336 #define HAVE_ALSA_ASOUNDLIB_H 1
32337 _ACEOF
32338 ALSA_FOUND=yes
32339 ALSA_CFLAGS=-Iignoreme
32340 ALSA_LIBS=-lasound
32341 DEFAULT_ALSA=yes
32342 else
32343 ALSA_FOUND=no
32344 fi
32345
32346 done
32347
32348 fi
32349 if test "x$ALSA_FOUND" = xno; then
32350
32351 # Print a helpful message on how to acquire the necessary build dependency.
32352 # alsa is the help tag: freetyp2, cups, pulse, alsa etc
32353 MISSING_DEPENDENCY=alsa
32354 PKGHANDLER_COMMAND=
32355
32356 case $PKGHANDLER in
32357 apt-get)
32358 apt_help $MISSING_DEPENDENCY ;;
32359 yum)
32360 yum_help $MISSING_DEPENDENCY ;;
32361 port)
32362 port_help $MISSING_DEPENDENCY ;;
32363 pkgutil)
32364 pkgutil_help $MISSING_DEPENDENCY ;;
32365 pkgadd)
32366 pkgadd_help $MISSING_DEPENDENCY ;;
32367 esac
32368
32369 if test "x$PKGHANDLER_COMMAND" != x; then
32370 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
32371 fi
32372
32373 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
32374 fi
32375 fi
32376
32377
32378
32379
32380
32381
32382
32383 ###############################################################################
32384 #
32385 # Check for the jpeg library
32386 #
32387
32388 USE_EXTERNAL_LIBJPEG=true
32389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
32390 $as_echo_n "checking for main in -ljpeg... " >&6; }
32391 if ${ac_cv_lib_jpeg_main+:} false; then :
32392 $as_echo_n "(cached) " >&6
32393 else
32394 ac_check_lib_save_LIBS=$LIBS
32395 LIBS="-ljpeg $LIBS"
32396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32397 /* end confdefs.h. */
32398
32399
32400 int
32401 main ()
32402 {
32403 return main ();
32404 ;
32405 return 0;
32406 }
32407 _ACEOF
32408 if ac_fn_cxx_try_link "$LINENO"; then :
32409 ac_cv_lib_jpeg_main=yes
32410 else
32411 ac_cv_lib_jpeg_main=no
32412 fi
32413 rm -f core conftest.err conftest.$ac_objext \
32414 conftest$ac_exeext conftest.$ac_ext
32415 LIBS=$ac_check_lib_save_LIBS
32416 fi
32417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
32418 $as_echo "$ac_cv_lib_jpeg_main" >&6; }
32419 if test "x$ac_cv_lib_jpeg_main" = xyes; then :
32420 cat >>confdefs.h <<_ACEOF
32421 #define HAVE_LIBJPEG 1
32422 _ACEOF
32423
32424 LIBS="-ljpeg $LIBS"
32425
32426 else
32427 USE_EXTERNAL_LIBJPEG=false
32428 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
32429 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
32430
32431 fi
32432
32433
32434
32435 ###############################################################################
32436 #
32437 # Check for the gif library
32438 #
32439
32448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5
32449 $as_echo_n "checking for which giflib to use... " >&6; }
32450
32451 # default is bundled
32452 DEFAULT_GIFLIB=bundled
32453
32454 #
32455 # if user didn't specify, use DEFAULT_GIFLIB
32456 #
32457 if test "x${with_giflib}" = "x"; then
32458 with_giflib=${DEFAULT_GIFLIB}
32459 fi
32460
32461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5
32462 $as_echo "${with_giflib}" >&6; }
32463
32464 if test "x${with_giflib}" = "xbundled"; then
32465 USE_EXTERNAL_LIBGIF=false
32466 elif test "x${with_giflib}" = "xsystem"; then
32467 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
32468 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
32469
32470 else
32471 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5
32472 fi
32473
32474
32475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5
32476 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; }
32477 if ${ac_cv_lib_gif_DGifGetCode+:} false; then :
32478 $as_echo_n "(cached) " >&6
32479 else
32480 ac_check_lib_save_LIBS=$LIBS
32481 LIBS="-lgif $LIBS"
32482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32483 /* end confdefs.h. */
32484
32485 /* Override any GCC internal prototype to avoid an error.
32486 Use char because int might match the return type of a GCC
32487 builtin and then its argument prototype would still apply. */
32488 #ifdef __cplusplus
32489 extern "C"
32490 #endif
32491 char DGifGetCode ();
32492 int
32493 main ()
32494 {
32495 return DGifGetCode ();
32496 ;
32497 return 0;
32498 }
32499 _ACEOF
32500 if ac_fn_cxx_try_link "$LINENO"; then :
32501 ac_cv_lib_gif_DGifGetCode=yes
32502 else
32503 ac_cv_lib_gif_DGifGetCode=no
32504 fi
32505 rm -f core conftest.err conftest.$ac_objext \
32506 conftest$ac_exeext conftest.$ac_ext
32507 LIBS=$ac_check_lib_save_LIBS
32508 fi
32509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
32510 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
32511 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then :
32512 cat >>confdefs.h <<_ACEOF
32513 #define HAVE_LIBGIF 1
32514 _ACEOF
32515
32516 LIBS="-lgif $LIBS"
32517
32518 else
32519 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
32520 fi
32521
32522
32523 USE_EXTERNAL_LIBGIF=true
32524 else
32525 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
32526 fi
32527
32528
32529 ###############################################################################
32530 #
32531 # Check for the zlib library
32532 #
32533
32534
32535 # Check whether --with-zlib was given.
32536 if test "${with_zlib+set}" = set; then :
32537 withval=$with_zlib;
32538 fi
32539
32540
32541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
32542 $as_echo_n "checking for compress in -lz... " >&6; }
32543 if ${ac_cv_lib_z_compress+:} false; then :
32544 $as_echo_n "(cached) " >&6
32545 else
32546 ac_check_lib_save_LIBS=$LIBS
32547 LIBS="-lz $LIBS"
32548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32549 /* end confdefs.h. */
32550
32551 /* Override any GCC internal prototype to avoid an error.
32552 Use char because int might match the return type of a GCC
32553 builtin and then its argument prototype would still apply. */
32554 #ifdef __cplusplus
32555 extern "C"
32556 #endif
32557 char compress ();
32558 int
32559 main ()
32560 {
32561 return compress ();
32562 ;
32563 return 0;
32564 }
32565 _ACEOF
32566 if ac_fn_cxx_try_link "$LINENO"; then :
32567 ac_cv_lib_z_compress=yes
32568 else
32569 ac_cv_lib_z_compress=no
32570 fi
32571 rm -f core conftest.err conftest.$ac_objext \
32572 conftest$ac_exeext conftest.$ac_ext
32573 LIBS=$ac_check_lib_save_LIBS
32574 fi
32575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
32576 $as_echo "$ac_cv_lib_z_compress" >&6; }
32577 if test "x$ac_cv_lib_z_compress" = xyes; then :
32578 ZLIB_FOUND=yes
32579 else
32580 ZLIB_FOUND=no
32581 fi
32582
32583
32584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5
32585 $as_echo_n "checking for which zlib to use... " >&6; }
32586
32587 DEFAULT_ZLIB=bundled
32588 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
32589 #
32590 # On macosx default is system...on others default is
32591 #
32592 DEFAULT_ZLIB=system
32593 fi
32594
32595 if test "x${ZLIB_FOUND}" != "xyes"; then
32596 #
32597 # If we don't find any system...set default to bundled
32650 if ac_fn_cxx_try_link "$LINENO"; then :
32651 has_altzone=yes
32652 else
32653 has_altzone=no
32654 fi
32655 rm -f core conftest.err conftest.$ac_objext \
32656 conftest$ac_exeext conftest.$ac_ext
32657 if test "x$has_altzone" = xyes; then
32658
32659 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
32660
32661 fi
32662
32663 ###############################################################################
32664 #
32665 # Check the maths library
32666 #
32667
32668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
32669 $as_echo_n "checking for cos in -lm... " >&6; }
32670 if ${ac_cv_lib_m_cos+:} false; then :
32671 $as_echo_n "(cached) " >&6
32672 else
32673 ac_check_lib_save_LIBS=$LIBS
32674 LIBS="-lm $LIBS"
32675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32676 /* end confdefs.h. */
32677
32678 /* Override any GCC internal prototype to avoid an error.
32679 Use char because int might match the return type of a GCC
32680 builtin and then its argument prototype would still apply. */
32681 #ifdef __cplusplus
32682 extern "C"
32683 #endif
32684 char cos ();
32685 int
32686 main ()
32687 {
32688 return cos ();
32689 ;
32690 return 0;
32691 }
32692 _ACEOF
32693 if ac_fn_cxx_try_link "$LINENO"; then :
32694 ac_cv_lib_m_cos=yes
32695 else
32696 ac_cv_lib_m_cos=no
32697 fi
32698 rm -f core conftest.err conftest.$ac_objext \
32699 conftest$ac_exeext conftest.$ac_ext
32700 LIBS=$ac_check_lib_save_LIBS
32701 fi
32702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
32703 $as_echo "$ac_cv_lib_m_cos" >&6; }
32704 if test "x$ac_cv_lib_m_cos" = xyes; then :
32705 cat >>confdefs.h <<_ACEOF
32706 #define HAVE_LIBM 1
32707 _ACEOF
32708
32709 LIBS="-lm $LIBS"
32710
32711 else
32712
32713 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
32714 $as_echo "$as_me: Maths library was not found" >&6;}
32715
32716 fi
32717
32718
32719
32720 ###############################################################################
32721 #
32722 # Check for libdl.so
32723
32724 save_LIBS="$LIBS"
32725 LIBS=""
32726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
32727 $as_echo_n "checking for dlopen in -ldl... " >&6; }
32728 if ${ac_cv_lib_dl_dlopen+:} false; then :
32729 $as_echo_n "(cached) " >&6
32730 else
32731 ac_check_lib_save_LIBS=$LIBS
32732 LIBS="-ldl $LIBS"
32733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32734 /* end confdefs.h. */
32735
32736 /* Override any GCC internal prototype to avoid an error.
32737 Use char because int might match the return type of a GCC
32738 builtin and then its argument prototype would still apply. */
32739 #ifdef __cplusplus
32740 extern "C"
32741 #endif
32742 char dlopen ();
32743 int
32744 main ()
32745 {
32746 return dlopen ();
32747 ;
32748 return 0;
32749 }
32750 _ACEOF
32751 if ac_fn_cxx_try_link "$LINENO"; then :
32752 ac_cv_lib_dl_dlopen=yes
32753 else
32754 ac_cv_lib_dl_dlopen=no
32755 fi
32756 rm -f core conftest.err conftest.$ac_objext \
32757 conftest$ac_exeext conftest.$ac_ext
32758 LIBS=$ac_check_lib_save_LIBS
32759 fi
32760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
32761 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
32762 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
32763 cat >>confdefs.h <<_ACEOF
32764 #define HAVE_LIBDL 1
32765 _ACEOF
32766
32767 LIBS="-ldl $LIBS"
32768
32769 fi
32770
32771 LIBDL="$LIBS"
32772
32773 LIBS="$save_LIBS"
32774
32775
32776
32777 ###############################################################################
32778 #
32779 # statically link libstdc++ before C++ ABI is stablized on Linux unless
32780 # dynamic build is configured on command line.
32781 #
32782
32988 and LIBFFI_LIBS to avoid the need to call pkg-config.
32989 See the pkg-config man page for more details.
32990
32991 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32992 See \`config.log' for more details" "$LINENO" 5; }
32993 else
32994 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
32995 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
32996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32997 $as_echo "yes" >&6; }
32998 :
32999 fi
33000
33001 fi
33002
33003 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
33004 # Extract the first word of "llvm-config", so it can be a program name with args.
33005 set dummy llvm-config; ac_word=$2
33006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33007 $as_echo_n "checking for $ac_word... " >&6; }
33008 if ${ac_cv_prog_LLVM_CONFIG+:} false; then :
33009 $as_echo_n "(cached) " >&6
33010 else
33011 if test -n "$LLVM_CONFIG"; then
33012 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test.
33013 else
33014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33015 for as_dir in $PATH
33016 do
33017 IFS=$as_save_IFS
33018 test -z "$as_dir" && as_dir=.
33019 for ac_exec_ext in '' $ac_executable_extensions; do
33020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33021 ac_cv_prog_LLVM_CONFIG="llvm-config"
33022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33023 break 2
33024 fi
33025 done
33026 done
33027 IFS=$as_save_IFS
33028
33029 fi
33030 fi
33031 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG
33032 if test -n "$LLVM_CONFIG"; then
33033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
33034 $as_echo "$LLVM_CONFIG" >&6; }
33035 else
33036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33037 $as_echo "no" >&6; }
33038 fi
33039
33040
33210 if test "x$with_num_cores" = x; then
33211 # The number of cores were not specified, try to probe them.
33212
33213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5
33214 $as_echo_n "checking for number of cores... " >&6; }
33215 NUM_CORES=1
33216 FOUND_CORES=no
33217
33218 if test -f /proc/cpuinfo; then
33219 # Looks like a Linux (or cygwin) system
33220 NUM_CORES=`cat /proc/cpuinfo | grep -c processor`
33221 FOUND_CORES=yes
33222 elif test -x /usr/sbin/psrinfo; then
33223 # Looks like a Solaris system
33224 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line`
33225 FOUND_CORES=yes
33226 elif test -x /usr/sbin/system_profiler; then
33227 # Looks like a MacOSX system
33228 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'`
33229 FOUND_CORES=yes
33230 elif test "x$OPENJDK_BUILD_OS" = xaix ; then
33231 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'`
33232 FOUND_CORES=yes
33233 elif test -n "$NUMBER_OF_PROCESSORS"; then
33234 # On windows, look in the env
33235 NUM_CORES=$NUMBER_OF_PROCESSORS
33236 FOUND_CORES=yes
33237 fi
33238
33239 if test "x$FOUND_CORES" = xyes; then
33240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5
33241 $as_echo "$NUM_CORES" >&6; }
33242 else
33243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5
33244 $as_echo "could not detect number of cores, defaulting to 1" >&6; }
33245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5
33246 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;}
33247 fi
33248
33249
33250 else
33251 NUM_CORES=$with_num_cores
33252 fi
33258 # Check whether --with-memory-size was given.
33259 if test "${with_memory_size+set}" = set; then :
33260 withval=$with_memory_size;
33261 fi
33262
33263 if test "x$with_memory_size" = x; then
33264 # The memory size was not specified, try to probe it.
33265
33266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5
33267 $as_echo_n "checking for memory size... " >&6; }
33268 # Default to 1024 MB
33269 MEMORY_SIZE=1024
33270 FOUND_MEM=no
33271
33272 if test -f /proc/meminfo; then
33273 # Looks like a Linux (or cygwin) system
33274 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'`
33275 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024`
33276 FOUND_MEM=yes
33277 elif test -x /usr/sbin/prtconf; then
33278 # Looks like a Solaris or AIX system
33279 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'`
33280 FOUND_MEM=yes
33281 elif test -x /usr/sbin/system_profiler; then
33282 # Looks like a MacOSX system
33283 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'`
33284 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024`
33285 FOUND_MEM=yes
33286 elif test "x$OPENJDK_BUILD_OS" = xwindows; then
33287 # Windows, but without cygwin
33288 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-`
33289 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024`
33290 FOUND_MEM=yes
33291 fi
33292
33293 if test "x$FOUND_MEM" = xyes; then
33294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5
33295 $as_echo "$MEMORY_SIZE MB" >&6; }
33296 else
33297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5
33298 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; }
33299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5
33607
33608
33609 # Setup use of ccache, if available
33610
33611 # Check whether --enable-ccache was given.
33612 if test "${enable_ccache+set}" = set; then :
33613 enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache}
33614 else
33615 ENABLE_CCACHE=yes
33616 fi
33617
33618 if test "x$ENABLE_CCACHE" = xyes; then
33619 OLD_PATH="$PATH"
33620 if test "x$TOOLS_DIR" != x; then
33621 PATH=$TOOLS_DIR:$PATH
33622 fi
33623 # Extract the first word of "ccache", so it can be a program name with args.
33624 set dummy ccache; ac_word=$2
33625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33626 $as_echo_n "checking for $ac_word... " >&6; }
33627 if ${ac_cv_path_CCACHE+:} false; then :
33628 $as_echo_n "(cached) " >&6
33629 else
33630 case $CCACHE in
33631 [\\/]* | ?:[\\/]*)
33632 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
33633 ;;
33634 *)
33635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33636 for as_dir in $PATH
33637 do
33638 IFS=$as_save_IFS
33639 test -z "$as_dir" && as_dir=.
33640 for ac_exec_ext in '' $ac_executable_extensions; do
33641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33642 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
33643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33644 break 2
33645 fi
33646 done
33647 done
33648 IFS=$as_save_IFS
33649
33650 ;;
33651 esac
33652 fi
33653 CCACHE=$ac_cv_path_CCACHE
33654 if test -n "$CCACHE"; then
33655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
33656 $as_echo "$CCACHE" >&6; }
33657 else
33658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33659 $as_echo "no" >&6; }
33660 fi
33661
33869 "s/'/'\\\\''/g;
33870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33871 ;; #(
33872 *)
33873 # `set' quotes correctly as required by POSIX, so do not add quotes.
33874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33875 ;;
33876 esac |
33877 sort
33878 ) |
33879 sed '
33880 /^ac_cv_env_/b end
33881 t clear
33882 :clear
33883 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33884 t end
33885 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33886 :end' >>confcache
33887 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33888 if test -w "$cache_file"; then
33889 if test "x$cache_file" != "x/dev/null"; then
33890 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33891 $as_echo "$as_me: updating cache $cache_file" >&6;}
33892 if test ! -f "$cache_file" || test -h "$cache_file"; then
33893 cat confcache >"$cache_file"
33894 else
33895 case $cache_file in #(
33896 */* | ?:*)
33897 mv -f confcache "$cache_file"$$ &&
33898 mv -f "$cache_file"$$ "$cache_file" ;; #(
33899 *)
33900 mv -f confcache "$cache_file" ;;
33901 esac
33902 fi
33903 fi
33904 else
33905 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33906 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33907 fi
33908 fi
33909 rm -f confcache
33910
33911 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33912 # Let make expand exec_prefix.
33913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33914
33915 DEFS=-DHAVE_CONFIG_H
33916
33917 ac_libobjs=
33918 ac_ltlibobjs=
33919 U=
33920 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33921 # 1. Remove the extension, and $U if already installed.
33922 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33923 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33924 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33925 # will be set to the directory where LIBOBJS objects are built.
33926 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33927 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33928 done
33929 LIBOBJS=$ac_libobjs
33930
33931 LTLIBOBJS=$ac_ltlibobjs
33932
33933
33934
33935 : "${CONFIG_STATUS=./config.status}"
33936 ac_write_fail=0
33937 ac_clean_files_save=$ac_clean_files
33938 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33939 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33940 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33941 as_write_fail=0
33942 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33943 #! $SHELL
33944 # Generated by $as_me.
33945 # Run this file to recreate the current configuration.
33946 # Compiler output produced by configure, useful for debugging
33947 # configure, is in config.log if it exists.
33948
33949 debug=false
33950 ac_cs_recheck=false
33951 ac_cs_silent=false
33952
33953 SHELL=\${CONFIG_SHELL-$SHELL}
33954 export SHELL
33955 _ASEOF
34016 fi
34017
34018 # The user is always right.
34019 if test "${PATH_SEPARATOR+set}" != set; then
34020 PATH_SEPARATOR=:
34021 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34022 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34023 PATH_SEPARATOR=';'
34024 }
34025 fi
34026
34027
34028 # IFS
34029 # We need space, tab and new line, in precisely that order. Quoting is
34030 # there to prevent editors from complaining about space-tab.
34031 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34032 # splitting by setting IFS to empty value.)
34033 IFS=" "" $as_nl"
34034
34035 # Find who we are. Look in the path if we contain no directory separator.
34036 as_myself=
34037 case $0 in #((
34038 *[\\/]* ) as_myself=$0 ;;
34039 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34040 for as_dir in $PATH
34041 do
34042 IFS=$as_save_IFS
34043 test -z "$as_dir" && as_dir=.
34044 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34045 done
34046 IFS=$as_save_IFS
34047
34048 ;;
34049 esac
34050 # We did not find ourselves, most probably we were run as `sh COMMAND'
34051 # in which case we are not to be found in the path.
34052 if test "x$as_myself" = x; then
34053 as_myself=$0
34054 fi
34055 if test ! -f "$as_myself"; then
34056 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34212 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34213 ECHO_T=' ';;
34214 esac;;
34215 *)
34216 ECHO_N='-n';;
34217 esac
34218
34219 rm -f conf$$ conf$$.exe conf$$.file
34220 if test -d conf$$.dir; then
34221 rm -f conf$$.dir/conf$$.file
34222 else
34223 rm -f conf$$.dir
34224 mkdir conf$$.dir 2>/dev/null
34225 fi
34226 if (echo >conf$$.file) 2>/dev/null; then
34227 if ln -s conf$$.file conf$$ 2>/dev/null; then
34228 as_ln_s='ln -s'
34229 # ... but there are two gotchas:
34230 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34231 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34232 # In both cases, we have to default to `cp -pR'.
34233 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34234 as_ln_s='cp -pR'
34235 elif ln conf$$.file conf$$ 2>/dev/null; then
34236 as_ln_s=ln
34237 else
34238 as_ln_s='cp -pR'
34239 fi
34240 else
34241 as_ln_s='cp -pR'
34242 fi
34243 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34244 rmdir conf$$.dir 2>/dev/null
34245
34246
34247 # as_fn_mkdir_p
34248 # -------------
34249 # Create "$as_dir" as a directory, including parents if necessary.
34250 as_fn_mkdir_p ()
34251 {
34252
34253 case $as_dir in #(
34254 -*) as_dir=./$as_dir;;
34255 esac
34256 test -d "$as_dir" || eval $as_mkdir_p || {
34257 as_dirs=
34258 while :; do
34259 case $as_dir in #(
34260 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34261 *) as_qdir=$as_dir;;
34281 }
34282 /^X\(\/\).*/{
34283 s//\1/
34284 q
34285 }
34286 s/.*/./; q'`
34287 test -d "$as_dir" && break
34288 done
34289 test -z "$as_dirs" || eval "mkdir $as_dirs"
34290 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34291
34292
34293 } # as_fn_mkdir_p
34294 if mkdir -p . 2>/dev/null; then
34295 as_mkdir_p='mkdir -p "$as_dir"'
34296 else
34297 test -d ./-p && rmdir ./-p
34298 as_mkdir_p=false
34299 fi
34300
34301
34302 # as_fn_executable_p FILE
34303 # -----------------------
34304 # Test if FILE is an executable regular file.
34305 as_fn_executable_p ()
34306 {
34307 test -f "$1" && test -x "$1"
34308 } # as_fn_executable_p
34309 as_test_x='test -x'
34310 as_executable_p=as_fn_executable_p
34311
34312 # Sed expression to map a string onto a valid CPP name.
34313 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34314
34315 # Sed expression to map a string onto a valid variable name.
34316 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34317
34318
34319 exec 6>&1
34320 ## ----------------------------------- ##
34321 ## Main body of $CONFIG_STATUS script. ##
34322 ## ----------------------------------- ##
34323 _ASEOF
34324 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34325
34326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34327 # Save the log message, to keep $0 and so on meaningful, and to
34328 # report actual input values of CONFIG_FILES etc. instead of their
34329 # values after options handling.
34330 ac_log="
34331 This file was extended by OpenJDK $as_me jdk8, which was
34332 generated by GNU Autoconf 2.69. Invocation command line was
34333
34334 CONFIG_FILES = $CONFIG_FILES
34335 CONFIG_HEADERS = $CONFIG_HEADERS
34336 CONFIG_LINKS = $CONFIG_LINKS
34337 CONFIG_COMMANDS = $CONFIG_COMMANDS
34338 $ $0 $@
34339
34340 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34341 "
34342
34343 _ACEOF
34344
34345 case $ac_config_files in *"
34346 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34347 esac
34348
34349 case $ac_config_headers in *"
34350 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34351 esac
34352
34375 --recheck update $as_me by reconfiguring in the same conditions
34376 --file=FILE[:TEMPLATE]
34377 instantiate the configuration file FILE
34378 --header=FILE[:TEMPLATE]
34379 instantiate the configuration header FILE
34380
34381 Configuration files:
34382 $config_files
34383
34384 Configuration headers:
34385 $config_headers
34386
34387 Report bugs to <build-dev@openjdk.java.net>.
34388 OpenJDK home page: <http://openjdk.java.net>."
34389
34390 _ACEOF
34391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34392 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34393 ac_cs_version="\\
34394 OpenJDK config.status jdk8
34395 configured by $0, generated by GNU Autoconf 2.69,
34396 with options \\"\$ac_cs_config\\"
34397
34398 Copyright (C) 2012 Free Software Foundation, Inc.
34399 This config.status script is free software; the Free Software Foundation
34400 gives unlimited permission to copy, distribute and modify it."
34401
34402 ac_pwd='$ac_pwd'
34403 srcdir='$srcdir'
34404 AWK='$AWK'
34405 test -n "\$AWK" || AWK=awk
34406 _ACEOF
34407
34408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34409 # The default lists apply if the user does not specify any file.
34410 ac_need_defaults=:
34411 while test $# != 0
34412 do
34413 case $1 in
34414 --*=?*)
34415 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34416 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34417 ac_shift=:
34418 ;;
34467 -*) as_fn_error $? "unrecognized option: \`$1'
34468 Try \`$0 --help' for more information." ;;
34469
34470 *) as_fn_append ac_config_targets " $1"
34471 ac_need_defaults=false ;;
34472
34473 esac
34474 shift
34475 done
34476
34477 ac_configure_extra_args=
34478
34479 if $ac_cs_silent; then
34480 exec 6>/dev/null
34481 ac_configure_extra_args="$ac_configure_extra_args --silent"
34482 fi
34483
34484 _ACEOF
34485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34486 if \$ac_cs_recheck; then
34487 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34488 shift
34489 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34490 CONFIG_SHELL='$SHELL'
34491 export CONFIG_SHELL
34492 exec "\$@"
34493 fi
34494
34495 _ACEOF
34496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34497 exec 5>>config.log
34498 {
34499 echo
34500 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34501 ## Running $as_me. ##
34502 _ASBOX
34503 $as_echo "$ac_log"
34504 } >&5
34505
34506 _ACEOF
34507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34526 done
34527
34528
34529 # If the user did not use the arguments to specify the items to instantiate,
34530 # then the envvar interface is used. Set only those that are not.
34531 # We use the long form for the default assignment because of an extremely
34532 # bizarre bug on SunOS 4.1.3.
34533 if $ac_need_defaults; then
34534 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34535 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34536 fi
34537
34538 # Have a temporary directory for convenience. Make it in the build tree
34539 # simply because there is no reason against having it here, and in addition,
34540 # creating and moving files from /tmp can sometimes cause problems.
34541 # Hook for its removal unless debugging.
34542 # Note that there is a small window in which the directory will not be cleaned:
34543 # after its creation but before its name has been assigned to `$tmp'.
34544 $debug ||
34545 {
34546 tmp= ac_tmp=
34547 trap 'exit_status=$?
34548 : "${ac_tmp:=$tmp}"
34549 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34550 ' 0
34551 trap 'as_fn_exit 1' 1 2 13 15
34552 }
34553 # Create a (secure) tmp directory for tmp files.
34554
34555 {
34556 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34557 test -d "$tmp"
34558 } ||
34559 {
34560 tmp=./conf$$-$RANDOM
34561 (umask 077 && mkdir "$tmp")
34562 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34563 ac_tmp=$tmp
34564
34565 # Set up the scripts for CONFIG_FILES section.
34566 # No need to generate them if there are no CONFIG_FILES.
34567 # This happens for instance with `./config.status config.h'.
34568 if test -n "$CONFIG_FILES"; then
34569
34570
34571 ac_cr=`echo X | tr X '\015'`
34572 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34573 # But we know of no other shell where ac_cr would be empty at this
34574 # point, so we can use a bashism as a fallback.
34575 if test "x$ac_cr" = x; then
34576 eval ac_cr=\$\'\\r\'
34577 fi
34578 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34579 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34580 ac_cs_awk_cr='\\r'
34581 else
34582 ac_cs_awk_cr=$ac_cr
34583 fi
34584
34585 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34586 _ACEOF
34587
34588
34589 {
34590 echo "cat >conf$$subs.awk <<_ACEOF" &&
34591 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34592 echo "_ACEOF"
34593 } >conf$$subs.sh ||
34594 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34595 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34596 ac_delim='%!_!# '
34597 for ac_last_try in false false false false false :; do
34598 . ./conf$$subs.sh ||
34599 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34600
34601 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34602 if test $ac_delim_n = $ac_delim_num; then
34603 break
34604 elif $ac_last_try; then
34605 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34606 else
34607 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34608 fi
34609 done
34610 rm -f conf$$subs.sh
34611
34612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34613 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34614 _ACEOF
34615 sed -n '
34616 h
34617 s/^/S["/; s/!.*/"]=/
34618 p
34619 g
34620 s/^[^!]*!//
34621 :repl
34622 t repl
34623 s/'"$ac_delim"'$//
34624 t delim
34625 :nl
34626 h
34627 s/\(.\{148\}\)..*/\1/
34628 t more1
34629 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34630 p
34631 n
34632 b repl
34633 :more1
34641 s/\(.\{148\}\)..*/\1/
34642 t more2
34643 s/["\\]/\\&/g; s/^/"/; s/$/"/
34644 p
34645 b
34646 :more2
34647 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34648 p
34649 g
34650 s/.\{148\}//
34651 t delim
34652 ' <conf$$subs.awk | sed '
34653 /^[^""]/{
34654 N
34655 s/\n//
34656 }
34657 ' >>$CONFIG_STATUS || ac_write_fail=1
34658 rm -f conf$$subs.awk
34659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34660 _ACAWK
34661 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
34662 for (key in S) S_is_set[key] = 1
34663 FS = ""
34664
34665 }
34666 {
34667 line = $ 0
34668 nfields = split(line, field, "@")
34669 substed = 0
34670 len = length(field[1])
34671 for (i = 2; i < nfields; i++) {
34672 key = field[i]
34673 keylen = length(key)
34674 if (S_is_set[key]) {
34675 value = S[key]
34676 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34677 len += length(value) + length(field[++i])
34678 substed = 1
34679 } else
34680 len += 1 + keylen
34681 }
34682
34683 print line
34684 }
34685
34686 _ACAWK
34687 _ACEOF
34688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34689 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34690 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34691 else
34692 cat
34693 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
34694 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34695 _ACEOF
34696
34697 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34698 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34699 # trailing colons and then remove the whole line if VPATH becomes empty
34700 # (actually we leave an empty line to preserve line numbers).
34701 if test "x$srcdir" = x.; then
34702 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34703 h
34704 s///
34705 s/^/:/
34706 s/[ ]*$/:/
34707 s/:\$(srcdir):/:/g
34708 s/:\${srcdir}:/:/g
34709 s/:@srcdir@:/:/g
34710 s/^:*//
34711 s/:*$//
34712 x
34713 s/\(=[ ]*\).*/\1/
34714 G
34715 s/\n//
34716 s/^[^=]*=[ ]*$//
34717 }'
34718 fi
34719
34720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34721 fi # test -n "$CONFIG_FILES"
34722
34723 # Set up the scripts for CONFIG_HEADERS section.
34724 # No need to generate them if there are no CONFIG_HEADERS.
34725 # This happens for instance with `./config.status Makefile'.
34726 if test -n "$CONFIG_HEADERS"; then
34727 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34728 BEGIN {
34729 _ACEOF
34730
34731 # Transform confdefs.h into an awk script `defines.awk', embedded as
34732 # here-document in config.status, that substitutes the proper values into
34733 # config.h.in to produce config.h.
34734
34735 # Create a delimiter string that does not exist in confdefs.h, to ease
34736 # handling of long lines.
34737 ac_delim='%!_!# '
34738 for ac_last_try in false false :; do
34739 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34740 if test -z "$ac_tt"; then
34741 break
34742 elif $ac_last_try; then
34743 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34744 else
34745 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34746 fi
34747 done
34748
34749 # For the awk script, D is an array of macro values keyed by name,
34750 # likewise P contains macro parameters if any. Preserve backslash
34751 # newline sequences.
34752
34753 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34754 sed -n '
34755 s/.\{148\}/&'"$ac_delim"'/g
34756 t rset
34757 :rset
34758 s/^[ ]*#[ ]*define[ ][ ]*/ /
34759 t def
34760 d
34840 :[FHL]*:*);;
34841 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34842 :[FH]-) ac_tag=-:-;;
34843 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34844 esac
34845 ac_save_IFS=$IFS
34846 IFS=:
34847 set x $ac_tag
34848 IFS=$ac_save_IFS
34849 shift
34850 ac_file=$1
34851 shift
34852
34853 case $ac_mode in
34854 :L) ac_source=$1;;
34855 :[FH])
34856 ac_file_inputs=
34857 for ac_f
34858 do
34859 case $ac_f in
34860 -) ac_f="$ac_tmp/stdin";;
34861 *) # Look for the file first in the build tree, then in the source tree
34862 # (if the path is not absolute). The absolute path cannot be DOS-style,
34863 # because $ac_f cannot contain `:'.
34864 test -f "$ac_f" ||
34865 case $ac_f in
34866 [\\/$]*) false;;
34867 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34868 esac ||
34869 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34870 esac
34871 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34872 as_fn_append ac_file_inputs " '$ac_f'"
34873 done
34874
34875 # Let's still pretend it is `configure' which instantiates (i.e., don't
34876 # use $as_me), people would be surprised to read:
34877 # /* config.h. Generated by config.status. */
34878 configure_input='Generated from '`
34879 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34880 `' by configure.'
34881 if test x"$ac_file" != x-; then
34882 configure_input="$ac_file. $configure_input"
34883 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34884 $as_echo "$as_me: creating $ac_file" >&6;}
34885 fi
34886 # Neutralize special characters interpreted by sed in replacement strings.
34887 case $configure_input in #(
34888 *\&* | *\|* | *\\* )
34889 ac_sed_conf_input=`$as_echo "$configure_input" |
34890 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34891 *) ac_sed_conf_input=$configure_input;;
34892 esac
34893
34894 case $ac_tag in
34895 *:-:* | *:-) cat >"$ac_tmp/stdin" \
34896 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34897 esac
34898 ;;
34899 esac
34900
34901 ac_dir=`$as_dirname -- "$ac_file" ||
34902 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34903 X"$ac_file" : 'X\(//\)[^/]' \| \
34904 X"$ac_file" : 'X\(//\)$' \| \
34905 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34906 $as_echo X"$ac_file" |
34907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34908 s//\1/
34909 q
34910 }
34911 /^X\(\/\/\)[^/].*/{
34912 s//\1/
34913 q
34914 }
34915 /^X\(\/\/\)$/{
35001 # FIXME: do we really want to maintain this feature?
35002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35003 ac_sed_extra="$ac_vpsub
35004 $extrasub
35005 _ACEOF
35006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35007 :t
35008 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35009 s|@configure_input@|$ac_sed_conf_input|;t t
35010 s&@top_builddir@&$ac_top_builddir_sub&;t t
35011 s&@top_build_prefix@&$ac_top_build_prefix&;t t
35012 s&@srcdir@&$ac_srcdir&;t t
35013 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35014 s&@top_srcdir@&$ac_top_srcdir&;t t
35015 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35016 s&@builddir@&$ac_builddir&;t t
35017 s&@abs_builddir@&$ac_abs_builddir&;t t
35018 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35019 $ac_datarootdir_hack
35020 "
35021 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
35022 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35023
35024 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35025 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35026 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35027 "$ac_tmp/out"`; test -z "$ac_out"; } &&
35028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35029 which seems to be undefined. Please make sure it is defined" >&5
35030 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35031 which seems to be undefined. Please make sure it is defined" >&2;}
35032
35033 rm -f "$ac_tmp/stdin"
35034 case $ac_file in
35035 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35036 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35037 esac \
35038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35039 ;;
35040 :H)
35041 #
35042 # CONFIG_HEADER
35043 #
35044 if test x"$ac_file" != x-; then
35045 {
35046 $as_echo "/* $configure_input */" \
35047 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35048 } >"$ac_tmp/config.h" \
35049 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35050 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35051 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35052 $as_echo "$as_me: $ac_file is unchanged" >&6;}
35053 else
35054 rm -f "$ac_file"
35055 mv "$ac_tmp/config.h" "$ac_file" \
35056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35057 fi
35058 else
35059 $as_echo "/* $configure_input */" \
35060 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35061 || as_fn_error $? "could not create -" "$LINENO" 5
35062 fi
35063 ;;
35064
35065
35066 esac
35067
35068 done # for ac_tag
35069
35070
35071 as_fn_exit 0
35072 _ACEOF
35073 ac_clean_files=$ac_clean_files_save
35074
35075 test $ac_write_fail = 0 ||
35076 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35077
35078
35079 # configure is writing to config.log, and then calls config.status.
35080 # config.status does its own redirection, appending to config.log.
35161 if test "x$CCACHE_HELP_MSG" != x && test "x$HIDE_PERFORMANCE_HINTS" = "xno"; then
35162 printf "Build performance tip: ccache gives a tremendous speedup for C++ recompilations.\n"
35163 printf "$CCACHE_HELP_MSG\n"
35164
35165 # Print a helpful message on how to acquire the necessary build dependency.
35166 # ccache is the help tag: freetyp2, cups, pulse, alsa etc
35167 MISSING_DEPENDENCY=ccache
35168 PKGHANDLER_COMMAND=
35169
35170 case $PKGHANDLER in
35171 apt-get)
35172 apt_help $MISSING_DEPENDENCY ;;
35173 yum)
35174 yum_help $MISSING_DEPENDENCY ;;
35175 port)
35176 port_help $MISSING_DEPENDENCY ;;
35177 pkgutil)
35178 pkgutil_help $MISSING_DEPENDENCY ;;
35179 pkgadd)
35180 pkgadd_help $MISSING_DEPENDENCY ;;
35181 esac
35182
35183 if test "x$PKGHANDLER_COMMAND" != x; then
35184 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
35185 fi
35186
35187 printf "$HELP_MSG\n"
35188 printf "\n"
35189 fi
35190
35191 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then
35192 printf "NOTE: You have requested to build more than one version of the JVM, which\n"
35193 printf "will result in longer build times.\n"
35194 printf "\n"
35195 fi
35196
35197 if test "x$FOUND_ALT_VARIABLES" != "x"; then
35198 printf "WARNING: You have old-style ALT_ environment variables set.\n"
35199 printf "These are not respected, and will be ignored. It is recommended\n"
35200 printf "that you clean your environment. The following variables are set:\n"
|