Tue, 10 Apr 2012 08:18:28 -0700
7074397: Build infrastructure changes (makefile re-write)
Summary: New makefiles transition, old and new living side by side for now.
Reviewed-by: ohair, jjg, dholmes, ohrstrom, erikj, ihse, tgranat, ykantser
Contributed-by: ohrstrom <fredrik.ohrstrom@oracle.com>, erikj <erik.joelsson@oracle.com>, ihse <magnus.ihse.bursie@oracle.com>, tgranat <torbjorn.granat@oracle.com>, ykantser <yekaterina.kantserova@oracle.com>
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for openjdk version-0.1.
4 #
5 # Report bugs to <build-infra-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 ## -------------------- ##
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*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
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
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"
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
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
114 exit 1
115 fi
117 # Unset variables that we do not need and which cause bugs (e.g. in
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='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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; }
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 :
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 :
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=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
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
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
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-infra-dev@openjdk.java.net about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script 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}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257 { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
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"
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
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354 else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359 fi # as_fn_arith
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
368 {
369 as_status=$1; test $as_status -eq 0 && as_status=1
370 if test "$4"; then
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373 fi
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
383 fi
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
389 fi
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
395 fi
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
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; }
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 }
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
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
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
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
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'"
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'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
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`
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='openjdk'
554 PACKAGE_TARNAME='openjdk'
555 PACKAGE_VERSION='version-0.1'
556 PACKAGE_STRING='openjdk version-0.1'
557 PACKAGE_BUGREPORT='build-infra-dev@openjdk.java.net'
558 PACKAGE_URL=''
560 # Factoring default headers for most tests.
561 ac_includes_default="\
562 #include <stdio.h>
563 #ifdef HAVE_SYS_TYPES_H
564 # include <sys/types.h>
565 #endif
566 #ifdef HAVE_SYS_STAT_H
567 # include <sys/stat.h>
568 #endif
569 #ifdef STDC_HEADERS
570 # include <stdlib.h>
571 # include <stddef.h>
572 #else
573 # ifdef HAVE_STDLIB_H
574 # include <stdlib.h>
575 # endif
576 #endif
577 #ifdef HAVE_STRING_H
578 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
579 # include <memory.h>
580 # endif
581 # include <string.h>
582 #endif
583 #ifdef HAVE_STRINGS_H
584 # include <strings.h>
585 #endif
586 #ifdef HAVE_INTTYPES_H
587 # include <inttypes.h>
588 #endif
589 #ifdef HAVE_STDINT_H
590 # include <stdint.h>
591 #endif
592 #ifdef HAVE_UNISTD_H
593 # include <unistd.h>
594 #endif"
596 ac_subst_vars='LTLIBOBJS
597 LIBOBJS
598 TEST_IN_BUILD
599 LIBCXX
600 LDFLAGS_JDKEXE_SUFFIX
601 LDFLAGS_JDKLIB_SUFFIX
602 LDFLAGS_JDKEXE
603 LDFLAGS_JDKLIB
604 CXXFLAGS_JDKEXE
605 CXXFLAGS_JDKLIB
606 CFLAGS_JDKEXE
607 CFLAGS_JDKLIB
608 PACKAGE_PATH
609 IMAGES_MAKE_ARGS
610 IMAGES_OUTPUTDIR
611 JDK_MAKE_ARGS
612 JDK_OUTPUTDIR
613 HOTSPOT_MAKE_ARGS
614 HOTSPOT_DIST
615 HOTSPOT_OUTPUTDIR
616 JAXWS_MAKE_ARGS
617 JAXWS_DIST
618 JAXWS_OUTPUTDIR
619 JAXP_MAKE_ARGS
620 JAXP_DIST
621 JAXP_OUTPUTDIR
622 CORBA_MAKE_ARGS
623 CORBA_DIST
624 CORBA_OUTPUTDIR
625 LANGTOOLS_MAKE_ARGS
626 LANGTOOLS_DIST
627 LANGTOOLS_OUTPUTDIR
628 CXX_O_FLAG_NONE
629 CXX_O_FLAG_NORM
630 CXX_O_FLAG_HI
631 C_O_FLAG_NONE
632 C_O_FLAG_NORM
633 C_O_FLAG_HI
634 DISABLE_NIMBUS
635 GENERATE_DOCS
636 ENABLE_DOCS
637 LIBM
638 USE_EXTERNAL_LIBZ
639 USE_EXTERNAL_LIBGIF
640 USE_EXTERNAL_LIBJPEG
641 PULSE_LIBS
642 PULSE_CFLAGS
643 LIBPULSE_LIBS
644 LIBPULSE_CFLAGS
645 ALSA_LIBS
646 ALSA_CFLAGS
647 FREETYPE2_LIB_PATH
648 USING_SYSTEM_FT_LIB
649 FREETYPE2_LIBS
650 FREETYPE2_CFLAGS
651 CUPS_LIBS
652 CUPS_CFLAGS
653 OPENWIN_HOME
654 X_EXTRA_LIBS
655 X_LIBS
656 X_PRE_LIBS
657 X_CFLAGS
658 XMKMF
659 JAVAC_USE_MODE
660 JAVAC_USE_DEPS
661 JAVAC_SERVER_CORES
662 JAVAC_SERVERS
663 JAVAC_USE_REMOTE
664 SERVER_JAVA
665 BOOT_JDK_JVMARGS
666 OVERRIDE_SRC_ROOT
667 ADD_SRC_ROOT
668 RMIC
669 JAR
670 JAVAH
671 JAVAC_FLAGS
672 JAVAC
673 BOOT_JDK_SOURCETARGET
674 JAVA
675 BOOT_TOOLSJAR
676 BOOT_RTJAR
677 BOOT_JDK
678 JAVA_CHECK
679 JAVAC_CHECK
680 ENDIAN
681 SET_SHARED_LIBRARY_ORIGIN
682 SET_SHARED_LIBRARY_MAPFILE
683 SET_SHARED_LIBRARY_NAME
684 SHARED_LIBRARY_FLAGS
685 EXE_SUFFIX
686 STATIC_LIBRARY_SUFFIX
687 SHARED_LIBRARY_SUFFIX
688 LIBRARY_PREFIX
689 STATIC_LIBRARY
690 SHARED_LIBRARY
691 OBJ_SUFFIX
692 USE_PRECOMPILED_HEADER
693 ARCH_DATA_MODEL
694 LP64
695 BUILD_LOG_WRAPPER
696 BUILD_LOG
697 CCACHE
698 UNCYGDRIVE
699 MCS
700 STRIP
701 NM
702 ASFLAGS
703 AS
704 CXXCPP
705 CPP
706 COMPILER_TYPE
707 RC_FLAGS
708 DUMPBIN
709 WINAR
710 RC
711 MT
712 WINLD
713 ARFLAGS
714 AR
715 LDEXECXX
716 LDCXX
717 LDEXE
718 LD
719 ac_ct_OBJC
720 OBJCFLAGS
721 OBJC
722 ac_ct_CXX
723 CXXFLAGS
724 CXX
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
731 CC
732 HOSTCXX
733 HOSTCC
734 HOST_CXX
735 HOST_CC
736 DEFINE_CROSS_COMPILE_ARCH
737 AR_OUT_OPTION
738 LD_OUT_OPTION
739 EXE_OUT_OPTION
740 CC_OUT_OPTION
741 SYS_ROOT
742 BDEPS_FTP
743 BDEPS_UNZIP
744 PKG_CONFIG
745 JDK_TOPDIR
746 HOTSPOT_TOPDIR
747 JAXWS_TOPDIR
748 JAXP_TOPDIR
749 CORBA_TOPDIR
750 LANGTOOLS_TOPDIR
751 OUTPUT_ROOT
752 SPEC
753 MSVCR100DLL
754 CHECK_FOR_VCINSTALLDIR
755 SETUPDEVENV
756 COOKED_BUILD_NUMBER
757 FULL_VERSION
758 RELEASE
759 JDK_VERSION
760 RUNTIME_NAME
761 COPYRIGHT_YEAR
762 COMPANY_NAME
763 JDK_RC_PLATFORM_NAME
764 PRODUCT_SUFFIX
765 PRODUCT_NAME
766 LAUNCHER_NAME
767 MILESTONE
768 JDK_BUILD_NUMBER
769 JDK_UPDATE_VERSION
770 JDK_MICRO_VERSION
771 JDK_MINOR_VERSION
772 JDK_MAJOR_VERSION
773 BUILD_VARIANT_RELEASE
774 DEBUG_CLASSFILES
775 FASTDEBUG
776 VARIANT
777 DEBUG_LEVEL
778 JVM_VARIANT_ZEROSHARK
779 JVM_VARIANT_ZERO
780 JVM_VARIANT_KERNEL
781 JVM_VARIANT_CLIENT
782 JVM_VARIANT_SERVER
783 JVM_VARIANTS
784 BUILD_HEADLESS_ONLY
785 BUILD_HEADLESS
786 SUPPORT_HEADFUL
787 SUPPORT_HEADLESS
788 JDK_VARIANT
789 MINIMIZE_RAM_USAGE
790 JAVASE_EMBEDDED
791 JIGSAW
792 SET_OPENJDK
793 PATH_SEP
794 CYGPATH
795 SRC_ROOT
796 MEMORY_SIZE
797 CONCURRENT_BUILD_JOBS
798 NUM_CORES
799 DATE_WHEN_CONFIGURED
800 LEGACY_BUILD_CPU3
801 LEGACY_BUILD_CPU2
802 LEGACY_BUILD_CPU1
803 BUILD_CPU_ENDIAN
804 BUILD_CPU_BITS
805 BUILD_CPU_ARCH
806 BUILD_CPU
807 LEGACY_BUILD_OS_API
808 BUILD_OS_API
809 BUILD_OS_FAMILY
810 BUILD_OS
811 LEGACY_HOST_CPU3
812 LEGACY_HOST_CPU2
813 LEGACY_HOST_CPU1
814 HOST_CPU_ENDIAN
815 HOST_CPU_BITS
816 HOST_CPU_ARCH
817 HOST_CPU
818 LEGACY_HOST_OS_API
819 HOST_OS_API
820 HOST_OS_FAMILY
821 HOST_OS
822 BUILD
823 HOST
824 host_os
825 host_vendor
826 host_cpu
827 host
828 build_os
829 build_vendor
830 build_cpu
831 build
832 FILE
833 EXPR
834 READELF
835 OTOOL
836 LDD
837 UNZIP
838 ZIP
839 XARGS
840 WC
841 TOUCH
842 TR
843 TEE
844 TAIL
845 TAR
846 SORT
847 SH
848 SED
849 RM
850 THEPWDCMD
851 PRINTF
852 NAWK
853 MV
854 MKDIR
855 MAKE
856 LS
857 LN
858 HEAD
859 FIND_DELETE
860 FIND
861 FGREP
862 EGREP
863 GREP
864 ECHO
865 DIFF
866 DF
867 DATE
868 CUT
869 CPIO
870 CP
871 CHMOD
872 CAT
873 AWK
874 READLINK
875 CONFIGURE_COMMAND_LINE
876 PKGHANDLER
877 target_alias
878 host_alias
879 build_alias
880 LIBS
881 ECHO_T
882 ECHO_N
883 ECHO_C
884 DEFS
885 mandir
886 localedir
887 libdir
888 psdir
889 pdfdir
890 dvidir
891 htmldir
892 infodir
893 docdir
894 oldincludedir
895 includedir
896 localstatedir
897 sharedstatedir
898 sysconfdir
899 datadir
900 datarootdir
901 libexecdir
902 sbindir
903 bindir
904 program_transform_name
905 prefix
906 exec_prefix
907 PACKAGE_URL
908 PACKAGE_BUGREPORT
909 PACKAGE_STRING
910 PACKAGE_VERSION
911 PACKAGE_TARNAME
912 PACKAGE_NAME
913 PATH_SEPARATOR
914 SHELL'
915 ac_subst_files=''
916 ac_user_opts='
917 enable_option_checking
918 with_data_model
919 with_num_cores
920 with_memory_size
921 enable_openjdk
922 enable_jigsaw
923 with_jdk_variant
924 enable_headful
925 with_jvm_variants
926 enable_debug
927 with_debug_level
928 with_msvcr100dll
929 with_builddeps_conf
930 with_builddeps_server
931 with_builddeps_dir
932 with_builddeps_group
933 enable_list_builddeps
934 with_sys_root
935 enable_ccache
936 with_ccache_dir
937 enable_precompiled_headers
938 with_boot_jdk
939 with_add_source_root
940 with_override_source_root
941 with_adds_and_overrides
942 with_override_langtools
943 with_override_corba
944 with_override_jaxp
945 with_override_jaxws
946 with_override_hotspot
947 with_override_jdk
948 with_boot_jdk_jvmargs
949 with_server_java
950 enable_javac_server
951 with_javac_server_cores
952 enable_javac_deps
953 enable_javac_multi_core
954 enable_macosx_runtime_support
955 with_x
956 with_cups
957 with_cups_include
958 with_cups_lib
959 with_freetype
960 with_alsa
961 with_alsa_include
962 with_alsa_lib
963 with_pulse
964 with_pulse_include
965 with_pulse_lib
966 enable_docs
967 enable_nimbus
968 enable_static_link_stdc__
969 enable_hotspot_test_in_build
970 '
971 ac_precious_vars='build_alias
972 host_alias
973 target_alias
974 PKG_CONFIG
975 CC
976 CFLAGS
977 LDFLAGS
978 LIBS
979 CPPFLAGS
980 CXX
981 CXXFLAGS
982 CCC
983 OBJC
984 OBJCFLAGS
985 CPP
986 CXXCPP
987 XMKMF
988 FREETYPE2_CFLAGS
989 FREETYPE2_LIBS
990 ALSA_CFLAGS
991 ALSA_LIBS
992 LIBPULSE_CFLAGS
993 LIBPULSE_LIBS'
996 # Initialize some variables set by options.
997 ac_init_help=
998 ac_init_version=false
999 ac_unrecognized_opts=
1000 ac_unrecognized_sep=
1001 # The variables have the same names as the options, with
1002 # dashes changed to underlines.
1003 cache_file=/dev/null
1004 exec_prefix=NONE
1005 no_create=
1006 no_recursion=
1007 prefix=NONE
1008 program_prefix=NONE
1009 program_suffix=NONE
1010 program_transform_name=s,x,x,
1011 silent=
1012 site=
1013 srcdir=
1014 verbose=
1015 x_includes=NONE
1016 x_libraries=NONE
1018 # Installation directory options.
1019 # These are left unexpanded so users can "make install exec_prefix=/foo"
1020 # and all the variables that are supposed to be based on exec_prefix
1021 # by default will actually change.
1022 # Use braces instead of parens because sh, perl, etc. also accept them.
1023 # (The list follows the same order as the GNU Coding Standards.)
1024 bindir='${exec_prefix}/bin'
1025 sbindir='${exec_prefix}/sbin'
1026 libexecdir='${exec_prefix}/libexec'
1027 datarootdir='${prefix}/share'
1028 datadir='${datarootdir}'
1029 sysconfdir='${prefix}/etc'
1030 sharedstatedir='${prefix}/com'
1031 localstatedir='${prefix}/var'
1032 includedir='${prefix}/include'
1033 oldincludedir='/usr/include'
1034 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1035 infodir='${datarootdir}/info'
1036 htmldir='${docdir}'
1037 dvidir='${docdir}'
1038 pdfdir='${docdir}'
1039 psdir='${docdir}'
1040 libdir='${exec_prefix}/lib'
1041 localedir='${datarootdir}/locale'
1042 mandir='${datarootdir}/man'
1044 ac_prev=
1045 ac_dashdash=
1046 for ac_option
1047 do
1048 # If the previous option needs an argument, assign it.
1049 if test -n "$ac_prev"; then
1050 eval $ac_prev=\$ac_option
1051 ac_prev=
1052 continue
1053 fi
1055 case $ac_option in
1056 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1057 *=) ac_optarg= ;;
1058 *) ac_optarg=yes ;;
1059 esac
1061 # Accept the important Cygnus configure options, so we can diagnose typos.
1063 case $ac_dashdash$ac_option in
1064 --)
1065 ac_dashdash=yes ;;
1067 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1068 ac_prev=bindir ;;
1069 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1070 bindir=$ac_optarg ;;
1072 -build | --build | --buil | --bui | --bu)
1073 ac_prev=build_alias ;;
1074 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1075 build_alias=$ac_optarg ;;
1077 -cache-file | --cache-file | --cache-fil | --cache-fi \
1078 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1079 ac_prev=cache_file ;;
1080 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1081 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1082 cache_file=$ac_optarg ;;
1084 --config-cache | -C)
1085 cache_file=config.cache ;;
1087 -datadir | --datadir | --datadi | --datad)
1088 ac_prev=datadir ;;
1089 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1090 datadir=$ac_optarg ;;
1092 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1093 | --dataroo | --dataro | --datar)
1094 ac_prev=datarootdir ;;
1095 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1096 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1097 datarootdir=$ac_optarg ;;
1099 -disable-* | --disable-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid feature name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "enable_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval enable_$ac_useropt=no ;;
1115 -docdir | --docdir | --docdi | --doc | --do)
1116 ac_prev=docdir ;;
1117 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1118 docdir=$ac_optarg ;;
1120 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1121 ac_prev=dvidir ;;
1122 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1123 dvidir=$ac_optarg ;;
1125 -enable-* | --enable-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid feature name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134 "enable_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval enable_$ac_useropt=\$ac_optarg ;;
1141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1143 | --exec | --exe | --ex)
1144 ac_prev=exec_prefix ;;
1145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1147 | --exec=* | --exe=* | --ex=*)
1148 exec_prefix=$ac_optarg ;;
1150 -gas | --gas | --ga | --g)
1151 # Obsolete; use --with-gas.
1152 with_gas=yes ;;
1154 -help | --help | --hel | --he | -h)
1155 ac_init_help=long ;;
1156 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1157 ac_init_help=recursive ;;
1158 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1159 ac_init_help=short ;;
1161 -host | --host | --hos | --ho)
1162 ac_prev=host_alias ;;
1163 -host=* | --host=* | --hos=* | --ho=*)
1164 host_alias=$ac_optarg ;;
1166 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1167 ac_prev=htmldir ;;
1168 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1169 | --ht=*)
1170 htmldir=$ac_optarg ;;
1172 -includedir | --includedir | --includedi | --included | --include \
1173 | --includ | --inclu | --incl | --inc)
1174 ac_prev=includedir ;;
1175 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1176 | --includ=* | --inclu=* | --incl=* | --inc=*)
1177 includedir=$ac_optarg ;;
1179 -infodir | --infodir | --infodi | --infod | --info | --inf)
1180 ac_prev=infodir ;;
1181 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1182 infodir=$ac_optarg ;;
1184 -libdir | --libdir | --libdi | --libd)
1185 ac_prev=libdir ;;
1186 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1187 libdir=$ac_optarg ;;
1189 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1190 | --libexe | --libex | --libe)
1191 ac_prev=libexecdir ;;
1192 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1193 | --libexe=* | --libex=* | --libe=*)
1194 libexecdir=$ac_optarg ;;
1196 -localedir | --localedir | --localedi | --localed | --locale)
1197 ac_prev=localedir ;;
1198 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1199 localedir=$ac_optarg ;;
1201 -localstatedir | --localstatedir | --localstatedi | --localstated \
1202 | --localstate | --localstat | --localsta | --localst | --locals)
1203 ac_prev=localstatedir ;;
1204 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1205 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1206 localstatedir=$ac_optarg ;;
1208 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1209 ac_prev=mandir ;;
1210 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1211 mandir=$ac_optarg ;;
1213 -nfp | --nfp | --nf)
1214 # Obsolete; use --without-fp.
1215 with_fp=no ;;
1217 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1218 | --no-cr | --no-c | -n)
1219 no_create=yes ;;
1221 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1222 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1223 no_recursion=yes ;;
1225 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1226 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1227 | --oldin | --oldi | --old | --ol | --o)
1228 ac_prev=oldincludedir ;;
1229 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1230 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1231 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1232 oldincludedir=$ac_optarg ;;
1234 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1235 ac_prev=prefix ;;
1236 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1237 prefix=$ac_optarg ;;
1239 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1240 | --program-pre | --program-pr | --program-p)
1241 ac_prev=program_prefix ;;
1242 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1243 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1244 program_prefix=$ac_optarg ;;
1246 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1247 | --program-suf | --program-su | --program-s)
1248 ac_prev=program_suffix ;;
1249 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1250 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1251 program_suffix=$ac_optarg ;;
1253 -program-transform-name | --program-transform-name \
1254 | --program-transform-nam | --program-transform-na \
1255 | --program-transform-n | --program-transform- \
1256 | --program-transform | --program-transfor \
1257 | --program-transfo | --program-transf \
1258 | --program-trans | --program-tran \
1259 | --progr-tra | --program-tr | --program-t)
1260 ac_prev=program_transform_name ;;
1261 -program-transform-name=* | --program-transform-name=* \
1262 | --program-transform-nam=* | --program-transform-na=* \
1263 | --program-transform-n=* | --program-transform-=* \
1264 | --program-transform=* | --program-transfor=* \
1265 | --program-transfo=* | --program-transf=* \
1266 | --program-trans=* | --program-tran=* \
1267 | --progr-tra=* | --program-tr=* | --program-t=*)
1268 program_transform_name=$ac_optarg ;;
1270 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1271 ac_prev=pdfdir ;;
1272 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1273 pdfdir=$ac_optarg ;;
1275 -psdir | --psdir | --psdi | --psd | --ps)
1276 ac_prev=psdir ;;
1277 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1278 psdir=$ac_optarg ;;
1280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1281 | -silent | --silent | --silen | --sile | --sil)
1282 silent=yes ;;
1284 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1285 ac_prev=sbindir ;;
1286 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1287 | --sbi=* | --sb=*)
1288 sbindir=$ac_optarg ;;
1290 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1291 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1292 | --sharedst | --shareds | --shared | --share | --shar \
1293 | --sha | --sh)
1294 ac_prev=sharedstatedir ;;
1295 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1296 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1297 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1298 | --sha=* | --sh=*)
1299 sharedstatedir=$ac_optarg ;;
1301 -site | --site | --sit)
1302 ac_prev=site ;;
1303 -site=* | --site=* | --sit=*)
1304 site=$ac_optarg ;;
1306 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1307 ac_prev=srcdir ;;
1308 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1309 srcdir=$ac_optarg ;;
1311 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1312 | --syscon | --sysco | --sysc | --sys | --sy)
1313 ac_prev=sysconfdir ;;
1314 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1315 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1316 sysconfdir=$ac_optarg ;;
1318 -target | --target | --targe | --targ | --tar | --ta | --t)
1319 ac_prev=target_alias ;;
1320 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1321 target_alias=$ac_optarg ;;
1323 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1324 verbose=yes ;;
1326 -version | --version | --versio | --versi | --vers | -V)
1327 ac_init_version=: ;;
1329 -with-* | --with-*)
1330 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333 as_fn_error $? "invalid package name: $ac_useropt"
1334 ac_useropt_orig=$ac_useropt
1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1337 *"
1338 "with_$ac_useropt"
1339 "*) ;;
1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1341 ac_unrecognized_sep=', ';;
1342 esac
1343 eval with_$ac_useropt=\$ac_optarg ;;
1345 -without-* | --without-*)
1346 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1347 # Reject names that are not valid shell variable names.
1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1349 as_fn_error $? "invalid package name: $ac_useropt"
1350 ac_useropt_orig=$ac_useropt
1351 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1353 *"
1354 "with_$ac_useropt"
1355 "*) ;;
1356 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1357 ac_unrecognized_sep=', ';;
1358 esac
1359 eval with_$ac_useropt=no ;;
1361 --x)
1362 # Obsolete; use --with-x.
1363 with_x=yes ;;
1365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1366 | --x-incl | --x-inc | --x-in | --x-i)
1367 ac_prev=x_includes ;;
1368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1370 x_includes=$ac_optarg ;;
1372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1374 ac_prev=x_libraries ;;
1375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1377 x_libraries=$ac_optarg ;;
1379 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1380 Try \`$0 --help' for more information"
1381 ;;
1383 *=*)
1384 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1385 # Reject names that are not valid shell variable names.
1386 case $ac_envvar in #(
1387 '' | [0-9]* | *[!_$as_cr_alnum]* )
1388 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1389 esac
1390 eval $ac_envvar=\$ac_optarg
1391 export $ac_envvar ;;
1393 *)
1394 # FIXME: should be removed in autoconf 3.0.
1395 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1396 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1397 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1398 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1399 ;;
1401 esac
1402 done
1404 if test -n "$ac_prev"; then
1405 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1406 as_fn_error $? "missing argument to $ac_option"
1407 fi
1409 if test -n "$ac_unrecognized_opts"; then
1410 case $enable_option_checking in
1411 no) ;;
1412 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1413 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1414 esac
1415 fi
1417 # Check all directory arguments for consistency.
1418 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1419 datadir sysconfdir sharedstatedir localstatedir includedir \
1420 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1421 libdir localedir mandir
1422 do
1423 eval ac_val=\$$ac_var
1424 # Remove trailing slashes.
1425 case $ac_val in
1426 */ )
1427 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1428 eval $ac_var=\$ac_val;;
1429 esac
1430 # Be sure to have absolute directory names.
1431 case $ac_val in
1432 [\\/$]* | ?:[\\/]* ) continue;;
1433 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1434 esac
1435 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1436 done
1438 # There might be people who depend on the old broken behavior: `$host'
1439 # used to hold the argument of --host etc.
1440 # FIXME: To remove some day.
1441 build=$build_alias
1442 host=$host_alias
1443 target=$target_alias
1445 # FIXME: To remove some day.
1446 if test "x$host_alias" != x; then
1447 if test "x$build_alias" = x; then
1448 cross_compiling=maybe
1449 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1450 If a cross compiler is detected then cross compile mode will be used" >&2
1451 elif test "x$build_alias" != "x$host_alias"; then
1452 cross_compiling=yes
1453 fi
1454 fi
1456 ac_tool_prefix=
1457 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1459 test "$silent" = yes && exec 6>/dev/null
1462 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1463 ac_ls_di=`ls -di .` &&
1464 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1465 as_fn_error $? "working directory cannot be determined"
1466 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1467 as_fn_error $? "pwd does not report name of working directory"
1470 # Find the source files, if location was not specified.
1471 if test -z "$srcdir"; then
1472 ac_srcdir_defaulted=yes
1473 # Try the directory containing this script, then the parent directory.
1474 ac_confdir=`$as_dirname -- "$as_myself" ||
1475 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1476 X"$as_myself" : 'X\(//\)[^/]' \| \
1477 X"$as_myself" : 'X\(//\)$' \| \
1478 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1479 $as_echo X"$as_myself" |
1480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1481 s//\1/
1482 q
1483 }
1484 /^X\(\/\/\)[^/].*/{
1485 s//\1/
1486 q
1487 }
1488 /^X\(\/\/\)$/{
1489 s//\1/
1490 q
1491 }
1492 /^X\(\/\).*/{
1493 s//\1/
1494 q
1495 }
1496 s/.*/./; q'`
1497 srcdir=$ac_confdir
1498 if test ! -r "$srcdir/$ac_unique_file"; then
1499 srcdir=..
1500 fi
1501 else
1502 ac_srcdir_defaulted=no
1503 fi
1504 if test ! -r "$srcdir/$ac_unique_file"; then
1505 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1506 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1507 fi
1508 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1509 ac_abs_confdir=`(
1510 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1511 pwd)`
1512 # When building in place, set srcdir=.
1513 if test "$ac_abs_confdir" = "$ac_pwd"; then
1514 srcdir=.
1515 fi
1516 # Remove unnecessary trailing slashes from srcdir.
1517 # Double slashes in file names in object file debugging info
1518 # mess up M-x gdb in Emacs.
1519 case $srcdir in
1520 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1521 esac
1522 for ac_var in $ac_precious_vars; do
1523 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1524 eval ac_env_${ac_var}_value=\$${ac_var}
1525 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1526 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1527 done
1529 #
1530 # Report the --help message.
1531 #
1532 if test "$ac_init_help" = "long"; then
1533 # Omit some internal or obsolete options to make the list less imposing.
1534 # This message is too long to be a string in the A/UX 3.1 sh.
1535 cat <<_ACEOF
1536 \`configure' configures openjdk version-0.1 to adapt to many kinds of systems.
1538 Usage: $0 [OPTION]... [VAR=VALUE]...
1540 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1541 VAR=VALUE. See below for descriptions of some of the useful variables.
1543 Defaults for the options are specified in brackets.
1545 Configuration:
1546 -h, --help display this help and exit
1547 --help=short display options specific to this package
1548 --help=recursive display the short help of all the included packages
1549 -V, --version display version information and exit
1550 -q, --quiet, --silent do not print \`checking ...' messages
1551 --cache-file=FILE cache test results in FILE [disabled]
1552 -C, --config-cache alias for \`--cache-file=config.cache'
1553 -n, --no-create do not create output files
1554 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1556 Installation directories:
1557 --prefix=PREFIX install architecture-independent files in PREFIX
1558 [$ac_default_prefix]
1559 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1560 [PREFIX]
1562 By default, \`make install' will install all the files in
1563 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1564 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1565 for instance \`--prefix=\$HOME'.
1567 For better control, use the options below.
1569 Fine tuning of the installation directories:
1570 --bindir=DIR user executables [EPREFIX/bin]
1571 --sbindir=DIR system admin executables [EPREFIX/sbin]
1572 --libexecdir=DIR program executables [EPREFIX/libexec]
1573 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1574 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1575 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1576 --libdir=DIR object code libraries [EPREFIX/lib]
1577 --includedir=DIR C header files [PREFIX/include]
1578 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1579 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1580 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1581 --infodir=DIR info documentation [DATAROOTDIR/info]
1582 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1583 --mandir=DIR man documentation [DATAROOTDIR/man]
1584 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk]
1585 --htmldir=DIR html documentation [DOCDIR]
1586 --dvidir=DIR dvi documentation [DOCDIR]
1587 --pdfdir=DIR pdf documentation [DOCDIR]
1588 --psdir=DIR ps documentation [DOCDIR]
1589 _ACEOF
1591 cat <<\_ACEOF
1593 X features:
1594 --x-includes=DIR X include files are in DIR
1595 --x-libraries=DIR X library files are in DIR
1597 System types:
1598 --build=BUILD configure for building on BUILD [guessed]
1599 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1600 _ACEOF
1601 fi
1603 if test -n "$ac_init_help"; then
1604 case $ac_init_help in
1605 short | recursive ) echo "Configuration of openjdk version-0.1:";;
1606 esac
1607 cat <<\_ACEOF
1609 Optional Features:
1610 --disable-option-checking ignore unrecognized --enable/--with options
1611 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1612 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1613 --enable-openjdk build OpenJDK regardless of the presence of closed
1614 repositories [disabled]
1615 --enable-jigsaw build Jigsaw images (not yet available) [disabled]
1616 --disable-headful build headful support (graphical UI support)
1617 [enabled]
1618 --enable-debug set the debug level to fastdebug (shorthand for
1619 --with-debug-level=fastdebug) [disabled]
1620 --enable-list-builddeps list all build dependencies known to the configure
1621 script
1622 --disable-ccache use ccache to speed up recompilations [enabled]
1623 --disable-precompiled-headers
1624 use precompiled headers when compiling C++ [enabled]
1625 --enable-javac-server enable the shared javac server during the build
1626 process [disabled]
1627 --enable-javac-deps enable the dependency tracking between Java packages
1628 [disabled]
1629 --enable-javac-multi-core
1630 compile Java packages concurrently [disabled]
1631 --disable-macosx-runtime-support
1632 disable the use of MacOSX Java runtime support
1633 framework [enabled]
1634 --enable-docs enable generation of Javadoc documentation
1635 [disabled]
1636 --disable-nimbus disable Nimbus L&F [enabled]
1637 --disable-static-link-stdc++
1638 disable static linking of the C++ runtime on Linux
1639 [enabled]
1640 --enable-hotspot-test-in-build
1641 enable running of Queens test after Hotspot build
1642 (not yet available) [disabled]
1644 Optional Packages:
1645 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1646 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1647 --with-data-model build 32-bit or 64-bit binaries (for platforms that
1648 support it), e.g. --with-data-model=32 [guessed]
1649 --with-num-cores number of cores in the build system, e.g.
1650 --with-num-cores=8 [probed]
1651 --with-memory-size memory (in MB) available in the build system, e.g.
1652 --with-memory-size=1024 [probed]
1653 --with-jdk-variant JDK variant to build (normal, embedded) [normal]
1654 --with-jvm-variants JVM variants (separated by commas) to build (server,
1655 client, kernel, zero, zeroshark) [server]
1656 --with-debug-level set the debug level (release, fastdebug, slowdebug)
1657 [release]
1658 --with-msvcr100dll copy this msvcr100.dll into the built JDK
1659 --with-builddeps-conf use this configuration file for the builddeps
1660 --with-builddeps-server download and use build dependencies from this server
1661 url, e.g.
1662 --with-builddeps-server=ftp://example.com/dir
1663 --with-builddeps-dir store downloaded build dependencies here
1664 [d/localhome/builddeps]
1665 --with-builddeps-group chgrp the downloaded build dependencies to this
1666 group
1667 --with-sys-root pass this sys-root to the compilers and linker
1668 (useful if the sys-root encoded in the cross
1669 compiler tools is incorrect)
1670 --with-ccache-dir where to store ccache files [~/.ccache]
1671 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed]
1672 --with-add-source-root for each and every source directory, look in this
1673 additional source root for the same directory; if it
1674 exists and have files in it, include it in the build
1675 --with-override-source-root
1676 for each and every source directory, look in this
1677 override source root for the same directory; if it
1678 exists, use that directory instead and ignore the
1679 directory in the original source root
1680 --with-adds-and-overrides
1681 use the subdirs 'adds' and 'overrides' in the
1682 specified directory as add-source-root and
1683 override-source-root
1684 --with-override-langtools
1685 use this langtools dir for the build
1686 --with-override-corba use this corba dir for the build
1687 --with-override-jaxp use this jaxp dir for the build
1688 --with-override-jaxws use this jaxws dir for the build
1689 --with-override-hotspot use this hotspot dir for the build
1690 --with-override-jdk use this jdk dir for the build
1691 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1692 invocations of the Boot JDK, overriding the default
1693 values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1694 -enableassertions"
1695 --with-server-java use this java binary for running the javac
1696 background server and other long running java tasks
1697 in the build process, e.g.
1698 ---with-server-java="/opt/jrockit/bin/java -server"
1699 --with-javac-server-cores
1700 use at most this number of concurrent threads on the
1701 javac server [probed]
1702 --with-x use the X Window System
1703 --with-cups specify prefix directory for the cups package
1704 (expecting the libraries under PATH/lib and the
1705 headers under PATH/include)
1706 --with-cups-include specify directory for the cups include files
1707 --with-cups-lib specify directory for the cups library
1708 --with-freetype specify prefix directory for the freetype2 package
1709 (expecting the libraries under PATH/lib and the
1710 headers under PATH/include)
1711 --with-alsa specify prefix directory for the alsa package
1712 (expecting the libraries under PATH/lib and the
1713 headers under PATH/include)
1714 --with-alsa-include specify directory for the alsa include files
1715 --with-alsa-lib specify directory for the alsa library
1716 --with-pulse specify prefix directory for the pulseaudio package
1717 (expecting the libraries under PATH/lib and the
1718 headers under PATH/include)
1719 --with-pulse-include specify directory for the pulseaudio include files
1720 --with-pulse-lib specify directory for the pulseaudio library
1722 Some influential environment variables:
1723 PKG_CONFIG path to pkg-config utility
1724 CC C compiler command
1725 CFLAGS C compiler flags
1726 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1727 nonstandard directory <lib dir>
1728 LIBS libraries to pass to the linker, e.g. -l<library>
1729 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1730 you have headers in a nonstandard directory <include dir>
1731 CXX C++ compiler command
1732 CXXFLAGS C++ compiler flags
1733 OBJC Objective C compiler command
1734 OBJCFLAGS Objective C compiler flags
1735 CPP C preprocessor
1736 CXXCPP C++ preprocessor
1737 XMKMF Path to xmkmf, Makefile generator for X Window System
1738 FREETYPE2_CFLAGS
1739 C compiler flags for FREETYPE2, overriding pkg-config
1740 FREETYPE2_LIBS
1741 linker flags for FREETYPE2, overriding pkg-config
1742 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1743 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1744 LIBPULSE_CFLAGS
1745 C compiler flags for LIBPULSE, overriding pkg-config
1746 LIBPULSE_LIBS
1747 linker flags for LIBPULSE, overriding pkg-config
1749 Use these variables to override the choices made by `configure' or to help
1750 it to find libraries and programs with nonstandard names/locations.
1752 Report bugs to <build-infra-dev@openjdk.java.net>.
1753 _ACEOF
1754 ac_status=$?
1755 fi
1757 if test "$ac_init_help" = "recursive"; then
1758 # If there are subdirs, report their specific --help.
1759 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1760 test -d "$ac_dir" ||
1761 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1762 continue
1763 ac_builddir=.
1765 case "$ac_dir" in
1766 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1767 *)
1768 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1769 # A ".." for each directory in $ac_dir_suffix.
1770 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1771 case $ac_top_builddir_sub in
1772 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1773 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1774 esac ;;
1775 esac
1776 ac_abs_top_builddir=$ac_pwd
1777 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1778 # for backward compatibility:
1779 ac_top_builddir=$ac_top_build_prefix
1781 case $srcdir in
1782 .) # We are building in place.
1783 ac_srcdir=.
1784 ac_top_srcdir=$ac_top_builddir_sub
1785 ac_abs_top_srcdir=$ac_pwd ;;
1786 [\\/]* | ?:[\\/]* ) # Absolute name.
1787 ac_srcdir=$srcdir$ac_dir_suffix;
1788 ac_top_srcdir=$srcdir
1789 ac_abs_top_srcdir=$srcdir ;;
1790 *) # Relative name.
1791 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1792 ac_top_srcdir=$ac_top_build_prefix$srcdir
1793 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1794 esac
1795 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1797 cd "$ac_dir" || { ac_status=$?; continue; }
1798 # Check for guested configure.
1799 if test -f "$ac_srcdir/configure.gnu"; then
1800 echo &&
1801 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1802 elif test -f "$ac_srcdir/configure"; then
1803 echo &&
1804 $SHELL "$ac_srcdir/configure" --help=recursive
1805 else
1806 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1807 fi || ac_status=$?
1808 cd "$ac_pwd" || { ac_status=$?; break; }
1809 done
1810 fi
1812 test -n "$ac_init_help" && exit $ac_status
1813 if $ac_init_version; then
1814 cat <<\_ACEOF
1815 openjdk configure version-0.1
1816 generated by GNU Autoconf 2.67
1818 Copyright (C) 2010 Free Software Foundation, Inc.
1819 This configure script is free software; the Free Software Foundation
1820 gives unlimited permission to copy, distribute and modify it.
1821 _ACEOF
1822 exit
1823 fi
1825 ## ------------------------ ##
1826 ## Autoconf initialization. ##
1827 ## ------------------------ ##
1829 # ac_fn_c_try_compile LINENO
1830 # --------------------------
1831 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_compile ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext
1836 if { { ac_try="$ac_compile"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_compile") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1849 fi
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest.$ac_objext; then :
1855 ac_retval=0
1856 else
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1860 ac_retval=1
1861 fi
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 as_fn_set_status $ac_retval
1865 } # ac_fn_c_try_compile
1867 # ac_fn_cxx_try_compile LINENO
1868 # ----------------------------
1869 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_cxx_try_compile ()
1871 {
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext
1874 if { { ac_try="$ac_compile"
1875 case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_compile") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1887 fi
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_cxx_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest.$ac_objext; then :
1893 ac_retval=0
1894 else
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1898 ac_retval=1
1899 fi
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901 as_fn_set_status $ac_retval
1903 } # ac_fn_cxx_try_compile
1905 # ac_fn_objc_try_compile LINENO
1906 # -----------------------------
1907 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1908 ac_fn_objc_try_compile ()
1909 {
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 rm -f conftest.$ac_objext
1912 if { { ac_try="$ac_compile"
1913 case "(($ac_try" in
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1916 esac
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_compile") 2>conftest.err
1920 ac_status=$?
1921 if test -s conftest.err; then
1922 grep -v '^ *+' conftest.err >conftest.er1
1923 cat conftest.er1 >&5
1924 mv -f conftest.er1 conftest.err
1925 fi
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; } && {
1928 test -z "$ac_objc_werror_flag" ||
1929 test ! -s conftest.err
1930 } && test -s conftest.$ac_objext; then :
1931 ac_retval=0
1932 else
1933 $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1936 ac_retval=1
1937 fi
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939 as_fn_set_status $ac_retval
1941 } # ac_fn_objc_try_compile
1943 # ac_fn_c_try_cpp LINENO
1944 # ----------------------
1945 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1946 ac_fn_c_try_cpp ()
1947 {
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if { { ac_try="$ac_cpp conftest.$ac_ext"
1950 case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1957 ac_status=$?
1958 if test -s conftest.err; then
1959 grep -v '^ *+' conftest.err >conftest.er1
1960 cat conftest.er1 >&5
1961 mv -f conftest.er1 conftest.err
1962 fi
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } > conftest.i && {
1965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1966 test ! -s conftest.err
1967 }; then :
1968 ac_retval=0
1969 else
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1973 ac_retval=1
1974 fi
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 as_fn_set_status $ac_retval
1978 } # ac_fn_c_try_cpp
1980 # ac_fn_cxx_try_cpp LINENO
1981 # ------------------------
1982 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1983 ac_fn_cxx_try_cpp ()
1984 {
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 if { { ac_try="$ac_cpp conftest.$ac_ext"
1987 case "(($ac_try" in
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1990 esac
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1994 ac_status=$?
1995 if test -s conftest.err; then
1996 grep -v '^ *+' conftest.err >conftest.er1
1997 cat conftest.er1 >&5
1998 mv -f conftest.er1 conftest.err
1999 fi
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; } > conftest.i && {
2002 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2003 test ! -s conftest.err
2004 }; then :
2005 ac_retval=0
2006 else
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2010 ac_retval=1
2011 fi
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 as_fn_set_status $ac_retval
2015 } # ac_fn_cxx_try_cpp
2017 # ac_fn_cxx_try_link LINENO
2018 # -------------------------
2019 # Try to link conftest.$ac_ext, and return whether this succeeded.
2020 ac_fn_cxx_try_link ()
2021 {
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 rm -f conftest.$ac_objext conftest$ac_exeext
2024 if { { ac_try="$ac_link"
2025 case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_link") 2>conftest.err
2032 ac_status=$?
2033 if test -s conftest.err; then
2034 grep -v '^ *+' conftest.err >conftest.er1
2035 cat conftest.er1 >&5
2036 mv -f conftest.er1 conftest.err
2037 fi
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && {
2040 test -z "$ac_cxx_werror_flag" ||
2041 test ! -s conftest.err
2042 } && test -s conftest$ac_exeext && {
2043 test "$cross_compiling" = yes ||
2044 $as_test_x conftest$ac_exeext
2045 }; then :
2046 ac_retval=0
2047 else
2048 $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2051 ac_retval=1
2052 fi
2053 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2054 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2055 # interfere with the next link command; also delete a directory that is
2056 # left behind by Apple's compiler. We do this before executing the actions.
2057 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059 as_fn_set_status $ac_retval
2061 } # ac_fn_cxx_try_link
2063 # ac_fn_cxx_try_run LINENO
2064 # ------------------------
2065 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2066 # that executables *can* be run.
2067 ac_fn_cxx_try_run ()
2068 {
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if { { ac_try="$ac_link"
2071 case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074 esac
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_link") 2>&5
2078 ac_status=$?
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2081 { { case "(($ac_try" in
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2084 esac
2085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2086 $as_echo "$ac_try_echo"; } >&5
2087 (eval "$ac_try") 2>&5
2088 ac_status=$?
2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2090 test $ac_status = 0; }; }; then :
2091 ac_retval=0
2092 else
2093 $as_echo "$as_me: program exited with status $ac_status" >&5
2094 $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2097 ac_retval=$ac_status
2098 fi
2099 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2101 as_fn_set_status $ac_retval
2103 } # ac_fn_cxx_try_run
2105 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2106 # ----------------------------------------------
2107 # Tries to find the compile-time value of EXPR in a program that includes
2108 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2109 # computed
2110 ac_fn_cxx_compute_int ()
2111 {
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 if test "$cross_compiling" = yes; then
2114 # Depending upon the size, compute the lo and hi bounds.
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117 $4
2118 int
2119 main ()
2120 {
2121 static int test_array [1 - 2 * !(($2) >= 0)];
2122 test_array [0] = 0
2124 ;
2125 return 0;
2126 }
2127 _ACEOF
2128 if ac_fn_cxx_try_compile "$LINENO"; then :
2129 ac_lo=0 ac_mid=0
2130 while :; do
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2133 $4
2134 int
2135 main ()
2136 {
2137 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2138 test_array [0] = 0
2140 ;
2141 return 0;
2142 }
2143 _ACEOF
2144 if ac_fn_cxx_try_compile "$LINENO"; then :
2145 ac_hi=$ac_mid; break
2146 else
2147 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2148 if test $ac_lo -le $ac_mid; then
2149 ac_lo= ac_hi=
2150 break
2151 fi
2152 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2153 fi
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 done
2156 else
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2159 $4
2160 int
2161 main ()
2162 {
2163 static int test_array [1 - 2 * !(($2) < 0)];
2164 test_array [0] = 0
2166 ;
2167 return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_cxx_try_compile "$LINENO"; then :
2171 ac_hi=-1 ac_mid=-1
2172 while :; do
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2175 $4
2176 int
2177 main ()
2178 {
2179 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2180 test_array [0] = 0
2182 ;
2183 return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_cxx_try_compile "$LINENO"; then :
2187 ac_lo=$ac_mid; break
2188 else
2189 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2190 if test $ac_mid -le $ac_hi; then
2191 ac_lo= ac_hi=
2192 break
2193 fi
2194 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 done
2198 else
2199 ac_lo= ac_hi=
2200 fi
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 fi
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 # Binary search between lo and hi bounds.
2205 while test "x$ac_lo" != "x$ac_hi"; do
2206 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 $4
2210 int
2211 main ()
2212 {
2213 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2214 test_array [0] = 0
2216 ;
2217 return 0;
2218 }
2219 _ACEOF
2220 if ac_fn_cxx_try_compile "$LINENO"; then :
2221 ac_hi=$ac_mid
2222 else
2223 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2224 fi
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 done
2227 case $ac_lo in #((
2228 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2229 '') ac_retval=1 ;;
2230 esac
2231 else
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2234 $4
2235 static long int longval () { return $2; }
2236 static unsigned long int ulongval () { return $2; }
2237 #include <stdio.h>
2238 #include <stdlib.h>
2239 int
2240 main ()
2241 {
2243 FILE *f = fopen ("conftest.val", "w");
2244 if (! f)
2245 return 1;
2246 if (($2) < 0)
2247 {
2248 long int i = longval ();
2249 if (i != ($2))
2250 return 1;
2251 fprintf (f, "%ld", i);
2252 }
2253 else
2254 {
2255 unsigned long int i = ulongval ();
2256 if (i != ($2))
2257 return 1;
2258 fprintf (f, "%lu", i);
2259 }
2260 /* Do not output a trailing newline, as this causes \r\n confusion
2261 on some platforms. */
2262 return ferror (f) || fclose (f) != 0;
2264 ;
2265 return 0;
2266 }
2267 _ACEOF
2268 if ac_fn_cxx_try_run "$LINENO"; then :
2269 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2270 else
2271 ac_retval=1
2272 fi
2273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2274 conftest.$ac_objext conftest.beam conftest.$ac_ext
2275 rm -f conftest.val
2277 fi
2278 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2279 as_fn_set_status $ac_retval
2281 } # ac_fn_cxx_compute_int
2283 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2284 # ---------------------------------------------------------
2285 # Tests whether HEADER exists and can be compiled using the include files in
2286 # INCLUDES, setting the cache variable VAR accordingly.
2287 ac_fn_cxx_check_header_compile ()
2288 {
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2291 $as_echo_n "checking for $2... " >&6; }
2292 if eval "test \"\${$3+set}\"" = set; then :
2293 $as_echo_n "(cached) " >&6
2294 else
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2297 $4
2298 #include <$2>
2299 _ACEOF
2300 if ac_fn_cxx_try_compile "$LINENO"; then :
2301 eval "$3=yes"
2302 else
2303 eval "$3=no"
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 fi
2307 eval ac_res=\$$3
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2310 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2312 } # ac_fn_cxx_check_header_compile
2314 # ac_fn_cxx_check_func LINENO FUNC VAR
2315 # ------------------------------------
2316 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2317 ac_fn_cxx_check_func ()
2318 {
2319 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2321 $as_echo_n "checking for $2... " >&6; }
2322 if eval "test \"\${$3+set}\"" = set; then :
2323 $as_echo_n "(cached) " >&6
2324 else
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2327 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2329 #define $2 innocuous_$2
2331 /* System header to define __stub macros and hopefully few prototypes,
2332 which can conflict with char $2 (); below.
2333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2334 <limits.h> exists even on freestanding compilers. */
2336 #ifdef __STDC__
2337 # include <limits.h>
2338 #else
2339 # include <assert.h>
2340 #endif
2342 #undef $2
2344 /* Override any GCC internal prototype to avoid an error.
2345 Use char because int might match the return type of a GCC
2346 builtin and then its argument prototype would still apply. */
2347 #ifdef __cplusplus
2348 extern "C"
2349 #endif
2350 char $2 ();
2351 /* The GNU C library defines this for functions which it implements
2352 to always fail with ENOSYS. Some functions are actually named
2353 something starting with __ and the normal name is an alias. */
2354 #if defined __stub_$2 || defined __stub___$2
2355 choke me
2356 #endif
2358 int
2359 main ()
2360 {
2361 return $2 ();
2362 ;
2363 return 0;
2364 }
2365 _ACEOF
2366 if ac_fn_cxx_try_link "$LINENO"; then :
2367 eval "$3=yes"
2368 else
2369 eval "$3=no"
2370 fi
2371 rm -f core conftest.err conftest.$ac_objext \
2372 conftest$ac_exeext conftest.$ac_ext
2373 fi
2374 eval ac_res=\$$3
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376 $as_echo "$ac_res" >&6; }
2377 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379 } # ac_fn_cxx_check_func
2381 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2382 # -------------------------------------------------------
2383 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2384 # the include files in INCLUDES and setting the cache variable VAR
2385 # accordingly.
2386 ac_fn_c_check_header_mongrel ()
2387 {
2388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389 if eval "test \"\${$3+set}\"" = set; then :
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2391 $as_echo_n "checking for $2... " >&6; }
2392 if eval "test \"\${$3+set}\"" = set; then :
2393 $as_echo_n "(cached) " >&6
2394 fi
2395 eval ac_res=\$$3
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397 $as_echo "$ac_res" >&6; }
2398 else
2399 # Is the header compilable?
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2401 $as_echo_n "checking $2 usability... " >&6; }
2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h. */
2404 $4
2405 #include <$2>
2406 _ACEOF
2407 if ac_fn_c_try_compile "$LINENO"; then :
2408 ac_header_compiler=yes
2409 else
2410 ac_header_compiler=no
2411 fi
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2414 $as_echo "$ac_header_compiler" >&6; }
2416 # Is the header present?
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2418 $as_echo_n "checking $2 presence... " >&6; }
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421 #include <$2>
2422 _ACEOF
2423 if ac_fn_c_try_cpp "$LINENO"; then :
2424 ac_header_preproc=yes
2425 else
2426 ac_header_preproc=no
2427 fi
2428 rm -f conftest.err conftest.i conftest.$ac_ext
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2430 $as_echo "$ac_header_preproc" >&6; }
2432 # So? What about this header?
2433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2434 yes:no: )
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2436 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2438 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2439 ;;
2440 no:yes:* )
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2442 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2444 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2446 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2448 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2450 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2451 ( $as_echo "## ----------------------------------------------- ##
2452 ## Report this to build-infra-dev@openjdk.java.net ##
2453 ## ----------------------------------------------- ##"
2454 ) | sed "s/^/$as_me: WARNING: /" >&2
2455 ;;
2456 esac
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2458 $as_echo_n "checking for $2... " >&6; }
2459 if eval "test \"\${$3+set}\"" = set; then :
2460 $as_echo_n "(cached) " >&6
2461 else
2462 eval "$3=\$ac_header_compiler"
2463 fi
2464 eval ac_res=\$$3
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466 $as_echo "$ac_res" >&6; }
2467 fi
2468 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2470 } # ac_fn_c_check_header_mongrel
2472 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2473 # ---------------------------------------------------------
2474 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2475 # the include files in INCLUDES and setting the cache variable VAR
2476 # accordingly.
2477 ac_fn_cxx_check_header_mongrel ()
2478 {
2479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2480 if eval "test \"\${$3+set}\"" = set; then :
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2482 $as_echo_n "checking for $2... " >&6; }
2483 if eval "test \"\${$3+set}\"" = set; then :
2484 $as_echo_n "(cached) " >&6
2485 fi
2486 eval ac_res=\$$3
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488 $as_echo "$ac_res" >&6; }
2489 else
2490 # Is the header compilable?
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2492 $as_echo_n "checking $2 usability... " >&6; }
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2495 $4
2496 #include <$2>
2497 _ACEOF
2498 if ac_fn_cxx_try_compile "$LINENO"; then :
2499 ac_header_compiler=yes
2500 else
2501 ac_header_compiler=no
2502 fi
2503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2505 $as_echo "$ac_header_compiler" >&6; }
2507 # Is the header present?
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2509 $as_echo_n "checking $2 presence... " >&6; }
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 #include <$2>
2513 _ACEOF
2514 if ac_fn_cxx_try_cpp "$LINENO"; then :
2515 ac_header_preproc=yes
2516 else
2517 ac_header_preproc=no
2518 fi
2519 rm -f conftest.err conftest.i conftest.$ac_ext
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2521 $as_echo "$ac_header_preproc" >&6; }
2523 # So? What about this header?
2524 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2525 yes:no: )
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2527 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2529 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2530 ;;
2531 no:yes:* )
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2533 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2535 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2537 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2539 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2541 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2542 ( $as_echo "## ----------------------------------------------- ##
2543 ## Report this to build-infra-dev@openjdk.java.net ##
2544 ## ----------------------------------------------- ##"
2545 ) | sed "s/^/$as_me: WARNING: /" >&2
2546 ;;
2547 esac
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if eval "test \"\${$3+set}\"" = set; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 eval "$3=\$ac_header_compiler"
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 fi
2559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2561 } # ac_fn_cxx_check_header_mongrel
2562 cat >config.log <<_ACEOF
2563 This file contains any messages produced by compilers while
2564 running configure, to aid debugging if configure makes a mistake.
2566 It was created by openjdk $as_me version-0.1, which was
2567 generated by GNU Autoconf 2.67. Invocation command line was
2569 $ $0 $@
2571 _ACEOF
2572 exec 5>>config.log
2573 {
2574 cat <<_ASUNAME
2575 ## --------- ##
2576 ## Platform. ##
2577 ## --------- ##
2579 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2580 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2581 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2582 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2583 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2585 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2586 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2588 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2589 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2590 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2591 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2592 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2593 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2594 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2596 _ASUNAME
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 $as_echo "PATH: $as_dir"
2604 done
2605 IFS=$as_save_IFS
2607 } >&5
2609 cat >&5 <<_ACEOF
2612 ## ----------- ##
2613 ## Core tests. ##
2614 ## ----------- ##
2616 _ACEOF
2619 # Keep a trace of the command line.
2620 # Strip out --no-create and --no-recursion so they do not pile up.
2621 # Strip out --silent because we don't want to record it for future runs.
2622 # Also quote any args containing shell meta-characters.
2623 # Make two passes to allow for proper duplicate-argument suppression.
2624 ac_configure_args=
2625 ac_configure_args0=
2626 ac_configure_args1=
2627 ac_must_keep_next=false
2628 for ac_pass in 1 2
2629 do
2630 for ac_arg
2631 do
2632 case $ac_arg in
2633 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2635 | -silent | --silent | --silen | --sile | --sil)
2636 continue ;;
2637 *\'*)
2638 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2639 esac
2640 case $ac_pass in
2641 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2642 2)
2643 as_fn_append ac_configure_args1 " '$ac_arg'"
2644 if test $ac_must_keep_next = true; then
2645 ac_must_keep_next=false # Got value, back to normal.
2646 else
2647 case $ac_arg in
2648 *=* | --config-cache | -C | -disable-* | --disable-* \
2649 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2650 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2651 | -with-* | --with-* | -without-* | --without-* | --x)
2652 case "$ac_configure_args0 " in
2653 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2654 esac
2655 ;;
2656 -* ) ac_must_keep_next=true ;;
2657 esac
2658 fi
2659 as_fn_append ac_configure_args " '$ac_arg'"
2660 ;;
2661 esac
2662 done
2663 done
2664 { ac_configure_args0=; unset ac_configure_args0;}
2665 { ac_configure_args1=; unset ac_configure_args1;}
2667 # When interrupted or exit'd, cleanup temporary files, and complete
2668 # config.log. We remove comments because anyway the quotes in there
2669 # would cause problems or look ugly.
2670 # WARNING: Use '\'' to represent an apostrophe within the trap.
2671 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2672 trap 'exit_status=$?
2673 # Save into config.log some information that might help in debugging.
2674 {
2675 echo
2677 $as_echo "## ---------------- ##
2678 ## Cache variables. ##
2679 ## ---------------- ##"
2680 echo
2681 # The following way of writing the cache mishandles newlines in values,
2682 (
2683 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2684 eval ac_val=\$$ac_var
2685 case $ac_val in #(
2686 *${as_nl}*)
2687 case $ac_var in #(
2688 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2689 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2690 esac
2691 case $ac_var in #(
2692 _ | IFS | as_nl) ;; #(
2693 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2694 *) { eval $ac_var=; unset $ac_var;} ;;
2695 esac ;;
2696 esac
2697 done
2698 (set) 2>&1 |
2699 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2700 *${as_nl}ac_space=\ *)
2701 sed -n \
2702 "s/'\''/'\''\\\\'\'''\''/g;
2703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2704 ;; #(
2705 *)
2706 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2707 ;;
2708 esac |
2709 sort
2710 )
2711 echo
2713 $as_echo "## ----------------- ##
2714 ## Output variables. ##
2715 ## ----------------- ##"
2716 echo
2717 for ac_var in $ac_subst_vars
2718 do
2719 eval ac_val=\$$ac_var
2720 case $ac_val in
2721 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2722 esac
2723 $as_echo "$ac_var='\''$ac_val'\''"
2724 done | sort
2725 echo
2727 if test -n "$ac_subst_files"; then
2728 $as_echo "## ------------------- ##
2729 ## File substitutions. ##
2730 ## ------------------- ##"
2731 echo
2732 for ac_var in $ac_subst_files
2733 do
2734 eval ac_val=\$$ac_var
2735 case $ac_val in
2736 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2737 esac
2738 $as_echo "$ac_var='\''$ac_val'\''"
2739 done | sort
2740 echo
2741 fi
2743 if test -s confdefs.h; then
2744 $as_echo "## ----------- ##
2745 ## confdefs.h. ##
2746 ## ----------- ##"
2747 echo
2748 cat confdefs.h
2749 echo
2750 fi
2751 test "$ac_signal" != 0 &&
2752 $as_echo "$as_me: caught signal $ac_signal"
2753 $as_echo "$as_me: exit $exit_status"
2754 } >&5
2755 rm -f core *.core core.conftest.* &&
2756 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2757 exit $exit_status
2758 ' 0
2759 for ac_signal in 1 2 13 15; do
2760 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2761 done
2762 ac_signal=0
2764 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2765 rm -f -r conftest* confdefs.h
2767 $as_echo "/* confdefs.h */" > confdefs.h
2769 # Predefined preprocessor variables.
2771 cat >>confdefs.h <<_ACEOF
2772 #define PACKAGE_NAME "$PACKAGE_NAME"
2773 _ACEOF
2775 cat >>confdefs.h <<_ACEOF
2776 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2777 _ACEOF
2779 cat >>confdefs.h <<_ACEOF
2780 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2781 _ACEOF
2783 cat >>confdefs.h <<_ACEOF
2784 #define PACKAGE_STRING "$PACKAGE_STRING"
2785 _ACEOF
2787 cat >>confdefs.h <<_ACEOF
2788 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2789 _ACEOF
2791 cat >>confdefs.h <<_ACEOF
2792 #define PACKAGE_URL "$PACKAGE_URL"
2793 _ACEOF
2796 # Let the site file select an alternate cache file if it wants to.
2797 # Prefer an explicitly selected file to automatically selected ones.
2798 ac_site_file1=NONE
2799 ac_site_file2=NONE
2800 if test -n "$CONFIG_SITE"; then
2801 # We do not want a PATH search for config.site.
2802 case $CONFIG_SITE in #((
2803 -*) ac_site_file1=./$CONFIG_SITE;;
2804 */*) ac_site_file1=$CONFIG_SITE;;
2805 *) ac_site_file1=./$CONFIG_SITE;;
2806 esac
2807 elif test "x$prefix" != xNONE; then
2808 ac_site_file1=$prefix/share/config.site
2809 ac_site_file2=$prefix/etc/config.site
2810 else
2811 ac_site_file1=$ac_default_prefix/share/config.site
2812 ac_site_file2=$ac_default_prefix/etc/config.site
2813 fi
2814 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2815 do
2816 test "x$ac_site_file" = xNONE && continue
2817 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2819 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2820 sed 's/^/| /' "$ac_site_file" >&5
2821 . "$ac_site_file" \
2822 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2824 as_fn_error $? "failed to load site script $ac_site_file
2825 See \`config.log' for more details" "$LINENO" 5 ; }
2826 fi
2827 done
2829 if test -r "$cache_file"; then
2830 # Some versions of bash will fail to source /dev/null (special files
2831 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2832 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2834 $as_echo "$as_me: loading cache $cache_file" >&6;}
2835 case $cache_file in
2836 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2837 *) . "./$cache_file";;
2838 esac
2839 fi
2840 else
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2842 $as_echo "$as_me: creating cache $cache_file" >&6;}
2843 >$cache_file
2844 fi
2846 # Check that the precious variables saved in the cache have kept the same
2847 # value.
2848 ac_cache_corrupted=false
2849 for ac_var in $ac_precious_vars; do
2850 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2851 eval ac_new_set=\$ac_env_${ac_var}_set
2852 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2853 eval ac_new_val=\$ac_env_${ac_var}_value
2854 case $ac_old_set,$ac_new_set in
2855 set,)
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2857 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2858 ac_cache_corrupted=: ;;
2859 ,set)
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2861 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2862 ac_cache_corrupted=: ;;
2863 ,);;
2864 *)
2865 if test "x$ac_old_val" != "x$ac_new_val"; then
2866 # differences in whitespace do not lead to failure.
2867 ac_old_val_w=`echo x $ac_old_val`
2868 ac_new_val_w=`echo x $ac_new_val`
2869 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2871 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2872 ac_cache_corrupted=:
2873 else
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2875 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2876 eval $ac_var=\$ac_old_val
2877 fi
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2879 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2881 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2882 fi;;
2883 esac
2884 # Pass precious variables to config.status.
2885 if test "$ac_new_set" = set; then
2886 case $ac_new_val in
2887 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2888 *) ac_arg=$ac_var=$ac_new_val ;;
2889 esac
2890 case " $ac_configure_args " in
2891 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2892 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2893 esac
2894 fi
2895 done
2896 if $ac_cache_corrupted; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2900 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2901 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2902 fi
2903 ## -------------------- ##
2904 ## Main body of script. ##
2905 ## -------------------- ##
2907 ac_ext=c
2908 ac_cpp='$CPP $CPPFLAGS'
2909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2915 ac_aux_dir=
2916 for ac_dir in build-aux "$srcdir"/build-aux; do
2917 if test -f "$ac_dir/install-sh"; then
2918 ac_aux_dir=$ac_dir
2919 ac_install_sh="$ac_aux_dir/install-sh -c"
2920 break
2921 elif test -f "$ac_dir/install.sh"; then
2922 ac_aux_dir=$ac_dir
2923 ac_install_sh="$ac_aux_dir/install.sh -c"
2924 break
2925 elif test -f "$ac_dir/shtool"; then
2926 ac_aux_dir=$ac_dir
2927 ac_install_sh="$ac_aux_dir/shtool install -c"
2928 break
2929 fi
2930 done
2931 if test -z "$ac_aux_dir"; then
2932 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2933 fi
2935 # These three variables are undocumented and unsupported,
2936 # and are intended to be withdrawn in a future Autoconf release.
2937 # They can cause serious problems if a builder's source tree is in a directory
2938 # whose full name contains unusual characters.
2939 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2940 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2941 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2945 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
2946 #
2947 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
2948 #
2949 # This program is free software; you can redistribute it and/or modify
2950 # it under the terms of the GNU General Public License as published by
2951 # the Free Software Foundation; either version 2 of the License, or
2952 # (at your option) any later version.
2953 #
2954 # This program is distributed in the hope that it will be useful, but
2955 # WITHOUT ANY WARRANTY; without even the implied warranty of
2956 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2957 # General Public License for more details.
2958 #
2959 # You should have received a copy of the GNU General Public License
2960 # along with this program; if not, write to the Free Software
2961 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2962 #
2963 # As a special exception to the GNU General Public License, if you
2964 # distribute this file as part of a program that contains a
2965 # configuration script generated by Autoconf, you may include it under
2966 # the same distribution terms that you use for the rest of that program.
2968 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
2969 # ----------------------------------
2970 # PKG_PROG_PKG_CONFIG
2972 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
2973 #
2974 # Check to see whether a particular set of modules exists. Similar
2975 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
2976 #
2977 #
2978 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
2979 # this or PKG_CHECK_MODULES is called, or make sure to call
2980 # PKG_CHECK_EXISTS manually
2981 # --------------------------------------------------------------
2985 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
2986 # ---------------------------------------------
2987 # _PKG_CONFIG
2989 # _PKG_SHORT_ERRORS_SUPPORTED
2990 # -----------------------------
2991 # _PKG_SHORT_ERRORS_SUPPORTED
2994 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
2995 # [ACTION-IF-NOT-FOUND])
2996 #
2997 #
2998 # Note that if there is a possibility the first call to
2999 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3000 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3001 #
3002 #
3003 # --------------------------------------------------------------
3004 # PKG_CHECK_MODULES
3006 #
3007 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3008 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3009 #
3010 # This code is free software; you can redistribute it and/or modify it
3011 # under the terms of the GNU General Public License version 2 only, as
3012 # published by the Free Software Foundation. Oracle designates this
3013 # particular file as subject to the "Classpath" exception as provided
3014 # by Oracle in the LICENSE file that accompanied this code.
3015 #
3016 # This code is distributed in the hope that it will be useful, but WITHOUT
3017 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3018 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3019 # version 2 for more details (a copy is included in the LICENSE file that
3020 # accompanied this code).
3021 #
3022 # You should have received a copy of the GNU General Public License version
3023 # 2 along with this work; if not, write to the Free Software Foundation,
3024 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3025 #
3026 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3027 # or visit www.oracle.com if you need additional information or have any
3028 # questions.
3029 #
3040 #
3041 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3042 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3043 #
3044 # This code is free software; you can redistribute it and/or modify it
3045 # under the terms of the GNU General Public License version 2 only, as
3046 # published by the Free Software Foundation. Oracle designates this
3047 # particular file as subject to the "Classpath" exception as provided
3048 # by Oracle in the LICENSE file that accompanied this code.
3049 #
3050 # This code is distributed in the hope that it will be useful, but WITHOUT
3051 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3052 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3053 # version 2 for more details (a copy is included in the LICENSE file that
3054 # accompanied this code).
3055 #
3056 # You should have received a copy of the GNU General Public License version
3057 # 2 along with this work; if not, write to the Free Software Foundation,
3058 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3059 #
3060 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3061 # or visit www.oracle.com if you need additional information or have any
3062 # questions.
3063 #
3095 # Fixes paths on windows hosts to be mixed mode short.
3098 #
3099 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3100 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3101 #
3102 # This code is free software; you can redistribute it and/or modify it
3103 # under the terms of the GNU General Public License version 2 only, as
3104 # published by the Free Software Foundation. Oracle designates this
3105 # particular file as subject to the "Classpath" exception as provided
3106 # by Oracle in the LICENSE file that accompanied this code.
3107 #
3108 # This code is distributed in the hope that it will be useful, but WITHOUT
3109 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3110 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3111 # version 2 for more details (a copy is included in the LICENSE file that
3112 # accompanied this code).
3113 #
3114 # You should have received a copy of the GNU General Public License version
3115 # 2 along with this work; if not, write to the Free Software Foundation,
3116 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3117 #
3118 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3119 # or visit www.oracle.com if you need additional information or have any
3120 # questions.
3121 #
3127 #
3128 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3129 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3130 #
3131 # This code is free software; you can redistribute it and/or modify it
3132 # under the terms of the GNU General Public License version 2 only, as
3133 # published by the Free Software Foundation. Oracle designates this
3134 # particular file as subject to the "Classpath" exception as provided
3135 # by Oracle in the LICENSE file that accompanied this code.
3136 #
3137 # This code is distributed in the hope that it will be useful, but WITHOUT
3138 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3139 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3140 # version 2 for more details (a copy is included in the LICENSE file that
3141 # accompanied this code).
3142 #
3143 # You should have received a copy of the GNU General Public License version
3144 # 2 along with this work; if not, write to the Free Software Foundation,
3145 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3146 #
3147 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3148 # or visit www.oracle.com if you need additional information or have any
3149 # questions.
3150 #
3152 function help_on_build_dependency {
3153 # Print a helpful message on how to acquire the necessary build dependency.
3154 # $1 is the help tag: freetyp2, cups, pulse, alsa etc
3155 MISSING_DEPENDENCY=$1
3156 PKGHANDLER_COMMAND=
3158 for ac_prog in apt-get yum port pkgutil pkgadd
3159 do
3160 # Extract the first word of "$ac_prog", so it can be a program name with args.
3161 set dummy $ac_prog; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if test "${ac_cv_prog_PKGHANDLER+set}" = set; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 if test -n "$PKGHANDLER"; then
3168 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177 ac_cv_prog_PKGHANDLER="$ac_prog"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3180 fi
3181 done
3182 done
3183 IFS=$as_save_IFS
3185 fi
3186 fi
3187 PKGHANDLER=$ac_cv_prog_PKGHANDLER
3188 if test -n "$PKGHANDLER"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
3190 $as_echo "$PKGHANDLER" >&6; }
3191 else
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194 fi
3197 test -n "$PKGHANDLER" && break
3198 done
3201 case $PKGHANDLER in
3202 apt-get)
3203 apt_help $MISSING_DEPENDENCY ;;
3204 yum)
3205 yum_help $MISSING_DEPENDENCY ;;
3206 port)
3207 port_help $MISSING_DEPENDENCY ;;
3208 pkgutil)
3209 pkgutil_help $MISSING_DEPENDENCY ;;
3210 pkgadd)
3211 pkgadd_help $MISSING_DEPENDENCY ;;
3212 * )
3213 break ;;
3214 esac
3216 if test "x$PKGHANDLER_COMMAND" != x; then
3217 HELP_MSG="Try running '$PKGHANDLER_COMMAND'."
3218 fi
3219 }
3221 function apt_help {
3222 case $1 in
3223 devkit)
3224 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3225 openjdk)
3226 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3227 alsa)
3228 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3229 cups)
3230 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3231 freetype2)
3232 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3233 pulse)
3234 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3235 x11)
3236 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev" ;;
3237 ccache)
3238 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3239 * )
3240 break ;;
3241 esac
3242 }
3244 function yum_help {
3245 case $1 in
3246 devkit)
3247 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3248 openjdk)
3249 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3250 alsa)
3251 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3252 cups)
3253 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3254 freetype2)
3255 PKGHANDLER_COMMAND="sudo yum install freetype2-devel" ;;
3256 pulse)
3257 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3258 x11)
3259 PKGHANDLER_COMMAND="sudo yum install libXtst-devel" ;;
3260 ccache)
3261 PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3262 * )
3263 break ;;
3264 esac
3265 }
3267 function port_help {
3268 PKGHANDLER_COMMAND=""
3269 }
3271 function pkgutil_help {
3272 PKGHANDLER_COMMAND=""
3273 }
3275 function pkgadd_help {
3276 PKGHANDLER_COMMAND=""
3277 }
3280 # Save the command line. Do this very early, before it is lost by calling autoconf macros.
3281 CONFIGURE_COMMAND_LINE="$@"
3284 # Locate the directory of this script.
3285 SCRIPT="$0"
3287 if test "x$BUILD_OS" != xwindows; then
3288 # Follow a chain of symbolic links. Use readlink
3289 # where it exists, else fall back to horribly
3290 # complicated shell code.
3291 # Extract the first word of "readlink", so it can be a program name with args.
3292 set dummy readlink; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if test "${ac_cv_path_READLINK+set}" = set; then :
3296 $as_echo_n "(cached) " >&6
3297 else
3298 case $READLINK in
3299 [\\/]* | ?:[\\/]*)
3300 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
3301 ;;
3302 *)
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3310 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
3311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 break 2
3313 fi
3314 done
3315 done
3316 IFS=$as_save_IFS
3318 ;;
3319 esac
3320 fi
3321 READLINK=$ac_cv_path_READLINK
3322 if test -n "$READLINK"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
3324 $as_echo "$READLINK" >&6; }
3325 else
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3328 fi
3331 if test "x$READLINK_TESTED" != yes; then
3332 # On MacOSX there is a readlink tool with a different
3333 # purpose than the GNU readlink tool. Check the found readlink.
3334 ISGNU=`$READLINK --help 2>&1 | grep GNU`
3335 if test "x$ISGNU" = x; then
3336 # A readlink that we do not know how to use.
3337 # Are there other non-GNU readlinks out there?
3338 READLINK_TESTED=yes
3339 READLINK=
3340 fi
3341 fi
3343 if test "x$READLINK" != x; then
3344 SCRIPT=`$READLINK -f $SCRIPT`
3345 else
3346 STARTDIR=$PWD
3347 COUNTER=0
3348 DIR=`dirname $SCRIPT`
3349 FIL=`basename $SCRIPT`
3350 while test $COUNTER -lt 20; do
3351 ISLINK=`ls -l $DIR/$FIL | grep '\->' | sed -e 's/.*-> \(.*\)/\1/'`
3352 if test "x$ISLINK" == x; then
3353 # This is not a symbolic link! We are done!
3354 break
3355 fi
3356 # The link might be relative! We have to use cd to travel safely.
3357 cd $DIR
3358 cd `dirname $ISLINK`
3359 DIR=`pwd`
3360 FIL=`basename $ISLINK`
3361 let COUNTER=COUNTER+1
3362 done
3363 cd $STARTDIR
3364 SCRIPT=$DIR/$FIL
3365 fi
3366 fi
3368 AUTOCONF_DIR=`dirname $0`
3370 # Start with tools that do not need have cross compilation support
3371 # and can be expected to be found in the default PATH. These tools are
3372 # used by configure. Nor are these tools expected to be found in the
3373 # devkit from the builddeps server either, since they are
3374 # needed to download the devkit.
3375 for ac_prog in gawk mawk nawk awk
3376 do
3377 # Extract the first word of "$ac_prog", so it can be a program name with args.
3378 set dummy $ac_prog; ac_word=$2
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 $as_echo_n "checking for $ac_word... " >&6; }
3381 if test "${ac_cv_prog_AWK+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3383 else
3384 if test -n "$AWK"; then
3385 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3386 else
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394 ac_cv_prog_AWK="$ac_prog"
3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 break 2
3397 fi
3398 done
3399 done
3400 IFS=$as_save_IFS
3402 fi
3403 fi
3404 AWK=$ac_cv_prog_AWK
3405 if test -n "$AWK"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3407 $as_echo "$AWK" >&6; }
3408 else
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3411 fi
3414 test -n "$AWK" && break
3415 done
3418 # Test that variable AWK is not empty.
3419 if test "" = "$AWK"; then as_fn_error $? "Could not find awk !" "$LINENO" 5 ; fi
3421 # Extract the first word of "cat", so it can be a program name with args.
3422 set dummy cat; ac_word=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if test "${ac_cv_path_CAT+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 case $CAT in
3429 [\\/]* | ?:[\\/]*)
3430 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3431 ;;
3432 *)
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 for as_dir in $PATH
3435 do
3436 IFS=$as_save_IFS
3437 test -z "$as_dir" && as_dir=.
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3440 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442 break 2
3443 fi
3444 done
3445 done
3446 IFS=$as_save_IFS
3448 ;;
3449 esac
3450 fi
3451 CAT=$ac_cv_path_CAT
3452 if test -n "$CAT"; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
3454 $as_echo "$CAT" >&6; }
3455 else
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457 $as_echo "no" >&6; }
3458 fi
3462 # Test that variable CAT is not empty.
3463 if test "" = "$CAT"; then as_fn_error $? "Could not find cat !" "$LINENO" 5 ; fi
3465 # Extract the first word of "chmod", so it can be a program name with args.
3466 set dummy chmod; ac_word=$2
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468 $as_echo_n "checking for $ac_word... " >&6; }
3469 if test "${ac_cv_path_CHMOD+set}" = set; then :
3470 $as_echo_n "(cached) " >&6
3471 else
3472 case $CHMOD in
3473 [\\/]* | ?:[\\/]*)
3474 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3475 ;;
3476 *)
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3479 do
3480 IFS=$as_save_IFS
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3484 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 break 2
3487 fi
3488 done
3489 done
3490 IFS=$as_save_IFS
3492 ;;
3493 esac
3494 fi
3495 CHMOD=$ac_cv_path_CHMOD
3496 if test -n "$CHMOD"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3498 $as_echo "$CHMOD" >&6; }
3499 else
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3502 fi
3506 # Test that variable CHMOD is not empty.
3507 if test "" = "$CHMOD"; then as_fn_error $? "Could not find chmod !" "$LINENO" 5 ; fi
3509 # Extract the first word of "cp", so it can be a program name with args.
3510 set dummy cp; ac_word=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if test "${ac_cv_path_CP+set}" = set; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 case $CP in
3517 [\\/]* | ?:[\\/]*)
3518 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3519 ;;
3520 *)
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3523 do
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3531 fi
3532 done
3533 done
3534 IFS=$as_save_IFS
3536 ;;
3537 esac
3538 fi
3539 CP=$ac_cv_path_CP
3540 if test -n "$CP"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
3542 $as_echo "$CP" >&6; }
3543 else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3546 fi
3550 # Test that variable CP is not empty.
3551 if test "" = "$CP"; then as_fn_error $? "Could not find cp !" "$LINENO" 5 ; fi
3553 # Extract the first word of "cpio", so it can be a program name with args.
3554 set dummy cpio; ac_word=$2
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if test "${ac_cv_path_CPIO+set}" = set; then :
3558 $as_echo_n "(cached) " >&6
3559 else
3560 case $CPIO in
3561 [\\/]* | ?:[\\/]*)
3562 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
3563 ;;
3564 *)
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3567 do
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 break 2
3575 fi
3576 done
3577 done
3578 IFS=$as_save_IFS
3580 ;;
3581 esac
3582 fi
3583 CPIO=$ac_cv_path_CPIO
3584 if test -n "$CPIO"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
3586 $as_echo "$CPIO" >&6; }
3587 else
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3590 fi
3594 # Test that variable CPIO is not empty.
3595 if test "" = "$CPIO"; then as_fn_error $? "Could not find cpio !" "$LINENO" 5 ; fi
3597 # Extract the first word of "cut", so it can be a program name with args.
3598 set dummy cut; ac_word=$2
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600 $as_echo_n "checking for $ac_word... " >&6; }
3601 if test "${ac_cv_path_CUT+set}" = set; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 case $CUT in
3605 [\\/]* | ?:[\\/]*)
3606 ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
3607 ;;
3608 *)
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3611 do
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3619 fi
3620 done
3621 done
3622 IFS=$as_save_IFS
3624 ;;
3625 esac
3626 fi
3627 CUT=$ac_cv_path_CUT
3628 if test -n "$CUT"; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
3630 $as_echo "$CUT" >&6; }
3631 else
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3634 fi
3638 # Test that variable CUT is not empty.
3639 if test "" = "$CUT"; then as_fn_error $? "Could not find cut !" "$LINENO" 5 ; fi
3641 # Extract the first word of "date", so it can be a program name with args.
3642 set dummy date; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if test "${ac_cv_path_DATE+set}" = set; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 case $DATE in
3649 [\\/]* | ?:[\\/]*)
3650 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
3651 ;;
3652 *)
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3655 do
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3660 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
3661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 break 2
3663 fi
3664 done
3665 done
3666 IFS=$as_save_IFS
3668 ;;
3669 esac
3670 fi
3671 DATE=$ac_cv_path_DATE
3672 if test -n "$DATE"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
3674 $as_echo "$DATE" >&6; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3678 fi
3682 # Test that variable DATE is not empty.
3683 if test "" = "$DATE"; then as_fn_error $? "Could not find date !" "$LINENO" 5 ; fi
3685 # Extract the first word of "df", so it can be a program name with args.
3686 set dummy df; ac_word=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if test "${ac_cv_path_DF+set}" = set; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 case $DF in
3693 [\\/]* | ?:[\\/]*)
3694 ac_cv_path_DF="$DF" # Let the user override the test with a path.
3695 ;;
3696 *)
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3707 fi
3708 done
3709 done
3710 IFS=$as_save_IFS
3712 ;;
3713 esac
3714 fi
3715 DF=$ac_cv_path_DF
3716 if test -n "$DF"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
3718 $as_echo "$DF" >&6; }
3719 else
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3722 fi
3726 # Test that variable DF is not empty.
3727 if test "" = "$DF"; then as_fn_error $? "Could not find df !" "$LINENO" 5 ; fi
3729 # Extract the first word of "diff", so it can be a program name with args.
3730 set dummy diff; ac_word=$2
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if test "${ac_cv_path_DIFF+set}" = set; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 case $DIFF in
3737 [\\/]* | ?:[\\/]*)
3738 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
3739 ;;
3740 *)
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3751 fi
3752 done
3753 done
3754 IFS=$as_save_IFS
3756 ;;
3757 esac
3758 fi
3759 DIFF=$ac_cv_path_DIFF
3760 if test -n "$DIFF"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
3762 $as_echo "$DIFF" >&6; }
3763 else
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3766 fi
3770 # Test that variable DIFF is not empty.
3771 if test "" = "$DIFF"; then as_fn_error $? "Could not find diff !" "$LINENO" 5 ; fi
3773 # Warning echo is really, really unportable!!!!! Different
3774 # behaviour in bash and dash and in a lot of other shells!
3775 # Use printf for serious work!
3776 # Extract the first word of "echo", so it can be a program name with args.
3777 set dummy echo; ac_word=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if test "${ac_cv_path_ECHO+set}" = set; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 case $ECHO in
3784 [\\/]* | ?:[\\/]*)
3785 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3786 ;;
3787 *)
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3795 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 break 2
3798 fi
3799 done
3800 done
3801 IFS=$as_save_IFS
3803 ;;
3804 esac
3805 fi
3806 ECHO=$ac_cv_path_ECHO
3807 if test -n "$ECHO"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
3809 $as_echo "$ECHO" >&6; }
3810 else
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3813 fi
3817 # Test that variable ECHO is not empty.
3818 if test "" = "$ECHO"; then as_fn_error $? "Could not find echo !" "$LINENO" 5 ; fi
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3821 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3822 if test "${ac_cv_path_GREP+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
3824 else
3825 if test -z "$GREP"; then
3826 ac_path_GREP_found=false
3827 # Loop through the user's path and test for each of PROGNAME-LIST
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3830 do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_prog in grep ggrep; do
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3836 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3837 # Check for GNU ac_path_GREP and select it if it is found.
3838 # Check for GNU $ac_path_GREP
3839 case `"$ac_path_GREP" --version 2>&1` in
3840 *GNU*)
3841 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3842 *)
3843 ac_count=0
3844 $as_echo_n 0123456789 >"conftest.in"
3845 while :
3846 do
3847 cat "conftest.in" "conftest.in" >"conftest.tmp"
3848 mv "conftest.tmp" "conftest.in"
3849 cp "conftest.in" "conftest.nl"
3850 $as_echo 'GREP' >> "conftest.nl"
3851 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3852 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3853 as_fn_arith $ac_count + 1 && ac_count=$as_val
3854 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3855 # Best one so far, save it but keep looking for a better one
3856 ac_cv_path_GREP="$ac_path_GREP"
3857 ac_path_GREP_max=$ac_count
3858 fi
3859 # 10*(2^10) chars as input seems more than enough
3860 test $ac_count -gt 10 && break
3861 done
3862 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3863 esac
3865 $ac_path_GREP_found && break 3
3866 done
3867 done
3868 done
3869 IFS=$as_save_IFS
3870 if test -z "$ac_cv_path_GREP"; then
3871 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3872 fi
3873 else
3874 ac_cv_path_GREP=$GREP
3875 fi
3877 fi
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3879 $as_echo "$ac_cv_path_GREP" >&6; }
3880 GREP="$ac_cv_path_GREP"
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3884 $as_echo_n "checking for egrep... " >&6; }
3885 if test "${ac_cv_path_EGREP+set}" = set; then :
3886 $as_echo_n "(cached) " >&6
3887 else
3888 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3889 then ac_cv_path_EGREP="$GREP -E"
3890 else
3891 if test -z "$EGREP"; then
3892 ac_path_EGREP_found=false
3893 # Loop through the user's path and test for each of PROGNAME-LIST
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3896 do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_prog in egrep; do
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3902 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3903 # Check for GNU ac_path_EGREP and select it if it is found.
3904 # Check for GNU $ac_path_EGREP
3905 case `"$ac_path_EGREP" --version 2>&1` in
3906 *GNU*)
3907 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3908 *)
3909 ac_count=0
3910 $as_echo_n 0123456789 >"conftest.in"
3911 while :
3912 do
3913 cat "conftest.in" "conftest.in" >"conftest.tmp"
3914 mv "conftest.tmp" "conftest.in"
3915 cp "conftest.in" "conftest.nl"
3916 $as_echo 'EGREP' >> "conftest.nl"
3917 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3919 as_fn_arith $ac_count + 1 && ac_count=$as_val
3920 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3921 # Best one so far, save it but keep looking for a better one
3922 ac_cv_path_EGREP="$ac_path_EGREP"
3923 ac_path_EGREP_max=$ac_count
3924 fi
3925 # 10*(2^10) chars as input seems more than enough
3926 test $ac_count -gt 10 && break
3927 done
3928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3929 esac
3931 $ac_path_EGREP_found && break 3
3932 done
3933 done
3934 done
3935 IFS=$as_save_IFS
3936 if test -z "$ac_cv_path_EGREP"; then
3937 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3938 fi
3939 else
3940 ac_cv_path_EGREP=$EGREP
3941 fi
3943 fi
3944 fi
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3946 $as_echo "$ac_cv_path_EGREP" >&6; }
3947 EGREP="$ac_cv_path_EGREP"
3951 # Test that variable EGREP is not empty.
3952 if test "" = "$EGREP"; then as_fn_error $? "Could not find egrep !" "$LINENO" 5 ; fi
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3955 $as_echo_n "checking for fgrep... " >&6; }
3956 if test "${ac_cv_path_FGREP+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3960 then ac_cv_path_FGREP="$GREP -F"
3961 else
3962 if test -z "$FGREP"; then
3963 ac_path_FGREP_found=false
3964 # Loop through the user's path and test for each of PROGNAME-LIST
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3967 do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
3970 for ac_prog in fgrep; do
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3973 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3974 # Check for GNU ac_path_FGREP and select it if it is found.
3975 # Check for GNU $ac_path_FGREP
3976 case `"$ac_path_FGREP" --version 2>&1` in
3977 *GNU*)
3978 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3979 *)
3980 ac_count=0
3981 $as_echo_n 0123456789 >"conftest.in"
3982 while :
3983 do
3984 cat "conftest.in" "conftest.in" >"conftest.tmp"
3985 mv "conftest.tmp" "conftest.in"
3986 cp "conftest.in" "conftest.nl"
3987 $as_echo 'FGREP' >> "conftest.nl"
3988 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3990 as_fn_arith $ac_count + 1 && ac_count=$as_val
3991 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3992 # Best one so far, save it but keep looking for a better one
3993 ac_cv_path_FGREP="$ac_path_FGREP"
3994 ac_path_FGREP_max=$ac_count
3995 fi
3996 # 10*(2^10) chars as input seems more than enough
3997 test $ac_count -gt 10 && break
3998 done
3999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4000 esac
4002 $ac_path_FGREP_found && break 3
4003 done
4004 done
4005 done
4006 IFS=$as_save_IFS
4007 if test -z "$ac_cv_path_FGREP"; then
4008 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4009 fi
4010 else
4011 ac_cv_path_FGREP=$FGREP
4012 fi
4014 fi
4015 fi
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4017 $as_echo "$ac_cv_path_FGREP" >&6; }
4018 FGREP="$ac_cv_path_FGREP"
4022 # Test that variable FGREP is not empty.
4023 if test "" = "$FGREP"; then as_fn_error $? "Could not find fgrep !" "$LINENO" 5 ; fi
4026 # Extract the first word of "find", so it can be a program name with args.
4027 set dummy find; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if test "${ac_cv_path_FIND+set}" = set; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 case $FIND in
4034 [\\/]* | ?:[\\/]*)
4035 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4036 ;;
4037 *)
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH
4040 do
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4045 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 break 2
4048 fi
4049 done
4050 done
4051 IFS=$as_save_IFS
4053 ;;
4054 esac
4055 fi
4056 FIND=$ac_cv_path_FIND
4057 if test -n "$FIND"; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
4059 $as_echo "$FIND" >&6; }
4060 else
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4063 fi
4067 # Test that variable FIND is not empty.
4068 if test "" = "$FIND"; then as_fn_error $? "Could not find find !" "$LINENO" 5 ; fi
4071 # Test if find supports -delete
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
4073 $as_echo_n "checking if find supports -delete... " >&6; }
4074 FIND_DELETE="-delete"
4076 DELETEDIR=`mktemp -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
4078 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
4080 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
4081 if test -f $DELETEDIR/TestIfFindSupportsDelete; then
4082 # No, it does not.
4083 rm $DELETEDIR/TestIfFindSupportsDelete
4084 FIND_DELETE="-exec rm \{\} \+"
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4087 else
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4089 $as_echo "yes" >&6; }
4090 fi
4091 rmdir $DELETEDIR
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4096 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4097 if test "${ac_cv_path_GREP+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 if test -z "$GREP"; then
4101 ac_path_GREP_found=false
4102 # Loop through the user's path and test for each of PROGNAME-LIST
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4105 do
4106 IFS=$as_save_IFS
4107 test -z "$as_dir" && as_dir=.
4108 for ac_prog in grep ggrep; do
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4111 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4112 # Check for GNU ac_path_GREP and select it if it is found.
4113 # Check for GNU $ac_path_GREP
4114 case `"$ac_path_GREP" --version 2>&1` in
4115 *GNU*)
4116 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4117 *)
4118 ac_count=0
4119 $as_echo_n 0123456789 >"conftest.in"
4120 while :
4121 do
4122 cat "conftest.in" "conftest.in" >"conftest.tmp"
4123 mv "conftest.tmp" "conftest.in"
4124 cp "conftest.in" "conftest.nl"
4125 $as_echo 'GREP' >> "conftest.nl"
4126 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4128 as_fn_arith $ac_count + 1 && ac_count=$as_val
4129 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4130 # Best one so far, save it but keep looking for a better one
4131 ac_cv_path_GREP="$ac_path_GREP"
4132 ac_path_GREP_max=$ac_count
4133 fi
4134 # 10*(2^10) chars as input seems more than enough
4135 test $ac_count -gt 10 && break
4136 done
4137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4138 esac
4140 $ac_path_GREP_found && break 3
4141 done
4142 done
4143 done
4144 IFS=$as_save_IFS
4145 if test -z "$ac_cv_path_GREP"; then
4146 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4147 fi
4148 else
4149 ac_cv_path_GREP=$GREP
4150 fi
4152 fi
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4154 $as_echo "$ac_cv_path_GREP" >&6; }
4155 GREP="$ac_cv_path_GREP"
4159 # Test that variable GREP is not empty.
4160 if test "" = "$GREP"; then as_fn_error $? "Could not find grep !" "$LINENO" 5 ; fi
4162 # Extract the first word of "head", so it can be a program name with args.
4163 set dummy head; ac_word=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if test "${ac_cv_path_HEAD+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 case $HEAD in
4170 [\\/]* | ?:[\\/]*)
4171 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
4172 ;;
4173 *)
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4176 do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4184 fi
4185 done
4186 done
4187 IFS=$as_save_IFS
4189 ;;
4190 esac
4191 fi
4192 HEAD=$ac_cv_path_HEAD
4193 if test -n "$HEAD"; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
4195 $as_echo "$HEAD" >&6; }
4196 else
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4199 fi
4203 # Test that variable HEAD is not empty.
4204 if test "" = "$HEAD"; then as_fn_error $? "Could not find head !" "$LINENO" 5 ; fi
4206 # Extract the first word of "ln", so it can be a program name with args.
4207 set dummy ln; ac_word=$2
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4209 $as_echo_n "checking for $ac_word... " >&6; }
4210 if test "${ac_cv_path_LN+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 case $LN in
4214 [\\/]* | ?:[\\/]*)
4215 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4216 ;;
4217 *)
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4220 do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4225 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 break 2
4228 fi
4229 done
4230 done
4231 IFS=$as_save_IFS
4233 ;;
4234 esac
4235 fi
4236 LN=$ac_cv_path_LN
4237 if test -n "$LN"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4239 $as_echo "$LN" >&6; }
4240 else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4243 fi
4247 # Test that variable LN is not empty.
4248 if test "" = "$LN"; then as_fn_error $? "Could not find ln !" "$LINENO" 5 ; fi
4250 # Extract the first word of "ls", so it can be a program name with args.
4251 set dummy ls; ac_word=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if test "${ac_cv_path_LS+set}" = set; then :
4255 $as_echo_n "(cached) " >&6
4256 else
4257 case $LS in
4258 [\\/]* | ?:[\\/]*)
4259 ac_cv_path_LS="$LS" # Let the user override the test with a path.
4260 ;;
4261 *)
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4264 do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4269 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
4270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 break 2
4272 fi
4273 done
4274 done
4275 IFS=$as_save_IFS
4277 ;;
4278 esac
4279 fi
4280 LS=$ac_cv_path_LS
4281 if test -n "$LS"; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
4283 $as_echo "$LS" >&6; }
4284 else
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4287 fi
4291 # Test that variable LS is not empty.
4292 if test "" = "$LS"; then as_fn_error $? "Could not find ls !" "$LINENO" 5 ; fi
4294 for ac_prog in gmake make
4295 do
4296 # Extract the first word of "$ac_prog", so it can be a program name with args.
4297 set dummy $ac_prog; ac_word=$2
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299 $as_echo_n "checking for $ac_word... " >&6; }
4300 if test "${ac_cv_path_MAKE+set}" = set; then :
4301 $as_echo_n "(cached) " >&6
4302 else
4303 case $MAKE in
4304 [\\/]* | ?:[\\/]*)
4305 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4306 ;;
4307 *)
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH
4310 do
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4315 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 break 2
4318 fi
4319 done
4320 done
4321 IFS=$as_save_IFS
4323 ;;
4324 esac
4325 fi
4326 MAKE=$ac_cv_path_MAKE
4327 if test -n "$MAKE"; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4329 $as_echo "$MAKE" >&6; }
4330 else
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4333 fi
4336 test -n "$MAKE" && break
4337 done
4340 # Test that variable MAKE is not empty.
4341 if test "" = "$MAKE"; then as_fn_error $? "Could not find make !" "$LINENO" 5 ; fi
4343 MAKE_VERSION=`$MAKE --version | head -n 1 | grep '3.8[12346789]'`
4344 if test "x$MAKE_VERSION" = x; then
4345 as_fn_error $? "You must use GNU make 3.81 or newer! Please put it in the path." "$LINENO" 5
4346 fi
4347 # Extract the first word of "mkdir", so it can be a program name with args.
4348 set dummy mkdir; ac_word=$2
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350 $as_echo_n "checking for $ac_word... " >&6; }
4351 if test "${ac_cv_path_MKDIR+set}" = set; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 case $MKDIR in
4355 [\\/]* | ?:[\\/]*)
4356 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4357 ;;
4358 *)
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4361 do
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4369 fi
4370 done
4371 done
4372 IFS=$as_save_IFS
4374 ;;
4375 esac
4376 fi
4377 MKDIR=$ac_cv_path_MKDIR
4378 if test -n "$MKDIR"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4380 $as_echo "$MKDIR" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4384 fi
4388 # Test that variable MKDIR is not empty.
4389 if test "" = "$MKDIR"; then as_fn_error $? "Could not find mkdir !" "$LINENO" 5 ; fi
4391 # Extract the first word of "mv", so it can be a program name with args.
4392 set dummy mv; ac_word=$2
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 $as_echo_n "checking for $ac_word... " >&6; }
4395 if test "${ac_cv_path_MV+set}" = set; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 case $MV in
4399 [\\/]* | ?:[\\/]*)
4400 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4401 ;;
4402 *)
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414 done
4415 done
4416 IFS=$as_save_IFS
4418 ;;
4419 esac
4420 fi
4421 MV=$ac_cv_path_MV
4422 if test -n "$MV"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4424 $as_echo "$MV" >&6; }
4425 else
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4428 fi
4432 # Test that variable MV is not empty.
4433 if test "" = "$MV"; then as_fn_error $? "Could not find mv !" "$LINENO" 5 ; fi
4435 for ac_prog in nawk gawk awk
4436 do
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy $ac_prog; ac_word=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if test "${ac_cv_path_NAWK+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 case $NAWK in
4445 [\\/]* | ?:[\\/]*)
4446 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
4447 ;;
4448 *)
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4451 do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4459 fi
4460 done
4461 done
4462 IFS=$as_save_IFS
4464 ;;
4465 esac
4466 fi
4467 NAWK=$ac_cv_path_NAWK
4468 if test -n "$NAWK"; then
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
4470 $as_echo "$NAWK" >&6; }
4471 else
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4474 fi
4477 test -n "$NAWK" && break
4478 done
4481 # Test that variable NAWK is not empty.
4482 if test "" = "$NAWK"; then as_fn_error $? "Could not find nawk !" "$LINENO" 5 ; fi
4484 # Extract the first word of "printf", so it can be a program name with args.
4485 set dummy printf; ac_word=$2
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487 $as_echo_n "checking for $ac_word... " >&6; }
4488 if test "${ac_cv_path_PRINTF+set}" = set; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 case $PRINTF in
4492 [\\/]* | ?:[\\/]*)
4493 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
4494 ;;
4495 *)
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4498 do
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
4504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 break 2
4506 fi
4507 done
4508 done
4509 IFS=$as_save_IFS
4511 ;;
4512 esac
4513 fi
4514 PRINTF=$ac_cv_path_PRINTF
4515 if test -n "$PRINTF"; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
4517 $as_echo "$PRINTF" >&6; }
4518 else
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520 $as_echo "no" >&6; }
4521 fi
4525 # Test that variable PRINTF is not empty.
4526 if test "" = "$PRINTF"; then as_fn_error $? "Could not find printf !" "$LINENO" 5 ; fi
4528 # Extract the first word of "pwd", so it can be a program name with args.
4529 set dummy pwd; ac_word=$2
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531 $as_echo_n "checking for $ac_word... " >&6; }
4532 if test "${ac_cv_path_THEPWDCMD+set}" = set; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 case $THEPWDCMD in
4536 [\\/]* | ?:[\\/]*)
4537 ac_cv_path_THEPWDCMD="$THEPWDCMD" # Let the user override the test with a path.
4538 ;;
4539 *)
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4542 do
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547 ac_cv_path_THEPWDCMD="$as_dir/$ac_word$ac_exec_ext"
4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 break 2
4550 fi
4551 done
4552 done
4553 IFS=$as_save_IFS
4555 ;;
4556 esac
4557 fi
4558 THEPWDCMD=$ac_cv_path_THEPWDCMD
4559 if test -n "$THEPWDCMD"; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THEPWDCMD" >&5
4561 $as_echo "$THEPWDCMD" >&6; }
4562 else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564 $as_echo "no" >&6; }
4565 fi
4568 # Extract the first word of "rm", so it can be a program name with args.
4569 set dummy rm; ac_word=$2
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4571 $as_echo_n "checking for $ac_word... " >&6; }
4572 if test "${ac_cv_path_RM+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 case $RM in
4576 [\\/]* | ?:[\\/]*)
4577 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4578 ;;
4579 *)
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591 done
4592 done
4593 IFS=$as_save_IFS
4595 ;;
4596 esac
4597 fi
4598 RM=$ac_cv_path_RM
4599 if test -n "$RM"; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4601 $as_echo "$RM" >&6; }
4602 else
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4605 fi
4609 # Test that variable RM is not empty.
4610 if test "" = "$RM"; then as_fn_error $? "Could not find rm !" "$LINENO" 5 ; fi
4612 RM="$RM -f"
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4614 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4615 if test "${ac_cv_path_SED+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4619 for ac_i in 1 2 3 4 5 6 7; do
4620 ac_script="$ac_script$as_nl$ac_script"
4621 done
4622 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4623 { ac_script=; unset ac_script;}
4624 if test -z "$SED"; then
4625 ac_path_SED_found=false
4626 # Loop through the user's path and test for each of PROGNAME-LIST
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4629 do
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_prog in sed gsed; do
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4635 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4636 # Check for GNU ac_path_SED and select it if it is found.
4637 # Check for GNU $ac_path_SED
4638 case `"$ac_path_SED" --version 2>&1` in
4639 *GNU*)
4640 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4641 *)
4642 ac_count=0
4643 $as_echo_n 0123456789 >"conftest.in"
4644 while :
4645 do
4646 cat "conftest.in" "conftest.in" >"conftest.tmp"
4647 mv "conftest.tmp" "conftest.in"
4648 cp "conftest.in" "conftest.nl"
4649 $as_echo '' >> "conftest.nl"
4650 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4652 as_fn_arith $ac_count + 1 && ac_count=$as_val
4653 if test $ac_count -gt ${ac_path_SED_max-0}; then
4654 # Best one so far, save it but keep looking for a better one
4655 ac_cv_path_SED="$ac_path_SED"
4656 ac_path_SED_max=$ac_count
4657 fi
4658 # 10*(2^10) chars as input seems more than enough
4659 test $ac_count -gt 10 && break
4660 done
4661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4662 esac
4664 $ac_path_SED_found && break 3
4665 done
4666 done
4667 done
4668 IFS=$as_save_IFS
4669 if test -z "$ac_cv_path_SED"; then
4670 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4671 fi
4672 else
4673 ac_cv_path_SED=$SED
4674 fi
4676 fi
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4678 $as_echo "$ac_cv_path_SED" >&6; }
4679 SED="$ac_cv_path_SED"
4680 rm -f conftest.sed
4683 # Test that variable SED is not empty.
4684 if test "" = "$SED"; then as_fn_error $? "Could not find sed !" "$LINENO" 5 ; fi
4686 # Extract the first word of "sh", so it can be a program name with args.
4687 set dummy sh; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if test "${ac_cv_path_SH+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 case $SH in
4694 [\\/]* | ?:[\\/]*)
4695 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4696 ;;
4697 *)
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709 done
4710 done
4711 IFS=$as_save_IFS
4713 ;;
4714 esac
4715 fi
4716 SH=$ac_cv_path_SH
4717 if test -n "$SH"; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4719 $as_echo "$SH" >&6; }
4720 else
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4723 fi
4727 # Test that variable SH is not empty.
4728 if test "" = "$SH"; then as_fn_error $? "Could not find sh !" "$LINENO" 5 ; fi
4730 # Extract the first word of "sort", so it can be a program name with args.
4731 set dummy sort; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if test "${ac_cv_path_SORT+set}" = set; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 case $SORT in
4738 [\\/]* | ?:[\\/]*)
4739 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
4740 ;;
4741 *)
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4744 do
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4752 fi
4753 done
4754 done
4755 IFS=$as_save_IFS
4757 ;;
4758 esac
4759 fi
4760 SORT=$ac_cv_path_SORT
4761 if test -n "$SORT"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4763 $as_echo "$SORT" >&6; }
4764 else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4767 fi
4771 # Test that variable SORT is not empty.
4772 if test "" = "$SORT"; then as_fn_error $? "Could not find sort !" "$LINENO" 5 ; fi
4774 # Extract the first word of "tar", so it can be a program name with args.
4775 set dummy tar; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_path_TAR+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 case $TAR in
4782 [\\/]* | ?:[\\/]*)
4783 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4784 ;;
4785 *)
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4796 fi
4797 done
4798 done
4799 IFS=$as_save_IFS
4801 ;;
4802 esac
4803 fi
4804 TAR=$ac_cv_path_TAR
4805 if test -n "$TAR"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4807 $as_echo "$TAR" >&6; }
4808 else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4811 fi
4815 # Test that variable TAR is not empty.
4816 if test "" = "$TAR"; then as_fn_error $? "Could not find tar !" "$LINENO" 5 ; fi
4818 # Extract the first word of "tail", so it can be a program name with args.
4819 set dummy tail; ac_word=$2
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821 $as_echo_n "checking for $ac_word... " >&6; }
4822 if test "${ac_cv_path_TAIL+set}" = set; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 case $TAIL in
4826 [\\/]* | ?:[\\/]*)
4827 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
4828 ;;
4829 *)
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841 done
4842 done
4843 IFS=$as_save_IFS
4845 ;;
4846 esac
4847 fi
4848 TAIL=$ac_cv_path_TAIL
4849 if test -n "$TAIL"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
4851 $as_echo "$TAIL" >&6; }
4852 else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4855 fi
4859 # Test that variable TAIL is not empty.
4860 if test "" = "$TAIL"; then as_fn_error $? "Could not find tail !" "$LINENO" 5 ; fi
4862 # Extract the first word of "tee", so it can be a program name with args.
4863 set dummy tee; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if test "${ac_cv_path_TEE+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 case $TEE in
4870 [\\/]* | ?:[\\/]*)
4871 ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
4872 ;;
4873 *)
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4884 fi
4885 done
4886 done
4887 IFS=$as_save_IFS
4889 ;;
4890 esac
4891 fi
4892 TEE=$ac_cv_path_TEE
4893 if test -n "$TEE"; then
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
4895 $as_echo "$TEE" >&6; }
4896 else
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4899 fi
4903 # Test that variable TEE is not empty.
4904 if test "" = "$TEE"; then as_fn_error $? "Could not find tee !" "$LINENO" 5 ; fi
4906 # Extract the first word of "tr", so it can be a program name with args.
4907 set dummy tr; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_path_TR+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 case $TR in
4914 [\\/]* | ?:[\\/]*)
4915 ac_cv_path_TR="$TR" # Let the user override the test with a path.
4916 ;;
4917 *)
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4920 do
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4928 fi
4929 done
4930 done
4931 IFS=$as_save_IFS
4933 ;;
4934 esac
4935 fi
4936 TR=$ac_cv_path_TR
4937 if test -n "$TR"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
4939 $as_echo "$TR" >&6; }
4940 else
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4943 fi
4947 # Test that variable TR is not empty.
4948 if test "" = "$TR"; then as_fn_error $? "Could not find tr !" "$LINENO" 5 ; fi
4950 # Extract the first word of "touch", so it can be a program name with args.
4951 set dummy touch; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if test "${ac_cv_path_TOUCH+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 case $TOUCH in
4958 [\\/]* | ?:[\\/]*)
4959 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
4960 ;;
4961 *)
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4964 do
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4972 fi
4973 done
4974 done
4975 IFS=$as_save_IFS
4977 ;;
4978 esac
4979 fi
4980 TOUCH=$ac_cv_path_TOUCH
4981 if test -n "$TOUCH"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4983 $as_echo "$TOUCH" >&6; }
4984 else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4987 fi
4991 # Test that variable TOUCH is not empty.
4992 if test "" = "$TOUCH"; then as_fn_error $? "Could not find touch !" "$LINENO" 5 ; fi
4994 # Extract the first word of "wc", so it can be a program name with args.
4995 set dummy wc; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if test "${ac_cv_path_WC+set}" = set; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 case $WC in
5002 [\\/]* | ?:[\\/]*)
5003 ac_cv_path_WC="$WC" # Let the user override the test with a path.
5004 ;;
5005 *)
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 break 2
5016 fi
5017 done
5018 done
5019 IFS=$as_save_IFS
5021 ;;
5022 esac
5023 fi
5024 WC=$ac_cv_path_WC
5025 if test -n "$WC"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
5027 $as_echo "$WC" >&6; }
5028 else
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 $as_echo "no" >&6; }
5031 fi
5035 # Test that variable WC is not empty.
5036 if test "" = "$WC"; then as_fn_error $? "Could not find wc !" "$LINENO" 5 ; fi
5038 # Extract the first word of "xargs", so it can be a program name with args.
5039 set dummy xargs; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if test "${ac_cv_path_XARGS+set}" = set; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 case $XARGS in
5046 [\\/]* | ?:[\\/]*)
5047 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
5048 ;;
5049 *)
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5060 fi
5061 done
5062 done
5063 IFS=$as_save_IFS
5065 ;;
5066 esac
5067 fi
5068 XARGS=$ac_cv_path_XARGS
5069 if test -n "$XARGS"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
5071 $as_echo "$XARGS" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5075 fi
5079 # Test that variable XARGS is not empty.
5080 if test "" = "$XARGS"; then as_fn_error $? "Could not find xargs !" "$LINENO" 5 ; fi
5082 # Extract the first word of "zip", so it can be a program name with args.
5083 set dummy zip; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if test "${ac_cv_path_ZIP+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 case $ZIP in
5090 [\\/]* | ?:[\\/]*)
5091 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5092 ;;
5093 *)
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5096 do
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5104 fi
5105 done
5106 done
5107 IFS=$as_save_IFS
5109 ;;
5110 esac
5111 fi
5112 ZIP=$ac_cv_path_ZIP
5113 if test -n "$ZIP"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5115 $as_echo "$ZIP" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119 fi
5123 # Test that variable ZIP is not empty.
5124 if test "" = "$ZIP"; then as_fn_error $? "Could not find zip !" "$LINENO" 5 ; fi
5126 # Extract the first word of "unzip", so it can be a program name with args.
5127 set dummy unzip; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if test "${ac_cv_path_UNZIP+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 case $UNZIP in
5134 [\\/]* | ?:[\\/]*)
5135 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5136 ;;
5137 *)
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5140 do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5145 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 break 2
5148 fi
5149 done
5150 done
5151 IFS=$as_save_IFS
5153 ;;
5154 esac
5155 fi
5156 UNZIP=$ac_cv_path_UNZIP
5157 if test -n "$UNZIP"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5159 $as_echo "$UNZIP" >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5163 fi
5167 # Test that variable UNZIP is not empty.
5168 if test "" = "$UNZIP"; then as_fn_error $? "Could not find unzip !" "$LINENO" 5 ; fi
5170 # Extract the first word of "ldd", so it can be a program name with args.
5171 set dummy ldd; ac_word=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if test "${ac_cv_path_LDD+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 case $LDD in
5178 [\\/]* | ?:[\\/]*)
5179 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
5180 ;;
5181 *)
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5192 fi
5193 done
5194 done
5195 IFS=$as_save_IFS
5197 ;;
5198 esac
5199 fi
5200 LDD=$ac_cv_path_LDD
5201 if test -n "$LDD"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
5203 $as_echo "$LDD" >&6; }
5204 else
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5207 fi
5210 if test "x$LDD" = "x"; then
5211 # List shared lib dependencies is used for
5212 # debug output and checking for forbidden dependencies.
5213 # We can build without it.
5214 LDD="true"
5215 fi
5216 # Extract the first word of "otool", so it can be a program name with args.
5217 set dummy otool; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if test "${ac_cv_path_OTOOL+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 case $OTOOL in
5224 [\\/]* | ?:[\\/]*)
5225 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
5226 ;;
5227 *)
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5238 fi
5239 done
5240 done
5241 IFS=$as_save_IFS
5243 ;;
5244 esac
5245 fi
5246 OTOOL=$ac_cv_path_OTOOL
5247 if test -n "$OTOOL"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5249 $as_echo "$OTOOL" >&6; }
5250 else
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5253 fi
5256 if test "x$OTOOL" = "x"; then
5257 OTOOL="true"
5258 fi
5259 # Extract the first word of "readelf", so it can be a program name with args.
5260 set dummy readelf; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if test "${ac_cv_path_READELF+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 case $READELF in
5267 [\\/]* | ?:[\\/]*)
5268 ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
5269 ;;
5270 *)
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5278 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282 done
5283 done
5284 IFS=$as_save_IFS
5286 ;;
5287 esac
5288 fi
5289 READELF=$ac_cv_path_READELF
5290 if test -n "$READELF"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
5292 $as_echo "$READELF" >&6; }
5293 else
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5296 fi
5299 # Extract the first word of "expr", so it can be a program name with args.
5300 set dummy expr; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if test "${ac_cv_path_EXPR+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 case $EXPR in
5307 [\\/]* | ?:[\\/]*)
5308 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
5309 ;;
5310 *)
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5313 do
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5318 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
5319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 break 2
5321 fi
5322 done
5323 done
5324 IFS=$as_save_IFS
5326 ;;
5327 esac
5328 fi
5329 EXPR=$ac_cv_path_EXPR
5330 if test -n "$EXPR"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
5332 $as_echo "$EXPR" >&6; }
5333 else
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5336 fi
5340 # Test that variable EXPR is not empty.
5341 if test "" = "$EXPR"; then as_fn_error $? "Could not find expr !" "$LINENO" 5 ; fi
5343 # Extract the first word of "file", so it can be a program name with args.
5344 set dummy file; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if test "${ac_cv_path_FILE+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 case $FILE in
5351 [\\/]* | ?:[\\/]*)
5352 ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
5353 ;;
5354 *)
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5365 fi
5366 done
5367 done
5368 IFS=$as_save_IFS
5370 ;;
5371 esac
5372 fi
5373 FILE=$ac_cv_path_FILE
5374 if test -n "$FILE"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
5376 $as_echo "$FILE" >&6; }
5377 else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5380 fi
5384 # Test that variable FILE is not empty.
5385 if test "" = "$FILE"; then as_fn_error $? "Could not find file !" "$LINENO" 5 ; fi
5387 # Figure out the build and host system.
5388 # Make sure we can run config.sub.
5389 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5390 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5393 $as_echo_n "checking build system type... " >&6; }
5394 if test "${ac_cv_build+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 ac_build_alias=$build_alias
5398 test "x$ac_build_alias" = x &&
5399 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5400 test "x$ac_build_alias" = x &&
5401 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5402 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5403 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5405 fi
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5407 $as_echo "$ac_cv_build" >&6; }
5408 case $ac_cv_build in
5409 *-*-*) ;;
5410 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5411 esac
5412 build=$ac_cv_build
5413 ac_save_IFS=$IFS; IFS='-'
5414 set x $ac_cv_build
5415 shift
5416 build_cpu=$1
5417 build_vendor=$2
5418 shift; shift
5419 # Remember, the first character of IFS is used to create $*,
5420 # except with old shells:
5421 build_os=$*
5422 IFS=$ac_save_IFS
5423 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5427 $as_echo_n "checking host system type... " >&6; }
5428 if test "${ac_cv_host+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 if test "x$host_alias" = x; then
5432 ac_cv_host=$ac_cv_build
5433 else
5434 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5435 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5436 fi
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5440 $as_echo "$ac_cv_host" >&6; }
5441 case $ac_cv_host in
5442 *-*-*) ;;
5443 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5444 esac
5445 host=$ac_cv_host
5446 ac_save_IFS=$IFS; IFS='-'
5447 set x $ac_cv_host
5448 shift
5449 host_cpu=$1
5450 host_vendor=$2
5451 shift; shift
5452 # Remember, the first character of IFS is used to create $*,
5453 # except with old shells:
5454 host_os=$*
5455 IFS=$ac_save_IFS
5456 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5461 # Check whether --with-data-model was given.
5462 if test "${with_data_model+set}" = set; then :
5463 withval=$with_data_model;
5464 fi
5467 if test "x$with_data_model" != x && \
5468 test "x$with_data_model" != x32 && \
5469 test "x$with_data_model" != x64 ; then
5470 as_fn_error $? "The data model can only be 32 or 64!" "$LINENO" 5
5471 fi
5472 # Translate the standard cpu-vendor-kernel-os quadruplets into
5473 # the new HOST_.... and BUILD_... and the legacy names used by
5474 # the openjdk build.
5475 # It uses $host_os $host_cpu $build_os $build_cpu and $with_data_model
5477 # Expects $host_os $host_cpu $build_os and $build_cpu
5478 # and $with_data_model to have been setup!
5479 #
5480 # Translate the standard triplet(quadruplet) definition
5481 # of the host/build system into
5482 # HOST_OS=aix,bsd,hpux,linux,macosx,solaris,windows
5483 # HOST_OS_FAMILY=bsd,gnu,sysv,win32,wince
5484 # HOST_OS_API=posix,winapi
5485 #
5486 # HOST_CPU=ia32,x64,sparc,sparcv9,arm,arm64,ppc,ppc64
5487 # HOST_CPU_ARCH=x86,sparc,pcc,arm
5488 # HOST_CPU_BITS=32,64
5489 # HOST_CPU_ENDIAN=big,little
5490 #
5491 # The same values are setup for BUILD_...
5492 #
5493 # And the legacy variables, for controlling the old makefiles.
5494 # LEGACY_HOST_CPU1=i586,amd64,sparc,sparcv9,arm,arm64...
5495 # LEGACY_HOST_CPU2=i386,amd64,sparc,sparcv9,arm,arm64...
5496 # LEGACY_HOST_CPU3=sparcv9,amd64 (but only on solaris)
5497 # LEGACY_HOST_OS_API=solaris,windows
5498 #
5499 # We also copy the autoconf trip/quadruplet
5500 # verbatim to HOST and BUILD
5501 HOST=${host}
5503 BUILD=${build}
5508 case "$host_os" in
5509 *linux*)
5510 VAR_OS=linux
5511 VAR_OS_API=posix
5512 VAR_OS_FAMILY=gnu
5513 ;;
5514 *solaris*)
5515 VAR_OS=solaris
5516 VAR_OS_API=posix
5517 VAR_OS_FAMILY=sysv
5518 ;;
5519 *darwin*)
5520 VAR_OS=macosx
5521 VAR_OS_API=posix
5522 VAR_OS_FAMILY=bsd
5523 ;;
5524 *bsd*)
5525 VAR_OS=bsd
5526 VAR_OS_API=posix
5527 VAR_OS_FAMILY=bsd
5528 ;;
5529 *cygwin*|*windows*)
5530 VAR_OS=windows
5531 VAR_OS_API=winapi
5532 VAR_OS_FAMILY=windows
5533 ;;
5534 *)
5535 as_fn_error $? "unsupported host operating system $host_os" "$LINENO" 5
5536 ;;
5537 esac
5539 HOST_OS="$VAR_OS"
5540 HOST_OS_FAMILY="$VAR_OS_FAMILY"
5541 HOST_OS_API="$VAR_OS_API"
5547 if test "x$HOST_OS_API" = xposix; then
5548 LEGACY_HOST_OS_API="solaris"
5549 fi
5550 if test "x$HOST_OS_API" = xwinapi; then
5551 LEGACY_HOST_OS_API="windows"
5552 fi
5557 # First argument is the cpu name from the trip/quad
5558 case "$host_cpu" in
5559 x86_64)
5560 VAR_CPU=x64
5561 VAR_CPU_ARCH=x86
5562 VAR_CPU_BITS=64
5563 VAR_CPU_ENDIAN=little
5564 VAR_LEGACY_CPU=amd64
5565 ;;
5566 i?86)
5567 VAR_CPU=ia32
5568 VAR_CPU_ARCH=x86
5569 VAR_CPU_BITS=32
5570 VAR_CPU_ENDIAN=little
5571 VAR_LEGACY_CPU=i586
5572 ;;
5573 alpha*)
5574 VAR_CPU=alpha
5575 VAR_CPU_ARCH=alpha
5576 VAR_CPU_BITS=64
5577 VAR_CPU_ENDIAN=big
5578 VAR_LEGACY_CPU=alpha
5579 ;;
5580 arm*)
5581 VAR_CPU=arm
5582 VAR_CPU_ARCH=arm
5583 VAR_CPU_BITS=3264
5584 VAR_CPU_ENDIAN=big
5585 VAR_LEGACY_CPU=arm
5586 ;;
5587 mips)
5588 VAR_CPU=mips
5589 VAR_CPU_ARCH=mips
5590 VAR_CPU_BITS=woot
5591 VAR_CPU_ENDIAN=woot
5592 VAR_LEGACY_CPU=mips
5593 ;;
5594 mipsel)
5595 VAR_CPU=mipsel
5596 VAR_CPU_ARCH=mips
5597 VAR_CPU_BITS=woot
5598 VAR_CPU_ENDIAN=woot
5599 VAR_LEGACY_CPU=mipsel
5600 ;;
5601 powerpc)
5602 VAR_CPU=ppc
5603 VAR_CPU_ARCH=ppc
5604 VAR_CPU_BITS=32
5605 VAR_CPU_ENDIAN=big
5606 VAR_LEGACY_CPU=ppc
5607 ;;
5608 powerpc64)
5609 VAR_CPU=ppc64
5610 VAR_CPU_ARCH=ppc
5611 VAR_CPU_BITS=64
5612 VAR_CPU_ENDIAN=32
5613 VAR_LEGACY_CPU=ppc64
5614 ;;
5615 sparc)
5616 VAR_CPU=sparc
5617 VAR_CPU_ARCH=sparc
5618 VAR_CPU_BITS=32
5619 VAR_CPU_ENDIAN=big
5620 VAR_LEGACY_CPU=sparc
5621 ;;
5622 sparc64)
5623 VAR_CPU=sparcv9
5624 VAR_CPU_ARCH=sparc
5625 VAR_CPU_BITS=64
5626 VAR_CPU_ENDIAN=big
5627 VAR_LEGACY_CPU=sparc_sparcv9
5628 ;;
5629 s390)
5630 VAR_CPU=s390
5631 VAR_CPU_ARCH=s390
5632 VAR_CPU_BITS=32
5633 VAR_CPU_ENDIAN=woot
5634 VAR_LEGACY_CPU=s390
5635 VAR_LEGACY_CPU=s390
5636 ;;
5637 s390x)
5638 VAR_CPU=s390x
5639 VAR_CPU_ARCH=s390
5640 VAR_CPU_BITS=64
5641 VAR_CPU_ENDIAN=woot
5642 VAR_LEGACY_CPU=s390x
5643 ;;
5644 *)
5645 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
5646 ;;
5647 esac
5649 # Workaround cygwin not knowing about 64 bit.
5650 if test "x$VAR_OS" = "xwindows"; then
5651 if test "x$PROCESSOR_IDENTIFIER" != "x"; then
5652 PROC_ARCH=`echo $PROCESSOR_IDENTIFIER | $CUT -f1 -d' '`
5653 case "$PROC_ARCH" in
5654 intel64|Intel64|INTEL64|em64t|EM64T|amd64|AMD64|8664|x86_64)
5655 VAR_CPU=x64
5656 VAR_CPU_BITS=64
5657 VAR_LEGACY_CPU=amd64
5658 ;;
5659 esac
5660 fi
5661 fi
5663 if test "x$VAR_CPU_ARCH" = "xx86"; then
5664 if test "x$with_data_model" = "x64"; then
5665 VAR_CPU=x64
5666 VAR_CPU_BITS=64
5667 VAR_LEGACY_CPU=amd64
5668 fi
5669 if test "x$with_data_model" = "x32"; then
5670 VAR_CPU=ia32
5671 VAR_CPU_BITS=32
5672 VAR_LEGACY_CPU=i586
5673 fi
5674 fi
5676 HOST_CPU="$VAR_CPU"
5677 HOST_CPU_ARCH="$VAR_CPU_ARCH"
5678 HOST_CPU_BITS="$VAR_CPU_BITS"
5679 HOST_CPU_ENDIAN="$VAR_CPU_ENDIAN"
5686 # Also store the legacy naming of the cpu.
5687 # Ie i586 and amd64 instead of ia32 and x64
5688 LEGACY_HOST_CPU1="$VAR_LEGACY_CPU"
5691 # And the second legacy naming of the cpu.
5692 # Ie i386 and amd64 instead of ia32 and x64.
5693 LEGACY_HOST_CPU2="$LEGACY_HOST_CPU1"
5694 if test "x$LEGACY_HOST_CPU1" = xi586; then
5695 LEGACY_HOST_CPU2=i386
5696 fi
5699 # And the third legacy naming of the cpu.
5700 # Ie only amd64 or sparcv9, used for the ISA_DIR on Solaris.
5701 LEGACY_HOST_CPU3=""
5702 if test "x$HOST_CPU" = xx64; then
5703 LEGACY_HOST_CPU3=amd64
5704 fi
5705 if test "x$HOST_CPU" = xsparcv9; then
5706 LEGACY_HOST_CPU3=sparvc9
5707 fi
5713 case "$build_os" in
5714 *linux*)
5715 VAR_OS=linux
5716 VAR_OS_API=posix
5717 VAR_OS_FAMILY=gnu
5718 ;;
5719 *solaris*)
5720 VAR_OS=solaris
5721 VAR_OS_API=posix
5722 VAR_OS_FAMILY=sysv
5723 ;;
5724 *darwin*)
5725 VAR_OS=macosx
5726 VAR_OS_API=posix
5727 VAR_OS_FAMILY=bsd
5728 ;;
5729 *bsd*)
5730 VAR_OS=bsd
5731 VAR_OS_API=posix
5732 VAR_OS_FAMILY=bsd
5733 ;;
5734 *cygwin*|*windows*)
5735 VAR_OS=windows
5736 VAR_OS_API=winapi
5737 VAR_OS_FAMILY=windows
5738 ;;
5739 *)
5740 as_fn_error $? "unsupported host operating system $build_os" "$LINENO" 5
5741 ;;
5742 esac
5744 BUILD_OS="$VAR_OS"
5745 BUILD_OS_FAMILY="$VAR_OS_FAMILY"
5746 BUILD_OS_API="$VAR_OS_API"
5752 if test "x$BUILD_OS_API" = xposix; then
5753 LEGACY_BUILD_OS_API="solaris"
5754 fi
5755 if test "x$BUILD_OS_API" = xwinapi; then
5756 LEGACY_BUILD_OS_API="windows"
5757 fi
5762 # First argument is the cpu name from the trip/quad
5763 case "$build_cpu" in
5764 x86_64)
5765 VAR_CPU=x64
5766 VAR_CPU_ARCH=x86
5767 VAR_CPU_BITS=64
5768 VAR_CPU_ENDIAN=little
5769 VAR_LEGACY_CPU=amd64
5770 ;;
5771 i?86)
5772 VAR_CPU=ia32
5773 VAR_CPU_ARCH=x86
5774 VAR_CPU_BITS=32
5775 VAR_CPU_ENDIAN=little
5776 VAR_LEGACY_CPU=i586
5777 ;;
5778 alpha*)
5779 VAR_CPU=alpha
5780 VAR_CPU_ARCH=alpha
5781 VAR_CPU_BITS=64
5782 VAR_CPU_ENDIAN=big
5783 VAR_LEGACY_CPU=alpha
5784 ;;
5785 arm*)
5786 VAR_CPU=arm
5787 VAR_CPU_ARCH=arm
5788 VAR_CPU_BITS=3264
5789 VAR_CPU_ENDIAN=big
5790 VAR_LEGACY_CPU=arm
5791 ;;
5792 mips)
5793 VAR_CPU=mips
5794 VAR_CPU_ARCH=mips
5795 VAR_CPU_BITS=woot
5796 VAR_CPU_ENDIAN=woot
5797 VAR_LEGACY_CPU=mips
5798 ;;
5799 mipsel)
5800 VAR_CPU=mipsel
5801 VAR_CPU_ARCH=mips
5802 VAR_CPU_BITS=woot
5803 VAR_CPU_ENDIAN=woot
5804 VAR_LEGACY_CPU=mipsel
5805 ;;
5806 powerpc)
5807 VAR_CPU=ppc
5808 VAR_CPU_ARCH=ppc
5809 VAR_CPU_BITS=32
5810 VAR_CPU_ENDIAN=big
5811 VAR_LEGACY_CPU=ppc
5812 ;;
5813 powerpc64)
5814 VAR_CPU=ppc64
5815 VAR_CPU_ARCH=ppc
5816 VAR_CPU_BITS=64
5817 VAR_CPU_ENDIAN=32
5818 VAR_LEGACY_CPU=ppc64
5819 ;;
5820 sparc)
5821 VAR_CPU=sparc
5822 VAR_CPU_ARCH=sparc
5823 VAR_CPU_BITS=32
5824 VAR_CPU_ENDIAN=big
5825 VAR_LEGACY_CPU=sparc
5826 ;;
5827 sparc64)
5828 VAR_CPU=sparcv9
5829 VAR_CPU_ARCH=sparc
5830 VAR_CPU_BITS=64
5831 VAR_CPU_ENDIAN=big
5832 VAR_LEGACY_CPU=sparc_sparcv9
5833 ;;
5834 s390)
5835 VAR_CPU=s390
5836 VAR_CPU_ARCH=s390
5837 VAR_CPU_BITS=32
5838 VAR_CPU_ENDIAN=woot
5839 VAR_LEGACY_CPU=s390
5840 VAR_LEGACY_CPU=s390
5841 ;;
5842 s390x)
5843 VAR_CPU=s390x
5844 VAR_CPU_ARCH=s390
5845 VAR_CPU_BITS=64
5846 VAR_CPU_ENDIAN=woot
5847 VAR_LEGACY_CPU=s390x
5848 ;;
5849 *)
5850 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
5851 ;;
5852 esac
5854 # Workaround cygwin not knowing about 64 bit.
5855 if test "x$VAR_OS" = "xwindows"; then
5856 if test "x$PROCESSOR_IDENTIFIER" != "x"; then
5857 PROC_ARCH=`echo $PROCESSOR_IDENTIFIER | $CUT -f1 -d' '`
5858 case "$PROC_ARCH" in
5859 intel64|Intel64|INTEL64|em64t|EM64T|amd64|AMD64|8664|x86_64)
5860 VAR_CPU=x64
5861 VAR_CPU_BITS=64
5862 VAR_LEGACY_CPU=amd64
5863 ;;
5864 esac
5865 fi
5866 fi
5868 if test "x$VAR_CPU_ARCH" = "xx86"; then
5869 if test "x$with_data_model" = "x64"; then
5870 VAR_CPU=x64
5871 VAR_CPU_BITS=64
5872 VAR_LEGACY_CPU=amd64
5873 fi
5874 if test "x$with_data_model" = "x32"; then
5875 VAR_CPU=ia32
5876 VAR_CPU_BITS=32
5877 VAR_LEGACY_CPU=i586
5878 fi
5879 fi
5881 BUILD_CPU="$VAR_CPU"
5882 BUILD_CPU_ARCH="$VAR_CPU_ARCH"
5883 BUILD_CPU_BITS="$VAR_CPU_BITS"
5884 BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
5891 # Also store the legacy naming of the cpu.
5892 # Ie i586 and amd64 instead of ia32 and x64
5893 LEGACY_BUILD_CPU1="$VAR_LEGACY_CPU"
5896 # And the second legacy naming of the cpu.
5897 # Ie i386 and amd64 instead of ia32 and x64.
5898 LEGACY_BUILD_CPU2="$LEGACY_BUILD_CPU1"
5899 if test "x$LEGACY_BUILD_CPU1" = xi586; then
5900 LEGACY_BUILD_CPU2=i386
5901 fi
5904 # And the third legacy naming of the cpu.
5905 # Ie only amd64 or sparcv9, used for the ISA_DIR on Solaris.
5906 LEGACY_BUILD_CPU3=""
5907 if test "x$BUILD_CPU" = xx64; then
5908 LEGACY_BUILD_CPU3=amd64
5909 fi
5910 if test "x$BUILD_CPU" = xsparcv9; then
5911 LEGACY_BUILD_CPU3=sparvc9
5912 fi
5916 if test "x$HOST_OS" != xsolaris; then
5917 LEGACY_HOST_CPU3=""
5918 LEGACY_BUILD_CPU3=""
5919 fi
5921 # Now the following vars are defined.
5922 # HOST_OS=aix,bsd,hpux,linux,macosx,solaris,windows
5923 # HOST_OS_FAMILY=bsd,gnu,sysv,win32,wince
5924 # HOST_OS_API=posix,winapi
5925 #
5926 # HOST_CPU=ia32,x64,sparc,sparcv9,arm,arm64,ppc,ppc64
5927 # HOST_CPU_ARCH=x86,sparc,pcc,arm
5928 # HOST_CPU_BITS=32,64
5929 # HOST_CPU_ENDIAN=big,little
5930 #
5931 # There is also a:
5932 # LEGACY_HOST_CPU1=i586,amd64,.... # used to set the old var ARCH
5933 # LEGACY_HOST_CPU2=i386,amd64,.... # used to set the old var LIBARCH
5934 # LEGACY_HOST_CPU3=only sparcv9,amd64 # used to set the ISA_DIR on Solaris
5935 # There was also a BUILDARCH that had i486,amd64,... but we do not use that
5936 # in the new build.
5937 # LEGACY_HOST_OS_API=solaris,windows # used to select source roots
5939 DATE_WHEN_CONFIGURED=`LANG=C date`
5942 # How many cores do we have on this build system?
5944 # Check whether --with-num-cores was given.
5945 if test "${with_num_cores+set}" = set; then :
5946 withval=$with_num_cores;
5947 fi
5949 if test "x$with_num_cores" = x; then
5950 # The number of cores were not specified, try to probe them.
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5
5953 $as_echo_n "checking for number of cores... " >&6; }
5954 NUM_CORES=1
5955 FOUND_CORES=no
5957 if test -f /proc/cpuinfo; then
5958 # Looks like a Linux system
5959 NUM_CORES=`cat /proc/cpuinfo | grep -c processor`
5960 FOUND_CORES=yes
5961 fi
5963 if test -x /usr/sbin/psrinfo; then
5964 # Looks like a Solaris system
5965 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line`
5966 FOUND_CORES=yes
5967 fi
5969 if test -x /usr/sbin/system_profiler; then
5970 # Looks like a MacOSX system
5971 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'`
5972 FOUND_CORES=yes
5973 fi
5975 if test "x$build_os" = xwindows; then
5976 NUM_CORES=4
5977 fi
5979 # For c/c++ code we run twice as many concurrent build
5980 # jobs than we have cores, otherwise we will stall on io.
5981 CONCURRENT_BUILD_JOBS=`expr $NUM_CORES \* 2`
5983 if test "x$FOUND_CORES" = xyes; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5
5985 $as_echo "$NUM_CORES" >&6; }
5986 else
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1!" >&5
5988 $as_echo "could not detect number of cores, defaulting to 1!" >&6; }
5989 fi
5992 else
5993 NUM_CORES=$with_num_cores
5994 CONCURRENT_BUILD_JOBS=`expr $NUM_CORES \* 2`
5995 fi
5999 # How many cores do we have on this build system?
6001 # Check whether --with-memory-size was given.
6002 if test "${with_memory_size+set}" = set; then :
6003 withval=$with_memory_size;
6004 fi
6006 if test "x$with_memory_size" = x; then
6007 # The memory size was not specified, try to probe it.
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5
6010 $as_echo_n "checking for memory size... " >&6; }
6011 # Default to 1024MB
6012 MEMORY_SIZE=1024
6013 FOUND_MEM=no
6015 if test -f /proc/cpuinfo; then
6016 # Looks like a Linux system
6017 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'`
6018 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024`
6019 FOUND_MEM=yes
6020 fi
6022 if test -x /usr/sbin/prtconf; then
6023 # Looks like a Solaris system
6024 MEMORY_SIZE=`/usr/sbin/prtconf | grep "Memory size" | awk '{ print $3 }'`
6025 FOUND_MEM=yes
6026 fi
6028 if test -x /usr/sbin/system_profiler; then
6029 # Looks like a MacOSX system
6030 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'`
6031 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024`
6032 FOUND_MEM=yes
6033 fi
6035 if test "x$build_os" = xwindows; then
6036 MEMORY_SIZE=`systeminfo | grep 'Total Physical Memory:' | awk '{ print $4 }' | sed 's/,//'`
6037 FOUND_MEM=yes
6038 fi
6040 if test "x$FOUND_MEM" = xyes; then
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5
6042 $as_echo "$MEMORY_SIZE MB" >&6; }
6043 else
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size defaulting to 1024MB!" >&5
6045 $as_echo "could not detect memory size defaulting to 1024MB!" >&6; }
6046 fi
6048 else
6049 MEMORY_SIZE=$with_memory_size
6050 fi
6053 # Where is the source? It is located two levels above the configure script.
6054 CURDIR="$PWD"
6055 cd "$AUTOCONF_DIR/../.."
6056 SRC_ROOT="`pwd`"
6058 cd "$CURDIR"
6060 # For cygwin we need cygpath first, since it is used everywhere.
6061 # Extract the first word of "cygpath", so it can be a program name with args.
6062 set dummy cygpath; ac_word=$2
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064 $as_echo_n "checking for $ac_word... " >&6; }
6065 if test "${ac_cv_path_CYGPATH+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 case $CYGPATH in
6069 [\\/]* | ?:[\\/]*)
6070 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
6071 ;;
6072 *)
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6075 do
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6080 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 break 2
6083 fi
6084 done
6085 done
6086 IFS=$as_save_IFS
6088 ;;
6089 esac
6090 fi
6091 CYGPATH=$ac_cv_path_CYGPATH
6092 if test -n "$CYGPATH"; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
6094 $as_echo "$CYGPATH" >&6; }
6095 else
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 $as_echo "no" >&6; }
6098 fi
6101 PATH_SEP=":"
6102 if test "x$BUILD_OS" = "xwindows"; then
6103 if test "x$CYGPATH" = x; then
6104 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
6105 fi
6106 PATH_SEP=";"
6107 fi
6111 # Fail with message the path to the source root if var SRC_ROOT contains a path with no spaces in it.
6112 # Unless on Windows, where we can rewrite the path.
6113 HAS_SPACE=`echo "$SRC_ROOT" | grep " "`
6114 if test "x$HAS_SPACE" != x; then
6115 if test "x$BUILD_OS" = "xwindows"; then
6116 SRC_ROOT=`$CYGPATH -s -m -a "$SRC_ROOT"`
6117 SRC_ROOT=`$CYGPATH -u "$SRC_ROOT"`
6118 else
6119 as_fn_error $? "You cannot have spaces in the path to the source root! \"$SRC_ROOT\"" "$LINENO" 5
6120 fi
6121 fi
6124 # Fail with message the path to the current directory if var CURDIR contains a path with no spaces in it.
6125 # Unless on Windows, where we can rewrite the path.
6126 HAS_SPACE=`echo "$CURDIR" | grep " "`
6127 if test "x$HAS_SPACE" != x; then
6128 if test "x$BUILD_OS" = "xwindows"; then
6129 CURDIR=`$CYGPATH -s -m -a "$CURDIR"`
6130 CURDIR=`$CYGPATH -u "$CURDIR"`
6131 else
6132 as_fn_error $? "You cannot have spaces in the path to the current directory! \"$CURDIR\"" "$LINENO" 5
6133 fi
6134 fi
6137 if test "x$BUILD_OS" = "xsolaris"; then
6138 # Also search in /usr/ccs/bin for utilities like ar and as.
6139 PATH="/usr/ccs/bin:$PATH"
6140 fi
6142 ###############################################################################
6143 #
6144 # OpenJDK or closed
6145 #
6146 # Check whether --enable-openjdk was given.
6147 if test "${enable_openjdk+set}" = set; then :
6148 enableval=$enable_openjdk;
6149 fi
6152 if test "x$enable_openjdk" = "xyes"; then
6153 OPENJDK=true
6154 elif test "x$enable_openjdk" = "xno"; then
6155 OPENJDK=false
6156 elif test -d "$SRC_ROOT/jdk/src/closed"; then
6157 OPENJDK=false
6158 else
6159 OPENJDK=true
6160 fi
6162 if test "x$OPENJDK" = "xtrue"; then
6163 SET_OPENJDK=OPENJDK=true
6164 fi
6168 ###############################################################################
6169 #
6170 # JIGSAW or not. The JIGSAW variable is used during the intermediate
6171 # stage when we are building both the old style JDK and the new style modularized JDK.
6172 # When the modularized JDK is finalized, this option will go away.
6173 #
6174 # Check whether --enable-jigsaw was given.
6175 if test "${enable_jigsaw+set}" = set; then :
6176 enableval=$enable_jigsaw;
6177 fi
6180 if test "x$enable_jigsaw" = "xyes"; then
6181 JIGSAW=true
6182 else
6183 JIGSAW=false
6184 fi
6187 ###############################################################################
6188 #
6189 # Check which variant of the JDK that we want to build.
6190 # Currently we have:
6191 # normal: standard edition
6192 # embedded: cut down to a smaller footprint
6193 #
6194 # Effectively the JDK variant gives a name to a specific set of
6195 # modules to compile into the JDK. In the future, these modules
6196 # might even be Jigsaw modules.
6197 #
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
6199 $as_echo_n "checking which variant of the JDK to build... " >&6; }
6201 # Check whether --with-jdk-variant was given.
6202 if test "${with_jdk_variant+set}" = set; then :
6203 withval=$with_jdk_variant;
6204 fi
6207 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
6208 JAVASE_EMBEDDED=""
6209 MINIMIZE_RAM_USAGE=""
6210 JDK_VARIANT="normal"
6211 elif test "x$with_jdk_variant" = xembedded; then
6212 JAVASE_EMBEDDED="JAVASE_EMBEDDED:=true"
6213 MINIMIZE_RAM_USAGE="MINIMIZE_RAM_USAGE:=true"
6214 JDK_VARIANT="embedded"
6215 else
6216 as_fn_error $? "The available JDK variants are: normal, embedded" "$LINENO" 5
6217 fi
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
6224 $as_echo "$JDK_VARIANT" >&6; }
6226 ###############################################################################
6227 #
6228 # Should we build a JDK/JVM with head support (ie a graphical ui)?
6229 # We always build headless support.
6230 #
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
6232 $as_echo_n "checking headful support... " >&6; }
6233 # Check whether --enable-headful was given.
6234 if test "${enable_headful+set}" = set; then :
6235 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
6236 else
6237 SUPPORT_HEADFUL=yes
6238 fi
6241 SUPPORT_HEADLESS=yes
6242 BUILD_HEADLESS="BUILD_HEADLESS:=true"
6244 if test "x$SUPPORT_HEADFUL" = xyes; then
6245 # We are building both headful and headless.
6246 BUILD_HEADLESS_ONLY=""
6247 headful_msg="inlude support for both headful and headless"
6248 fi
6250 if test "x$SUPPORT_HEADFUL" = xno; then
6251 # Thus we are building headless only.
6252 BUILD_HEADLESS="BUILD_HEADLESS:=true"
6253 BUILD_HEADLESS_ONLY="BUILD_HEADLESS_ONLY:=true"
6254 headful_msg="headless only"
6255 fi
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
6258 $as_echo "$headful_msg" >&6; }
6265 ###############################################################################
6266 #
6267 # Check which variants of the JVM that we want to build.
6268 # Currently we have:
6269 # server: normal interpreter and a tiered C1/C2 compiler
6270 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
6271 # kernel: kernel footprint JVM that passes the TCK without major performance problems,
6272 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc
6273 # zero: no machine code interpreter, no compiler
6274 # zeroshark: zero interpreter and shark/llvm compiler backend
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM that should be built" >&5
6276 $as_echo_n "checking which variants of the JVM that should be built... " >&6; }
6278 # Check whether --with-jvm-variants was given.
6279 if test "${with_jvm_variants+set}" = set; then :
6280 withval=$with_jvm_variants;
6281 fi
6284 if test "x$with_jvm_variants" = x; then
6285 if test "x$JDK_VARIANT" = xembedded; then
6286 with_jvm_variants="kernel"
6287 elif test "x$HOST_CPU_BITS" = x64; then
6288 with_jvm_variants="server"
6289 else
6290 # Yes, on 32-bit machines, the same source (almost) is compiled twice
6291 # to generate two libjvm.so files. Fun, fun.
6292 with_jvm_variants="client,server"
6293 fi
6294 fi
6296 JVM_VARIANTS=",$with_jvm_variants,"
6297 TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//'`
6299 if test "x$TEST_VARIANTS" != "x,"; then
6300 as_fn_error $? "The available JVM variants are: server, client, kernel, zero, zeroshark" "$LINENO" 5
6301 fi
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
6303 $as_echo "$with_jvm_variants" >&6; }
6305 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
6306 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
6307 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
6308 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
6309 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
6311 if test "x$JVM_VARIANT_CLIENT" = xtrue; then
6312 if test "x$HOST_CPU_BITS" = x64; then
6313 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
6314 fi
6315 fi
6316 if test "x$JVM_VARIANT_KERNEL" = xtrue; then
6317 if test "x$HOST_CPU_BITS" = x64; then
6318 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
6319 fi
6320 fi
6322 COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/kernel,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/'`
6323 # Replace the commas with AND for use in the build directory name.
6324 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/'`
6325 if test "x$COUNT_VARIANTS" != "x,1"; then
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE! Longer build time since we are building more than one version of the libjvm! $with_jvm_variants" >&5
6327 $as_echo "$as_me: NOTE! Longer build time since we are building more than one version of the libjvm! $with_jvm_variants" >&6;}
6328 fi
6337 ###############################################################################
6338 #
6339 # Set the debug level
6340 # release: no debug information, all optimizations, no asserts.
6341 # fastdebug: debug information (-g), all optimizations, all asserts
6342 # slowdebug: debug information (-g), no optimizations, all asserts
6343 #
6344 DEBUG_LEVEL="release"
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
6346 $as_echo_n "checking which debug level to use... " >&6; }
6347 # Check whether --enable-debug was given.
6348 if test "${enable_debug+set}" = set; then :
6349 enableval=$enable_debug;
6350 ENABLE_DEBUG="${enableval}"
6351 DEBUG_LEVEL="fastdebug"
6353 else
6354 ENABLE_DEBUG="no"
6355 fi
6359 # Check whether --with-debug-level was given.
6360 if test "${with_debug_level+set}" = set; then :
6361 withval=$with_debug_level;
6362 DEBUG_LEVEL="${withval}"
6363 if test "x$ENABLE_DEBUG" = xyes; then
6364 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
6365 fi
6367 fi
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
6370 $as_echo "$DEBUG_LEVEL" >&6; }
6372 if test "x$DEBUG_LEVEL" != xrelease && \
6373 test "x$DEBUG_LEVEL" != xfastdebug && \
6374 test "x$DEBUG_LEVEL" != xslowdebug; then
6375 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
6376 fi
6378 case $DEBUG_LEVEL in
6379 release )
6380 VARIANT="OPT"
6381 FASTDEBUG="false"
6382 DEBUG_CLASSFILES="false"
6383 BUILD_VARIANT_RELEASE=""
6384 ;;
6385 fastdebug )
6386 VARIANT="DBG"
6387 FASTDEBUG="true"
6388 DEBUG_CLASSFILES="true"
6389 BUILD_VARIANT_RELEASE="-fastdebug"
6390 ;;
6391 slowdebug )
6392 VARIANT="DBG"
6393 FASTDEBUG="false"
6394 DEBUG_CLASSFILES="true"
6395 BUILD_VARIANT_RELEASE="-debug"
6396 ;;
6397 esac
6405 # Source the version numbers
6406 . $AUTOCONF_DIR/version.numbers
6407 if test "x$OPENJDK" = "xfalse"; then
6408 . $AUTOCONF_DIR/closed.version.numbers
6409 fi
6410 # Now set the JDK version, milestone, build number etc.
6423 COPYRIGHT_YEAR=`date +'%Y'`
6426 RUNTIME_NAME="$PRODUCT_NAME $PRODUCT_SUFFIX"
6429 if test "x$JDK_UPDATE_VERSION" != x; then
6430 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
6431 else
6432 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
6433 fi
6436 if test "x$MILESTONE" != x; then
6437 RELEASE="${JDK_VERSION}-${MILESTONE}${BUILD_VARIANT_RELEASE}"
6438 else
6439 RELEASE="${JDK_VERSION}${BUILD_VARIANT_RELEASE}"
6440 fi
6443 if test "x$JDK_BUILD_NUMBER" != x; then
6444 FULL_VERSION="${RELEASE}-${JDK_BUILD_NUMBER}"
6445 else
6446 JDK_BUILD_NUMBER=b00
6447 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
6448 # Avoid [:alnum:] since it depends on the locale.
6449 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyz0123456789'`
6450 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvqxyz'`
6451 FULL_VERSION="${RELEASE}-${USER_RELEASE_SUFFIX}-${JDK_BUILD_NUMBER}"
6452 fi
6454 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
6457 # Test from where we are running configure, in or outside of src root.
6458 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" || test "x$CURDIR" = "x$SRC_ROOT/common/makefiles" ; then
6459 # We are running configure from the src root.
6460 # Create a default ./build/host-variant-debuglevel output root.
6461 OUTPUT_ROOT="$SRC_ROOT/build/${HOST_OS}-${HOST_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
6462 mkdir -p "$OUTPUT_ROOT"
6463 if test ! -d "$OUTPUT_ROOT"; then
6464 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
6465 fi
6466 else
6467 # We are running configure from outside of the src dir.
6468 # Then use the current directory as output dir!
6469 OUTPUT_ROOT="$CURDIR"
6470 fi
6473 # Fail with message the path to the output root if var OUTPUT_ROOT contains a path with no spaces in it.
6474 # Unless on Windows, where we can rewrite the path.
6475 HAS_SPACE=`echo "$OUTPUT_ROOT" | grep " "`
6476 if test "x$HAS_SPACE" != x; then
6477 if test "x$BUILD_OS" = "xwindows"; then
6478 OUTPUT_ROOT=`$CYGPATH -s -m -a "$OUTPUT_ROOT"`
6479 OUTPUT_ROOT=`$CYGPATH -u "$OUTPUT_ROOT"`
6480 else
6481 as_fn_error $? "You cannot have spaces in the path to the output root! \"$OUTPUT_ROOT\"" "$LINENO" 5
6482 fi
6483 fi
6486 # Save the arguments given to us
6487 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
6489 # Check if the VS env variables were setup prior to running configure.
6490 # If not, then find vcvarsall.bat and run it automatically, and integrate
6491 # the set env variables into the spec file.
6492 SETUPDEVENV="# No special vars"
6493 if test "x$BUILD_OS" = "xwindows"; then
6494 # If vcvarsall.bat has been run, then VCINSTALLDIR is set.
6495 if test "x$VCINSTALLDIR" != x; then
6496 # No further setup is needed. The build will happen from this kind
6497 # of shell.
6498 SETUPDEVENV="# This spec file expects that you are running bash from within a VS command prompt."
6499 # Make sure to remind you, if you forget to run make from a cygwin bash shell
6500 # that is spawned "bash -l" from a VS command prompt.
6501 CHECK_FOR_VCINSTALLDIR=yes
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you are running from within a VS command prompt" >&5
6503 $as_echo_n "checking if you are running from within a VS command prompt... " >&6; }
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6505 $as_echo "yes" >&6; }
6506 else
6507 # Ah, we have not yet run vcvarsall.bat/vsvars32.bat/vsvars64.bat. Lets do that. First find it.
6508 if test "x$VS100COMNTOOLS" != x; then
6509 VARSBAT=`find "$VS100COMNTOOLS/../.." -name vcvarsall.bat`
6510 SEARCH_ROOT="$VS100COMNTOOLS"
6511 else
6512 VARSBAT=`find "$PROGRAMFILES" -name vcvarsall.bat`
6513 SEARCH_ROOT="$PROGRAMFILES"
6514 fi
6515 VCPATH=`dirname "$VARSBAT"`
6516 VCPATH=`cygpath -w "$VCPATH"`
6517 if test "x$VARSBAT" = x || test ! -d "$VCPATH"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can find the VS installation" >&5
6519 $as_echo_n "checking if we can find the VS installation... " >&6; }
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 as_fn_error $? "Tried to find a VS installation using both $SEARCH_ROOT but failed. Please run \"c:\\cygwin\\bin\\bash.exe -l\" from a VS command prompt and then run configure/make from there." "$LINENO" 5
6523 fi
6524 case "$LEGACY_HOST_CPU1" in
6525 i?86)
6526 VARSBAT_ARCH=x86
6527 ;;
6528 *)
6529 VARSBAT_ARCH=$LEGACY_HOST_CPU1
6530 ;;
6531 esac
6532 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat
6533 cd $OUTPUT_ROOT
6534 $SRC_ROOT/common/bin/extractvcvars.sh "$VARSBAT" "$VARSBAT_ARCH"
6535 cd $CURDIR
6536 if test ! -s $OUTPUT_ROOT/localdevenv.sh || test ! -s $OUTPUT_ROOT/localdevenv.gmk; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can extract the needed env variables" >&5
6538 $as_echo_n "checking if we can extract the needed env variables... " >&6; }
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6541 as_fn_error $? "Could not succesfully extract the env variables needed for the VS setup. Please run \"c:\\cygwin\\bin\\bash.exe -l\" from a VS command prompt and then run configure/make from there." "$LINENO" 5
6542 fi
6543 # Now set all paths and other env variables. This will allow the rest of
6544 # the configure script to find and run the compiler in the proper way.
6545 . $OUTPUT_ROOT/localdevenv.sh
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can find the VS installation" >&5
6547 $as_echo_n "checking if we can find the VS installation... " >&6; }
6548 if test "x$VCINSTALLDIR" != x; then
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VCINSTALLDIR" >&5
6550 $as_echo "$VCINSTALLDIR" >&6; }
6551 else
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6554 as_fn_error $? "Could not find VS installation. Please install. If you are sure you have installed VS, then please run \"c:\\cygwin\\bin\\bash.exe -l\" from a VS command prompt and then run configure/make from there." "$LINENO" 5
6555 fi
6556 CHECK_FOR_VCINSTALLDIR=no
6557 SETUPDEVENV="include $OUTPUT_ROOT/localdevenv.gmk"
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
6560 $as_echo_n "checking for msvcr100.dll... " >&6; }
6562 # Check whether --with-msvcr100dll was given.
6563 if test "${with_msvcr100dll+set}" = set; then :
6564 withval=$with_msvcr100dll;
6565 fi
6567 if test "x$with_msvcr100dll" != x; then
6568 MSVCR100DLL="$with_msvcr100dll"
6569 else
6570 if test "x$HOST_CPU_BITS" = x64; then
6571 MSVCR100DLL=`find "$VCINSTALLDIR/.." -name msvcr100.dll | grep x64 | head --lines 1`
6572 else
6573 MSVCR100DLL=`find "$VCINSTALLDIR/.." -name msvcr100.dll | grep x86 | grep -v ia64 | grep -v x64 | head --lines 1`
6574 if test "x$MSVCR100DLL" = x; then
6575 MSVCR100DLL=`find "$VCINSTALLDIR/.." -name msvcr100.dll | head --lines 1`
6576 fi
6577 fi
6578 fi
6579 if test "x$MSVCR100DLL" = x; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 $as_echo "no" >&6; }
6582 as_fn_error $? "Could not find msvcr100.dll !" "$LINENO" 5
6583 fi
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR100DLL" >&5
6585 $as_echo "$MSVCR100DLL" >&6; }
6587 # Fail with message the path to msvcr100.dll if var MSVCR100DLL contains a path with no spaces in it.
6588 # Unless on Windows, where we can rewrite the path.
6589 HAS_SPACE=`echo "$MSVCR100DLL" | grep " "`
6590 if test "x$HAS_SPACE" != x; then
6591 if test "x$BUILD_OS" = "xwindows"; then
6592 MSVCR100DLL=`$CYGPATH -s -m -a "$MSVCR100DLL"`
6593 MSVCR100DLL=`$CYGPATH -u "$MSVCR100DLL"`
6594 else
6595 as_fn_error $? "You cannot have spaces in the path to msvcr100.dll! \"$MSVCR100DLL\"" "$LINENO" 5
6596 fi
6597 fi
6599 fi
6600 fi
6605 # Most of the probed defines are put into config.h
6606 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
6608 # The spec.gmk file contains all variables for the make system.
6609 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
6611 # The generated Makefile knows where the spec.gmk is and where the source is.
6612 # You can run make from the OUTPUT_ROOT. If you have only
6613 # one configured host, then you can also run make from the SRC_ROOT,
6614 # since it will go look for a single spec.gmk file. Or perhaps it
6615 # should instead make all configured hosts it can find?
6616 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
6619 SPEC=$OUTPUT_ROOT/spec.gmk
6621 OUTPUT_ROOT=$OUTPUT_ROOT
6624 # Where are the sources. Any of these can be overridden
6625 # using --with-override-corba and the likes.
6626 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools"
6627 CORBA_TOPDIR="$SRC_ROOT/corba"
6628 JAXP_TOPDIR="$SRC_ROOT/jaxp"
6629 JAXWS_TOPDIR="$SRC_ROOT/jaxws"
6630 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot"
6631 JDK_TOPDIR="$SRC_ROOT/jdk"
6639 # Check if pkg-config is available.
6642 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6643 if test -n "$ac_tool_prefix"; then
6644 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6645 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647 $as_echo_n "checking for $ac_word... " >&6; }
6648 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 case $PKG_CONFIG in
6652 [\\/]* | ?:[\\/]*)
6653 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6654 ;;
6655 *)
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6658 do
6659 IFS=$as_save_IFS
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 break 2
6666 fi
6667 done
6668 done
6669 IFS=$as_save_IFS
6671 ;;
6672 esac
6673 fi
6674 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6675 if test -n "$PKG_CONFIG"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6677 $as_echo "$PKG_CONFIG" >&6; }
6678 else
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6681 fi
6684 fi
6685 if test -z "$ac_cv_path_PKG_CONFIG"; then
6686 ac_pt_PKG_CONFIG=$PKG_CONFIG
6687 # Extract the first word of "pkg-config", so it can be a program name with args.
6688 set dummy pkg-config; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 case $ac_pt_PKG_CONFIG in
6695 [\\/]* | ?:[\\/]*)
6696 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6697 ;;
6698 *)
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 break 2
6709 fi
6710 done
6711 done
6712 IFS=$as_save_IFS
6714 ;;
6715 esac
6716 fi
6717 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6718 if test -n "$ac_pt_PKG_CONFIG"; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6720 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6721 else
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723 $as_echo "no" >&6; }
6724 fi
6726 if test "x$ac_pt_PKG_CONFIG" = x; then
6727 PKG_CONFIG=""
6728 else
6729 case $cross_compiling:$ac_tool_warned in
6730 yes:)
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6733 ac_tool_warned=yes ;;
6734 esac
6735 PKG_CONFIG=$ac_pt_PKG_CONFIG
6736 fi
6737 else
6738 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6739 fi
6741 fi
6742 if test -n "$PKG_CONFIG"; then
6743 _pkg_min_version=0.9.0
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6745 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6746 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6748 $as_echo "yes" >&6; }
6749 else
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751 $as_echo "no" >&6; }
6752 PKG_CONFIG=""
6753 fi
6755 fi
6758 # Check whether --with-builddeps-conf was given.
6759 if test "${with_builddeps_conf+set}" = set; then :
6760 withval=$with_builddeps_conf;
6761 fi
6765 # Check whether --with-builddeps-server was given.
6766 if test "${with_builddeps_server+set}" = set; then :
6767 withval=$with_builddeps_server;
6768 fi
6772 # Check whether --with-builddeps-dir was given.
6773 if test "${with_builddeps_dir+set}" = set; then :
6774 withval=$with_builddeps_dir;
6775 else
6776 with_builddeps_dir=/localhome/builddeps
6777 fi
6781 # Check whether --with-builddeps-group was given.
6782 if test "${with_builddeps_group+set}" = set; then :
6783 withval=$with_builddeps_group;
6784 fi
6787 # Check whether --enable-list-builddeps was given.
6788 if test "${enable_list_builddeps+set}" = set; then :
6789 enableval=$enable_list_builddeps; LIST_BUILDDEPS="${enableval}"
6790 else
6791 LIST_BUILDDEPS='no'
6792 fi
6795 if test "x$LIST_BUILDDEPS" = xyes; then
6796 echo
6797 echo List of build dependencies known to the configure script,
6798 echo that can be used in builddeps.conf files:
6799 cat $SRC_ROOT/configure.ac | grep BDEPS_CHECK_MODUL | grep -v configure.ac | cut -f 2 -d ',' | tr -d ' ' | sort
6800 echo
6801 exit 1
6802 fi
6804 # If builddeps server or conf file is given. Setup buildeps usage.
6807 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
6808 if test "x$with_builddeps_conf" != x; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
6810 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
6811 builddepsfile=$with_builddeps_conf
6812 if test -s $builddepsfile; then
6813 . $builddepsfile
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
6815 $as_echo "loaded!" >&6; }
6816 else
6817 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
6818 fi
6819 else
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
6821 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
6822 builddepsfile=`mktemp`
6823 touch $builddepsfile
6824 # Put all found confs into a single file.
6825 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
6826 # Source the file to acquire the variables
6827 if test -s $builddepsfile; then
6828 . $builddepsfile
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
6830 $as_echo "found at least one!" >&6; }
6831 else
6832 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
6833 fi
6834 fi
6835 # Create build and host names that use _ instead of "-" and ".".
6836 # This is necessary to use them in variable names.
6837 build_var=`echo ${build} | tr '-' '_' | tr '.' '_'`
6838 host_var=`echo ${host} | tr '-' '_' | tr '.' '_'`
6839 # Extract rewrite information for build and host
6840 eval rewritten_build=\${REWRITE_${build_var}}
6841 if test "x$rewritten_build" = x; then
6842 rewritten_build=${build}
6843 echo Build stays the same $rewritten_build
6844 else
6845 echo Rewriting build for builddeps into $rewritten_build
6846 fi
6847 eval rewritten_host=\${REWRITE_${host_var}}
6848 if test "x$rewritten_host" = x; then
6849 rewritten_host=${host}
6850 echo Host stays the same $rewritten_host
6851 else
6852 echo Rewriting host for builddeps into $rewritten_host
6853 fi
6854 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
6855 rewritten_host_var=`echo ${rewritten_host} | tr '-' '_' | tr '.' '_'`
6856 fi
6857 for ac_prog in 7z unzip
6858 do
6859 # Extract the first word of "$ac_prog", so it can be a program name with args.
6860 set dummy $ac_prog; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if test "${ac_cv_prog_BDEPS_UNZIP+set}" = set; then :
6864 $as_echo_n "(cached) " >&6
6865 else
6866 if test -n "$BDEPS_UNZIP"; then
6867 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_prog_BDEPS_UNZIP="$ac_prog"
6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6879 fi
6880 done
6881 done
6882 IFS=$as_save_IFS
6884 fi
6885 fi
6886 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
6887 if test -n "$BDEPS_UNZIP"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
6889 $as_echo "$BDEPS_UNZIP" >&6; }
6890 else
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6893 fi
6896 test -n "$BDEPS_UNZIP" && break
6897 done
6899 if test "x$BDEPS_UNZIP" = x7z; then
6900 BDEPS_UNZIP="7z x"
6901 fi
6903 for ac_prog in wget lftp ftp
6904 do
6905 # Extract the first word of "$ac_prog", so it can be a program name with args.
6906 set dummy $ac_prog; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if test "${ac_cv_prog_BDEPS_FTP+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 if test -n "$BDEPS_FTP"; then
6913 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6922 ac_cv_prog_BDEPS_FTP="$ac_prog"
6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 break 2
6925 fi
6926 done
6927 done
6928 IFS=$as_save_IFS
6930 fi
6931 fi
6932 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
6933 if test -n "$BDEPS_FTP"; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
6935 $as_echo "$BDEPS_FTP" >&6; }
6936 else
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6939 fi
6942 test -n "$BDEPS_FTP" && break
6943 done
6947 ###############################################################################
6948 #
6949 # Configure the development tool paths and potential sysroot.
6950 #
6951 ac_ext=cpp
6952 ac_cpp='$CXXCPP $CPPFLAGS'
6953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6957 DEVKIT=
6958 SYS_ROOT=/
6961 # The option used to specify the target .o,.a or .so file.
6962 # When compiling, how to specify the to be created object file.
6963 CC_OUT_OPTION='-o$(SPACE)'
6964 # When linking, how to specify the to be created executable.
6965 EXE_OUT_OPTION='-o$(SPACE)'
6966 # When linking, how to specify the to be created dynamically linkable library.
6967 LD_OUT_OPTION='-o$(SPACE)'
6968 # When archiving, how to specify the to be create static archive for object files.
6969 AR_OUT_OPTION='rcs$(SPACE)'
6975 # If --build AND --host is set, then the configure script will find any
6976 # cross compilation tools in the PATH. Cross compilation tools
6977 # follows the cross compilation standard where they are prefixed with ${host}.
6978 # For example the binary i686-sun-solaris2.10-gcc
6979 # will cross compile for i686-sun-solaris2.10
6980 # If neither of build and host is not set, then build=host and the
6981 # default compiler found in the path will be used.
6982 # Setting only --host, does not seem to be really supported.
6983 # Please set both --build and --host if you want to cross compile.
6985 DEFINE_CROSS_COMPILE_ARCH=""
6986 HOSTCC=""
6987 HOSTCXX=""
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a cross compile" >&5
6992 $as_echo_n "checking if this is a cross compile... " >&6; }
6993 if test "x$build_var" != "x$host_var"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, from $build_var to $host_var" >&5
6995 $as_echo "yes, from $build_var to $host_var" >&6; }
6996 # We have detected a cross compile!
6997 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$LEGACY_HOST_CPU1"
6998 # Now we to find a C/C++ compiler that can build executables for the build
6999 # platform. We can't use the AC_PROG_CC macro, since it can only be used
7000 # once.
7001 for ac_prog in cl cc gcc
7002 do
7003 # Extract the first word of "$ac_prog", so it can be a program name with args.
7004 set dummy $ac_prog; ac_word=$2
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 $as_echo_n "checking for $ac_word... " >&6; }
7007 if test "${ac_cv_path_HOSTCC+set}" = set; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010 case $HOSTCC in
7011 [\\/]* | ?:[\\/]*)
7012 ac_cv_path_HOSTCC="$HOSTCC" # Let the user override the test with a path.
7013 ;;
7014 *)
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7022 ac_cv_path_HOSTCC="$as_dir/$ac_word$ac_exec_ext"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7030 ;;
7031 esac
7032 fi
7033 HOSTCC=$ac_cv_path_HOSTCC
7034 if test -n "$HOSTCC"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTCC" >&5
7036 $as_echo "$HOSTCC" >&6; }
7037 else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7040 fi
7043 test -n "$HOSTCC" && break
7044 done
7047 # Translate "gcc -E" into "`which gcc` -E" ie
7048 # extract the full path to the binary and at the
7049 # same time maintain any arguments passed to it.
7050 # The command MUST exist in the path, or else!
7051 tmp="$HOSTCC"
7052 car="${tmp%% *}"
7053 tmp="$HOSTCC EOL"
7054 cdr="${tmp#* }"
7055 # On windows we want paths without spaces.
7056 if test "x$BUILD_OS" = "xwindows"; then
7058 # Translate long cygdrive or C:\sdfsf path
7059 # into a short mixed mode path that has no
7060 # spaces in it.
7061 tmp="$car"
7062 if test "x$BUILD_OS" = "xwindows"; then
7063 tmp=`$CYGPATH -u "$car"`
7064 tmp=`which "$tmp"`
7065 # If file exists with .exe appended, that's the real filename
7066 # and cygpath needs that to convert to short style path.
7067 if test -f "${tmp}.exe"; then
7068 tmp="${tmp}.exe"
7069 elif test -f "${tmp}.cmd"; then
7070 tmp="${tmp}.cmd"
7071 fi
7072 # Convert to C:/ mixed style path without spaces.
7073 tmp=`$CYGPATH -s -m "$tmp"`
7074 fi
7075 car="$tmp"
7077 else
7078 # "which" is not portable, but is used here
7079 # because we know that the command exists!
7080 car=`which $car`
7081 fi
7082 if test "x$cdr" != xEOL; then
7083 HOSTCC="$car ${cdr% *}"
7084 else
7085 HOSTCC="$car"
7086 fi
7088 for ac_prog in cl CC g++
7089 do
7090 # Extract the first word of "$ac_prog", so it can be a program name with args.
7091 set dummy $ac_prog; ac_word=$2
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 $as_echo_n "checking for $ac_word... " >&6; }
7094 if test "${ac_cv_path_HOSTCXX+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 case $HOSTCXX in
7098 [\\/]* | ?:[\\/]*)
7099 ac_cv_path_HOSTCXX="$HOSTCXX" # Let the user override the test with a path.
7100 ;;
7101 *)
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109 ac_cv_path_HOSTCXX="$as_dir/$ac_word$ac_exec_ext"
7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 break 2
7112 fi
7113 done
7114 done
7115 IFS=$as_save_IFS
7117 ;;
7118 esac
7119 fi
7120 HOSTCXX=$ac_cv_path_HOSTCXX
7121 if test -n "$HOSTCXX"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTCXX" >&5
7123 $as_echo "$HOSTCXX" >&6; }
7124 else
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7127 fi
7130 test -n "$HOSTCXX" && break
7131 done
7134 # Translate "gcc -E" into "`which gcc` -E" ie
7135 # extract the full path to the binary and at the
7136 # same time maintain any arguments passed to it.
7137 # The command MUST exist in the path, or else!
7138 tmp="$HOSTCXX"
7139 car="${tmp%% *}"
7140 tmp="$HOSTCXX EOL"
7141 cdr="${tmp#* }"
7142 # On windows we want paths without spaces.
7143 if test "x$BUILD_OS" = "xwindows"; then
7145 # Translate long cygdrive or C:\sdfsf path
7146 # into a short mixed mode path that has no
7147 # spaces in it.
7148 tmp="$car"
7149 if test "x$BUILD_OS" = "xwindows"; then
7150 tmp=`$CYGPATH -u "$car"`
7151 tmp=`which "$tmp"`
7152 # If file exists with .exe appended, that's the real filename
7153 # and cygpath needs that to convert to short style path.
7154 if test -f "${tmp}.exe"; then
7155 tmp="${tmp}.exe"
7156 elif test -f "${tmp}.cmd"; then
7157 tmp="${tmp}.cmd"
7158 fi
7159 # Convert to C:/ mixed style path without spaces.
7160 tmp=`$CYGPATH -s -m "$tmp"`
7161 fi
7162 car="$tmp"
7164 else
7165 # "which" is not portable, but is used here
7166 # because we know that the command exists!
7167 car=`which $car`
7168 fi
7169 if test "x$cdr" != xEOL; then
7170 HOSTCXX="$car ${cdr% *}"
7171 else
7172 HOSTCXX="$car"
7173 fi
7175 # Building for the build platform should be easy. Therefore
7176 # we do not need any linkers or assemblers etc.
7177 else
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180 fi
7182 # You can force the sys-root if the sys-root encoded into the cross compiler tools
7183 # is not correct.
7185 # Check whether --with-sys-root was given.
7186 if test "${with_sys_root+set}" = set; then :
7187 withval=$with_sys_root;
7188 fi
7191 if test "x$with_sys_root" != x; then
7192 SYS_ROOT=$with_sys_root
7193 fi
7195 # If a devkit is found on the builddeps server, then prepend its path to the
7196 # PATH variable. If there are cross compilers available in the devkit, these
7197 # will be found by AC_PROG_CC et al.
7200 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
7201 # Source the builddeps file again, to make sure it uses the latest variables!
7202 . $builddepsfile
7203 # Look for a host and build machine specific resource!
7204 eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
7205 if test "x$resource" = x; then
7206 # Ok, lets instead look for a host specific resource
7207 eval resource=\${builddep_devkit_HOST_${rewritten_host_var}}
7208 fi
7209 if test "x$resource" = x; then
7210 # Ok, lets instead look for a build specific resource
7211 eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}}
7212 fi
7213 if test "x$resource" = x; then
7214 # Ok, lets instead look for a generic resource
7215 # (The devkit comes from M4 and not the shell, thus no need for eval here.)
7216 resource=${builddep_devkit}
7217 fi
7218 if test "x$resource" != x; then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for devkit" >&5
7220 $as_echo "$as_me: Using builddeps $resource for devkit" >&6;}
7221 # If the resource in the builddeps.conf file is an existing directory,
7222 # for example /java/linux/cups
7223 if test -d ${resource}; then
7224 depdir=${resource}
7225 else
7227 # devkit is for example mymodule
7228 # $resource is for example libs/general/libmymod_1_2_3.zip
7229 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
7230 # $with_builddeps_dir is for example /localhome/builddeps
7231 # depdir is the name of the variable into which we store the depdir, eg MYMOD
7232 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
7233 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
7234 filename=`basename $resource`
7235 filebase=`echo $filename | sed 's/\.[^\.]*$//'`
7236 filebase=${filename%%.*}
7237 extension=${filename#*.}
7238 installdir=$with_builddeps_dir/$filebase
7239 if test ! -f $installdir/$filename.unpacked; then
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&5
7241 $as_echo "$as_me: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&6;}
7242 if test ! -d $installdir; then
7243 mkdir -p $installdir
7244 fi
7245 if test ! -d $installdir; then
7246 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
7247 fi
7248 tmpfile=`mktemp $installdir/devkit.XXXXXXXXX`
7249 touch $tmpfile
7250 if test ! -f $tmpfile; then
7251 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
7252 fi
7254 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip
7255 # $tmpfile is the local file name for the downloaded file.
7256 VALID_TOOL=no
7257 if test "x$BDEPS_FTP" = xwget; then
7258 VALID_TOOL=yes
7259 wget -O $tmpfile $with_builddeps_server/$resource
7260 fi
7261 if test "x$BDEPS_FTP" = xlftp; then
7262 VALID_TOOL=yes
7263 lftp -c "get $with_builddeps_server/$resource -o $tmpfile"
7264 fi
7265 if test "x$BDEPS_FTP" = xftp; then
7266 VALID_TOOL=yes
7267 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'`
7268 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'`
7269 FTPUSERPWD=${FTPSERVER%%@*}
7270 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
7271 FTPUSER=${userpwd%%:*}
7272 FTPPWD=${userpwd#*@}
7273 FTPSERVER=${FTPSERVER#*@}
7274 else
7275 FTPUSER=ftp
7276 FTPPWD=ftp
7277 fi
7278 # the "pass" command does not work on some
7279 # ftp clients (read ftp.exe) but if it works,
7280 # passive mode is better!
7281 (\
7282 echo "user $FTPUSER $FTPPWD" ;\
7283 echo "pass" ;\
7284 echo "bin" ;\
7285 echo "get $FTPPATH $tmpfile" ;\
7286 ) | ftp -in $FTPSERVER
7287 fi
7288 if test "x$VALID_TOOL" != xyes; then
7289 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
7290 fi
7292 mv $tmpfile $installdir/$filename
7293 if test ! -s $installdir/$filename; then
7294 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
7295 fi
7296 case "$extension" in
7297 zip) echo "Unzipping $installdir/$filename..."
7298 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
7299 ;;
7300 tar.gz) echo "Untaring $installdir/$filename..."
7301 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
7302 ;;
7303 tgz) echo "Untaring $installdir/$filename..."
7304 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
7305 ;;
7306 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
7307 ;;
7308 esac
7309 fi
7310 if test -f $installdir/$filename.unpacked; then
7311 depdir=$installdir
7312 fi
7314 fi
7315 # Source the builddeps file again, because in the previous command, the depdir
7316 # was updated to point at the current build dependency install directory.
7317 . $builddepsfile
7318 # Now extract variables from the builddeps.conf files.
7319 theroot=${builddep_devkit_ROOT}
7320 thecflags=${builddep_devkit_CFLAGS}
7321 thelibs=${builddep_devkit_LIBS}
7322 if test "x$depdir" = x; then
7323 as_fn_error $? "Could not download build dependency devkit" "$LINENO" 5
7324 fi
7325 DEVKIT=$depdir
7326 if test "x$theroot" != x; then
7327 DEVKIT="$theroot"
7328 fi
7329 if test "x$thecflags" != x; then
7330 DEVKIT_CFLAGS="$thecflags"
7331 fi
7332 if test "x$thelibs" != x; then
7333 DEVKIT_LIBS="$thelibs"
7334 fi
7335 # Found devkit
7336 PATH="$DEVKIT/bin:$PATH"
7337 SYS_ROOT="$DEVKIT/${rewritten_host}/sys-root"
7338 if test "x$x_includes" = "xNONE"; then
7339 x_includes="$SYS_ROOT/usr/include/X11"
7340 fi
7341 if test "x$x_libraries" = "xNONE"; then
7342 x_libraries="$SYS_ROOT/usr/lib"
7343 fi
7346 fi
7348 fi
7351 if test "x$SYS_ROOT" != "x/" ; then
7352 CFLAGS="--sysroot=$SYS_ROOT $CFLAGS"
7353 CXXFLAGS="--sysroot=$SYS_ROOT $CXXFLAGS"
7354 OBJCFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS"
7355 OBJCXXFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS"
7356 CPPFLAGS="--sysroot=$SYS_ROOT $CPPFLAGS"
7357 LDFLAGS="--sysroot=$SYS_ROOT $LDFLAGS"
7358 fi
7360 # Store the CFLAGS etal passed to the configure script.
7361 ORG_CFLAGS="$CFLAGS"
7362 ORG_CXXFLAGS="$CXXFLAGS"
7363 ORG_OBJCFLAGS="$OBJCFLAGS"
7365 # gcc is almost always present, but on Windows we
7366 # prefer cl.exe and on Solaris we prefer CC.
7367 # Thus test for them in this order.
7368 ac_ext=c
7369 ac_cpp='$CPP $CPPFLAGS'
7370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7373 if test -n "$ac_tool_prefix"; then
7374 for ac_prog in cl cc gcc
7375 do
7376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if test "${ac_cv_prog_CC+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 if test -n "$CC"; then
7384 ac_cv_prog_CC="$CC" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7396 fi
7397 done
7398 done
7399 IFS=$as_save_IFS
7401 fi
7402 fi
7403 CC=$ac_cv_prog_CC
7404 if test -n "$CC"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7406 $as_echo "$CC" >&6; }
7407 else
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7410 fi
7413 test -n "$CC" && break
7414 done
7415 fi
7416 if test -z "$CC"; then
7417 ac_ct_CC=$CC
7418 for ac_prog in cl cc gcc
7419 do
7420 # Extract the first word of "$ac_prog", so it can be a program name with args.
7421 set dummy $ac_prog; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7425 $as_echo_n "(cached) " >&6
7426 else
7427 if test -n "$ac_ct_CC"; then
7428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7429 else
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7432 do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7437 ac_cv_prog_ac_ct_CC="$ac_prog"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7440 fi
7441 done
7442 done
7443 IFS=$as_save_IFS
7445 fi
7446 fi
7447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7448 if test -n "$ac_ct_CC"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7450 $as_echo "$ac_ct_CC" >&6; }
7451 else
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7454 fi
7457 test -n "$ac_ct_CC" && break
7458 done
7460 if test "x$ac_ct_CC" = x; then
7461 CC=""
7462 else
7463 case $cross_compiling:$ac_tool_warned in
7464 yes:)
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7467 ac_tool_warned=yes ;;
7468 esac
7469 CC=$ac_ct_CC
7470 fi
7471 fi
7474 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7476 as_fn_error $? "no acceptable C compiler found in \$PATH
7477 See \`config.log' for more details" "$LINENO" 5 ; }
7479 # Provide some information about the compiler.
7480 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7481 set X $ac_compile
7482 ac_compiler=$2
7483 for ac_option in --version -v -V -qversion; do
7484 { { ac_try="$ac_compiler $ac_option >&5"
7485 case "(($ac_try" in
7486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7487 *) ac_try_echo=$ac_try;;
7488 esac
7489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7490 $as_echo "$ac_try_echo"; } >&5
7491 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7492 ac_status=$?
7493 if test -s conftest.err; then
7494 sed '10a\
7495 ... rest of stderr output deleted ...
7496 10q' conftest.err >conftest.er1
7497 cat conftest.er1 >&5
7498 fi
7499 rm -f conftest.er1 conftest.err
7500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7501 test $ac_status = 0; }
7502 done
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7507 int
7508 main ()
7509 {
7511 ;
7512 return 0;
7513 }
7514 _ACEOF
7515 ac_clean_files_save=$ac_clean_files
7516 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
7517 # Try to create an executable without -o first, disregard a.out.
7518 # It will help us diagnose broken compilers, and finding out an intuition
7519 # of exeext.
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
7521 $as_echo_n "checking whether the C compiler works... " >&6; }
7522 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
7524 # The possible output files:
7525 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
7527 ac_rmfiles=
7528 for ac_file in $ac_files
7529 do
7530 case $ac_file in
7531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7532 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
7533 esac
7534 done
7535 rm -f $ac_rmfiles
7537 if { { ac_try="$ac_link_default"
7538 case "(($ac_try" in
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7541 esac
7542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7543 $as_echo "$ac_try_echo"; } >&5
7544 (eval "$ac_link_default") 2>&5
7545 ac_status=$?
7546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7547 test $ac_status = 0; }; then :
7548 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
7549 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
7550 # in a Makefile. We should not override ac_cv_exeext if it was cached,
7551 # so that the user can short-circuit this test for compilers unknown to
7552 # Autoconf.
7553 for ac_file in $ac_files ''
7554 do
7555 test -f "$ac_file" || continue
7556 case $ac_file in
7557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
7558 ;;
7559 [ab].out )
7560 # We found the default executable, but exeext='' is most
7561 # certainly right.
7562 break;;
7563 *.* )
7564 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
7565 then :; else
7566 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
7567 fi
7568 # We set ac_cv_exeext here because the later test for it is not
7569 # safe: cross compilers may not add the suffix if given an `-o'
7570 # argument, so we may need to know it at that point already.
7571 # Even if this section looks crufty: it has the advantage of
7572 # actually working.
7573 break;;
7574 * )
7575 break;;
7576 esac
7577 done
7578 test "$ac_cv_exeext" = no && ac_cv_exeext=
7580 else
7581 ac_file=''
7582 fi
7583 if test -z "$ac_file"; then :
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7586 $as_echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7591 as_fn_error 77 "C compiler cannot create executables
7592 See \`config.log' for more details" "$LINENO" 5 ; }
7593 else
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7595 $as_echo "yes" >&6; }
7596 fi
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
7598 $as_echo_n "checking for C compiler default output file name... " >&6; }
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
7600 $as_echo "$ac_file" >&6; }
7601 ac_exeext=$ac_cv_exeext
7603 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
7604 ac_clean_files=$ac_clean_files_save
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
7606 $as_echo_n "checking for suffix of executables... " >&6; }
7607 if { { ac_try="$ac_link"
7608 case "(($ac_try" in
7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610 *) ac_try_echo=$ac_try;;
7611 esac
7612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7613 $as_echo "$ac_try_echo"; } >&5
7614 (eval "$ac_link") 2>&5
7615 ac_status=$?
7616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7617 test $ac_status = 0; }; then :
7618 # If both `conftest.exe' and `conftest' are `present' (well, observable)
7619 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
7620 # work properly (i.e., refer to `conftest.exe'), while it won't with
7621 # `rm'.
7622 for ac_file in conftest.exe conftest conftest.*; do
7623 test -f "$ac_file" || continue
7624 case $ac_file in
7625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7626 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
7627 break;;
7628 * ) break;;
7629 esac
7630 done
7631 else
7632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7634 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
7635 See \`config.log' for more details" "$LINENO" 5 ; }
7636 fi
7637 rm -f conftest conftest$ac_cv_exeext
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
7639 $as_echo "$ac_cv_exeext" >&6; }
7641 rm -f conftest.$ac_ext
7642 EXEEXT=$ac_cv_exeext
7643 ac_exeext=$EXEEXT
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7646 #include <stdio.h>
7647 int
7648 main ()
7649 {
7650 FILE *f = fopen ("conftest.out", "w");
7651 return ferror (f) || fclose (f) != 0;
7653 ;
7654 return 0;
7655 }
7656 _ACEOF
7657 ac_clean_files="$ac_clean_files conftest.out"
7658 # Check that the compiler produces executables we can run. If not, either
7659 # the compiler is broken, or we cross compile.
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
7661 $as_echo_n "checking whether we are cross compiling... " >&6; }
7662 if test "$cross_compiling" != yes; then
7663 { { ac_try="$ac_link"
7664 case "(($ac_try" in
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7667 esac
7668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7669 $as_echo "$ac_try_echo"; } >&5
7670 (eval "$ac_link") 2>&5
7671 ac_status=$?
7672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7673 test $ac_status = 0; }
7674 if { ac_try='./conftest$ac_cv_exeext'
7675 { { case "(($ac_try" in
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7678 esac
7679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7680 $as_echo "$ac_try_echo"; } >&5
7681 (eval "$ac_try") 2>&5
7682 ac_status=$?
7683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7684 test $ac_status = 0; }; }; then
7685 cross_compiling=no
7686 else
7687 if test "$cross_compiling" = maybe; then
7688 cross_compiling=yes
7689 else
7690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7692 as_fn_error $? "cannot run C compiled programs.
7693 If you meant to cross compile, use \`--host'.
7694 See \`config.log' for more details" "$LINENO" 5 ; }
7695 fi
7696 fi
7697 fi
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
7699 $as_echo "$cross_compiling" >&6; }
7701 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
7702 ac_clean_files=$ac_clean_files_save
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
7704 $as_echo_n "checking for suffix of object files... " >&6; }
7705 if test "${ac_cv_objext+set}" = set; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7711 int
7712 main ()
7713 {
7715 ;
7716 return 0;
7717 }
7718 _ACEOF
7719 rm -f conftest.o conftest.obj
7720 if { { ac_try="$ac_compile"
7721 case "(($ac_try" in
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7724 esac
7725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7726 $as_echo "$ac_try_echo"; } >&5
7727 (eval "$ac_compile") 2>&5
7728 ac_status=$?
7729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7730 test $ac_status = 0; }; then :
7731 for ac_file in conftest.o conftest.obj conftest.*; do
7732 test -f "$ac_file" || continue;
7733 case $ac_file in
7734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
7735 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
7736 break;;
7737 esac
7738 done
7739 else
7740 $as_echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7745 as_fn_error $? "cannot compute suffix of object files: cannot compile
7746 See \`config.log' for more details" "$LINENO" 5 ; }
7747 fi
7748 rm -f conftest.$ac_cv_objext conftest.$ac_ext
7749 fi
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
7751 $as_echo "$ac_cv_objext" >&6; }
7752 OBJEXT=$ac_cv_objext
7753 ac_objext=$OBJEXT
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7755 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7756 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760 /* end confdefs.h. */
7762 int
7763 main ()
7764 {
7765 #ifndef __GNUC__
7766 choke me
7767 #endif
7769 ;
7770 return 0;
7771 }
7772 _ACEOF
7773 if ac_fn_c_try_compile "$LINENO"; then :
7774 ac_compiler_gnu=yes
7775 else
7776 ac_compiler_gnu=no
7777 fi
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7781 fi
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7783 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7784 if test $ac_compiler_gnu = yes; then
7785 GCC=yes
7786 else
7787 GCC=
7788 fi
7789 ac_test_CFLAGS=${CFLAGS+set}
7790 ac_save_CFLAGS=$CFLAGS
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7792 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7793 if test "${ac_cv_prog_cc_g+set}" = set; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 ac_save_c_werror_flag=$ac_c_werror_flag
7797 ac_c_werror_flag=yes
7798 ac_cv_prog_cc_g=no
7799 CFLAGS="-g"
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7803 int
7804 main ()
7805 {
7807 ;
7808 return 0;
7809 }
7810 _ACEOF
7811 if ac_fn_c_try_compile "$LINENO"; then :
7812 ac_cv_prog_cc_g=yes
7813 else
7814 CFLAGS=""
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7818 int
7819 main ()
7820 {
7822 ;
7823 return 0;
7824 }
7825 _ACEOF
7826 if ac_fn_c_try_compile "$LINENO"; then :
7828 else
7829 ac_c_werror_flag=$ac_save_c_werror_flag
7830 CFLAGS="-g"
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7834 int
7835 main ()
7836 {
7838 ;
7839 return 0;
7840 }
7841 _ACEOF
7842 if ac_fn_c_try_compile "$LINENO"; then :
7843 ac_cv_prog_cc_g=yes
7844 fi
7845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846 fi
7847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7848 fi
7849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850 ac_c_werror_flag=$ac_save_c_werror_flag
7851 fi
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7853 $as_echo "$ac_cv_prog_cc_g" >&6; }
7854 if test "$ac_test_CFLAGS" = set; then
7855 CFLAGS=$ac_save_CFLAGS
7856 elif test $ac_cv_prog_cc_g = yes; then
7857 if test "$GCC" = yes; then
7858 CFLAGS="-g -O2"
7859 else
7860 CFLAGS="-g"
7861 fi
7862 else
7863 if test "$GCC" = yes; then
7864 CFLAGS="-O2"
7865 else
7866 CFLAGS=
7867 fi
7868 fi
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7870 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7871 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 ac_cv_prog_cc_c89=no
7875 ac_save_CC=$CC
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878 #include <stdarg.h>
7879 #include <stdio.h>
7880 #include <sys/types.h>
7881 #include <sys/stat.h>
7882 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7883 struct buf { int x; };
7884 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7885 static char *e (p, i)
7886 char **p;
7887 int i;
7888 {
7889 return p[i];
7890 }
7891 static char *f (char * (*g) (char **, int), char **p, ...)
7892 {
7893 char *s;
7894 va_list v;
7895 va_start (v,p);
7896 s = g (p, va_arg (v,int));
7897 va_end (v);
7898 return s;
7899 }
7901 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7902 function prototypes and stuff, but not '\xHH' hex character constants.
7903 These don't provoke an error unfortunately, instead are silently treated
7904 as 'x'. The following induces an error, until -std is added to get
7905 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7906 array size at least. It's necessary to write '\x00'==0 to get something
7907 that's true only with -std. */
7908 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7910 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7911 inside strings and character constants. */
7912 #define FOO(x) 'x'
7913 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7915 int test (int i, double x);
7916 struct s1 {int (*f) (int a);};
7917 struct s2 {int (*f) (double a);};
7918 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7919 int argc;
7920 char **argv;
7921 int
7922 main ()
7923 {
7924 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7925 ;
7926 return 0;
7927 }
7928 _ACEOF
7929 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7930 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7931 do
7932 CC="$ac_save_CC $ac_arg"
7933 if ac_fn_c_try_compile "$LINENO"; then :
7934 ac_cv_prog_cc_c89=$ac_arg
7935 fi
7936 rm -f core conftest.err conftest.$ac_objext
7937 test "x$ac_cv_prog_cc_c89" != "xno" && break
7938 done
7939 rm -f conftest.$ac_ext
7940 CC=$ac_save_CC
7942 fi
7943 # AC_CACHE_VAL
7944 case "x$ac_cv_prog_cc_c89" in
7945 x)
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7947 $as_echo "none needed" >&6; } ;;
7948 xno)
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7950 $as_echo "unsupported" >&6; } ;;
7951 *)
7952 CC="$CC $ac_cv_prog_cc_c89"
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7954 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7955 esac
7956 if test "x$ac_cv_prog_cc_c89" != xno; then :
7958 fi
7960 ac_ext=cpp
7961 ac_cpp='$CXXCPP $CPPFLAGS'
7962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7966 if test "x$CC" = x; then
7967 help_on_build_dependency devkit
7968 as_fn_error $? "Could not find a compiler. $HELP_MSG" "$LINENO" 5
7969 fi
7970 if test "x$CC" = xcc && test "x$BUILD_OS" = xmacosx; then
7971 # Do not use cc on MacOSX use gcc instead.
7972 CC="gcc"
7973 fi
7975 # Translate "gcc -E" into "`which gcc` -E" ie
7976 # extract the full path to the binary and at the
7977 # same time maintain any arguments passed to it.
7978 # The command MUST exist in the path, or else!
7979 tmp="$CC"
7980 car="${tmp%% *}"
7981 tmp="$CC EOL"
7982 cdr="${tmp#* }"
7983 # On windows we want paths without spaces.
7984 if test "x$BUILD_OS" = "xwindows"; then
7986 # Translate long cygdrive or C:\sdfsf path
7987 # into a short mixed mode path that has no
7988 # spaces in it.
7989 tmp="$car"
7990 if test "x$BUILD_OS" = "xwindows"; then
7991 tmp=`$CYGPATH -u "$car"`
7992 tmp=`which "$tmp"`
7993 # If file exists with .exe appended, that's the real filename
7994 # and cygpath needs that to convert to short style path.
7995 if test -f "${tmp}.exe"; then
7996 tmp="${tmp}.exe"
7997 elif test -f "${tmp}.cmd"; then
7998 tmp="${tmp}.cmd"
7999 fi
8000 # Convert to C:/ mixed style path without spaces.
8001 tmp=`$CYGPATH -s -m "$tmp"`
8002 fi
8003 car="$tmp"
8005 else
8006 # "which" is not portable, but is used here
8007 # because we know that the command exists!
8008 car=`which $car`
8009 fi
8010 if test "x$cdr" != xEOL; then
8011 CC="$car ${cdr% *}"
8012 else
8013 CC="$car"
8014 fi
8017 ac_ext=cpp
8018 ac_cpp='$CXXCPP $CPPFLAGS'
8019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8022 if test -z "$CXX"; then
8023 if test -n "$CCC"; then
8024 CXX=$CCC
8025 else
8026 if test -n "$ac_tool_prefix"; then
8027 for ac_prog in cl CC g++
8028 do
8029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if test "${ac_cv_prog_CXX+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 if test -n "$CXX"; then
8037 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8041 do
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8046 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 break 2
8049 fi
8050 done
8051 done
8052 IFS=$as_save_IFS
8054 fi
8055 fi
8056 CXX=$ac_cv_prog_CXX
8057 if test -n "$CXX"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8059 $as_echo "$CXX" >&6; }
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8063 fi
8066 test -n "$CXX" && break
8067 done
8068 fi
8069 if test -z "$CXX"; then
8070 ac_ct_CXX=$CXX
8071 for ac_prog in cl CC g++
8072 do
8073 # Extract the first word of "$ac_prog", so it can be a program name with args.
8074 set dummy $ac_prog; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 if test -n "$ac_ct_CXX"; then
8081 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8085 do
8086 IFS=$as_save_IFS
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8090 ac_cv_prog_ac_ct_CXX="$ac_prog"
8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 break 2
8093 fi
8094 done
8095 done
8096 IFS=$as_save_IFS
8098 fi
8099 fi
8100 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8101 if test -n "$ac_ct_CXX"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8103 $as_echo "$ac_ct_CXX" >&6; }
8104 else
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8107 fi
8110 test -n "$ac_ct_CXX" && break
8111 done
8113 if test "x$ac_ct_CXX" = x; then
8114 CXX="g++"
8115 else
8116 case $cross_compiling:$ac_tool_warned in
8117 yes:)
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8120 ac_tool_warned=yes ;;
8121 esac
8122 CXX=$ac_ct_CXX
8123 fi
8124 fi
8126 fi
8127 fi
8128 # Provide some information about the compiler.
8129 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8130 set X $ac_compile
8131 ac_compiler=$2
8132 for ac_option in --version -v -V -qversion; do
8133 { { ac_try="$ac_compiler $ac_option >&5"
8134 case "(($ac_try" in
8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136 *) ac_try_echo=$ac_try;;
8137 esac
8138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8139 $as_echo "$ac_try_echo"; } >&5
8140 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8141 ac_status=$?
8142 if test -s conftest.err; then
8143 sed '10a\
8144 ... rest of stderr output deleted ...
8145 10q' conftest.err >conftest.er1
8146 cat conftest.er1 >&5
8147 fi
8148 rm -f conftest.er1 conftest.err
8149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8150 test $ac_status = 0; }
8151 done
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8154 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8155 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8156 $as_echo_n "(cached) " >&6
8157 else
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8161 int
8162 main ()
8163 {
8164 #ifndef __GNUC__
8165 choke me
8166 #endif
8168 ;
8169 return 0;
8170 }
8171 _ACEOF
8172 if ac_fn_cxx_try_compile "$LINENO"; then :
8173 ac_compiler_gnu=yes
8174 else
8175 ac_compiler_gnu=no
8176 fi
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8180 fi
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8182 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8183 if test $ac_compiler_gnu = yes; then
8184 GXX=yes
8185 else
8186 GXX=
8187 fi
8188 ac_test_CXXFLAGS=${CXXFLAGS+set}
8189 ac_save_CXXFLAGS=$CXXFLAGS
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8191 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8192 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8196 ac_cxx_werror_flag=yes
8197 ac_cv_prog_cxx_g=no
8198 CXXFLAGS="-g"
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8202 int
8203 main ()
8204 {
8206 ;
8207 return 0;
8208 }
8209 _ACEOF
8210 if ac_fn_cxx_try_compile "$LINENO"; then :
8211 ac_cv_prog_cxx_g=yes
8212 else
8213 CXXFLAGS=""
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8217 int
8218 main ()
8219 {
8221 ;
8222 return 0;
8223 }
8224 _ACEOF
8225 if ac_fn_cxx_try_compile "$LINENO"; then :
8227 else
8228 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8229 CXXFLAGS="-g"
8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8233 int
8234 main ()
8235 {
8237 ;
8238 return 0;
8239 }
8240 _ACEOF
8241 if ac_fn_cxx_try_compile "$LINENO"; then :
8242 ac_cv_prog_cxx_g=yes
8243 fi
8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245 fi
8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 fi
8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8250 fi
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8252 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8253 if test "$ac_test_CXXFLAGS" = set; then
8254 CXXFLAGS=$ac_save_CXXFLAGS
8255 elif test $ac_cv_prog_cxx_g = yes; then
8256 if test "$GXX" = yes; then
8257 CXXFLAGS="-g -O2"
8258 else
8259 CXXFLAGS="-g"
8260 fi
8261 else
8262 if test "$GXX" = yes; then
8263 CXXFLAGS="-O2"
8264 else
8265 CXXFLAGS=
8266 fi
8267 fi
8268 ac_ext=cpp
8269 ac_cpp='$CXXCPP $CPPFLAGS'
8270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8274 if test "x$CXX" = xCC && test "x$BUILD_OS" = xmacosx; then
8275 # The found CC, even though it seems to be a g++ derivate, cannot compile
8276 # c++ code. Override.
8277 CXX="g++"
8278 fi
8280 # Translate "gcc -E" into "`which gcc` -E" ie
8281 # extract the full path to the binary and at the
8282 # same time maintain any arguments passed to it.
8283 # The command MUST exist in the path, or else!
8284 tmp="$CXX"
8285 car="${tmp%% *}"
8286 tmp="$CXX EOL"
8287 cdr="${tmp#* }"
8288 # On windows we want paths without spaces.
8289 if test "x$BUILD_OS" = "xwindows"; then
8291 # Translate long cygdrive or C:\sdfsf path
8292 # into a short mixed mode path that has no
8293 # spaces in it.
8294 tmp="$car"
8295 if test "x$BUILD_OS" = "xwindows"; then
8296 tmp=`$CYGPATH -u "$car"`
8297 tmp=`which "$tmp"`
8298 # If file exists with .exe appended, that's the real filename
8299 # and cygpath needs that to convert to short style path.
8300 if test -f "${tmp}.exe"; then
8301 tmp="${tmp}.exe"
8302 elif test -f "${tmp}.cmd"; then
8303 tmp="${tmp}.cmd"
8304 fi
8305 # Convert to C:/ mixed style path without spaces.
8306 tmp=`$CYGPATH -s -m "$tmp"`
8307 fi
8308 car="$tmp"
8310 else
8311 # "which" is not portable, but is used here
8312 # because we know that the command exists!
8313 car=`which $car`
8314 fi
8315 if test "x$cdr" != xEOL; then
8316 CXX="$car ${cdr% *}"
8317 else
8318 CXX="$car"
8319 fi
8322 if test "x$CXX" = x || test "x$CC" = x; then
8323 help_on_build_dependency devkit
8324 as_fn_error $? "Could not find the needed compilers! $HELP_MSG " "$LINENO" 5
8325 fi
8327 if test "x$BUILD_OS" != xwindows; then
8328 ac_ext=m
8329 ac_cpp='$OBJCPP $CPPFLAGS'
8330 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8331 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8332 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8333 if test -n "$ac_tool_prefix"; then
8334 for ac_prog in gcc objcc objc cc CC
8335 do
8336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if test "${ac_cv_prog_OBJC+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 if test -n "$OBJC"; then
8344 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
8345 else
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 for as_dir in $PATH
8348 do
8349 IFS=$as_save_IFS
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8353 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355 break 2
8356 fi
8357 done
8358 done
8359 IFS=$as_save_IFS
8361 fi
8362 fi
8363 OBJC=$ac_cv_prog_OBJC
8364 if test -n "$OBJC"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
8366 $as_echo "$OBJC" >&6; }
8367 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8370 fi
8373 test -n "$OBJC" && break
8374 done
8375 fi
8376 if test -z "$OBJC"; then
8377 ac_ct_OBJC=$OBJC
8378 for ac_prog in gcc objcc objc cc CC
8379 do
8380 # Extract the first word of "$ac_prog", so it can be a program name with args.
8381 set dummy $ac_prog; ac_word=$2
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then :
8385 $as_echo_n "(cached) " >&6
8386 else
8387 if test -n "$ac_ct_OBJC"; then
8388 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
8389 else
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 for as_dir in $PATH
8392 do
8393 IFS=$as_save_IFS
8394 test -z "$as_dir" && as_dir=.
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8397 ac_cv_prog_ac_ct_OBJC="$ac_prog"
8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 break 2
8400 fi
8401 done
8402 done
8403 IFS=$as_save_IFS
8405 fi
8406 fi
8407 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
8408 if test -n "$ac_ct_OBJC"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
8410 $as_echo "$ac_ct_OBJC" >&6; }
8411 else
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8414 fi
8417 test -n "$ac_ct_OBJC" && break
8418 done
8420 if test "x$ac_ct_OBJC" = x; then
8421 OBJC="gcc"
8422 else
8423 case $cross_compiling:$ac_tool_warned in
8424 yes:)
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8427 ac_tool_warned=yes ;;
8428 esac
8429 OBJC=$ac_ct_OBJC
8430 fi
8431 fi
8433 # Provide some information about the compiler.
8434 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
8435 set X $ac_compile
8436 ac_compiler=$2
8437 for ac_option in --version -v -V -qversion; do
8438 { { ac_try="$ac_compiler $ac_option >&5"
8439 case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8442 esac
8443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8444 $as_echo "$ac_try_echo"; } >&5
8445 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8446 ac_status=$?
8447 if test -s conftest.err; then
8448 sed '10a\
8449 ... rest of stderr output deleted ...
8450 10q' conftest.err >conftest.er1
8451 cat conftest.er1 >&5
8452 fi
8453 rm -f conftest.er1 conftest.err
8454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8455 test $ac_status = 0; }
8456 done
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
8459 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
8460 if test "${ac_cv_objc_compiler_gnu+set}" = set; then :
8461 $as_echo_n "(cached) " >&6
8462 else
8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h. */
8466 int
8467 main ()
8468 {
8469 #ifndef __GNUC__
8470 choke me
8471 #endif
8473 ;
8474 return 0;
8475 }
8476 _ACEOF
8477 if ac_fn_objc_try_compile "$LINENO"; then :
8478 ac_compiler_gnu=yes
8479 else
8480 ac_compiler_gnu=no
8481 fi
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
8485 fi
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
8487 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
8488 if test $ac_compiler_gnu = yes; then
8489 GOBJC=yes
8490 else
8491 GOBJC=
8492 fi
8493 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
8494 ac_save_OBJCFLAGS=$OBJCFLAGS
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
8496 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
8497 if test "${ac_cv_prog_objc_g+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8499 else
8500 ac_save_objc_werror_flag=$ac_objc_werror_flag
8501 ac_objc_werror_flag=yes
8502 ac_cv_prog_objc_g=no
8503 OBJCFLAGS="-g"
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8507 int
8508 main ()
8509 {
8511 ;
8512 return 0;
8513 }
8514 _ACEOF
8515 if ac_fn_objc_try_compile "$LINENO"; then :
8516 ac_cv_prog_objc_g=yes
8517 else
8518 OBJCFLAGS=""
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8522 int
8523 main ()
8524 {
8526 ;
8527 return 0;
8528 }
8529 _ACEOF
8530 if ac_fn_objc_try_compile "$LINENO"; then :
8532 else
8533 ac_objc_werror_flag=$ac_save_objc_werror_flag
8534 OBJCFLAGS="-g"
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8538 int
8539 main ()
8540 {
8542 ;
8543 return 0;
8544 }
8545 _ACEOF
8546 if ac_fn_objc_try_compile "$LINENO"; then :
8547 ac_cv_prog_objc_g=yes
8548 fi
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550 fi
8551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552 fi
8553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554 ac_objc_werror_flag=$ac_save_objc_werror_flag
8555 fi
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
8557 $as_echo "$ac_cv_prog_objc_g" >&6; }
8558 if test "$ac_test_OBJCFLAGS" = set; then
8559 OBJCFLAGS=$ac_save_OBJCFLAGS
8560 elif test $ac_cv_prog_objc_g = yes; then
8561 if test "$GOBJC" = yes; then
8562 OBJCFLAGS="-g -O2"
8563 else
8564 OBJCFLAGS="-g"
8565 fi
8566 else
8567 if test "$GOBJC" = yes; then
8568 OBJCFLAGS="-O2"
8569 else
8570 OBJCFLAGS=
8571 fi
8572 fi
8573 ac_ext=cpp
8574 ac_cpp='$CXXCPP $CPPFLAGS'
8575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8580 # Translate "gcc -E" into "`which gcc` -E" ie
8581 # extract the full path to the binary and at the
8582 # same time maintain any arguments passed to it.
8583 # The command MUST exist in the path, or else!
8584 tmp="$OBJC"
8585 car="${tmp%% *}"
8586 tmp="$OBJC EOL"
8587 cdr="${tmp#* }"
8588 # On windows we want paths without spaces.
8589 if test "x$BUILD_OS" = "xwindows"; then
8591 # Translate long cygdrive or C:\sdfsf path
8592 # into a short mixed mode path that has no
8593 # spaces in it.
8594 tmp="$car"
8595 if test "x$BUILD_OS" = "xwindows"; then
8596 tmp=`$CYGPATH -u "$car"`
8597 tmp=`which "$tmp"`
8598 # If file exists with .exe appended, that's the real filename
8599 # and cygpath needs that to convert to short style path.
8600 if test -f "${tmp}.exe"; then
8601 tmp="${tmp}.exe"
8602 elif test -f "${tmp}.cmd"; then
8603 tmp="${tmp}.cmd"
8604 fi
8605 # Convert to C:/ mixed style path without spaces.
8606 tmp=`$CYGPATH -s -m "$tmp"`
8607 fi
8608 car="$tmp"
8610 else
8611 # "which" is not portable, but is used here
8612 # because we know that the command exists!
8613 car=`which $car`
8614 fi
8615 if test "x$cdr" != xEOL; then
8616 OBJC="$car ${cdr% *}"
8617 else
8618 OBJC="$car"
8619 fi
8621 else
8622 OBJC=
8623 fi
8625 # Restore the flags to the user specified values.
8626 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2"
8627 CFLAGS="$ORG_CFLAGS"
8628 CXXFLAGS="$ORG_CXXFLAGS"
8629 OBJCFLAGS="$ORG_OBJCFLAGS"
8631 # If we are not cross compiling, use the same compilers for
8632 # building the build platform executables.
8633 if test "x$DEFINE_CROSS_COMPILE_ARCH" = x; then
8634 HOSTCC="$CC"
8635 HOSTCXX="$CXX"
8636 fi
8638 if test -n "$ac_tool_prefix"; then
8639 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
8640 set dummy ${ac_tool_prefix}ld; ac_word=$2
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8642 $as_echo_n "checking for $ac_word... " >&6; }
8643 if test "${ac_cv_prog_LD+set}" = set; then :
8644 $as_echo_n "(cached) " >&6
8645 else
8646 if test -n "$LD"; then
8647 ac_cv_prog_LD="$LD" # Let the user override the test.
8648 else
8649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650 for as_dir in $PATH
8651 do
8652 IFS=$as_save_IFS
8653 test -z "$as_dir" && as_dir=.
8654 for ac_exec_ext in '' $ac_executable_extensions; do
8655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8656 ac_cv_prog_LD="${ac_tool_prefix}ld"
8657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8658 break 2
8659 fi
8660 done
8661 done
8662 IFS=$as_save_IFS
8664 fi
8665 fi
8666 LD=$ac_cv_prog_LD
8667 if test -n "$LD"; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8669 $as_echo "$LD" >&6; }
8670 else
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672 $as_echo "no" >&6; }
8673 fi
8676 fi
8677 if test -z "$ac_cv_prog_LD"; then
8678 ac_ct_LD=$LD
8679 # Extract the first word of "ld", so it can be a program name with args.
8680 set dummy ld; ac_word=$2
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8682 $as_echo_n "checking for $ac_word... " >&6; }
8683 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
8684 $as_echo_n "(cached) " >&6
8685 else
8686 if test -n "$ac_ct_LD"; then
8687 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
8688 else
8689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 for as_dir in $PATH
8691 do
8692 IFS=$as_save_IFS
8693 test -z "$as_dir" && as_dir=.
8694 for ac_exec_ext in '' $ac_executable_extensions; do
8695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8696 ac_cv_prog_ac_ct_LD="ld"
8697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8698 break 2
8699 fi
8700 done
8701 done
8702 IFS=$as_save_IFS
8704 fi
8705 fi
8706 ac_ct_LD=$ac_cv_prog_ac_ct_LD
8707 if test -n "$ac_ct_LD"; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
8709 $as_echo "$ac_ct_LD" >&6; }
8710 else
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8713 fi
8715 if test "x$ac_ct_LD" = x; then
8716 LD=""
8717 else
8718 case $cross_compiling:$ac_tool_warned in
8719 yes:)
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8722 ac_tool_warned=yes ;;
8723 esac
8724 LD=$ac_ct_LD
8725 fi
8726 else
8727 LD="$ac_cv_prog_LD"
8728 fi
8731 # Translate "gcc -E" into "`which gcc` -E" ie
8732 # extract the full path to the binary and at the
8733 # same time maintain any arguments passed to it.
8734 # The command MUST exist in the path, or else!
8735 tmp="$LD"
8736 car="${tmp%% *}"
8737 tmp="$LD EOL"
8738 cdr="${tmp#* }"
8739 # On windows we want paths without spaces.
8740 if test "x$BUILD_OS" = "xwindows"; then
8742 # Translate long cygdrive or C:\sdfsf path
8743 # into a short mixed mode path that has no
8744 # spaces in it.
8745 tmp="$car"
8746 if test "x$BUILD_OS" = "xwindows"; then
8747 tmp=`$CYGPATH -u "$car"`
8748 tmp=`which "$tmp"`
8749 # If file exists with .exe appended, that's the real filename
8750 # and cygpath needs that to convert to short style path.
8751 if test -f "${tmp}.exe"; then
8752 tmp="${tmp}.exe"
8753 elif test -f "${tmp}.cmd"; then
8754 tmp="${tmp}.cmd"
8755 fi
8756 # Convert to C:/ mixed style path without spaces.
8757 tmp=`$CYGPATH -s -m "$tmp"`
8758 fi
8759 car="$tmp"
8761 else
8762 # "which" is not portable, but is used here
8763 # because we know that the command exists!
8764 car=`which $car`
8765 fi
8766 if test "x$cdr" != xEOL; then
8767 LD="$car ${cdr% *}"
8768 else
8769 LD="$car"
8770 fi
8772 LDEXE="$LD"
8773 LDCXX="$LD"
8774 LDEXECXX="$LD"
8775 # LDEXE is the linker to use, when creating executables.
8777 # Linking C++ libraries.
8779 # Linking C++ executables.
8782 if test -n "$ac_tool_prefix"; then
8783 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8784 set dummy ${ac_tool_prefix}ar; ac_word=$2
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786 $as_echo_n "checking for $ac_word... " >&6; }
8787 if test "${ac_cv_prog_AR+set}" = set; then :
8788 $as_echo_n "(cached) " >&6
8789 else
8790 if test -n "$AR"; then
8791 ac_cv_prog_AR="$AR" # Let the user override the test.
8792 else
8793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794 for as_dir in $PATH
8795 do
8796 IFS=$as_save_IFS
8797 test -z "$as_dir" && as_dir=.
8798 for ac_exec_ext in '' $ac_executable_extensions; do
8799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8800 ac_cv_prog_AR="${ac_tool_prefix}ar"
8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8802 break 2
8803 fi
8804 done
8805 done
8806 IFS=$as_save_IFS
8808 fi
8809 fi
8810 AR=$ac_cv_prog_AR
8811 if test -n "$AR"; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8813 $as_echo "$AR" >&6; }
8814 else
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816 $as_echo "no" >&6; }
8817 fi
8820 fi
8821 if test -z "$ac_cv_prog_AR"; then
8822 ac_ct_AR=$AR
8823 # Extract the first word of "ar", so it can be a program name with args.
8824 set dummy ar; ac_word=$2
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826 $as_echo_n "checking for $ac_word... " >&6; }
8827 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 if test -n "$ac_ct_AR"; then
8831 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8832 else
8833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834 for as_dir in $PATH
8835 do
8836 IFS=$as_save_IFS
8837 test -z "$as_dir" && as_dir=.
8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8840 ac_cv_prog_ac_ct_AR="ar"
8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8842 break 2
8843 fi
8844 done
8845 done
8846 IFS=$as_save_IFS
8848 fi
8849 fi
8850 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8851 if test -n "$ac_ct_AR"; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8853 $as_echo "$ac_ct_AR" >&6; }
8854 else
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 $as_echo "no" >&6; }
8857 fi
8859 if test "x$ac_ct_AR" = x; then
8860 AR=""
8861 else
8862 case $cross_compiling:$ac_tool_warned in
8863 yes:)
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8866 ac_tool_warned=yes ;;
8867 esac
8868 AR=$ac_ct_AR
8869 fi
8870 else
8871 AR="$ac_cv_prog_AR"
8872 fi
8875 # Translate "gcc -E" into "`which gcc` -E" ie
8876 # extract the full path to the binary and at the
8877 # same time maintain any arguments passed to it.
8878 # The command MUST exist in the path, or else!
8879 tmp="$AR"
8880 car="${tmp%% *}"
8881 tmp="$AR EOL"
8882 cdr="${tmp#* }"
8883 # On windows we want paths without spaces.
8884 if test "x$BUILD_OS" = "xwindows"; then
8886 # Translate long cygdrive or C:\sdfsf path
8887 # into a short mixed mode path that has no
8888 # spaces in it.
8889 tmp="$car"
8890 if test "x$BUILD_OS" = "xwindows"; then
8891 tmp=`$CYGPATH -u "$car"`
8892 tmp=`which "$tmp"`
8893 # If file exists with .exe appended, that's the real filename
8894 # and cygpath needs that to convert to short style path.
8895 if test -f "${tmp}.exe"; then
8896 tmp="${tmp}.exe"
8897 elif test -f "${tmp}.cmd"; then
8898 tmp="${tmp}.cmd"
8899 fi
8900 # Convert to C:/ mixed style path without spaces.
8901 tmp=`$CYGPATH -s -m "$tmp"`
8902 fi
8903 car="$tmp"
8905 else
8906 # "which" is not portable, but is used here
8907 # because we know that the command exists!
8908 car=`which $car`
8909 fi
8910 if test "x$cdr" != xEOL; then
8911 AR="$car ${cdr% *}"
8912 else
8913 AR="$car"
8914 fi
8916 if test "x$BUILD_OS" = xmacosx; then
8917 ARFLAGS="-r"
8918 else
8919 ARFLAGS=""
8920 fi
8923 COMPILER_NAME=gcc
8924 COMPILER_TYPE=CC
8925 if test "x$BUILD_OS" = xwindows; then :
8927 # For now, assume that we are always compiling using cl.exe.
8928 CC_OUT_OPTION=-Fo
8929 EXE_OUT_OPTION=-Fe
8930 LD_OUT_OPTION=-out:
8931 AR_OUT_OPTION=-out:
8932 # On Windows, reject /usr/bin/link, which is a cygwin
8933 # program for something completely different.
8934 # Extract the first word of "link", so it can be a program name with args.
8935 set dummy link; ac_word=$2
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937 $as_echo_n "checking for $ac_word... " >&6; }
8938 if test "${ac_cv_prog_WINLD+set}" = set; then :
8939 $as_echo_n "(cached) " >&6
8940 else
8941 if test -n "$WINLD"; then
8942 ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
8943 else
8944 ac_prog_rejected=no
8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 for as_dir in $PATH
8947 do
8948 IFS=$as_save_IFS
8949 test -z "$as_dir" && as_dir=.
8950 for ac_exec_ext in '' $ac_executable_extensions; do
8951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8952 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/link"; then
8953 ac_prog_rejected=yes
8954 continue
8955 fi
8956 ac_cv_prog_WINLD="link"
8957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8958 break 2
8959 fi
8960 done
8961 done
8962 IFS=$as_save_IFS
8964 if test $ac_prog_rejected = yes; then
8965 # We found a bogon in the path, so make sure we never use it.
8966 set dummy $ac_cv_prog_WINLD
8967 shift
8968 if test $# != 0; then
8969 # We chose a different compiler from the bogus one.
8970 # However, it has the same basename, so the bogon will be chosen
8971 # first if we set WINLD to just the basename; use the full file name.
8972 shift
8973 ac_cv_prog_WINLD="$as_dir/$ac_word${1+' '}$@"
8974 fi
8975 fi
8976 fi
8977 fi
8978 WINLD=$ac_cv_prog_WINLD
8979 if test -n "$WINLD"; then
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINLD" >&5
8981 $as_echo "$WINLD" >&6; }
8982 else
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 $as_echo "no" >&6; }
8985 fi
8988 # Since we must ignore the first found link, WINLD will contain
8989 # the full path to the link.exe program.
8991 # Translate long cygdrive or C:\sdfsf path
8992 # into a short mixed mode path that has no
8993 # spaces in it.
8994 tmp="$WINLD"
8995 if test "x$BUILD_OS" = "xwindows"; then
8996 tmp=`$CYGPATH -u "$WINLD"`
8997 tmp=`which "$tmp"`
8998 # If file exists with .exe appended, that's the real filename
8999 # and cygpath needs that to convert to short style path.
9000 if test -f "${tmp}.exe"; then
9001 tmp="${tmp}.exe"
9002 elif test -f "${tmp}.cmd"; then
9003 tmp="${tmp}.cmd"
9004 fi
9005 # Convert to C:/ mixed style path without spaces.
9006 tmp=`$CYGPATH -s -m "$tmp"`
9007 fi
9008 WINLD="$tmp"
9010 LD="$WINLD"
9011 # However creating executables can only be done with cl.exe.
9012 LDEXE="$CC"
9013 LDCXX="$WINLD"
9014 LDEXECXX="$CC"
9016 # Extract the first word of "mt", so it can be a program name with args.
9017 set dummy mt; ac_word=$2
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9019 $as_echo_n "checking for $ac_word... " >&6; }
9020 if test "${ac_cv_prog_MT+set}" = set; then :
9021 $as_echo_n "(cached) " >&6
9022 else
9023 if test -n "$MT"; then
9024 ac_cv_prog_MT="$MT" # Let the user override the test.
9025 else
9026 ac_prog_rejected=no
9027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9028 for as_dir in $PATH
9029 do
9030 IFS=$as_save_IFS
9031 test -z "$as_dir" && as_dir=.
9032 for ac_exec_ext in '' $ac_executable_extensions; do
9033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9034 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
9035 ac_prog_rejected=yes
9036 continue
9037 fi
9038 ac_cv_prog_MT="mt"
9039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9040 break 2
9041 fi
9042 done
9043 done
9044 IFS=$as_save_IFS
9046 if test $ac_prog_rejected = yes; then
9047 # We found a bogon in the path, so make sure we never use it.
9048 set dummy $ac_cv_prog_MT
9049 shift
9050 if test $# != 0; then
9051 # We chose a different compiler from the bogus one.
9052 # However, it has the same basename, so the bogon will be chosen
9053 # first if we set MT to just the basename; use the full file name.
9054 shift
9055 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@"
9056 fi
9057 fi
9058 fi
9059 fi
9060 MT=$ac_cv_prog_MT
9061 if test -n "$MT"; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5
9063 $as_echo "$MT" >&6; }
9064 else
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 $as_echo "no" >&6; }
9067 fi
9071 # Translate long cygdrive or C:\sdfsf path
9072 # into a short mixed mode path that has no
9073 # spaces in it.
9074 tmp="$MT"
9075 if test "x$BUILD_OS" = "xwindows"; then
9076 tmp=`$CYGPATH -u "$MT"`
9077 tmp=`which "$tmp"`
9078 # If file exists with .exe appended, that's the real filename
9079 # and cygpath needs that to convert to short style path.
9080 if test -f "${tmp}.exe"; then
9081 tmp="${tmp}.exe"
9082 elif test -f "${tmp}.cmd"; then
9083 tmp="${tmp}.cmd"
9084 fi
9085 # Convert to C:/ mixed style path without spaces.
9086 tmp=`$CYGPATH -s -m "$tmp"`
9087 fi
9088 MT="$tmp"
9090 # The resource compiler
9091 # Extract the first word of "rc", so it can be a program name with args.
9092 set dummy rc; ac_word=$2
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9094 $as_echo_n "checking for $ac_word... " >&6; }
9095 if test "${ac_cv_prog_RC+set}" = set; then :
9096 $as_echo_n "(cached) " >&6
9097 else
9098 if test -n "$RC"; then
9099 ac_cv_prog_RC="$RC" # Let the user override the test.
9100 else
9101 ac_prog_rejected=no
9102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103 for as_dir in $PATH
9104 do
9105 IFS=$as_save_IFS
9106 test -z "$as_dir" && as_dir=.
9107 for ac_exec_ext in '' $ac_executable_extensions; do
9108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9109 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
9110 ac_prog_rejected=yes
9111 continue
9112 fi
9113 ac_cv_prog_RC="rc"
9114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115 break 2
9116 fi
9117 done
9118 done
9119 IFS=$as_save_IFS
9121 if test $ac_prog_rejected = yes; then
9122 # We found a bogon in the path, so make sure we never use it.
9123 set dummy $ac_cv_prog_RC
9124 shift
9125 if test $# != 0; then
9126 # We chose a different compiler from the bogus one.
9127 # However, it has the same basename, so the bogon will be chosen
9128 # first if we set RC to just the basename; use the full file name.
9129 shift
9130 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@"
9131 fi
9132 fi
9133 fi
9134 fi
9135 RC=$ac_cv_prog_RC
9136 if test -n "$RC"; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
9138 $as_echo "$RC" >&6; }
9139 else
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 $as_echo "no" >&6; }
9142 fi
9146 # Translate long cygdrive or C:\sdfsf path
9147 # into a short mixed mode path that has no
9148 # spaces in it.
9149 tmp="$RC"
9150 if test "x$BUILD_OS" = "xwindows"; then
9151 tmp=`$CYGPATH -u "$RC"`
9152 tmp=`which "$tmp"`
9153 # If file exists with .exe appended, that's the real filename
9154 # and cygpath needs that to convert to short style path.
9155 if test -f "${tmp}.exe"; then
9156 tmp="${tmp}.exe"
9157 elif test -f "${tmp}.cmd"; then
9158 tmp="${tmp}.cmd"
9159 fi
9160 # Convert to C:/ mixed style path without spaces.
9161 tmp=`$CYGPATH -s -m "$tmp"`
9162 fi
9163 RC="$tmp"
9166 RC_FLAGS="/l 0x409 /r"
9167 if test "x$VARIANT" = xOPT; then :
9169 RC_FLAGS="$RC_FLAGS -d NDEBUG"
9171 fi
9172 JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION
9173 if test "x$JDK_UPDATE_VERSION" = x; then :
9175 JDK_UPDATE_VERSION_NOTNULL=0
9177 fi
9178 RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\""
9179 RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\""
9180 RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\""
9181 RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\""
9182 RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\""
9183 RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\""
9184 RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\""
9186 # lib.exe is used to create static libraries.
9187 # Extract the first word of "lib", so it can be a program name with args.
9188 set dummy lib; ac_word=$2
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9190 $as_echo_n "checking for $ac_word... " >&6; }
9191 if test "${ac_cv_prog_WINAR+set}" = set; then :
9192 $as_echo_n "(cached) " >&6
9193 else
9194 if test -n "$WINAR"; then
9195 ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
9196 else
9197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9198 for as_dir in $PATH
9199 do
9200 IFS=$as_save_IFS
9201 test -z "$as_dir" && as_dir=.
9202 for ac_exec_ext in '' $ac_executable_extensions; do
9203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9204 ac_cv_prog_WINAR="lib"
9205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9206 break 2
9207 fi
9208 done
9209 done
9210 IFS=$as_save_IFS
9212 fi
9213 fi
9214 WINAR=$ac_cv_prog_WINAR
9215 if test -n "$WINAR"; then
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINAR" >&5
9217 $as_echo "$WINAR" >&6; }
9218 else
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220 $as_echo "no" >&6; }
9221 fi
9225 # Translate long cygdrive or C:\sdfsf path
9226 # into a short mixed mode path that has no
9227 # spaces in it.
9228 tmp="$WINAR"
9229 if test "x$BUILD_OS" = "xwindows"; then
9230 tmp=`$CYGPATH -u "$WINAR"`
9231 tmp=`which "$tmp"`
9232 # If file exists with .exe appended, that's the real filename
9233 # and cygpath needs that to convert to short style path.
9234 if test -f "${tmp}.exe"; then
9235 tmp="${tmp}.exe"
9236 elif test -f "${tmp}.cmd"; then
9237 tmp="${tmp}.cmd"
9238 fi
9239 # Convert to C:/ mixed style path without spaces.
9240 tmp=`$CYGPATH -s -m "$tmp"`
9241 fi
9242 WINAR="$tmp"
9244 AR="$WINAR"
9245 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
9247 # Extract the first word of "dumpbin", so it can be a program name with args.
9248 set dummy dumpbin; ac_word=$2
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9250 $as_echo_n "checking for $ac_word... " >&6; }
9251 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9252 $as_echo_n "(cached) " >&6
9253 else
9254 if test -n "$DUMPBIN"; then
9255 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9256 else
9257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258 for as_dir in $PATH
9259 do
9260 IFS=$as_save_IFS
9261 test -z "$as_dir" && as_dir=.
9262 for ac_exec_ext in '' $ac_executable_extensions; do
9263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9264 ac_cv_prog_DUMPBIN="dumpbin"
9265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9266 break 2
9267 fi
9268 done
9269 done
9270 IFS=$as_save_IFS
9272 fi
9273 fi
9274 DUMPBIN=$ac_cv_prog_DUMPBIN
9275 if test -n "$DUMPBIN"; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9277 $as_echo "$DUMPBIN" >&6; }
9278 else
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280 $as_echo "no" >&6; }
9281 fi
9285 # Translate long cygdrive or C:\sdfsf path
9286 # into a short mixed mode path that has no
9287 # spaces in it.
9288 tmp="$DUMPBIN"
9289 if test "x$BUILD_OS" = "xwindows"; then
9290 tmp=`$CYGPATH -u "$DUMPBIN"`
9291 tmp=`which "$tmp"`
9292 # If file exists with .exe appended, that's the real filename
9293 # and cygpath needs that to convert to short style path.
9294 if test -f "${tmp}.exe"; then
9295 tmp="${tmp}.exe"
9296 elif test -f "${tmp}.cmd"; then
9297 tmp="${tmp}.cmd"
9298 fi
9299 # Convert to C:/ mixed style path without spaces.
9300 tmp=`$CYGPATH -s -m "$tmp"`
9301 fi
9302 DUMPBIN="$tmp"
9305 COMPILER_TYPE=CL
9306 CFLAGS="$CFLAGS -nologo"
9307 LDFLAGS="$LDFLAGS -nologo -dll -opt:ref -incremental:no "
9308 if test "x$LEGACY_HOST_CPU1" = xi586; then
9309 LDFLAGS="$LDFLAGS -safeseh"
9310 fi
9311 if test "x$DEBUG_LEVEL" != xrelease; then
9312 LDFLAGS="$LDFLAGS -debug"
9313 fi
9315 fi
9319 ac_ext=c
9320 ac_cpp='$CPP $CPPFLAGS'
9321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9325 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9326 # On Suns, sometimes $CPP names a directory.
9327 if test -n "$CPP" && test -d "$CPP"; then
9328 CPP=
9329 fi
9330 if test -z "$CPP"; then
9331 if test "${ac_cv_prog_CPP+set}" = set; then :
9332 $as_echo_n "(cached) " >&6
9333 else
9334 # Double quotes because CPP needs to be expanded
9335 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9336 do
9337 ac_preproc_ok=false
9338 for ac_c_preproc_warn_flag in '' yes
9339 do
9340 # Use a header file that comes with gcc, so configuring glibc
9341 # with a fresh cross-compiler works.
9342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9343 # <limits.h> exists even on freestanding compilers.
9344 # On the NeXT, cc -E runs the code through the compiler's parser,
9345 # not just through cpp. "Syntax error" is here to catch this case.
9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h. */
9348 #ifdef __STDC__
9349 # include <limits.h>
9350 #else
9351 # include <assert.h>
9352 #endif
9353 Syntax error
9354 _ACEOF
9355 if ac_fn_c_try_cpp "$LINENO"; then :
9357 else
9358 # Broken: fails on valid input.
9359 continue
9360 fi
9361 rm -f conftest.err conftest.i conftest.$ac_ext
9363 # OK, works on sane cases. Now check whether nonexistent headers
9364 # can be detected and how.
9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9367 #include <ac_nonexistent.h>
9368 _ACEOF
9369 if ac_fn_c_try_cpp "$LINENO"; then :
9370 # Broken: success on invalid input.
9371 continue
9372 else
9373 # Passes both tests.
9374 ac_preproc_ok=:
9375 break
9376 fi
9377 rm -f conftest.err conftest.i conftest.$ac_ext
9379 done
9380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9381 rm -f conftest.i conftest.err conftest.$ac_ext
9382 if $ac_preproc_ok; then :
9383 break
9384 fi
9386 done
9387 ac_cv_prog_CPP=$CPP
9389 fi
9390 CPP=$ac_cv_prog_CPP
9391 else
9392 ac_cv_prog_CPP=$CPP
9393 fi
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9395 $as_echo "$CPP" >&6; }
9396 ac_preproc_ok=false
9397 for ac_c_preproc_warn_flag in '' yes
9398 do
9399 # Use a header file that comes with gcc, so configuring glibc
9400 # with a fresh cross-compiler works.
9401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9402 # <limits.h> exists even on freestanding compilers.
9403 # On the NeXT, cc -E runs the code through the compiler's parser,
9404 # not just through cpp. "Syntax error" is here to catch this case.
9405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h. */
9407 #ifdef __STDC__
9408 # include <limits.h>
9409 #else
9410 # include <assert.h>
9411 #endif
9412 Syntax error
9413 _ACEOF
9414 if ac_fn_c_try_cpp "$LINENO"; then :
9416 else
9417 # Broken: fails on valid input.
9418 continue
9419 fi
9420 rm -f conftest.err conftest.i conftest.$ac_ext
9422 # OK, works on sane cases. Now check whether nonexistent headers
9423 # can be detected and how.
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9426 #include <ac_nonexistent.h>
9427 _ACEOF
9428 if ac_fn_c_try_cpp "$LINENO"; then :
9429 # Broken: success on invalid input.
9430 continue
9431 else
9432 # Passes both tests.
9433 ac_preproc_ok=:
9434 break
9435 fi
9436 rm -f conftest.err conftest.i conftest.$ac_ext
9438 done
9439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9440 rm -f conftest.i conftest.err conftest.$ac_ext
9441 if $ac_preproc_ok; then :
9443 else
9444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9446 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9447 See \`config.log' for more details" "$LINENO" 5 ; }
9448 fi
9450 ac_ext=cpp
9451 ac_cpp='$CXXCPP $CPPFLAGS'
9452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9457 # Translate "gcc -E" into "`which gcc` -E" ie
9458 # extract the full path to the binary and at the
9459 # same time maintain any arguments passed to it.
9460 # The command MUST exist in the path, or else!
9461 tmp="$CPP"
9462 car="${tmp%% *}"
9463 tmp="$CPP EOL"
9464 cdr="${tmp#* }"
9465 # On windows we want paths without spaces.
9466 if test "x$BUILD_OS" = "xwindows"; then
9468 # Translate long cygdrive or C:\sdfsf path
9469 # into a short mixed mode path that has no
9470 # spaces in it.
9471 tmp="$car"
9472 if test "x$BUILD_OS" = "xwindows"; then
9473 tmp=`$CYGPATH -u "$car"`
9474 tmp=`which "$tmp"`
9475 # If file exists with .exe appended, that's the real filename
9476 # and cygpath needs that to convert to short style path.
9477 if test -f "${tmp}.exe"; then
9478 tmp="${tmp}.exe"
9479 elif test -f "${tmp}.cmd"; then
9480 tmp="${tmp}.cmd"
9481 fi
9482 # Convert to C:/ mixed style path without spaces.
9483 tmp=`$CYGPATH -s -m "$tmp"`
9484 fi
9485 car="$tmp"
9487 else
9488 # "which" is not portable, but is used here
9489 # because we know that the command exists!
9490 car=`which $car`
9491 fi
9492 if test "x$cdr" != xEOL; then
9493 CPP="$car ${cdr% *}"
9494 else
9495 CPP="$car"
9496 fi
9499 ac_ext=cpp
9500 ac_cpp='$CXXCPP $CPPFLAGS'
9501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9505 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9506 if test -z "$CXXCPP"; then
9507 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 # Double quotes because CXXCPP needs to be expanded
9511 for CXXCPP in "$CXX -E" "/lib/cpp"
9512 do
9513 ac_preproc_ok=false
9514 for ac_cxx_preproc_warn_flag in '' yes
9515 do
9516 # Use a header file that comes with gcc, so configuring glibc
9517 # with a fresh cross-compiler works.
9518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9519 # <limits.h> exists even on freestanding compilers.
9520 # On the NeXT, cc -E runs the code through the compiler's parser,
9521 # not just through cpp. "Syntax error" is here to catch this case.
9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h. */
9524 #ifdef __STDC__
9525 # include <limits.h>
9526 #else
9527 # include <assert.h>
9528 #endif
9529 Syntax error
9530 _ACEOF
9531 if ac_fn_cxx_try_cpp "$LINENO"; then :
9533 else
9534 # Broken: fails on valid input.
9535 continue
9536 fi
9537 rm -f conftest.err conftest.i conftest.$ac_ext
9539 # OK, works on sane cases. Now check whether nonexistent headers
9540 # can be detected and how.
9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9543 #include <ac_nonexistent.h>
9544 _ACEOF
9545 if ac_fn_cxx_try_cpp "$LINENO"; then :
9546 # Broken: success on invalid input.
9547 continue
9548 else
9549 # Passes both tests.
9550 ac_preproc_ok=:
9551 break
9552 fi
9553 rm -f conftest.err conftest.i conftest.$ac_ext
9555 done
9556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9557 rm -f conftest.i conftest.err conftest.$ac_ext
9558 if $ac_preproc_ok; then :
9559 break
9560 fi
9562 done
9563 ac_cv_prog_CXXCPP=$CXXCPP
9565 fi
9566 CXXCPP=$ac_cv_prog_CXXCPP
9567 else
9568 ac_cv_prog_CXXCPP=$CXXCPP
9569 fi
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9571 $as_echo "$CXXCPP" >&6; }
9572 ac_preproc_ok=false
9573 for ac_cxx_preproc_warn_flag in '' yes
9574 do
9575 # Use a header file that comes with gcc, so configuring glibc
9576 # with a fresh cross-compiler works.
9577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9578 # <limits.h> exists even on freestanding compilers.
9579 # On the NeXT, cc -E runs the code through the compiler's parser,
9580 # not just through cpp. "Syntax error" is here to catch this case.
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h. */
9583 #ifdef __STDC__
9584 # include <limits.h>
9585 #else
9586 # include <assert.h>
9587 #endif
9588 Syntax error
9589 _ACEOF
9590 if ac_fn_cxx_try_cpp "$LINENO"; then :
9592 else
9593 # Broken: fails on valid input.
9594 continue
9595 fi
9596 rm -f conftest.err conftest.i conftest.$ac_ext
9598 # OK, works on sane cases. Now check whether nonexistent headers
9599 # can be detected and how.
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9602 #include <ac_nonexistent.h>
9603 _ACEOF
9604 if ac_fn_cxx_try_cpp "$LINENO"; then :
9605 # Broken: success on invalid input.
9606 continue
9607 else
9608 # Passes both tests.
9609 ac_preproc_ok=:
9610 break
9611 fi
9612 rm -f conftest.err conftest.i conftest.$ac_ext
9614 done
9615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9616 rm -f conftest.i conftest.err conftest.$ac_ext
9617 if $ac_preproc_ok; then :
9619 else
9620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9622 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
9623 See \`config.log' for more details" "$LINENO" 5 ; }
9624 fi
9626 ac_ext=cpp
9627 ac_cpp='$CXXCPP $CPPFLAGS'
9628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9633 # Translate "gcc -E" into "`which gcc` -E" ie
9634 # extract the full path to the binary and at the
9635 # same time maintain any arguments passed to it.
9636 # The command MUST exist in the path, or else!
9637 tmp="$CXXCPP"
9638 car="${tmp%% *}"
9639 tmp="$CXXCPP EOL"
9640 cdr="${tmp#* }"
9641 # On windows we want paths without spaces.
9642 if test "x$BUILD_OS" = "xwindows"; then
9644 # Translate long cygdrive or C:\sdfsf path
9645 # into a short mixed mode path that has no
9646 # spaces in it.
9647 tmp="$car"
9648 if test "x$BUILD_OS" = "xwindows"; then
9649 tmp=`$CYGPATH -u "$car"`
9650 tmp=`which "$tmp"`
9651 # If file exists with .exe appended, that's the real filename
9652 # and cygpath needs that to convert to short style path.
9653 if test -f "${tmp}.exe"; then
9654 tmp="${tmp}.exe"
9655 elif test -f "${tmp}.cmd"; then
9656 tmp="${tmp}.cmd"
9657 fi
9658 # Convert to C:/ mixed style path without spaces.
9659 tmp=`$CYGPATH -s -m "$tmp"`
9660 fi
9661 car="$tmp"
9663 else
9664 # "which" is not portable, but is used here
9665 # because we know that the command exists!
9666 car=`which $car`
9667 fi
9668 if test "x$cdr" != xEOL; then
9669 CXXCPP="$car ${cdr% *}"
9670 else
9671 CXXCPP="$car"
9672 fi
9675 # Find the right assembler.
9676 if test "x$BUILD_OS" = xsolaris; then
9677 # Extract the first word of "as", so it can be a program name with args.
9678 set dummy as; ac_word=$2
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9680 $as_echo_n "checking for $ac_word... " >&6; }
9681 if test "${ac_cv_path_AS+set}" = set; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9684 case $AS in
9685 [\\/]* | ?:[\\/]*)
9686 ac_cv_path_AS="$AS" # Let the user override the test with a path.
9687 ;;
9688 *)
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 for as_dir in $PATH
9691 do
9692 IFS=$as_save_IFS
9693 test -z "$as_dir" && as_dir=.
9694 for ac_exec_ext in '' $ac_executable_extensions; do
9695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9696 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
9697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9698 break 2
9699 fi
9700 done
9701 done
9702 IFS=$as_save_IFS
9704 ;;
9705 esac
9706 fi
9707 AS=$ac_cv_path_AS
9708 if test -n "$AS"; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9710 $as_echo "$AS" >&6; }
9711 else
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9713 $as_echo "no" >&6; }
9714 fi
9718 # Translate "gcc -E" into "`which gcc` -E" ie
9719 # extract the full path to the binary and at the
9720 # same time maintain any arguments passed to it.
9721 # The command MUST exist in the path, or else!
9722 tmp="$AS"
9723 car="${tmp%% *}"
9724 tmp="$AS EOL"
9725 cdr="${tmp#* }"
9726 # On windows we want paths without spaces.
9727 if test "x$BUILD_OS" = "xwindows"; then
9729 # Translate long cygdrive or C:\sdfsf path
9730 # into a short mixed mode path that has no
9731 # spaces in it.
9732 tmp="$car"
9733 if test "x$BUILD_OS" = "xwindows"; then
9734 tmp=`$CYGPATH -u "$car"`
9735 tmp=`which "$tmp"`
9736 # If file exists with .exe appended, that's the real filename
9737 # and cygpath needs that to convert to short style path.
9738 if test -f "${tmp}.exe"; then
9739 tmp="${tmp}.exe"
9740 elif test -f "${tmp}.cmd"; then
9741 tmp="${tmp}.cmd"
9742 fi
9743 # Convert to C:/ mixed style path without spaces.
9744 tmp=`$CYGPATH -s -m "$tmp"`
9745 fi
9746 car="$tmp"
9748 else
9749 # "which" is not portable, but is used here
9750 # because we know that the command exists!
9751 car=`which $car`
9752 fi
9753 if test "x$cdr" != xEOL; then
9754 AS="$car ${cdr% *}"
9755 else
9756 AS="$car"
9757 fi
9759 ASFLAGS=" "
9760 else
9761 AS="$CC -c"
9762 ASFLAGS=" "
9763 fi
9767 if test "x$HOST_CPU_BITS" = x32 && test "x$HOST_OS" = macosx; then
9768 # On 32-bit MacOSX the OS requires C-entry points to be 16 byte aligned.
9769 # While waiting for a better solution, the current workaround is to use -mstackrealign.
9770 CFLAGS="$CFLAGS -mstackrealign"
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 32-bit compiler supports -mstackrealign" >&5
9772 $as_echo_n "checking if 32-bit compiler supports -mstackrealign... " >&6; }
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 int main() { return 0; }
9777 _ACEOF
9778 if ac_fn_cxx_try_link "$LINENO"; then :
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9781 $as_echo "yes" >&6; }
9783 else
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9786 $as_echo "no" >&6; }
9787 as_fn_error $? "The selected compiler $CXX does not support -mstackrealign! Try to put another compiler in the path." "$LINENO" 5
9789 fi
9790 rm -f core conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792 fi
9794 if test "x$BUILD_OS" = xsolaris; then
9795 # Extract the first word of "nm", so it can be a program name with args.
9796 set dummy nm; ac_word=$2
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9798 $as_echo_n "checking for $ac_word... " >&6; }
9799 if test "${ac_cv_path_NM+set}" = set; then :
9800 $as_echo_n "(cached) " >&6
9801 else
9802 case $NM in
9803 [\\/]* | ?:[\\/]*)
9804 ac_cv_path_NM="$NM" # Let the user override the test with a path.
9805 ;;
9806 *)
9807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9808 for as_dir in $PATH
9809 do
9810 IFS=$as_save_IFS
9811 test -z "$as_dir" && as_dir=.
9812 for ac_exec_ext in '' $ac_executable_extensions; do
9813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9814 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
9815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9816 break 2
9817 fi
9818 done
9819 done
9820 IFS=$as_save_IFS
9822 ;;
9823 esac
9824 fi
9825 NM=$ac_cv_path_NM
9826 if test -n "$NM"; then
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9828 $as_echo "$NM" >&6; }
9829 else
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9831 $as_echo "no" >&6; }
9832 fi
9836 # Translate "gcc -E" into "`which gcc` -E" ie
9837 # extract the full path to the binary and at the
9838 # same time maintain any arguments passed to it.
9839 # The command MUST exist in the path, or else!
9840 tmp="$NM"
9841 car="${tmp%% *}"
9842 tmp="$NM EOL"
9843 cdr="${tmp#* }"
9844 # On windows we want paths without spaces.
9845 if test "x$BUILD_OS" = "xwindows"; then
9847 # Translate long cygdrive or C:\sdfsf path
9848 # into a short mixed mode path that has no
9849 # spaces in it.
9850 tmp="$car"
9851 if test "x$BUILD_OS" = "xwindows"; then
9852 tmp=`$CYGPATH -u "$car"`
9853 tmp=`which "$tmp"`
9854 # If file exists with .exe appended, that's the real filename
9855 # and cygpath needs that to convert to short style path.
9856 if test -f "${tmp}.exe"; then
9857 tmp="${tmp}.exe"
9858 elif test -f "${tmp}.cmd"; then
9859 tmp="${tmp}.cmd"
9860 fi
9861 # Convert to C:/ mixed style path without spaces.
9862 tmp=`$CYGPATH -s -m "$tmp"`
9863 fi
9864 car="$tmp"
9866 else
9867 # "which" is not portable, but is used here
9868 # because we know that the command exists!
9869 car=`which $car`
9870 fi
9871 if test "x$cdr" != xEOL; then
9872 NM="$car ${cdr% *}"
9873 else
9874 NM="$car"
9875 fi
9877 # Extract the first word of "strip", so it can be a program name with args.
9878 set dummy strip; ac_word=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if test "${ac_cv_path_STRIP+set}" = set; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 case $STRIP in
9885 [\\/]* | ?:[\\/]*)
9886 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
9887 ;;
9888 *)
9889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9890 for as_dir in $PATH
9891 do
9892 IFS=$as_save_IFS
9893 test -z "$as_dir" && as_dir=.
9894 for ac_exec_ext in '' $ac_executable_extensions; do
9895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9896 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
9897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898 break 2
9899 fi
9900 done
9901 done
9902 IFS=$as_save_IFS
9904 ;;
9905 esac
9906 fi
9907 STRIP=$ac_cv_path_STRIP
9908 if test -n "$STRIP"; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9910 $as_echo "$STRIP" >&6; }
9911 else
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913 $as_echo "no" >&6; }
9914 fi
9918 # Translate "gcc -E" into "`which gcc` -E" ie
9919 # extract the full path to the binary and at the
9920 # same time maintain any arguments passed to it.
9921 # The command MUST exist in the path, or else!
9922 tmp="$STRIP"
9923 car="${tmp%% *}"
9924 tmp="$STRIP EOL"
9925 cdr="${tmp#* }"
9926 # On windows we want paths without spaces.
9927 if test "x$BUILD_OS" = "xwindows"; then
9929 # Translate long cygdrive or C:\sdfsf path
9930 # into a short mixed mode path that has no
9931 # spaces in it.
9932 tmp="$car"
9933 if test "x$BUILD_OS" = "xwindows"; then
9934 tmp=`$CYGPATH -u "$car"`
9935 tmp=`which "$tmp"`
9936 # If file exists with .exe appended, that's the real filename
9937 # and cygpath needs that to convert to short style path.
9938 if test -f "${tmp}.exe"; then
9939 tmp="${tmp}.exe"
9940 elif test -f "${tmp}.cmd"; then
9941 tmp="${tmp}.cmd"
9942 fi
9943 # Convert to C:/ mixed style path without spaces.
9944 tmp=`$CYGPATH -s -m "$tmp"`
9945 fi
9946 car="$tmp"
9948 else
9949 # "which" is not portable, but is used here
9950 # because we know that the command exists!
9951 car=`which $car`
9952 fi
9953 if test "x$cdr" != xEOL; then
9954 STRIP="$car ${cdr% *}"
9955 else
9956 STRIP="$car"
9957 fi
9959 # Extract the first word of "mcs", so it can be a program name with args.
9960 set dummy mcs; ac_word=$2
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9962 $as_echo_n "checking for $ac_word... " >&6; }
9963 if test "${ac_cv_path_MCS+set}" = set; then :
9964 $as_echo_n "(cached) " >&6
9965 else
9966 case $MCS in
9967 [\\/]* | ?:[\\/]*)
9968 ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
9969 ;;
9970 *)
9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $PATH
9973 do
9974 IFS=$as_save_IFS
9975 test -z "$as_dir" && as_dir=.
9976 for ac_exec_ext in '' $ac_executable_extensions; do
9977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9978 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
9979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9980 break 2
9981 fi
9982 done
9983 done
9984 IFS=$as_save_IFS
9986 ;;
9987 esac
9988 fi
9989 MCS=$ac_cv_path_MCS
9990 if test -n "$MCS"; then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
9992 $as_echo "$MCS" >&6; }
9993 else
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9995 $as_echo "no" >&6; }
9996 fi
10000 # Translate "gcc -E" into "`which gcc` -E" ie
10001 # extract the full path to the binary and at the
10002 # same time maintain any arguments passed to it.
10003 # The command MUST exist in the path, or else!
10004 tmp="$MCS"
10005 car="${tmp%% *}"
10006 tmp="$MCS EOL"
10007 cdr="${tmp#* }"
10008 # On windows we want paths without spaces.
10009 if test "x$BUILD_OS" = "xwindows"; then
10011 # Translate long cygdrive or C:\sdfsf path
10012 # into a short mixed mode path that has no
10013 # spaces in it.
10014 tmp="$car"
10015 if test "x$BUILD_OS" = "xwindows"; then
10016 tmp=`$CYGPATH -u "$car"`
10017 tmp=`which "$tmp"`
10018 # If file exists with .exe appended, that's the real filename
10019 # and cygpath needs that to convert to short style path.
10020 if test -f "${tmp}.exe"; then
10021 tmp="${tmp}.exe"
10022 elif test -f "${tmp}.cmd"; then
10023 tmp="${tmp}.cmd"
10024 fi
10025 # Convert to C:/ mixed style path without spaces.
10026 tmp=`$CYGPATH -s -m "$tmp"`
10027 fi
10028 car="$tmp"
10030 else
10031 # "which" is not portable, but is used here
10032 # because we know that the command exists!
10033 car=`which $car`
10034 fi
10035 if test "x$cdr" != xEOL; then
10036 MCS="$car ${cdr% *}"
10037 else
10038 MCS="$car"
10039 fi
10041 else
10042 if test -n "$ac_tool_prefix"; then
10043 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
10044 set dummy ${ac_tool_prefix}nm; ac_word=$2
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046 $as_echo_n "checking for $ac_word... " >&6; }
10047 if test "${ac_cv_prog_NM+set}" = set; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 if test -n "$NM"; then
10051 ac_cv_prog_NM="$NM" # Let the user override the test.
10052 else
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10055 do
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10060 ac_cv_prog_NM="${ac_tool_prefix}nm"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 break 2
10063 fi
10064 done
10065 done
10066 IFS=$as_save_IFS
10068 fi
10069 fi
10070 NM=$ac_cv_prog_NM
10071 if test -n "$NM"; then
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
10073 $as_echo "$NM" >&6; }
10074 else
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10077 fi
10080 fi
10081 if test -z "$ac_cv_prog_NM"; then
10082 ac_ct_NM=$NM
10083 # Extract the first word of "nm", so it can be a program name with args.
10084 set dummy nm; ac_word=$2
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 $as_echo_n "checking for $ac_word... " >&6; }
10087 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
10088 $as_echo_n "(cached) " >&6
10089 else
10090 if test -n "$ac_ct_NM"; then
10091 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
10092 else
10093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094 for as_dir in $PATH
10095 do
10096 IFS=$as_save_IFS
10097 test -z "$as_dir" && as_dir=.
10098 for ac_exec_ext in '' $ac_executable_extensions; do
10099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10100 ac_cv_prog_ac_ct_NM="nm"
10101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10102 break 2
10103 fi
10104 done
10105 done
10106 IFS=$as_save_IFS
10108 fi
10109 fi
10110 ac_ct_NM=$ac_cv_prog_ac_ct_NM
10111 if test -n "$ac_ct_NM"; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
10113 $as_echo "$ac_ct_NM" >&6; }
10114 else
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116 $as_echo "no" >&6; }
10117 fi
10119 if test "x$ac_ct_NM" = x; then
10120 NM=""
10121 else
10122 case $cross_compiling:$ac_tool_warned in
10123 yes:)
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10126 ac_tool_warned=yes ;;
10127 esac
10128 NM=$ac_ct_NM
10129 fi
10130 else
10131 NM="$ac_cv_prog_NM"
10132 fi
10135 # Translate "gcc -E" into "`which gcc` -E" ie
10136 # extract the full path to the binary and at the
10137 # same time maintain any arguments passed to it.
10138 # The command MUST exist in the path, or else!
10139 tmp="$NM"
10140 car="${tmp%% *}"
10141 tmp="$NM EOL"
10142 cdr="${tmp#* }"
10143 # On windows we want paths without spaces.
10144 if test "x$BUILD_OS" = "xwindows"; then
10146 # Translate long cygdrive or C:\sdfsf path
10147 # into a short mixed mode path that has no
10148 # spaces in it.
10149 tmp="$car"
10150 if test "x$BUILD_OS" = "xwindows"; then
10151 tmp=`$CYGPATH -u "$car"`
10152 tmp=`which "$tmp"`
10153 # If file exists with .exe appended, that's the real filename
10154 # and cygpath needs that to convert to short style path.
10155 if test -f "${tmp}.exe"; then
10156 tmp="${tmp}.exe"
10157 elif test -f "${tmp}.cmd"; then
10158 tmp="${tmp}.cmd"
10159 fi
10160 # Convert to C:/ mixed style path without spaces.
10161 tmp=`$CYGPATH -s -m "$tmp"`
10162 fi
10163 car="$tmp"
10165 else
10166 # "which" is not portable, but is used here
10167 # because we know that the command exists!
10168 car=`which $car`
10169 fi
10170 if test "x$cdr" != xEOL; then
10171 NM="$car ${cdr% *}"
10172 else
10173 NM="$car"
10174 fi
10176 if test -n "$ac_tool_prefix"; then
10177 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10178 set dummy ${ac_tool_prefix}strip; ac_word=$2
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180 $as_echo_n "checking for $ac_word... " >&6; }
10181 if test "${ac_cv_prog_STRIP+set}" = set; then :
10182 $as_echo_n "(cached) " >&6
10183 else
10184 if test -n "$STRIP"; then
10185 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10186 else
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in $PATH
10189 do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10194 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10197 fi
10198 done
10199 done
10200 IFS=$as_save_IFS
10202 fi
10203 fi
10204 STRIP=$ac_cv_prog_STRIP
10205 if test -n "$STRIP"; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10207 $as_echo "$STRIP" >&6; }
10208 else
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210 $as_echo "no" >&6; }
10211 fi
10214 fi
10215 if test -z "$ac_cv_prog_STRIP"; then
10216 ac_ct_STRIP=$STRIP
10217 # Extract the first word of "strip", so it can be a program name with args.
10218 set dummy strip; ac_word=$2
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10222 $as_echo_n "(cached) " >&6
10223 else
10224 if test -n "$ac_ct_STRIP"; then
10225 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10226 else
10227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228 for as_dir in $PATH
10229 do
10230 IFS=$as_save_IFS
10231 test -z "$as_dir" && as_dir=.
10232 for ac_exec_ext in '' $ac_executable_extensions; do
10233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10234 ac_cv_prog_ac_ct_STRIP="strip"
10235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10236 break 2
10237 fi
10238 done
10239 done
10240 IFS=$as_save_IFS
10242 fi
10243 fi
10244 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10245 if test -n "$ac_ct_STRIP"; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10247 $as_echo "$ac_ct_STRIP" >&6; }
10248 else
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10251 fi
10253 if test "x$ac_ct_STRIP" = x; then
10254 STRIP=""
10255 else
10256 case $cross_compiling:$ac_tool_warned in
10257 yes:)
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10260 ac_tool_warned=yes ;;
10261 esac
10262 STRIP=$ac_ct_STRIP
10263 fi
10264 else
10265 STRIP="$ac_cv_prog_STRIP"
10266 fi
10269 # Translate "gcc -E" into "`which gcc` -E" ie
10270 # extract the full path to the binary and at the
10271 # same time maintain any arguments passed to it.
10272 # The command MUST exist in the path, or else!
10273 tmp="$STRIP"
10274 car="${tmp%% *}"
10275 tmp="$STRIP EOL"
10276 cdr="${tmp#* }"
10277 # On windows we want paths without spaces.
10278 if test "x$BUILD_OS" = "xwindows"; then
10280 # Translate long cygdrive or C:\sdfsf path
10281 # into a short mixed mode path that has no
10282 # spaces in it.
10283 tmp="$car"
10284 if test "x$BUILD_OS" = "xwindows"; then
10285 tmp=`$CYGPATH -u "$car"`
10286 tmp=`which "$tmp"`
10287 # If file exists with .exe appended, that's the real filename
10288 # and cygpath needs that to convert to short style path.
10289 if test -f "${tmp}.exe"; then
10290 tmp="${tmp}.exe"
10291 elif test -f "${tmp}.cmd"; then
10292 tmp="${tmp}.cmd"
10293 fi
10294 # Convert to C:/ mixed style path without spaces.
10295 tmp=`$CYGPATH -s -m "$tmp"`
10296 fi
10297 car="$tmp"
10299 else
10300 # "which" is not portable, but is used here
10301 # because we know that the command exists!
10302 car=`which $car`
10303 fi
10304 if test "x$cdr" != xEOL; then
10305 STRIP="$car ${cdr% *}"
10306 else
10307 STRIP="$car"
10308 fi
10310 fi
10312 # When using cygwin, we need a wrapper binary that renames
10313 # /cygdrive/c/ arguments into c:/ arguments and peeks into
10314 # @files and rewrites these too! This wrapper binary is
10315 # called uncygdrive.exe.
10316 UNCYGDRIVE=
10317 if test "x$BUILD_OS" = xwindows; then
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uncygdrive can be created" >&5
10319 $as_echo_n "checking if uncygdrive can be created... " >&6; }
10320 UNCYGDRIVE_SRC=`$CYGPATH -m $SRC_ROOT/common/src/uncygdrive.c`
10321 rm -f $OUTPUT_ROOT/uncygdrive*
10322 UNCYGDRIVE=`$CYGPATH -m $OUTPUT_ROOT/uncygdrive.exe`
10323 cd $OUTPUT_ROOT
10324 $CC $UNCYGDRIVE_SRC /Fe$UNCYGDRIVE > $OUTPUT_ROOT/uncygdrive1.log 2>&1
10325 cd $CURDIR
10327 if test ! -x $OUTPUT_ROOT/uncygdrive.exe; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329 $as_echo "no" >&6; }
10330 cat $OUTPUT_ROOT/uncygdrive1.log
10331 as_fn_error $? "Could not create $OUTPUT_ROOT/uncygdrive.exe" "$LINENO" 5
10332 fi
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNCYGDRIVE" >&5
10334 $as_echo "$UNCYGDRIVE" >&6; }
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uncygdrive.exe works" >&5
10336 $as_echo_n "checking if uncygdrive.exe works... " >&6; }
10337 cd $OUTPUT_ROOT
10338 $UNCYGDRIVE $CC $SRC_ROOT/common/src/uncygdrive.c /Fe$OUTPUT_ROOT/uncygdrive2.exe > $OUTPUT_ROOT/uncygdrive2.log 2>&1
10339 cd $CURDIR
10340 if test ! -x $OUTPUT_ROOT/uncygdrive2.exe; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342 $as_echo "no" >&6; }
10343 cat $OUTPUT_ROOT/uncygdrive2.log
10344 as_fn_error $? "Uncygdrive did not work!" "$LINENO" 5
10345 fi
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10347 $as_echo "yes" >&6; }
10348 rm -f $OUTPUT_ROOT/uncygdrive?.??? $OUTPUT_ROOT/uncygdrive.obj
10349 fi
10354 # Check whether --enable-ccache was given.
10355 if test "${enable_ccache+set}" = set; then :
10356 enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache}
10357 else
10358 ENABLE_CCACHE=yes
10359 fi
10361 if test "x$ENABLE_CCACHE" = xyes; then
10362 # Extract the first word of "ccache", so it can be a program name with args.
10363 set dummy ccache; ac_word=$2
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10365 $as_echo_n "checking for $ac_word... " >&6; }
10366 if test "${ac_cv_path_CCACHE+set}" = set; then :
10367 $as_echo_n "(cached) " >&6
10368 else
10369 case $CCACHE in
10370 [\\/]* | ?:[\\/]*)
10371 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
10372 ;;
10373 *)
10374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10375 for as_dir in $PATH
10376 do
10377 IFS=$as_save_IFS
10378 test -z "$as_dir" && as_dir=.
10379 for ac_exec_ext in '' $ac_executable_extensions; do
10380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10381 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
10382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10383 break 2
10384 fi
10385 done
10386 done
10387 IFS=$as_save_IFS
10389 ;;
10390 esac
10391 fi
10392 CCACHE=$ac_cv_path_CCACHE
10393 if test -n "$CCACHE"; then
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
10395 $as_echo "$CCACHE" >&6; }
10396 else
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10398 $as_echo "no" >&6; }
10399 fi
10402 else
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache" >&5
10404 $as_echo_n "checking for ccache... " >&6; }
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: explicitly disabled" >&5
10406 $as_echo "explicitly disabled" >&6; }
10407 CCACHE=
10408 fi
10412 # Check whether --with-ccache-dir was given.
10413 if test "${with_ccache_dir+set}" = set; then :
10414 withval=$with_ccache_dir;
10415 fi
10418 if test "x$with_ccache_dir" != x; then
10419 # When using a non home ccache directory, assume the use is to share ccache files
10420 # with other users. Thus change the umask.
10421 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002"
10422 fi
10423 CCACHE_FOUND=""
10424 if test "x$CCACHE" != x; then
10426 if test "x$CCACHE" != x; then
10427 CCACHE_FOUND="true"
10428 # Only use ccache if it is 3.1.4 or later, which supports
10429 # precompiled headers.
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5
10431 $as_echo_n "checking if ccache supports precompiled headers... " >&6; }
10432 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null`
10433 if test "x$HAS_GOOD_CCACHE" = x; then
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5
10435 $as_echo "no, disabling ccache" >&6; }
10436 CCACHE=
10437 else
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10439 $as_echo "yes" >&6; }
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5
10441 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; }
10442 PUSHED_FLAGS="$CXXFLAGS"
10443 CXXFLAGS="-fpch-preprocess $CXXFLAGS"
10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445 /* end confdefs.h. */
10447 int
10448 main ()
10449 {
10451 ;
10452 return 0;
10453 }
10454 _ACEOF
10455 if ac_fn_cxx_try_compile "$LINENO"; then :
10456 CC_KNOWS_CCACHE_TRICK=yes
10457 else
10458 CC_KNOWS_CCACHE_TRICK=no
10459 fi
10460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10461 CXXFLAGS="$PUSHED_FLAGS"
10462 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10464 $as_echo "yes" >&6; }
10465 else
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5
10467 $as_echo "no, disabling ccaching of precompiled headers" >&6; }
10468 CCACHE=
10469 fi
10470 fi
10471 fi
10473 if test "x$CCACHE" != x; then
10474 CCACHE_SLOPPINESS=time_macros
10475 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE"
10476 CCACHE_FLAGS=-fpch-preprocess
10478 if test "x$SET_CCACHE_DIR" != x; then
10479 mkdir -p $CCACHE_DIR > /dev/null 2>&1
10480 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1
10481 fi
10482 fi
10484 fi
10487 # Used on GNU/Linux systems, can be empty...
10488 #AC_PATH_PROG(ELFDUMP, elfdump)
10490 # Setup default logging of stdout and stderr to build.log in the output root.
10491 BUILD_LOG='$(OUTPUT_ROOT)/build.log'
10492 BUILD_LOG_WRAPPER='$(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
10496 ###############################################################################
10497 #
10498 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code.
10499 # (The JVM can use 32 or 64 bit Java pointers but that decision
10500 # is made at runtime.)
10501 #
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10504 $as_echo_n "checking for ANSI C header files... " >&6; }
10505 if test "${ac_cv_header_stdc+set}" = set; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h. */
10510 #include <stdlib.h>
10511 #include <stdarg.h>
10512 #include <string.h>
10513 #include <float.h>
10515 int
10516 main ()
10517 {
10519 ;
10520 return 0;
10521 }
10522 _ACEOF
10523 if ac_fn_cxx_try_compile "$LINENO"; then :
10524 ac_cv_header_stdc=yes
10525 else
10526 ac_cv_header_stdc=no
10527 fi
10528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530 if test $ac_cv_header_stdc = yes; then
10531 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533 /* end confdefs.h. */
10534 #include <string.h>
10536 _ACEOF
10537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10538 $EGREP "memchr" >/dev/null 2>&1; then :
10540 else
10541 ac_cv_header_stdc=no
10542 fi
10543 rm -f conftest*
10545 fi
10547 if test $ac_cv_header_stdc = yes; then
10548 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550 /* end confdefs.h. */
10551 #include <stdlib.h>
10553 _ACEOF
10554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10555 $EGREP "free" >/dev/null 2>&1; then :
10557 else
10558 ac_cv_header_stdc=no
10559 fi
10560 rm -f conftest*
10562 fi
10564 if test $ac_cv_header_stdc = yes; then
10565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10566 if test "$cross_compiling" = yes; then :
10567 :
10568 else
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10571 #include <ctype.h>
10572 #include <stdlib.h>
10573 #if ((' ' & 0x0FF) == 0x020)
10574 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10575 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10576 #else
10577 # define ISLOWER(c) \
10578 (('a' <= (c) && (c) <= 'i') \
10579 || ('j' <= (c) && (c) <= 'r') \
10580 || ('s' <= (c) && (c) <= 'z'))
10581 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10582 #endif
10584 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10585 int
10586 main ()
10587 {
10588 int i;
10589 for (i = 0; i < 256; i++)
10590 if (XOR (islower (i), ISLOWER (i))
10591 || toupper (i) != TOUPPER (i))
10592 return 2;
10593 return 0;
10594 }
10595 _ACEOF
10596 if ac_fn_cxx_try_run "$LINENO"; then :
10598 else
10599 ac_cv_header_stdc=no
10600 fi
10601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10602 conftest.$ac_objext conftest.beam conftest.$ac_ext
10603 fi
10605 fi
10606 fi
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10608 $as_echo "$ac_cv_header_stdc" >&6; }
10609 if test $ac_cv_header_stdc = yes; then
10611 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10613 fi
10615 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10616 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10617 inttypes.h stdint.h unistd.h
10618 do :
10619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10620 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10621 "
10622 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10623 cat >>confdefs.h <<_ACEOF
10624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10625 _ACEOF
10627 fi
10629 done
10632 # The cast to long int works around a bug in the HP C Compiler
10633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10635 # This bug is HP SR number 8606223364.
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
10637 $as_echo_n "checking size of int *... " >&6; }
10638 if test "${ac_cv_sizeof_int_p+set}" = set; then :
10639 $as_echo_n "(cached) " >&6
10640 else
10641 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
10643 else
10644 if test "$ac_cv_type_int_p" = yes; then
10645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10647 as_fn_error 77 "cannot compute sizeof (int *)
10648 See \`config.log' for more details" "$LINENO" 5 ; }
10649 else
10650 ac_cv_sizeof_int_p=0
10651 fi
10652 fi
10654 fi
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
10656 $as_echo "$ac_cv_sizeof_int_p" >&6; }
10660 cat >>confdefs.h <<_ACEOF
10661 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
10662 _ACEOF
10665 if test "x$ac_cv_sizeof_int_p" = x0; then
10666 # The test failed, lets pick the assumed value.
10667 ARCH_DATA_MODEL=$HOST_CPU_BITS
10668 else
10669 ARCH_DATA_MODEL=`expr 8 \* $ac_cv_sizeof_int_p`
10670 fi
10672 if test "x$ARCH_DATA_MODEL" = x64; then
10673 A_LP64="LP64:="
10674 ADD_LP64="-D_LP64=1"
10675 fi
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host address size" >&5
10677 $as_echo_n "checking for host address size... " >&6; }
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCH_DATA_MODEL bits" >&5
10679 $as_echo "$ARCH_DATA_MODEL bits" >&6; }
10680 LP64=$A_LP64
10684 if test "x$ARCH_DATA_MODEL" != "x$HOST_CPU_BITS"; then
10685 as_fn_error $? "The tested number of bits in the host ($ARCH_DATA_MODEL) differs from the number of bits expected to be found in the host ($HOST_CPU_BITS)" "$LINENO" 5
10686 fi
10688 ###############################################################################
10689 #
10690 # Can the C/C++ compiler use precompiled headers?
10691 #
10692 # Check whether --enable-precompiled-headers was given.
10693 if test "${enable_precompiled_headers+set}" = set; then :
10694 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled-headers}
10695 else
10696 ENABLE_PRECOMPH=yes
10697 fi
10700 USE_PRECOMPILED_HEADER=1
10701 if test "x$ENABLE_PRECOMPH" = xno; then
10702 USE_PRECOMPILED_HEADER=0
10703 fi
10705 if test "x$ENABLE_PRECOMPH" = xyes; then
10706 # Check that the compiler actually supports precomp headers.
10707 if test "x$GCC" = xyes; then
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5
10709 $as_echo_n "checking that precompiled headers work... " >&6; }
10710 echo "int alfa();" > conftest.h
10711 $CXX -x c++-header conftest.h -o conftest.hpp.gch
10712 if test ! -f conftest.hpp.gch; then
10713 echo Precompiled header is not working!
10714 USE_PRECOMPILED_HEADER=0
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716 $as_echo "no" >&6; }
10717 else
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10719 $as_echo "yes" >&6; }
10720 fi
10721 rm -f conftest.h
10722 fi
10723 fi
10727 ###############################################################################
10728 #
10729 # How to compile shared libraries.
10730 #
10732 if test "x$GCC" = xyes; then
10733 COMPILER_NAME=gcc
10734 PICFLAG="-fPIC"
10735 LIBRARY_PREFIX=lib
10736 SHARED_LIBRARY='lib$1.so'
10737 STATIC_LIBRARY='lib$1.a'
10738 SHARED_LIBRARY_FLAGS="-shared"
10739 SHARED_LIBRARY_SUFFIX='.so'
10740 STATIC_LIBRARY_SUFFIX='.a'
10741 OBJ_SUFFIX='.o'
10742 EXE_SUFFIX=''
10743 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1'
10744 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$(JDK_TOPDIR)/$1'
10745 SET_SHARED_LIBRARY_ORIGIN='-Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker \$$$$ORIGIN/$1'
10746 LD="$CC"
10747 LDEXE="$CC"
10748 LDCXX="$CXX"
10749 LDEXECXX="$CXX"
10751 # Linking is different on MacOSX
10752 if test "x$BUILD_OS" = xmacosx; then
10753 # Might change in the future to clang.
10754 COMPILER_NAME=gcc
10755 SHARED_LIBRARY='lib$1.dylib'
10756 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG"
10757 SHARED_LIBRARY_SUFFIX='.dylib'
10758 EXE_SUFFIX=''
10759 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1'
10760 SET_SHARED_LIBRARY_MAPFILE=''
10761 SET_SHARED_LIBRARY_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.'
10762 fi
10763 else
10764 if test "x$BUILD_OS" = xsolaris; then
10765 # If it is not gcc, then assume it is the Oracle Solaris Studio Compiler
10766 COMPILER_NAME=ossc
10767 PICFLAG="-KPIC"
10768 LIBRARY_PREFIX=lib
10769 SHARED_LIBRARY='lib$1.so'
10770 STATIC_LIBRARY='lib$1.a'
10771 SHARED_LIBRARY_FLAGS="-G"
10772 SHARED_LIBRARY_SUFFIX='.so'
10773 STATIC_LIBRARY_SUFFIX='.a'
10774 OBJ_SUFFIX='.o'
10775 EXE_SUFFIX=''
10776 SET_SHARED_LIBRARY_NAME=''
10777 SET_SHARED_LIBRARY_MAPFILE='-M $(JDK_TOPDIR)/$1'
10778 SET_SHARED_LIBRARY_ORIGIN='-R \$$$$ORIGIN/$1'
10779 CFLAGS_JDKLIB_EXTRA='-xstrconst -D__solaris__'
10780 fi
10781 if test "x$BUILD_OS" = xwindows; then
10782 # If it is not gcc, then assume it is the MS Visual Studio compiler
10783 COMPILER_NAME=cl
10784 PICFLAG=""
10785 LIBRARY_PREFIX=
10786 SHARED_LIBRARY='$1.dll'
10787 STATIC_LIBRARY='$1.lib'
10788 SHARED_LIBRARY_FLAGS="-LD"
10789 SHARED_LIBRARY_SUFFIX='.dll'
10790 STATIC_LIBRARY_SUFFIX='.lib'
10791 OBJ_SUFFIX='.obj'
10792 EXE_SUFFIX='.exe'
10793 SET_SHARED_LIBRARY_NAME=''
10794 SET_SHARED_LIBRARY_MAPFILE=''
10795 SET_SHARED_LIBRARY_ORIGIN=''
10796 fi
10797 fi
10811 # The (cross) compiler is now configured, we can now test capabilities
10812 # of the host platform.
10814 ###############################################################################
10815 #
10816 # Is the host little of big endian?
10817 #
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10819 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10820 if test "${ac_cv_c_bigendian+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 ac_cv_c_bigendian=unknown
10824 # See if we're dealing with a universal compiler.
10825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10827 #ifndef __APPLE_CC__
10828 not a universal capable compiler
10829 #endif
10830 typedef int dummy;
10832 _ACEOF
10833 if ac_fn_cxx_try_compile "$LINENO"; then :
10835 # Check for potential -arch flags. It is not universal unless
10836 # there are at least two -arch flags with different values.
10837 ac_arch=
10838 ac_prev=
10839 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10840 if test -n "$ac_prev"; then
10841 case $ac_word in
10842 i?86 | x86_64 | ppc | ppc64)
10843 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10844 ac_arch=$ac_word
10845 else
10846 ac_cv_c_bigendian=universal
10847 break
10848 fi
10849 ;;
10850 esac
10851 ac_prev=
10852 elif test "x$ac_word" = "x-arch"; then
10853 ac_prev=arch
10854 fi
10855 done
10856 fi
10857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10858 if test $ac_cv_c_bigendian = unknown; then
10859 # See if sys/param.h defines the BYTE_ORDER macro.
10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861 /* end confdefs.h. */
10862 #include <sys/types.h>
10863 #include <sys/param.h>
10865 int
10866 main ()
10867 {
10868 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10869 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10870 && LITTLE_ENDIAN)
10871 bogus endian macros
10872 #endif
10874 ;
10875 return 0;
10876 }
10877 _ACEOF
10878 if ac_fn_cxx_try_compile "$LINENO"; then :
10879 # It does; now see whether it defined to BIG_ENDIAN or not.
10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h. */
10882 #include <sys/types.h>
10883 #include <sys/param.h>
10885 int
10886 main ()
10887 {
10888 #if BYTE_ORDER != BIG_ENDIAN
10889 not big endian
10890 #endif
10892 ;
10893 return 0;
10894 }
10895 _ACEOF
10896 if ac_fn_cxx_try_compile "$LINENO"; then :
10897 ac_cv_c_bigendian=yes
10898 else
10899 ac_cv_c_bigendian=no
10900 fi
10901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10902 fi
10903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10904 fi
10905 if test $ac_cv_c_bigendian = unknown; then
10906 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10909 #include <limits.h>
10911 int
10912 main ()
10913 {
10914 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10915 bogus endian macros
10916 #endif
10918 ;
10919 return 0;
10920 }
10921 _ACEOF
10922 if ac_fn_cxx_try_compile "$LINENO"; then :
10923 # It does; now see whether it defined to _BIG_ENDIAN or not.
10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10926 #include <limits.h>
10928 int
10929 main ()
10930 {
10931 #ifndef _BIG_ENDIAN
10932 not big endian
10933 #endif
10935 ;
10936 return 0;
10937 }
10938 _ACEOF
10939 if ac_fn_cxx_try_compile "$LINENO"; then :
10940 ac_cv_c_bigendian=yes
10941 else
10942 ac_cv_c_bigendian=no
10943 fi
10944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10945 fi
10946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10947 fi
10948 if test $ac_cv_c_bigendian = unknown; then
10949 # Compile a test program.
10950 if test "$cross_compiling" = yes; then :
10951 # Try to guess by grepping values from an object file.
10952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h. */
10954 short int ascii_mm[] =
10955 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10956 short int ascii_ii[] =
10957 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10958 int use_ascii (int i) {
10959 return ascii_mm[i] + ascii_ii[i];
10960 }
10961 short int ebcdic_ii[] =
10962 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10963 short int ebcdic_mm[] =
10964 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10965 int use_ebcdic (int i) {
10966 return ebcdic_mm[i] + ebcdic_ii[i];
10967 }
10968 extern int foo;
10970 int
10971 main ()
10972 {
10973 return use_ascii (foo) == use_ebcdic (foo);
10974 ;
10975 return 0;
10976 }
10977 _ACEOF
10978 if ac_fn_cxx_try_compile "$LINENO"; then :
10979 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10980 ac_cv_c_bigendian=yes
10981 fi
10982 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10983 if test "$ac_cv_c_bigendian" = unknown; then
10984 ac_cv_c_bigendian=no
10985 else
10986 # finding both strings is unlikely to happen, but who knows?
10987 ac_cv_c_bigendian=unknown
10988 fi
10989 fi
10990 fi
10991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10992 else
10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10995 $ac_includes_default
10996 int
10997 main ()
10998 {
11000 /* Are we little or big endian? From Harbison&Steele. */
11001 union
11002 {
11003 long int l;
11004 char c[sizeof (long int)];
11005 } u;
11006 u.l = 1;
11007 return u.c[sizeof (long int) - 1] == 1;
11009 ;
11010 return 0;
11011 }
11012 _ACEOF
11013 if ac_fn_cxx_try_run "$LINENO"; then :
11014 ac_cv_c_bigendian=no
11015 else
11016 ac_cv_c_bigendian=yes
11017 fi
11018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11019 conftest.$ac_objext conftest.beam conftest.$ac_ext
11020 fi
11022 fi
11023 fi
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11025 $as_echo "$ac_cv_c_bigendian" >&6; }
11026 case $ac_cv_c_bigendian in #(
11027 yes)
11028 ENDIAN="big";; #(
11029 no)
11030 ENDIAN="little" ;; #(
11031 universal)
11032 ENDIAN="universal"
11033 ;; #(
11034 *)
11035 ENDIAN="unknown" ;;
11036 esac
11039 if test "x$ENDIAN" = xuniversal; then
11040 as_fn_error $? "It seems like someone needs to decide how we are to deal with universal binaries on the MacOSX?" "$LINENO" 5
11041 fi
11042 if test "x$ENDIAN" = xunknown; then
11043 ENDIAN="$HOST_CPU_ENDIAN"
11044 fi
11045 if test "x$ENDIAN" != "x$HOST_CPU_ENDIAN"; then
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The tested endian in the host ($ENDIAN) differs from the endian expected to be found in the host ($HOST_CPU_ENDIAN)" >&5
11047 $as_echo "$as_me: WARNING: The tested endian in the host ($ENDIAN) differs from the endian expected to be found in the host ($HOST_CPU_ENDIAN)" >&2;}
11048 ENDIAN="$HOST_CPU_ENDIAN"
11049 fi
11052 ###############################################################################
11053 #
11054 # We need a Boot JDK to bootstrap the build.
11055 #
11056 BOOT_JDK_FOUND=no
11058 # Check whether --with-boot-jdk was given.
11059 if test "${with_boot_jdk+set}" = set; then :
11060 withval=$with_boot_jdk;
11061 fi
11064 if test "x$with_boot_jdk" != x; then
11065 BOOT_JDK=$with_boot_jdk
11066 BOOT_JDK_FOUND=yes
11067 fi
11068 if test "x$BOOT_JDK_FOUND" = xno; then
11071 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
11072 # Source the builddeps file again, to make sure it uses the latest variables!
11073 . $builddepsfile
11074 # Look for a host and build machine specific resource!
11075 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
11076 if test "x$resource" = x; then
11077 # Ok, lets instead look for a host specific resource
11078 eval resource=\${builddep_bootjdk_HOST_${rewritten_host_var}}
11079 fi
11080 if test "x$resource" = x; then
11081 # Ok, lets instead look for a build specific resource
11082 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
11083 fi
11084 if test "x$resource" = x; then
11085 # Ok, lets instead look for a generic resource
11086 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
11087 resource=${builddep_bootjdk}
11088 fi
11089 if test "x$resource" != x; then
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
11091 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
11092 # If the resource in the builddeps.conf file is an existing directory,
11093 # for example /java/linux/cups
11094 if test -d ${resource}; then
11095 depdir=${resource}
11096 else
11098 # bootjdk is for example mymodule
11099 # $resource is for example libs/general/libmymod_1_2_3.zip
11100 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
11101 # $with_builddeps_dir is for example /localhome/builddeps
11102 # depdir is the name of the variable into which we store the depdir, eg MYMOD
11103 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
11104 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
11105 filename=`basename $resource`
11106 filebase=`echo $filename | sed 's/\.[^\.]*$//'`
11107 filebase=${filename%%.*}
11108 extension=${filename#*.}
11109 installdir=$with_builddeps_dir/$filebase
11110 if test ! -f $installdir/$filename.unpacked; then
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
11112 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
11113 if test ! -d $installdir; then
11114 mkdir -p $installdir
11115 fi
11116 if test ! -d $installdir; then
11117 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
11118 fi
11119 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
11120 touch $tmpfile
11121 if test ! -f $tmpfile; then
11122 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
11123 fi
11125 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip
11126 # $tmpfile is the local file name for the downloaded file.
11127 VALID_TOOL=no
11128 if test "x$BDEPS_FTP" = xwget; then
11129 VALID_TOOL=yes
11130 wget -O $tmpfile $with_builddeps_server/$resource
11131 fi
11132 if test "x$BDEPS_FTP" = xlftp; then
11133 VALID_TOOL=yes
11134 lftp -c "get $with_builddeps_server/$resource -o $tmpfile"
11135 fi
11136 if test "x$BDEPS_FTP" = xftp; then
11137 VALID_TOOL=yes
11138 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'`
11139 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'`
11140 FTPUSERPWD=${FTPSERVER%%@*}
11141 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
11142 FTPUSER=${userpwd%%:*}
11143 FTPPWD=${userpwd#*@}
11144 FTPSERVER=${FTPSERVER#*@}
11145 else
11146 FTPUSER=ftp
11147 FTPPWD=ftp
11148 fi
11149 # the "pass" command does not work on some
11150 # ftp clients (read ftp.exe) but if it works,
11151 # passive mode is better!
11152 (\
11153 echo "user $FTPUSER $FTPPWD" ;\
11154 echo "pass" ;\
11155 echo "bin" ;\
11156 echo "get $FTPPATH $tmpfile" ;\
11157 ) | ftp -in $FTPSERVER
11158 fi
11159 if test "x$VALID_TOOL" != xyes; then
11160 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
11161 fi
11163 mv $tmpfile $installdir/$filename
11164 if test ! -s $installdir/$filename; then
11165 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
11166 fi
11167 case "$extension" in
11168 zip) echo "Unzipping $installdir/$filename..."
11169 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
11170 ;;
11171 tar.gz) echo "Untaring $installdir/$filename..."
11172 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
11173 ;;
11174 tgz) echo "Untaring $installdir/$filename..."
11175 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
11176 ;;
11177 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
11178 ;;
11179 esac
11180 fi
11181 if test -f $installdir/$filename.unpacked; then
11182 depdir=$installdir
11183 fi
11185 fi
11186 # Source the builddeps file again, because in the previous command, the depdir
11187 # was updated to point at the current build dependency install directory.
11188 . $builddepsfile
11189 # Now extract variables from the builddeps.conf files.
11190 theroot=${builddep_bootjdk_ROOT}
11191 thecflags=${builddep_bootjdk_CFLAGS}
11192 thelibs=${builddep_bootjdk_LIBS}
11193 if test "x$depdir" = x; then
11194 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
11195 fi
11196 BOOT_JDK=$depdir
11197 if test "x$theroot" != x; then
11198 BOOT_JDK="$theroot"
11199 fi
11200 if test "x$thecflags" != x; then
11201 BOOT_JDK_CFLAGS="$thecflags"
11202 fi
11203 if test "x$thelibs" != x; then
11204 BOOT_JDK_LIBS="$thelibs"
11205 fi
11206 BOOT_JDK_FOUND=yes
11207 else BOOT_JDK_FOUND=no
11209 fi
11210 else BOOT_JDK_FOUND=no
11212 fi
11214 fi
11216 if test "x$BOOT_JDK_FOUND" = xno; then
11217 if test "x$JAVA_HOME" != x; then
11218 if test ! -d "$JAVA_HOME"; then
11219 as_fn_error $? "Your JAVA_HOME points to a non-existing directory!" "$LINENO" 5
11220 fi
11221 # Aha, the user has set a JAVA_HOME
11222 # let us use that as the Boot JDK.
11223 BOOT_JDK=$JAVA_HOME
11224 BOOT_JDK_FOUND=yes
11225 # To be on the safe side, lets check that it is a JDK.
11226 if test -x $BOOT_JDK/bin/javac && test -x $BOOT_JDK/bin/java; then
11227 JAVAC=$BOOT_JDK/bin/javac
11228 JAVA=$BOOT_JDK/bin/java
11229 BOOT_JDK_FOUND=yes
11230 else
11231 as_fn_error $? "Your JAVA_HOME points to a JRE! The build needs a JDK! Please point JAVA_HOME to a JDK." "$LINENO" 5
11232 fi
11233 fi
11234 fi
11236 if test "x$BOOT_JDK_FOUND" = xno; then
11237 # Extract the first word of "javac", so it can be a program name with args.
11238 set dummy javac; ac_word=$2
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11240 $as_echo_n "checking for $ac_word... " >&6; }
11241 if test "${ac_cv_path_JAVAC_CHECK+set}" = set; then :
11242 $as_echo_n "(cached) " >&6
11243 else
11244 case $JAVAC_CHECK in
11245 [\\/]* | ?:[\\/]*)
11246 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
11247 ;;
11248 *)
11249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11250 for as_dir in $PATH
11251 do
11252 IFS=$as_save_IFS
11253 test -z "$as_dir" && as_dir=.
11254 for ac_exec_ext in '' $ac_executable_extensions; do
11255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11256 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
11257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11258 break 2
11259 fi
11260 done
11261 done
11262 IFS=$as_save_IFS
11264 ;;
11265 esac
11266 fi
11267 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
11268 if test -n "$JAVAC_CHECK"; then
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
11270 $as_echo "$JAVAC_CHECK" >&6; }
11271 else
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11274 fi
11277 # Extract the first word of "java", so it can be a program name with args.
11278 set dummy java; ac_word=$2
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280 $as_echo_n "checking for $ac_word... " >&6; }
11281 if test "${ac_cv_path_JAVA_CHECK+set}" = set; then :
11282 $as_echo_n "(cached) " >&6
11283 else
11284 case $JAVA_CHECK in
11285 [\\/]* | ?:[\\/]*)
11286 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
11287 ;;
11288 *)
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11291 do
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11296 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
11297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 break 2
11299 fi
11300 done
11301 done
11302 IFS=$as_save_IFS
11304 ;;
11305 esac
11306 fi
11307 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
11308 if test -n "$JAVA_CHECK"; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
11310 $as_echo "$JAVA_CHECK" >&6; }
11311 else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313 $as_echo "no" >&6; }
11314 fi
11317 BINARY="$JAVAC_CHECK"
11318 if test "x$JAVAC_CHECK" = x; then
11319 BINARY="$JAVA_CHECK"
11320 fi
11321 if test "x$BINARY" != x; then
11322 # So there is a java(c) binary, it might be part of a JDK.
11323 # Lets find the JDK/JRE directory by following symbolic links.
11324 # Linux/GNU systems often have links from /usr/bin/java to
11325 # /etc/alternatives/java to the real JDK binary.
11327 # Translate long cygdrive or C:\sdfsf path
11328 # into a short mixed mode path that has no
11329 # spaces in it.
11330 tmp="$BINARY"
11331 if test "x$BUILD_OS" = "xwindows"; then
11332 tmp=`$CYGPATH -u "$BINARY"`
11333 tmp=`which "$tmp"`
11334 # If file exists with .exe appended, that's the real filename
11335 # and cygpath needs that to convert to short style path.
11336 if test -f "${tmp}.exe"; then
11337 tmp="${tmp}.exe"
11338 elif test -f "${tmp}.cmd"; then
11339 tmp="${tmp}.cmd"
11340 fi
11341 # Convert to C:/ mixed style path without spaces.
11342 tmp=`$CYGPATH -s -m "$tmp"`
11343 fi
11344 BINARY="$tmp"
11347 if test "x$BUILD_OS" != xwindows; then
11348 # Follow a chain of symbolic links. Use readlink
11349 # where it exists, else fall back to horribly
11350 # complicated shell code.
11351 # Extract the first word of "readlink", so it can be a program name with args.
11352 set dummy readlink; ac_word=$2
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354 $as_echo_n "checking for $ac_word... " >&6; }
11355 if test "${ac_cv_path_READLINK+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 case $READLINK in
11359 [\\/]* | ?:[\\/]*)
11360 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
11361 ;;
11362 *)
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11365 do
11366 IFS=$as_save_IFS
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11370 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11372 break 2
11373 fi
11374 done
11375 done
11376 IFS=$as_save_IFS
11378 ;;
11379 esac
11380 fi
11381 READLINK=$ac_cv_path_READLINK
11382 if test -n "$READLINK"; then
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
11384 $as_echo "$READLINK" >&6; }
11385 else
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11388 fi
11391 if test "x$READLINK_TESTED" != yes; then
11392 # On MacOSX there is a readlink tool with a different
11393 # purpose than the GNU readlink tool. Check the found readlink.
11394 ISGNU=`$READLINK --help 2>&1 | grep GNU`
11395 if test "x$ISGNU" = x; then
11396 # A readlink that we do not know how to use.
11397 # Are there other non-GNU readlinks out there?
11398 READLINK_TESTED=yes
11399 READLINK=
11400 fi
11401 fi
11403 if test "x$READLINK" != x; then
11404 BINARY=`$READLINK -f $BINARY`
11405 else
11406 STARTDIR=$PWD
11407 COUNTER=0
11408 DIR=`dirname $BINARY`
11409 FIL=`basename $BINARY`
11410 while test $COUNTER -lt 20; do
11411 ISLINK=`ls -l $DIR/$FIL | grep '\->' | sed -e 's/.*-> \(.*\)/\1/'`
11412 if test "x$ISLINK" == x; then
11413 # This is not a symbolic link! We are done!
11414 break
11415 fi
11416 # The link might be relative! We have to use cd to travel safely.
11417 cd $DIR
11418 cd `dirname $ISLINK`
11419 DIR=`pwd`
11420 FIL=`basename $ISLINK`
11421 let COUNTER=COUNTER+1
11422 done
11423 cd $STARTDIR
11424 BINARY=$DIR/$FIL
11425 fi
11426 fi
11428 BOOT_JDK=`dirname $BINARY`
11429 BOOT_JDK=`cd $BOOT_JDK/..; pwd`
11430 if test -x $BOOT_JDK/bin/javac && test -x $BOOT_JDK/bin/java; then
11431 JAVAC=$BOOT_JDK/bin/javac
11432 JAVA=$BOOT_JDK/bin/java
11433 BOOT_JDK_FOUND=yes
11434 fi
11435 fi
11436 fi
11438 if test "x$BOOT_JDK_FOUND" = xno; then
11439 # Try the MacOSX way.
11440 if test -x /usr/libexec/java_home; then
11441 BOOT_JDK=`/usr/libexec/java_home`
11442 if test -x $BOOT_JDK/bin/javac && test -x $BOOT_JDK/bin/java; then
11443 JAVAC=$BOOT_JDK/bin/javac
11444 JAVA=$BOOT_JDK/bin/java
11445 BOOT_JDK_FOUND=yes
11446 fi
11447 fi
11448 fi
11450 if test "x$BOOT_JDK_FOUND" = xno; then
11451 # Extract the first word of "java", so it can be a program name with args.
11452 set dummy java; ac_word=$2
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454 $as_echo_n "checking for $ac_word... " >&6; }
11455 if test "${ac_cv_path_JAVA_CHECK+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 case $JAVA_CHECK in
11459 [\\/]* | ?:[\\/]*)
11460 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
11461 ;;
11462 *)
11463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11464 for as_dir in $PATH
11465 do
11466 IFS=$as_save_IFS
11467 test -z "$as_dir" && as_dir=.
11468 for ac_exec_ext in '' $ac_executable_extensions; do
11469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11470 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
11471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11472 break 2
11473 fi
11474 done
11475 done
11476 IFS=$as_save_IFS
11478 ;;
11479 esac
11480 fi
11481 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
11482 if test -n "$JAVA_CHECK"; then
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
11484 $as_echo "$JAVA_CHECK" >&6; }
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11488 fi
11491 if test "x$JAVA_CHECK" != x; then
11492 # There is a java in the path. But apparently we have not found a javac
11493 # in the path, since that would have been tested earlier.
11494 if test "x$HOST_OS" = xwindows; then
11495 # Now if this is a windows platform. The default installation of a JDK
11496 # actually puts the JRE in the path and keeps the JDK out of the path!
11497 # Go look in the default installation location.
11498 BOOT_JDK=/cygdrive/c/Program\ Files/Java/`ls /cygdrive/c/Program\ Files/Java | grep jdk | sort -r | head --lines 1`
11499 if test -d "$BOOT_JDK"; then
11500 BOOT_JDK_FOUND=yes
11501 fi
11502 fi
11503 if test "x$BOOT_JDK_FOUND" = xno; then
11504 help_on_build_dependency openjdk
11505 as_fn_error $? "Found a JRE, not not a JDK! Please remove the JRE from your path and put a JDK there instead. $HELP_MSG" "$LINENO" 5
11506 fi
11507 else
11508 help_on_build_dependency openjdk
11509 as_fn_error $? "Could not find a JDK. $HELP_MSG" "$LINENO" 5
11510 fi
11511 fi
11514 if test "x$BUILD_OS" = "xwindows"; then
11515 # Extract the first word of "cygpath", so it can be a program name with args.
11516 set dummy cygpath; ac_word=$2
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11518 $as_echo_n "checking for $ac_word... " >&6; }
11519 if test "${ac_cv_path_CYGPATH+set}" = set; then :
11520 $as_echo_n "(cached) " >&6
11521 else
11522 case $CYGPATH in
11523 [\\/]* | ?:[\\/]*)
11524 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
11525 ;;
11526 *)
11527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528 for as_dir in $PATH
11529 do
11530 IFS=$as_save_IFS
11531 test -z "$as_dir" && as_dir=.
11532 for ac_exec_ext in '' $ac_executable_extensions; do
11533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11534 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
11535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11536 break 2
11537 fi
11538 done
11539 done
11540 IFS=$as_save_IFS
11542 ;;
11543 esac
11544 fi
11545 CYGPATH=$ac_cv_path_CYGPATH
11546 if test -n "$CYGPATH"; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
11548 $as_echo "$CYGPATH" >&6; }
11549 else
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11552 fi
11555 tmp="$BOOT_JDK"
11556 # Convert to C:/ mixed style path without spaces.
11557 tmp=`$CYGPATH -s -m "$tmp"`
11558 BOOT_JDK="$tmp"
11559 fi
11562 # Now see if we can find the rt.jar, or its nearest equivalent.
11563 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
11565 # Fail with message the path to the Boot JDK rt.jar (or nearest equivalent) if var BOOT_RTJAR contains a path with no spaces in it.
11566 # Unless on Windows, where we can rewrite the path.
11567 HAS_SPACE=`echo "$BOOT_RTJAR" | grep " "`
11568 if test "x$HAS_SPACE" != x; then
11569 if test "x$BUILD_OS" = "xwindows"; then
11570 BOOT_RTJAR=`$CYGPATH -s -m -a "$BOOT_RTJAR"`
11571 BOOT_RTJAR=`$CYGPATH -u "$BOOT_RTJAR"`
11572 else
11573 as_fn_error $? "You cannot have spaces in the path to the Boot JDK rt.jar (or nearest equivalent)! \"$BOOT_RTJAR\"" "$LINENO" 5
11574 fi
11575 fi
11578 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
11580 # Fail with message the path to the Boot JDK tools.jar (or nearest equivalent) if var BOOT_TOOLSJAR contains a path with no spaces in it.
11581 # Unless on Windows, where we can rewrite the path.
11582 HAS_SPACE=`echo "$BOOT_TOOLSJAR" | grep " "`
11583 if test "x$HAS_SPACE" != x; then
11584 if test "x$BUILD_OS" = "xwindows"; then
11585 BOOT_TOOLSJAR=`$CYGPATH -s -m -a "$BOOT_TOOLSJAR"`
11586 BOOT_TOOLSJAR=`$CYGPATH -u "$BOOT_TOOLSJAR"`
11587 else
11588 as_fn_error $? "You cannot have spaces in the path to the Boot JDK tools.jar (or nearest equivalent)! \"$BOOT_TOOLSJAR\"" "$LINENO" 5
11589 fi
11590 fi
11593 if test ! -f $BOOT_RTJAR; then
11594 # On MacOSX it is called classes.jar
11595 BOOT_RTJAR=$BOOT_JDK/../Classes/classes.jar
11596 if test ! -f $BOOT_RTJAR; then
11597 as_fn_error $? "Cannot find the rt.jar or its equivalent!" "$LINENO" 5
11598 fi
11599 # Remove the ..
11600 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
11601 # The tools.jar is part of classes.jar
11602 BOOT_TOOLSJAR="$BOOT_RTJAR"
11603 fi
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
11609 $as_echo_n "checking for Boot JDK... " >&6; }
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
11611 $as_echo "$BOOT_JDK" >&6; }
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot rt.jar" >&5
11613 $as_echo_n "checking for Boot rt.jar... " >&6; }
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_RTJAR" >&5
11615 $as_echo "$BOOT_RTJAR" >&6; }
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot tools.jar" >&5
11617 $as_echo_n "checking for Boot tools.jar... " >&6; }
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_TOOLSJAR" >&5
11619 $as_echo "$BOOT_TOOLSJAR" >&6; }
11621 # Use the java tool from the Boot JDK.
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
11623 $as_echo_n "checking for java in Boot JDK... " >&6; }
11624 JAVA=$BOOT_JDK/bin/java
11625 if test ! -x $JAVA; then
11626 as_fn_error $? "Could not find a working java" "$LINENO" 5
11627 fi
11628 BOOT_JDK_VERSION=`$JAVA -version 2>&1 | head -n 1`
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes $BOOT_JDK_VERSION" >&5
11630 $as_echo "yes $BOOT_JDK_VERSION" >&6; }
11633 # Extra M4 quote needed to protect [] in grep expression.
11634 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'`
11635 if test "x$FOUND_VERSION_78" = x; then
11636 help_on_build_dependency openjdk
11637 as_fn_error $? "Your bootjdk must be version 7 or 8. $HELP_MSG" "$LINENO" 5
11638 fi
11640 # When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
11641 BOOT_JDK_SOURCETARGET="-source 7 -target 7"
11644 # Use the javac tool from the Boot JDK.
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
11646 $as_echo_n "checking for javac in Boot JDK... " >&6; }
11647 JAVAC=$BOOT_JDK/bin/javac
11648 if test ! -x $JAVAC; then
11649 as_fn_error $? "Could not find a working javac" "$LINENO" 5
11650 fi
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11652 $as_echo "yes" >&6; }
11656 # Use the javac tool from the Boot JDK.
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
11658 $as_echo_n "checking for javah in Boot JDK... " >&6; }
11659 JAVAH=$BOOT_JDK/bin/javah
11660 if test ! -x $JAVAH; then
11661 as_fn_error $? "Could not find a working javah" "$LINENO" 5
11662 fi
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11664 $as_echo "yes" >&6; }
11667 # Use the jar tool from the Boot JDK.
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
11669 $as_echo_n "checking for jar in Boot JDK... " >&6; }
11670 JAR=$BOOT_JDK/bin/jar
11671 if test ! -x $JAR; then
11672 as_fn_error $? "Could not find a working jar" "$LINENO" 5
11673 fi
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11676 $as_echo "yes" >&6; }
11678 # Use the rmic tool from the Boot JDK.
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5
11680 $as_echo_n "checking for rmic in Boot JDK... " >&6; }
11681 RMIC=$BOOT_JDK/bin/rmic
11682 if test ! -x $RMIC; then
11683 as_fn_error $? "Could not find a working rmic" "$LINENO" 5
11684 fi
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11687 $as_echo "yes" >&6; }
11689 ###############################################################################
11690 #
11691 # Pickup additional source for a component from outside of the source root
11692 # or override source for a component.
11693 #
11695 # Check whether --with-add-source-root was given.
11696 if test "${with_add_source_root+set}" = set; then :
11697 withval=$with_add_source_root;
11698 fi
11702 # Check whether --with-override-source-root was given.
11703 if test "${with_override_source_root+set}" = set; then :
11704 withval=$with_override_source_root;
11705 fi
11709 # Check whether --with-adds-and-overrides was given.
11710 if test "${with_adds_and_overrides+set}" = set; then :
11711 withval=$with_adds_and_overrides;
11712 fi
11715 if test "x$with_adds_and_overrides" != x; then
11716 with_add_source_root="$with_adds_and_overrides/adds"
11717 with_override_source_root="$with_adds_and_overrides/overrides"
11718 fi
11720 if test "x$with_add_source_root" != x; then
11721 if ! test -d $with_add_source_root; then
11722 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5
11723 fi
11724 CURDIR="$PWD"
11725 cd "$with_add_source_root"
11726 ADD_SRC_ROOT="`pwd`"
11727 cd "$CURDIR"
11728 # Verify that the addon source root does not have any root makefiles.
11729 # If it does, then it is usually an error, prevent this.
11730 if test -f $with_add_source_root/langtools/makefiles/Makefile || \
11731 test -f $with_add_source_root/langtools/make/Makefile; then
11732 as_fn_error $? "Your add source root seems to contain a full langtools repo! An add source root should only contain additional sources." "$LINENO" 5
11733 fi
11734 if test -f $with_add_source_root/corba/makefiles/Makefile || \
11735 test -f $with_add_source_root/corba/make/Makefile; then
11736 as_fn_error $? "Your add source root seems to contain a full corba repo! An add source root should only contain additional sources." "$LINENO" 5
11737 fi
11738 if test -f $with_add_source_root/jaxp/makefiles/Makefile || \
11739 test -f $with_add_source_root/jaxp/make/Makefile; then
11740 as_fn_error $? "Your add source root seems to contain a full jaxp repo! An add source root should only contain additional sources." "$LINENO" 5
11741 fi
11742 if test -f $with_add_source_root/jaxws/makefiles/Makefile || \
11743 test -f $with_add_source_root/jaxws/make/Makefile; then
11744 as_fn_error $? "Your add source root seems to contain a full jaxws repo! An add source root should only contain additional sources." "$LINENO" 5
11745 fi
11746 if test -f $with_add_source_root/hotspot/makefiles/Makefile || \
11747 test -f $with_add_source_root/hotspot/make/Makefile; then
11748 as_fn_error $? "Your add source root seems to contain a full hotspot repo! An add source root should only contain additional sources." "$LINENO" 5
11749 fi
11750 if test -f $with_add_source_root/jdk/makefiles/Makefile || \
11751 test -f $with_add_source_root/jdk/make/Makefile; then
11752 as_fn_error $? "Your add source root seems to contain a full JDK repo! An add source root should only contain additional sources." "$LINENO" 5
11753 fi
11754 fi
11757 if test "x$with_override_source_root" != x; then
11758 if ! test -d $with_override_source_root; then
11759 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5
11760 fi
11761 CURDIR="$PWD"
11762 cd "$with_override_source_root"
11763 OVERRIDE_SRC_ROOT="`pwd`"
11764 cd "$CURDIR"
11765 if test -f $with_override_source_root/langtools/makefiles/Makefile || \
11766 test -f $with_override_source_root/langtools/make/Makefile; then
11767 as_fn_error $? "Your override source root seems to contain a full langtools repo! An override source root should only contain sources that override." "$LINENO" 5
11768 fi
11769 if test -f $with_override_source_root/corba/makefiles/Makefile || \
11770 test -f $with_override_source_root/corba/make/Makefile; then
11771 as_fn_error $? "Your override source root seems to contain a full corba repo! An override source root should only contain sources that override." "$LINENO" 5
11772 fi
11773 if test -f $with_override_source_root/jaxp/makefiles/Makefile || \
11774 test -f $with_override_source_root/jaxp/make/Makefile; then
11775 as_fn_error $? "Your override source root seems to contain a full jaxp repo! An override source root should only contain sources that override." "$LINENO" 5
11776 fi
11777 if test -f $with_override_source_root/jaxws/makefiles/Makefile || \
11778 test -f $with_override_source_root/jaxws/make/Makefile; then
11779 as_fn_error $? "Your override source root seems to contain a full jaxws repo! An override source root should only contain sources that override." "$LINENO" 5
11780 fi
11781 if test -f $with_override_source_root/hotspot/makefiles/Makefile || \
11782 test -f $with_override_source_root/hotspot/make/Makefile; then
11783 as_fn_error $? "Your override source root seems to contain a full hotspot repo! An override source root should only contain sources that override." "$LINENO" 5
11784 fi
11785 if test -f $with_override_source_root/jdk/makefiles/Makefile || \
11786 test -f $with_override_source_root/jdk/make/Makefile; then
11787 as_fn_error $? "Your override source root seems to contain a full JDK repo! An override source root should only contain sources that override." "$LINENO" 5
11788 fi
11789 fi
11792 ###############################################################################
11793 #
11794 # Override a repo completely, this is used for example when you have 3 small
11795 # development sandboxes of the langtools sources and want to avoid having 3 full
11796 # OpenJDK sources checked out on disk.
11797 #
11798 # Assuming that the 3 langtools sandboxes are located here:
11799 # /home/fredrik/sandbox1/langtools
11800 # /home/fredrik/sandbox2/langtools
11801 # /home/fredrik/sandbox3/langtools
11802 #
11803 # From the source root you create build subdirs manually:
11804 # mkdir -p build1 build2 build3
11805 # in each build directory run:
11806 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make)
11807 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make)
11808 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make)
11809 #
11812 # Check whether --with-override-langtools was given.
11813 if test "${with_override_langtools+set}" = set; then :
11814 withval=$with_override_langtools;
11815 fi
11819 # Check whether --with-override-corba was given.
11820 if test "${with_override_corba+set}" = set; then :
11821 withval=$with_override_corba;
11822 fi
11826 # Check whether --with-override-jaxp was given.
11827 if test "${with_override_jaxp+set}" = set; then :
11828 withval=$with_override_jaxp;
11829 fi
11833 # Check whether --with-override-jaxws was given.
11834 if test "${with_override_jaxws+set}" = set; then :
11835 withval=$with_override_jaxws;
11836 fi
11840 # Check whether --with-override-hotspot was given.
11841 if test "${with_override_hotspot+set}" = set; then :
11842 withval=$with_override_hotspot;
11843 fi
11847 # Check whether --with-override-jdk was given.
11848 if test "${with_override_jdk+set}" = set; then :
11849 withval=$with_override_jdk;
11850 fi
11853 if test "x$with_override_langtools" != x; then
11854 CURDIR="$PWD"
11855 cd "$with_override_langtools"
11856 LANGTOOLS_TOPDIR="`pwd`"
11857 cd "$CURDIR"
11858 if ! test -f $LANGTOOLS_TOPDIR/makefiles/Makefile; then
11859 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5
11860 fi
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5
11862 $as_echo_n "checking if langtools should be overridden... " >&6; }
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5
11864 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; }
11865 fi
11866 if test "x$with_override_corba" != x; then
11867 CURDIR="$PWD"
11868 cd "$with_override_corba"
11869 CORBA_TOPDIR="`pwd`"
11870 cd "$CURDIR"
11871 if ! test -f $CORBA_TOPDIR/makefiles/Makefile; then
11872 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5
11873 fi
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5
11875 $as_echo_n "checking if corba should be overridden... " >&6; }
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5
11877 $as_echo "yes with $CORBA_TOPDIR" >&6; }
11878 fi
11879 if test "x$with_override_jaxp" != x; then
11880 CURDIR="$PWD"
11881 cd "$with_override_jaxp"
11882 JAXP_TOPDIR="`pwd`"
11883 cd "$CURDIR"
11884 if ! test -f $JAXP_TOPDIR/makefiles/Makefile; then
11885 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5
11886 fi
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5
11888 $as_echo_n "checking if jaxp should be overridden... " >&6; }
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5
11890 $as_echo "yes with $JAXP_TOPDIR" >&6; }
11891 fi
11892 if test "x$with_override_jaxws" != x; then
11893 CURDIR="$PWD"
11894 cd "$with_override_jaxws"
11895 JAXWS_TOPDIR="`pwd`"
11896 cd "$CURDIR"
11897 if ! test -f $JAXWS_TOPDIR/makefiles/Makefile; then
11898 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5
11899 fi
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5
11901 $as_echo_n "checking if jaxws should be overridden... " >&6; }
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5
11903 $as_echo "yes with $JAXWS_TOPDIR" >&6; }
11904 fi
11905 if test "x$with_override_hotspot" != x; then
11906 CURDIR="$PWD"
11907 cd "$with_override_hotspot"
11908 HOTSPOT_TOPDIR="`pwd`"
11909 cd "$CURDIR"
11910 if ! test -f $HOTSPOT_TOPDIR/make/Makefile && \
11911 ! test -f $HOTSPOT_TOPDIR/makefiles/Makefile; then
11912 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5
11913 fi
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5
11915 $as_echo_n "checking if hotspot should be overridden... " >&6; }
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5
11917 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; }
11918 fi
11919 if test "x$with_override_jdk" != x; then
11920 CURDIR="$PWD"
11921 cd "$with_override_jdk"
11922 JDK_TOPDIR="`pwd`"
11923 cd "$CURDIR"
11924 if ! test -f $JDK_TOPDIR/makefiles/Makefile; then
11925 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5
11926 fi
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5
11928 $as_echo_n "checking if JDK should be overridden... " >&6; }
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5
11930 $as_echo "yes with $JDK_TOPDIR" >&6; }
11931 fi
11933 ###############################################################################
11934 #
11935 # Specify options for anything that is run with the Boot JDK.
11936 #
11938 # Check whether --with-boot-jdk-jvmargs was given.
11939 if test "${with_boot_jdk_jvmargs+set}" = set; then :
11940 withval=$with_boot_jdk_jvmargs;
11941 fi
11944 if test "x$with_boot_jdk_jvmargs" = x; then
11945 # Not all JVM:s accept the same arguments on the command line.
11946 # OpenJDK specific increase in thread stack for JDK build,
11947 # well more specifically, when running javac.
11948 if test "x$BUILD_NUM_BITS" = x32; then
11949 STACK_SIZE=768
11950 else
11951 # Running Javac on a JVM on a 64-bit machine, the stack takes more space
11952 # since 64-bit pointers are pushed on the stach. Apparently, we need
11953 # to increase the stack space when javacing the JDK....
11954 STACK_SIZE=1536
11955 fi
11957 # Minimum amount of heap memory.
11959 # Test if -Xms64M is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
11960 # If so, then append -Xms64M to boot_jdk_jvmargs
11961 FOUND_WARN=`$JAVA -Xms64M -version 2>&1 | grep -i warn`
11962 FOUND_VERSION=`$JAVA -Xms64M -version 2>&1 | grep " version \""`
11963 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
11964 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xms64M"
11965 fi
11967 if test "x$HOST_OS" = "xmacosx"; then
11968 # Why does macosx need more heap? Its the huge JDK batch.
11970 # Test if -Xmx1600M is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
11971 # If so, then append -Xmx1600M to boot_jdk_jvmargs
11972 FOUND_WARN=`$JAVA -Xmx1600M -version 2>&1 | grep -i warn`
11973 FOUND_VERSION=`$JAVA -Xmx1600M -version 2>&1 | grep " version \""`
11974 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
11975 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1600M"
11976 fi
11978 else
11980 # Test if -Xmx1100M is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
11981 # If so, then append -Xmx1100M to boot_jdk_jvmargs
11982 FOUND_WARN=`$JAVA -Xmx1100M -version 2>&1 | grep -i warn`
11983 FOUND_VERSION=`$JAVA -Xmx1100M -version 2>&1 | grep " version \""`
11984 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
11985 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1100M"
11986 fi
11988 fi
11989 # When is adding -client something that speeds up the JVM?
11990 # ADD_JVM_ARG_IF_OK([-client],boot_jdk_jvmargs,[$JAVA])
11992 # Test if -XX:PermSize=32m is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
11993 # If so, then append -XX:PermSize=32m to boot_jdk_jvmargs
11994 FOUND_WARN=`$JAVA -XX:PermSize=32m -version 2>&1 | grep -i warn`
11995 FOUND_VERSION=`$JAVA -XX:PermSize=32m -version 2>&1 | grep " version \""`
11996 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
11997 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:PermSize=32m"
11998 fi
12001 # Test if -XX:MaxPermSize=160m is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
12002 # If so, then append -XX:MaxPermSize=160m to boot_jdk_jvmargs
12003 FOUND_WARN=`$JAVA -XX:MaxPermSize=160m -version 2>&1 | grep -i warn`
12004 FOUND_VERSION=`$JAVA -XX:MaxPermSize=160m -version 2>&1 | grep " version \""`
12005 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12006 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:MaxPermSize=160m"
12007 fi
12010 # Test if -XX:ThreadStackSize=$STACK_SIZE is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
12011 # If so, then append -XX:ThreadStackSize=$STACK_SIZE to boot_jdk_jvmargs
12012 FOUND_WARN=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1 | grep -i warn`
12013 FOUND_VERSION=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1 | grep " version \""`
12014 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12015 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:ThreadStackSize=$STACK_SIZE"
12016 fi
12018 # Disable special log output when a debug build is used as Boot JDK...
12020 # Test if -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
12021 # If so, then append -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput to boot_jdk_jvmargs
12022 FOUND_WARN=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1 | grep -i warn`
12023 FOUND_VERSION=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1 | grep " version \""`
12024 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12025 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput"
12026 fi
12028 fi
12030 BOOT_JDK_JVMARGS=$boot_jdk_jvmargs
12034 # Check whether --with-server-java was given.
12035 if test "${with_server_java+set}" = set; then :
12036 withval=$with_server_java;
12037 fi
12040 if test "x$with_server_java" != x; then
12041 SERVER_JAVA="$with_server_java"
12042 FOUND_VERSION=`$SERVER_JAVA -version 2>&1 | grep " version \""`
12043 if test "x$FOUND_VERSION" = x; then
12044 as_fn_error $? "Could not execute server java: $SERVER_JAVA" "$LINENO" 5
12045 fi
12046 else
12047 SERVER_JAVA=""
12048 # Hotspot specific options.
12050 # Test if -XX:+UseParallelOldGC is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
12051 # If so, then append -XX:+UseParallelOldGC to SERVER_JAVA
12052 FOUND_WARN=`$JAVA -XX:+UseParallelOldGC -version 2>&1 | grep -i warn`
12053 FOUND_VERSION=`$JAVA -XX:+UseParallelOldGC -version 2>&1 | grep " version \""`
12054 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12055 SERVER_JAVA="$SERVER_JAVA -XX:+UseParallelOldGC"
12056 fi
12059 # Test if -verbosegc is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
12060 # If so, then append -verbosegc to SERVER_JAVA
12061 FOUND_WARN=`$JAVA -verbosegc -version 2>&1 | grep -i warn`
12062 FOUND_VERSION=`$JAVA -verbosegc -version 2>&1 | grep " version \""`
12063 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12064 SERVER_JAVA="$SERVER_JAVA -verbosegc"
12065 fi
12067 # JRockit specific options.
12069 # Test if -Xverbose:gc is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
12070 # If so, then append -Xverbose:gc to SERVER_JAVA
12071 FOUND_WARN=`$JAVA -Xverbose:gc -version 2>&1 | grep -i warn`
12072 FOUND_VERSION=`$JAVA -Xverbose:gc -version 2>&1 | grep " version \""`
12073 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12074 SERVER_JAVA="$SERVER_JAVA -Xverbose:gc"
12075 fi
12077 SERVER_JAVA="$JAVA $SERVER_JAVA"
12078 fi
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shared server for javac" >&5
12082 $as_echo_n "checking whether to use shared server for javac... " >&6; }
12083 # Check whether --enable-javac-server was given.
12084 if test "${enable_javac_server+set}" = set; then :
12085 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}"
12086 else
12087 ENABLE_JAVAC_SERVER='no'
12088 fi
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5
12091 $as_echo "$ENABLE_JAVAC_SERVER" >&6; }
12092 if test "x$ENABLE_JAVAC_SERVER" = xyes; then
12093 JAVAC_USE_REMOTE=true
12094 JAVAC_SERVERS="$OUTPUT_ROOT/javacservers"
12095 else
12096 JAVAC_USE_REMOTE=false
12097 JAVAC_SERVERS=
12098 fi
12103 # Check whether --with-javac-server-cores was given.
12104 if test "${with_javac_server_cores+set}" = set; then :
12105 withval=$with_javac_server_cores;
12106 fi
12108 if test "x$with_javac_server_cores" != x; then
12109 JAVAC_SERVER_CORES="$with_javac_server_cores"
12110 else
12111 if test "$NUM_CORES" -gt 16; then
12112 # We set this arbitrary limit because we want to limit the heap
12113 # size of the javac server.
12114 # In the future we will make the javac compilers in the server
12115 # share more and more state, thus enabling us to use more and
12116 # more concurrent threads in the server.
12117 JAVAC_SERVER_CORES="16"
12118 else
12119 JAVAC_SERVER_CORES="$NUM_CORES"
12120 fi
12122 if test "$MEMORY_SIZE" -gt "17000"; then
12123 MAX_HEAP_MEM=10000
12125 # Test if -d64 is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12126 # If so, then append -d64 to SERVER_JAVA
12127 FOUND_WARN=`$SERVER_JAVA -d64 -version 2>&1 | grep -i warn`
12128 FOUND_VERSION=`$SERVER_JAVA -d64 -version 2>&1 | grep " version \""`
12129 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12130 SERVER_JAVA="$SERVER_JAVA -d64"
12131 fi
12134 # Test if -Xms10G -Xmx10G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12135 # If so, then append -Xms10G -Xmx10G to SERVER_JAVA
12136 FOUND_WARN=`$SERVER_JAVA -Xms10G -Xmx10G -version 2>&1 | grep -i warn`
12137 FOUND_VERSION=`$SERVER_JAVA -Xms10G -Xmx10G -version 2>&1 | grep " version \""`
12138 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12139 SERVER_JAVA="$SERVER_JAVA -Xms10G -Xmx10G"
12140 fi
12143 # Test if -Xmn2G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12144 # If so, then append -Xmn2G to SERVER_JAVA
12145 FOUND_WARN=`$SERVER_JAVA -Xmn2G -version 2>&1 | grep -i warn`
12146 FOUND_VERSION=`$SERVER_JAVA -Xmn2G -version 2>&1 | grep " version \""`
12147 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12148 SERVER_JAVA="$SERVER_JAVA -Xmn2G"
12149 fi
12151 elif test "$MEMORY_SIZE" -gt "10000"; then
12152 MAX_HEAP_MEM=6000
12154 # Test if -d64 is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12155 # If so, then append -d64 to SERVER_JAVA
12156 FOUND_WARN=`$SERVER_JAVA -d64 -version 2>&1 | grep -i warn`
12157 FOUND_VERSION=`$SERVER_JAVA -d64 -version 2>&1 | grep " version \""`
12158 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12159 SERVER_JAVA="$SERVER_JAVA -d64"
12160 fi
12163 # Test if -Xms6G -Xmx6G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12164 # If so, then append -Xms6G -Xmx6G to SERVER_JAVA
12165 FOUND_WARN=`$SERVER_JAVA -Xms6G -Xmx6G -version 2>&1 | grep -i warn`
12166 FOUND_VERSION=`$SERVER_JAVA -Xms6G -Xmx6G -version 2>&1 | grep " version \""`
12167 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12168 SERVER_JAVA="$SERVER_JAVA -Xms6G -Xmx6G"
12169 fi
12172 # Test if -Xmn1G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12173 # If so, then append -Xmn1G to SERVER_JAVA
12174 FOUND_WARN=`$SERVER_JAVA -Xmn1G -version 2>&1 | grep -i warn`
12175 FOUND_VERSION=`$SERVER_JAVA -Xmn1G -version 2>&1 | grep " version \""`
12176 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12177 SERVER_JAVA="$SERVER_JAVA -Xmn1G"
12178 fi
12180 elif test "$MEMORY_SIZE" -gt "5000"; then
12181 MAX_HEAP_MEM=3000
12183 # Test if -d64 is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12184 # If so, then append -d64 to SERVER_JAVA
12185 FOUND_WARN=`$SERVER_JAVA -d64 -version 2>&1 | grep -i warn`
12186 FOUND_VERSION=`$SERVER_JAVA -d64 -version 2>&1 | grep " version \""`
12187 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12188 SERVER_JAVA="$SERVER_JAVA -d64"
12189 fi
12192 # Test if -Xms1G -Xmx3G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12193 # If so, then append -Xms1G -Xmx3G to SERVER_JAVA
12194 FOUND_WARN=`$SERVER_JAVA -Xms1G -Xmx3G -version 2>&1 | grep -i warn`
12195 FOUND_VERSION=`$SERVER_JAVA -Xms1G -Xmx3G -version 2>&1 | grep " version \""`
12196 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12197 SERVER_JAVA="$SERVER_JAVA -Xms1G -Xmx3G"
12198 fi
12201 # Test if -Xmn256M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12202 # If so, then append -Xmn256M to SERVER_JAVA
12203 FOUND_WARN=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep -i warn`
12204 FOUND_VERSION=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep " version \""`
12205 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12206 SERVER_JAVA="$SERVER_JAVA -Xmn256M"
12207 fi
12209 elif test "$MEMORY_SIZE" -gt "3800"; then
12210 MAX_HEAP_MEM=2500
12212 # Test if -Xms1G -Xmx2500M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12213 # If so, then append -Xms1G -Xmx2500M to SERVER_JAVA
12214 FOUND_WARN=`$SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1 | grep -i warn`
12215 FOUND_VERSION=`$SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1 | grep " version \""`
12216 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12217 SERVER_JAVA="$SERVER_JAVA -Xms1G -Xmx2500M"
12218 fi
12221 # Test if -Xmn256M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12222 # If so, then append -Xmn256M to SERVER_JAVA
12223 FOUND_WARN=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep -i warn`
12224 FOUND_VERSION=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep " version \""`
12225 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12226 SERVER_JAVA="$SERVER_JAVA -Xmn256M"
12227 fi
12229 elif test "$MEMORY_SIZE" -gt "1900"; then
12230 MAX_HEAP_MEM=1200
12232 # Test if -Xms700M -Xmx1200M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12233 # If so, then append -Xms700M -Xmx1200M to SERVER_JAVA
12234 FOUND_WARN=`$SERVER_JAVA -Xms700M -Xmx1200M -version 2>&1 | grep -i warn`
12235 FOUND_VERSION=`$SERVER_JAVA -Xms700M -Xmx1200M -version 2>&1 | grep " version \""`
12236 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12237 SERVER_JAVA="$SERVER_JAVA -Xms700M -Xmx1200M"
12238 fi
12241 # Test if -Xmn256M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12242 # If so, then append -Xmn256M to SERVER_JAVA
12243 FOUND_WARN=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep -i warn`
12244 FOUND_VERSION=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep " version \""`
12245 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12246 SERVER_JAVA="$SERVER_JAVA -Xmn256M"
12247 fi
12249 elif test "$MEMORY_SIZE" -gt "1000"; then
12250 MAX_HEAP_MEM=900
12252 # Test if -Xms400M -Xmx900M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12253 # If so, then append -Xms400M -Xmx900M to SERVER_JAVA
12254 FOUND_WARN=`$SERVER_JAVA -Xms400M -Xmx900M -version 2>&1 | grep -i warn`
12255 FOUND_VERSION=`$SERVER_JAVA -Xms400M -Xmx900M -version 2>&1 | grep " version \""`
12256 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12257 SERVER_JAVA="$SERVER_JAVA -Xms400M -Xmx900M"
12258 fi
12261 # Test if -Xmn128M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12262 # If so, then append -Xmn128M to SERVER_JAVA
12263 FOUND_WARN=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep -i warn`
12264 FOUND_VERSION=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep " version \""`
12265 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12266 SERVER_JAVA="$SERVER_JAVA -Xmn128M"
12267 fi
12269 else
12270 MAX_HEAP_MEM=512
12272 # Test if -Xms256M -Xmx512M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12273 # If so, then append -Xms256M -Xmx512M to SERVER_JAVA
12274 FOUND_WARN=`$SERVER_JAVA -Xms256M -Xmx512M -version 2>&1 | grep -i warn`
12275 FOUND_VERSION=`$SERVER_JAVA -Xms256M -Xmx512M -version 2>&1 | grep " version \""`
12276 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12277 SERVER_JAVA="$SERVER_JAVA -Xms256M -Xmx512M"
12278 fi
12281 # Test if -Xmn128M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12282 # If so, then append -Xmn128M to SERVER_JAVA
12283 FOUND_WARN=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep -i warn`
12284 FOUND_VERSION=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep " version \""`
12285 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12286 SERVER_JAVA="$SERVER_JAVA -Xmn128M"
12287 fi
12289 fi
12291 MAX_COMPILERS_IN_HEAP=`expr $MAX_HEAP_MEM / 501`
12292 if test "$JAVAC_SERVER_CORES" -gt "$MAX_COMPILERS_IN_HEAP"; then
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if number of server cores must be reduced" >&5
12294 $as_echo_n "checking if number of server cores must be reduced... " >&6; }
12295 JAVAC_SERVER_CORES="$MAX_COMPILERS_IN_HEAP"
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, to $JAVAC_SERVER_CORES with max heap size $MAX_HEAP_MEM MB" >&5
12297 $as_echo "yes, to $JAVAC_SERVER_CORES with max heap size $MAX_HEAP_MEM MB" >&6; }
12298 fi
12299 fi
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to track dependencies between Java packages" >&5
12303 $as_echo_n "checking whether to track dependencies between Java packages... " >&6; }
12304 # Check whether --enable-javac-deps was given.
12305 if test "${enable_javac_deps+set}" = set; then :
12306 enableval=$enable_javac_deps; ENABLE_JAVAC_DEPS="${enableval}"
12307 else
12308 ENABLE_JAVAC_DEPS='no'
12309 fi
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_DEPS" >&5
12312 $as_echo "$ENABLE_JAVAC_DEPS" >&6; }
12313 if test "x$ENABLE_JAVAC_DEPS" = xyes; then
12314 JAVAC_USE_DEPS=true
12315 else
12316 JAVAC_USE_DEPS=false
12317 fi
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use multiple cores for javac compilation" >&5
12321 $as_echo_n "checking whether to use multiple cores for javac compilation... " >&6; }
12322 # Check whether --enable-javac-multi-core was given.
12323 if test "${enable_javac_multi_core+set}" = set; then :
12324 enableval=$enable_javac_multi_core; ENABLE_JAVAC_MULTICORE="${enableval}"
12325 else
12326 ENABLE_JAVAC_MULTICORE='no'
12327 fi
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_MULTICORE" >&5
12330 $as_echo "$ENABLE_JAVAC_MULTICORE" >&6; }
12331 if test "x$ENABLE_JAVAC_MULTICORE" = xyes; then
12332 JAVAC_USE_MODE=MULTI_CORE_CONCURRENT
12333 else
12334 JAVAC_USE_MODE=SINGLE_THREADED_BATCH
12335 if test "x$ENABLE_JAVAC_DEPS" = xyes; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking is not supported with single threaded batch compiles of Java source roots. Please add --disable-javac-deps to your configure options." >&5
12337 $as_echo "$as_me: WARNING: Dependency tracking is not supported with single threaded batch compiles of Java source roots. Please add --disable-javac-deps to your configure options." >&2;}
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling dependency tracking for you now." >&5
12339 $as_echo "$as_me: WARNING: Disabling dependency tracking for you now." >&2;}
12340 JAVAC_USE_DEPS=false
12341 fi
12342 if test "x$ENABLE_JAVAC_SERVER" = xyes; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The javac server will not be used since single threaded batch compiles are run within their own JVM. Please add --disable-javac-server to your configure options." >&5
12344 $as_echo "$as_me: WARNING: The javac server will not be used since single threaded batch compiles are run within their own JVM. Please add --disable-javac-server to your configure options." >&2;}
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling javac server for you now." >&5
12346 $as_echo "$as_me: WARNING: Disabling javac server for you now." >&2;}
12347 JAVAC_USE_REMOTE=false
12348 fi
12349 fi
12352 ###############################################################################
12353 #
12354 # OS specific settings that we never will need to probe.
12355 #
12356 if test "x$HOST_OS" = xlinux; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5
12358 $as_echo_n "checking what is not needed on Linux?... " >&6; }
12359 PULSE_NOT_NEEDED=yes
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5
12361 $as_echo "pulse" >&6; }
12362 fi
12364 if test "x$HOST_OS" = xsolaris; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5
12366 $as_echo_n "checking what is not needed on Solaris?... " >&6; }
12367 ALSA_NOT_NEEDED=yes
12368 PULSE_NOT_NEEDED=yes
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
12370 $as_echo "alsa pulse" >&6; }
12371 fi
12373 if test "x$HOST_OS" = xwindows; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5
12375 $as_echo_n "checking what is not needed on Windows?... " >&6; }
12376 CUPS_NOT_NEEDED=yes
12377 ALSA_NOT_NEEDED=yes
12378 PULSE_NOT_NEEDED=yes
12379 X11_NOT_NEEDED=yes
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5
12381 $as_echo "alsa cups pulse x11" >&6; }
12382 fi
12384 if test "x$HOST_OS" = xmacosx; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5
12386 $as_echo_n "checking what is not needed on MacOSX?... " >&6; }
12387 ALSA_NOT_NEEDED=yes
12388 PULSE_NOT_NEEDED=yes
12389 X11_NOT_NEEDED=yes
12390 FREETYPE2_NOT_NEEDED=yes
12391 # If the java runtime framework is disabled, then we need X11.
12392 # This will be adjusted below.
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5
12394 $as_echo "alsa pulse x11" >&6; }
12395 fi
12397 if test "x$HOST_OS" = xbsd; then
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5
12399 $as_echo_n "checking what is not needed on bsd?... " >&6; }
12400 ALSA_NOT_NEEDED=yes
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5
12402 $as_echo "alsa" >&6; }
12403 fi
12405 ###############################################################################
12406 #
12407 # Check for MacOSX support for OpenJDK. If this exists, try to build a JVM
12408 # that uses this API.
12409 #
12410 # Check whether --enable-macosx-runtime-support was given.
12411 if test "${enable_macosx_runtime_support+set}" = set; then :
12412 enableval=$enable_macosx_runtime_support; MACOSX_RUNTIME_SUPPORT="${enableval}"
12413 else
12414 MACOSX_RUNTIME_SUPPORT="no"
12415 fi
12418 USE_MACOSX_RUNTIME_SUPPORT=no
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit Java runtime support in the OS" >&5
12420 $as_echo_n "checking for explicit Java runtime support in the OS... " >&6; }
12421 if test -f /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers/JavaRuntimeSupport.h; then
12422 if test "x$MACOSX_RUNTIME_SUPPORT" != xno; then
12423 MACOSX_RUNTIME_SUPPORT=yes
12424 USE_MACOSX_RUNTIME_SUPPORT=yes
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, does not need alsa freetype2 pulse and X11" >&5
12426 $as_echo "yes, does not need alsa freetype2 pulse and X11" >&6; }
12427 else
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, but explicitly disabled." >&5
12429 $as_echo "yes, but explicitly disabled." >&6; }
12430 fi
12431 else
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 $as_echo "no" >&6; }
12434 fi
12436 if test "x$HOST_OS" = xmacosx && test "x$USE_MACOSX_RUNTIME_SUPPORT" = xno; then
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on an X11 build on MacOSX?" >&5
12438 $as_echo_n "checking what is not needed on an X11 build on MacOSX?... " >&6; }
12439 X11_NOT_NEEDED=
12440 FREETYPE2_NOT_NEEDED=
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
12442 $as_echo "alsa pulse" >&6; }
12443 fi
12445 ###############################################################################
12446 #
12447 # Check for X Windows
12448 #
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
12450 $as_echo_n "checking for X... " >&6; }
12453 # Check whether --with-x was given.
12454 if test "${with_x+set}" = set; then :
12455 withval=$with_x;
12456 fi
12458 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12459 if test "x$with_x" = xno; then
12460 # The user explicitly disabled X.
12461 have_x=disabled
12462 else
12463 case $x_includes,$x_libraries in #(
12464 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
12465 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
12466 $as_echo_n "(cached) " >&6
12467 else
12468 # One or both of the vars are not set, and there is no cached value.
12469 ac_x_includes=no ac_x_libraries=no
12470 rm -f -r conftest.dir
12471 if mkdir conftest.dir; then
12472 cd conftest.dir
12473 cat >Imakefile <<'_ACEOF'
12474 incroot:
12475 @echo incroot='${INCROOT}'
12476 usrlibdir:
12477 @echo usrlibdir='${USRLIBDIR}'
12478 libdir:
12479 @echo libdir='${LIBDIR}'
12480 _ACEOF
12481 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
12482 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12483 for ac_var in incroot usrlibdir libdir; do
12484 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
12485 done
12486 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12487 for ac_extension in a so sl dylib la dll; do
12488 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12489 test -f "$ac_im_libdir/libX11.$ac_extension"; then
12490 ac_im_usrlibdir=$ac_im_libdir; break
12491 fi
12492 done
12493 # Screen out bogus values from the imake configuration. They are
12494 # bogus both because they are the default anyway, and because
12495 # using them would break gcc on systems where it needs fixed includes.
12496 case $ac_im_incroot in
12497 /usr/include) ac_x_includes= ;;
12498 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
12499 esac
12500 case $ac_im_usrlibdir in
12501 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
12502 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
12503 esac
12504 fi
12505 cd ..
12506 rm -f -r conftest.dir
12507 fi
12509 # Standard set of common directories for X headers.
12510 # Check X11 before X11Rn because it is often a symlink to the current release.
12511 ac_x_header_dirs='
12512 /usr/X11/include
12513 /usr/X11R7/include
12514 /usr/X11R6/include
12515 /usr/X11R5/include
12516 /usr/X11R4/include
12518 /usr/include/X11
12519 /usr/include/X11R7
12520 /usr/include/X11R6
12521 /usr/include/X11R5
12522 /usr/include/X11R4
12524 /usr/local/X11/include
12525 /usr/local/X11R7/include
12526 /usr/local/X11R6/include
12527 /usr/local/X11R5/include
12528 /usr/local/X11R4/include
12530 /usr/local/include/X11
12531 /usr/local/include/X11R7
12532 /usr/local/include/X11R6
12533 /usr/local/include/X11R5
12534 /usr/local/include/X11R4
12536 /usr/X386/include
12537 /usr/x386/include
12538 /usr/XFree86/include/X11
12540 /usr/include
12541 /usr/local/include
12542 /usr/unsupported/include
12543 /usr/athena/include
12544 /usr/local/x11r5/include
12545 /usr/lpp/Xamples/include
12547 /usr/openwin/include
12548 /usr/openwin/share/include'
12550 if test "$ac_x_includes" = no; then
12551 # Guess where to find include files, by looking for Xlib.h.
12552 # First, try using that file with no special directory specified.
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12555 #include <X11/Xlib.h>
12556 _ACEOF
12557 if ac_fn_cxx_try_cpp "$LINENO"; then :
12558 # We can compile using X headers with no special include directory.
12559 ac_x_includes=
12560 else
12561 for ac_dir in $ac_x_header_dirs; do
12562 if test -r "$ac_dir/X11/Xlib.h"; then
12563 ac_x_includes=$ac_dir
12564 break
12565 fi
12566 done
12567 fi
12568 rm -f conftest.err conftest.i conftest.$ac_ext
12569 fi # $ac_x_includes = no
12571 if test "$ac_x_libraries" = no; then
12572 # Check for the libraries.
12573 # See if we find them without any special options.
12574 # Don't add to $LIBS permanently.
12575 ac_save_LIBS=$LIBS
12576 LIBS="-lX11 $LIBS"
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579 #include <X11/Xlib.h>
12580 int
12581 main ()
12582 {
12583 XrmInitialize ()
12584 ;
12585 return 0;
12586 }
12587 _ACEOF
12588 if ac_fn_cxx_try_link "$LINENO"; then :
12589 LIBS=$ac_save_LIBS
12590 # We can link X programs with no special library path.
12591 ac_x_libraries=
12592 else
12593 LIBS=$ac_save_LIBS
12594 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12595 do
12596 # Don't even attempt the hair of trying to link an X program!
12597 for ac_extension in a so sl dylib la dll; do
12598 if test -r "$ac_dir/libX11.$ac_extension"; then
12599 ac_x_libraries=$ac_dir
12600 break 2
12601 fi
12602 done
12603 done
12604 fi
12605 rm -f core conftest.err conftest.$ac_objext \
12606 conftest$ac_exeext conftest.$ac_ext
12607 fi # $ac_x_libraries = no
12609 case $ac_x_includes,$ac_x_libraries in #(
12610 no,* | *,no | *\'*)
12611 # Didn't find X, or a directory has "'" in its name.
12612 ac_cv_have_x="have_x=no";; #(
12613 *)
12614 # Record where we found X for the cache.
12615 ac_cv_have_x="have_x=yes\
12616 ac_x_includes='$ac_x_includes'\
12617 ac_x_libraries='$ac_x_libraries'"
12618 esac
12619 fi
12620 ;; #(
12621 *) have_x=yes;;
12622 esac
12623 eval "$ac_cv_have_x"
12624 fi # $with_x != no
12626 if test "$have_x" != yes; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12628 $as_echo "$have_x" >&6; }
12629 no_x=yes
12630 else
12631 # If each of the values was on the command line, it overrides each guess.
12632 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12633 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12634 # Update the cache value to reflect the command line values.
12635 ac_cv_have_x="have_x=yes\
12636 ac_x_includes='$x_includes'\
12637 ac_x_libraries='$x_libraries'"
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12639 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12640 fi
12642 if test "$no_x" = yes; then
12643 # Not all programs may use this symbol, but it does not hurt to define it.
12645 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
12647 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12648 else
12649 if test -n "$x_includes"; then
12650 X_CFLAGS="$X_CFLAGS -I$x_includes"
12651 fi
12653 # It would also be nice to do this for all -L options, not just this one.
12654 if test -n "$x_libraries"; then
12655 X_LIBS="$X_LIBS -L$x_libraries"
12656 # For Solaris; some versions of Sun CC require a space after -R and
12657 # others require no space. Words are not sufficient . . . .
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
12659 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
12660 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
12661 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
12662 ac_cxx_werror_flag=yes
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h. */
12666 int
12667 main ()
12668 {
12670 ;
12671 return 0;
12672 }
12673 _ACEOF
12674 if ac_fn_cxx_try_link "$LINENO"; then :
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12677 X_LIBS="$X_LIBS -R$x_libraries"
12678 else
12679 LIBS="$ac_xsave_LIBS -R $x_libraries"
12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h. */
12683 int
12684 main ()
12685 {
12687 ;
12688 return 0;
12689 }
12690 _ACEOF
12691 if ac_fn_cxx_try_link "$LINENO"; then :
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12693 $as_echo "yes" >&6; }
12694 X_LIBS="$X_LIBS -R $x_libraries"
12695 else
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
12697 $as_echo "neither works" >&6; }
12698 fi
12699 rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12701 fi
12702 rm -f core conftest.err conftest.$ac_objext \
12703 conftest$ac_exeext conftest.$ac_ext
12704 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
12705 LIBS=$ac_xsave_LIBS
12706 fi
12708 # Check for system-dependent libraries X programs must link with.
12709 # Do this before checking for the system-independent R6 libraries
12710 # (-lICE), since we may need -lsocket or whatever for X linking.
12712 if test "$ISC" = yes; then
12713 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12714 else
12715 # Martyn Johnson says this is needed for Ultrix, if the X
12716 # libraries were built with DECnet support. And Karl Berry says
12717 # the Alpha needs dnet_stub (dnet does not exist).
12718 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12722 /* Override any GCC internal prototype to avoid an error.
12723 Use char because int might match the return type of a GCC
12724 builtin and then its argument prototype would still apply. */
12725 #ifdef __cplusplus
12726 extern "C"
12727 #endif
12728 char XOpenDisplay ();
12729 int
12730 main ()
12731 {
12732 return XOpenDisplay ();
12733 ;
12734 return 0;
12735 }
12736 _ACEOF
12737 if ac_fn_cxx_try_link "$LINENO"; then :
12739 else
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
12741 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
12742 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
12743 $as_echo_n "(cached) " >&6
12744 else
12745 ac_check_lib_save_LIBS=$LIBS
12746 LIBS="-ldnet $LIBS"
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12750 /* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12753 #ifdef __cplusplus
12754 extern "C"
12755 #endif
12756 char dnet_ntoa ();
12757 int
12758 main ()
12759 {
12760 return dnet_ntoa ();
12761 ;
12762 return 0;
12763 }
12764 _ACEOF
12765 if ac_fn_cxx_try_link "$LINENO"; then :
12766 ac_cv_lib_dnet_dnet_ntoa=yes
12767 else
12768 ac_cv_lib_dnet_dnet_ntoa=no
12769 fi
12770 rm -f core conftest.err conftest.$ac_objext \
12771 conftest$ac_exeext conftest.$ac_ext
12772 LIBS=$ac_check_lib_save_LIBS
12773 fi
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12775 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
12776 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
12777 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12778 fi
12780 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
12782 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
12783 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
12784 $as_echo_n "(cached) " >&6
12785 else
12786 ac_check_lib_save_LIBS=$LIBS
12787 LIBS="-ldnet_stub $LIBS"
12788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12789 /* end confdefs.h. */
12791 /* Override any GCC internal prototype to avoid an error.
12792 Use char because int might match the return type of a GCC
12793 builtin and then its argument prototype would still apply. */
12794 #ifdef __cplusplus
12795 extern "C"
12796 #endif
12797 char dnet_ntoa ();
12798 int
12799 main ()
12800 {
12801 return dnet_ntoa ();
12802 ;
12803 return 0;
12804 }
12805 _ACEOF
12806 if ac_fn_cxx_try_link "$LINENO"; then :
12807 ac_cv_lib_dnet_stub_dnet_ntoa=yes
12808 else
12809 ac_cv_lib_dnet_stub_dnet_ntoa=no
12810 fi
12811 rm -f core conftest.err conftest.$ac_objext \
12812 conftest$ac_exeext conftest.$ac_ext
12813 LIBS=$ac_check_lib_save_LIBS
12814 fi
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12816 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
12817 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
12818 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12819 fi
12821 fi
12822 fi
12823 rm -f core conftest.err conftest.$ac_objext \
12824 conftest$ac_exeext conftest.$ac_ext
12825 LIBS="$ac_xsave_LIBS"
12827 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12828 # to get the SysV transport functions.
12829 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12830 # needs -lnsl.
12831 # The nsl library prevents programs from opening the X display
12832 # on Irix 5.2, according to T.E. Dickey.
12833 # The functions gethostbyname, getservbyname, and inet_addr are
12834 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12835 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12836 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
12838 fi
12840 if test $ac_cv_func_gethostbyname = no; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12842 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12843 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
12844 $as_echo_n "(cached) " >&6
12845 else
12846 ac_check_lib_save_LIBS=$LIBS
12847 LIBS="-lnsl $LIBS"
12848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12849 /* end confdefs.h. */
12851 /* Override any GCC internal prototype to avoid an error.
12852 Use char because int might match the return type of a GCC
12853 builtin and then its argument prototype would still apply. */
12854 #ifdef __cplusplus
12855 extern "C"
12856 #endif
12857 char gethostbyname ();
12858 int
12859 main ()
12860 {
12861 return gethostbyname ();
12862 ;
12863 return 0;
12864 }
12865 _ACEOF
12866 if ac_fn_cxx_try_link "$LINENO"; then :
12867 ac_cv_lib_nsl_gethostbyname=yes
12868 else
12869 ac_cv_lib_nsl_gethostbyname=no
12870 fi
12871 rm -f core conftest.err conftest.$ac_objext \
12872 conftest$ac_exeext conftest.$ac_ext
12873 LIBS=$ac_check_lib_save_LIBS
12874 fi
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12876 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12877 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
12878 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12879 fi
12881 if test $ac_cv_lib_nsl_gethostbyname = no; then
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
12883 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
12884 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
12885 $as_echo_n "(cached) " >&6
12886 else
12887 ac_check_lib_save_LIBS=$LIBS
12888 LIBS="-lbsd $LIBS"
12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h. */
12892 /* Override any GCC internal prototype to avoid an error.
12893 Use char because int might match the return type of a GCC
12894 builtin and then its argument prototype would still apply. */
12895 #ifdef __cplusplus
12896 extern "C"
12897 #endif
12898 char gethostbyname ();
12899 int
12900 main ()
12901 {
12902 return gethostbyname ();
12903 ;
12904 return 0;
12905 }
12906 _ACEOF
12907 if ac_fn_cxx_try_link "$LINENO"; then :
12908 ac_cv_lib_bsd_gethostbyname=yes
12909 else
12910 ac_cv_lib_bsd_gethostbyname=no
12911 fi
12912 rm -f core conftest.err conftest.$ac_objext \
12913 conftest$ac_exeext conftest.$ac_ext
12914 LIBS=$ac_check_lib_save_LIBS
12915 fi
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
12917 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
12918 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
12919 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12920 fi
12922 fi
12923 fi
12925 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12926 # socket/setsockopt and other routines are undefined under SCO ODT
12927 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12928 # on later versions), says Simon Leinen: it contains gethostby*
12929 # variants that don't use the name server (or something). -lsocket
12930 # must be given before -lnsl if both are needed. We assume that
12931 # if connect needs -lnsl, so does gethostbyname.
12932 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
12933 if test "x$ac_cv_func_connect" = x""yes; then :
12935 fi
12937 if test $ac_cv_func_connect = no; then
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
12939 $as_echo_n "checking for connect in -lsocket... " >&6; }
12940 if test "${ac_cv_lib_socket_connect+set}" = set; then :
12941 $as_echo_n "(cached) " >&6
12942 else
12943 ac_check_lib_save_LIBS=$LIBS
12944 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12948 /* Override any GCC internal prototype to avoid an error.
12949 Use char because int might match the return type of a GCC
12950 builtin and then its argument prototype would still apply. */
12951 #ifdef __cplusplus
12952 extern "C"
12953 #endif
12954 char connect ();
12955 int
12956 main ()
12957 {
12958 return connect ();
12959 ;
12960 return 0;
12961 }
12962 _ACEOF
12963 if ac_fn_cxx_try_link "$LINENO"; then :
12964 ac_cv_lib_socket_connect=yes
12965 else
12966 ac_cv_lib_socket_connect=no
12967 fi
12968 rm -f core conftest.err conftest.$ac_objext \
12969 conftest$ac_exeext conftest.$ac_ext
12970 LIBS=$ac_check_lib_save_LIBS
12971 fi
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
12973 $as_echo "$ac_cv_lib_socket_connect" >&6; }
12974 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
12975 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12976 fi
12978 fi
12980 # Guillermo Gomez says -lposix is necessary on A/UX.
12981 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
12982 if test "x$ac_cv_func_remove" = x""yes; then :
12984 fi
12986 if test $ac_cv_func_remove = no; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
12988 $as_echo_n "checking for remove in -lposix... " >&6; }
12989 if test "${ac_cv_lib_posix_remove+set}" = set; then :
12990 $as_echo_n "(cached) " >&6
12991 else
12992 ac_check_lib_save_LIBS=$LIBS
12993 LIBS="-lposix $LIBS"
12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h. */
12997 /* Override any GCC internal prototype to avoid an error.
12998 Use char because int might match the return type of a GCC
12999 builtin and then its argument prototype would still apply. */
13000 #ifdef __cplusplus
13001 extern "C"
13002 #endif
13003 char remove ();
13004 int
13005 main ()
13006 {
13007 return remove ();
13008 ;
13009 return 0;
13010 }
13011 _ACEOF
13012 if ac_fn_cxx_try_link "$LINENO"; then :
13013 ac_cv_lib_posix_remove=yes
13014 else
13015 ac_cv_lib_posix_remove=no
13016 fi
13017 rm -f core conftest.err conftest.$ac_objext \
13018 conftest$ac_exeext conftest.$ac_ext
13019 LIBS=$ac_check_lib_save_LIBS
13020 fi
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
13022 $as_echo "$ac_cv_lib_posix_remove" >&6; }
13023 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
13024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13025 fi
13027 fi
13029 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13030 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
13031 if test "x$ac_cv_func_shmat" = x""yes; then :
13033 fi
13035 if test $ac_cv_func_shmat = no; then
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
13037 $as_echo_n "checking for shmat in -lipc... " >&6; }
13038 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
13039 $as_echo_n "(cached) " >&6
13040 else
13041 ac_check_lib_save_LIBS=$LIBS
13042 LIBS="-lipc $LIBS"
13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h. */
13046 /* Override any GCC internal prototype to avoid an error.
13047 Use char because int might match the return type of a GCC
13048 builtin and then its argument prototype would still apply. */
13049 #ifdef __cplusplus
13050 extern "C"
13051 #endif
13052 char shmat ();
13053 int
13054 main ()
13055 {
13056 return shmat ();
13057 ;
13058 return 0;
13059 }
13060 _ACEOF
13061 if ac_fn_cxx_try_link "$LINENO"; then :
13062 ac_cv_lib_ipc_shmat=yes
13063 else
13064 ac_cv_lib_ipc_shmat=no
13065 fi
13066 rm -f core conftest.err conftest.$ac_objext \
13067 conftest$ac_exeext conftest.$ac_ext
13068 LIBS=$ac_check_lib_save_LIBS
13069 fi
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
13071 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
13072 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
13073 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13074 fi
13076 fi
13077 fi
13079 # Check for libraries that X11R6 Xt/Xaw programs need.
13080 ac_save_LDFLAGS=$LDFLAGS
13081 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13082 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13083 # check for ICE first), but we must link in the order -lSM -lICE or
13084 # we get undefined symbols. So assume we have SM if we have ICE.
13085 # These have to be linked with before -lX11, unlike the other
13086 # libraries we check for below, so use a different variable.
13087 # John Interrante, Karl Berry
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
13089 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
13090 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
13091 $as_echo_n "(cached) " >&6
13092 else
13093 ac_check_lib_save_LIBS=$LIBS
13094 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h. */
13098 /* Override any GCC internal prototype to avoid an error.
13099 Use char because int might match the return type of a GCC
13100 builtin and then its argument prototype would still apply. */
13101 #ifdef __cplusplus
13102 extern "C"
13103 #endif
13104 char IceConnectionNumber ();
13105 int
13106 main ()
13107 {
13108 return IceConnectionNumber ();
13109 ;
13110 return 0;
13111 }
13112 _ACEOF
13113 if ac_fn_cxx_try_link "$LINENO"; then :
13114 ac_cv_lib_ICE_IceConnectionNumber=yes
13115 else
13116 ac_cv_lib_ICE_IceConnectionNumber=no
13117 fi
13118 rm -f core conftest.err conftest.$ac_objext \
13119 conftest$ac_exeext conftest.$ac_ext
13120 LIBS=$ac_check_lib_save_LIBS
13121 fi
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
13123 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
13124 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
13125 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13126 fi
13128 LDFLAGS=$ac_save_LDFLAGS
13130 fi
13133 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
13134 help_on_build_dependency x11
13135 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5
13136 fi
13141 # Some of the old makefiles require a setting of OPENWIN_HOME
13142 # Since the X11R6 directory has disappeared on later Linuxes,
13143 # we need to probe for it.
13144 if test "x$HOST_OS" = xlinux; then
13145 if test -d "$SYS_ROOT/usr/X11R6"; then
13146 OPENWIN_HOME="$SYS_ROOT/usr/X11R6"
13147 fi
13148 if test -d "$SYS_ROOT/usr/include/X11"; then
13149 OPENWIN_HOME="$SYS_ROOT/usr"
13150 fi
13151 fi
13152 if test "x$HOST_OS" = xsolaris; then
13153 OPENWIN_HOME="/usr/openwin"
13154 fi
13157 ac_ext=c
13158 ac_cpp='$CPP $CPPFLAGS'
13159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13163 OLD_CFLAGS="$CFLAGS"
13164 CFLAGS="$CFLAGS $X_CFLAGS"
13167 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h
13168 do :
13169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13170 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13171 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13172 cat >>confdefs.h <<_ACEOF
13173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13174 _ACEOF
13175 X11_A_OK=yes
13176 else
13177 X11_A_OK=no
13178 fi
13180 done
13182 CFLAGS="$OLD_CFLAGS"
13183 ac_ext=cpp
13184 ac_cpp='$CXXCPP $CPPFLAGS'
13185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13190 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then
13191 help_on_build_dependency x11
13192 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h). $HELP_MSG" "$LINENO" 5
13193 fi
13195 ###############################################################################
13196 #
13197 # The common unix printing system cups is used to print from java.
13198 #
13200 # Check whether --with-cups was given.
13201 if test "${with_cups+set}" = set; then :
13202 withval=$with_cups;
13203 fi
13206 # Check whether --with-cups-include was given.
13207 if test "${with_cups_include+set}" = set; then :
13208 withval=$with_cups_include;
13209 fi
13212 # Check whether --with-cups-lib was given.
13213 if test "${with_cups_lib+set}" = set; then :
13214 withval=$with_cups_lib;
13215 fi
13218 if test "x$CUPS_NOT_NEEDED" = xyes; then
13219 if test "x$with_cups" != x || test "x$with_cups-include" != x || test "x$with_cups-lib" != x; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5
13221 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;}
13222 fi
13223 CUPS_CFLAGS=
13224 CUPS_LIBS=
13225 else
13226 CUPS_FOUND=no
13228 if test "x$with_cups" = xno || test "x$with_cups-include" = xno || test "x$with_cups-lib" = xno; then
13229 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5
13230 fi
13232 if test "x$with_cups" != x; then
13233 CUPS_LIBS="-L$with_cups/lib -lcups"
13234 CUPS_CFLAGS="-I$with_cups/include"
13235 CUPS_FOUND=yes
13236 fi
13237 if test "x$with_cups-include" != x; then
13238 CUPS_CFLAGS="-I$with_cups-include"
13239 CUPS_FOUND=yes
13240 fi
13241 if test "x$with_cups-lib" != x; then
13242 CUPS_LIBS="-L$with_cups-lib -lcups"
13243 CUPS_FOUND=yes
13244 fi
13245 if test "x$CUPS_FOUND" = xno; then
13248 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
13249 # Source the builddeps file again, to make sure it uses the latest variables!
13250 . $builddepsfile
13251 # Look for a host and build machine specific resource!
13252 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
13253 if test "x$resource" = x; then
13254 # Ok, lets instead look for a host specific resource
13255 eval resource=\${builddep_cups_HOST_${rewritten_host_var}}
13256 fi
13257 if test "x$resource" = x; then
13258 # Ok, lets instead look for a build specific resource
13259 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}}
13260 fi
13261 if test "x$resource" = x; then
13262 # Ok, lets instead look for a generic resource
13263 # (The cups comes from M4 and not the shell, thus no need for eval here.)
13264 resource=${builddep_cups}
13265 fi
13266 if test "x$resource" != x; then
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5
13268 $as_echo "$as_me: Using builddeps $resource for cups" >&6;}
13269 # If the resource in the builddeps.conf file is an existing directory,
13270 # for example /java/linux/cups
13271 if test -d ${resource}; then
13272 depdir=${resource}
13273 else
13275 # cups is for example mymodule
13276 # $resource is for example libs/general/libmymod_1_2_3.zip
13277 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
13278 # $with_builddeps_dir is for example /localhome/builddeps
13279 # depdir is the name of the variable into which we store the depdir, eg MYMOD
13280 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
13281 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
13282 filename=`basename $resource`
13283 filebase=`echo $filename | sed 's/\.[^\.]*$//'`
13284 filebase=${filename%%.*}
13285 extension=${filename#*.}
13286 installdir=$with_builddeps_dir/$filebase
13287 if test ! -f $installdir/$filename.unpacked; then
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5
13289 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;}
13290 if test ! -d $installdir; then
13291 mkdir -p $installdir
13292 fi
13293 if test ! -d $installdir; then
13294 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
13295 fi
13296 tmpfile=`mktemp $installdir/cups.XXXXXXXXX`
13297 touch $tmpfile
13298 if test ! -f $tmpfile; then
13299 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
13300 fi
13302 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip
13303 # $tmpfile is the local file name for the downloaded file.
13304 VALID_TOOL=no
13305 if test "x$BDEPS_FTP" = xwget; then
13306 VALID_TOOL=yes
13307 wget -O $tmpfile $with_builddeps_server/$resource
13308 fi
13309 if test "x$BDEPS_FTP" = xlftp; then
13310 VALID_TOOL=yes
13311 lftp -c "get $with_builddeps_server/$resource -o $tmpfile"
13312 fi
13313 if test "x$BDEPS_FTP" = xftp; then
13314 VALID_TOOL=yes
13315 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'`
13316 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'`
13317 FTPUSERPWD=${FTPSERVER%%@*}
13318 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
13319 FTPUSER=${userpwd%%:*}
13320 FTPPWD=${userpwd#*@}
13321 FTPSERVER=${FTPSERVER#*@}
13322 else
13323 FTPUSER=ftp
13324 FTPPWD=ftp
13325 fi
13326 # the "pass" command does not work on some
13327 # ftp clients (read ftp.exe) but if it works,
13328 # passive mode is better!
13329 (\
13330 echo "user $FTPUSER $FTPPWD" ;\
13331 echo "pass" ;\
13332 echo "bin" ;\
13333 echo "get $FTPPATH $tmpfile" ;\
13334 ) | ftp -in $FTPSERVER
13335 fi
13336 if test "x$VALID_TOOL" != xyes; then
13337 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
13338 fi
13340 mv $tmpfile $installdir/$filename
13341 if test ! -s $installdir/$filename; then
13342 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
13343 fi
13344 case "$extension" in
13345 zip) echo "Unzipping $installdir/$filename..."
13346 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
13347 ;;
13348 tar.gz) echo "Untaring $installdir/$filename..."
13349 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
13350 ;;
13351 tgz) echo "Untaring $installdir/$filename..."
13352 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
13353 ;;
13354 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
13355 ;;
13356 esac
13357 fi
13358 if test -f $installdir/$filename.unpacked; then
13359 depdir=$installdir
13360 fi
13362 fi
13363 # Source the builddeps file again, because in the previous command, the depdir
13364 # was updated to point at the current build dependency install directory.
13365 . $builddepsfile
13366 # Now extract variables from the builddeps.conf files.
13367 theroot=${builddep_cups_ROOT}
13368 thecflags=${builddep_cups_CFLAGS}
13369 thelibs=${builddep_cups_LIBS}
13370 if test "x$depdir" = x; then
13371 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5
13372 fi
13373 CUPS=$depdir
13374 if test "x$theroot" != x; then
13375 CUPS="$theroot"
13376 fi
13377 if test "x$thecflags" != x; then
13378 CUPS_CFLAGS="$thecflags"
13379 fi
13380 if test "x$thelibs" != x; then
13381 CUPS_LIBS="$thelibs"
13382 fi
13383 CUPS_FOUND=yes
13385 fi
13387 fi
13389 fi
13390 if test "x$CUPS_FOUND" = xno; then
13391 # Are the cups headers installed in the default /usr/include location?
13392 for ac_header in cups/cups.h cups/ppd.h
13393 do :
13394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13395 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13396 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13397 cat >>confdefs.h <<_ACEOF
13398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13399 _ACEOF
13400 CUPS_FOUND=yes
13401 CUPS_CFLAGS=
13402 CUPS_LIBS="-lcups"
13403 DEFAULT_CUPS=yes
13404 fi
13406 done
13408 fi
13409 if test "x$CUPS_FOUND" = xno; then
13410 # Getting nervous now? Lets poke around for standard Solaris third-party
13411 # package installation locations.
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers and libs" >&5
13413 $as_echo_n "checking for cups headers and libs... " >&6; }
13414 if test -s /opt/sfw/cups/include/cups/cups.h; then
13415 # An SFW package seems to be installed!
13416 CUPS_FOUND=yes
13417 CUPS_CFLAGS="-I/opt/sfw/cups/include"
13418 CUPS_LIBS="-L/opt/sfw/cups/lib -lcups"
13419 elif test -s /opt/csw/include/cups/cups.h; then
13420 # A CSW package seems to be installed!
13421 CUPS_FOUND=yes
13422 CUPS_CFLAGS="-I/opt/csw/include"
13423 CUPS_LIBS="-L/opt/csw/lib -lcups"
13424 fi
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5
13426 $as_echo "$CUPS_FOUND" >&6; }
13427 fi
13428 if test "x$CUPS_FOUND" = xno; then
13429 help_on_build_dependency cups
13430 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5
13431 fi
13432 fi
13437 ###############################################################################
13438 #
13439 # The ubiquitous freetype2 library is used to render fonts.
13440 #
13442 # Check whether --with-freetype was given.
13443 if test "${with_freetype+set}" = set; then :
13444 withval=$with_freetype;
13445 fi
13448 # If we are using the OS installed system lib for freetype, then we do not need to copy it to the build tree
13449 USING_SYSTEM_FT_LIB=false
13451 if test "x$FREETYPE2_NOT_NEEDED" = xyes; then
13452 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5
13454 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;}
13455 fi
13456 FREETYPE2_CFLAGS=
13457 FREETYPE2_LIBS=
13458 FREETYPE2_LIB_PATH=
13459 else
13460 FREETYPE2_FOUND=no
13462 if test "x$with_freetype" != x; then
13464 # Fail with message the path to freetype if var with_freetype contains a path with no spaces in it.
13465 # Unless on Windows, where we can rewrite the path.
13466 HAS_SPACE=`echo "$with_freetype" | grep " "`
13467 if test "x$HAS_SPACE" != x; then
13468 if test "x$BUILD_OS" = "xwindows"; then
13469 with_freetype=`$CYGPATH -s -m -a "$with_freetype"`
13470 with_freetype=`$CYGPATH -u "$with_freetype"`
13471 else
13472 as_fn_error $? "You cannot have spaces in the path to freetype! \"$with_freetype\"" "$LINENO" 5
13473 fi
13474 fi
13476 FREETYPE2_LIBS="-L$with_freetype/lib -lfreetype"
13477 if test "x$HOST_OS" = xwindows; then
13478 FREETYPE2_LIBS="$with_freetype/lib/freetype.lib"
13479 fi
13480 FREETYPE2_LIB_PATH="$with_freetype/lib"
13481 FREETYPE2_CFLAGS="-I$with_freetype/include"
13482 if test -s $with_freetype/include/ft2build.h && test -d $with_freetype/include/freetype2/freetype; then
13483 FREETYPE2_CFLAGS="-I$with_freetype/include/freetype2 -I$with_freetype/include"
13484 fi
13485 FREETYPE2_FOUND=yes
13486 if test "x$FREETYPE2_FOUND" = xyes; then
13487 # Verify that the directories exist
13488 if ! test -d "$with_freetype/lib" || ! test -d "$with_freetype/include"; then
13489 as_fn_error $? "Could not find the expected directories $with_freetype/lib and $with_freetype/include" "$LINENO" 5
13490 fi
13491 # List the contents of the lib.
13492 FREETYPELIB=`ls $with_freetype/lib/libfreetype.so $with_freetype/lib/freetype.dll 2> /dev/null`
13493 if test "x$FREETYPELIB" = x; then
13494 as_fn_error $? "Could not find libfreetype.se nor freetype.dll in $with_freetype/lib" "$LINENO" 5
13495 fi
13496 # Check one h-file
13497 if ! test -s "$with_freetype/include/ft2build.h"; then
13498 as_fn_error $? "Could not find $with_freetype/include/ft2build.h" "$LINENO" 5
13499 fi
13500 fi
13501 fi
13502 if test "x$FREETYPE2_FOUND" = xno; then
13505 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
13506 # Source the builddeps file again, to make sure it uses the latest variables!
13507 . $builddepsfile
13508 # Look for a host and build machine specific resource!
13509 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
13510 if test "x$resource" = x; then
13511 # Ok, lets instead look for a host specific resource
13512 eval resource=\${builddep_freetype2_HOST_${rewritten_host_var}}
13513 fi
13514 if test "x$resource" = x; then
13515 # Ok, lets instead look for a build specific resource
13516 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}}
13517 fi
13518 if test "x$resource" = x; then
13519 # Ok, lets instead look for a generic resource
13520 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.)
13521 resource=${builddep_freetype2}
13522 fi
13523 if test "x$resource" != x; then
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5
13525 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;}
13526 # If the resource in the builddeps.conf file is an existing directory,
13527 # for example /java/linux/cups
13528 if test -d ${resource}; then
13529 depdir=${resource}
13530 else
13532 # freetype2 is for example mymodule
13533 # $resource is for example libs/general/libmymod_1_2_3.zip
13534 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
13535 # $with_builddeps_dir is for example /localhome/builddeps
13536 # depdir is the name of the variable into which we store the depdir, eg MYMOD
13537 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
13538 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
13539 filename=`basename $resource`
13540 filebase=`echo $filename | sed 's/\.[^\.]*$//'`
13541 filebase=${filename%%.*}
13542 extension=${filename#*.}
13543 installdir=$with_builddeps_dir/$filebase
13544 if test ! -f $installdir/$filename.unpacked; then
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5
13546 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;}
13547 if test ! -d $installdir; then
13548 mkdir -p $installdir
13549 fi
13550 if test ! -d $installdir; then
13551 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
13552 fi
13553 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX`
13554 touch $tmpfile
13555 if test ! -f $tmpfile; then
13556 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
13557 fi
13559 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip
13560 # $tmpfile is the local file name for the downloaded file.
13561 VALID_TOOL=no
13562 if test "x$BDEPS_FTP" = xwget; then
13563 VALID_TOOL=yes
13564 wget -O $tmpfile $with_builddeps_server/$resource
13565 fi
13566 if test "x$BDEPS_FTP" = xlftp; then
13567 VALID_TOOL=yes
13568 lftp -c "get $with_builddeps_server/$resource -o $tmpfile"
13569 fi
13570 if test "x$BDEPS_FTP" = xftp; then
13571 VALID_TOOL=yes
13572 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'`
13573 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'`
13574 FTPUSERPWD=${FTPSERVER%%@*}
13575 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
13576 FTPUSER=${userpwd%%:*}
13577 FTPPWD=${userpwd#*@}
13578 FTPSERVER=${FTPSERVER#*@}
13579 else
13580 FTPUSER=ftp
13581 FTPPWD=ftp
13582 fi
13583 # the "pass" command does not work on some
13584 # ftp clients (read ftp.exe) but if it works,
13585 # passive mode is better!
13586 (\
13587 echo "user $FTPUSER $FTPPWD" ;\
13588 echo "pass" ;\
13589 echo "bin" ;\
13590 echo "get $FTPPATH $tmpfile" ;\
13591 ) | ftp -in $FTPSERVER
13592 fi
13593 if test "x$VALID_TOOL" != xyes; then
13594 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
13595 fi
13597 mv $tmpfile $installdir/$filename
13598 if test ! -s $installdir/$filename; then
13599 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
13600 fi
13601 case "$extension" in
13602 zip) echo "Unzipping $installdir/$filename..."
13603 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
13604 ;;
13605 tar.gz) echo "Untaring $installdir/$filename..."
13606 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
13607 ;;
13608 tgz) echo "Untaring $installdir/$filename..."
13609 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
13610 ;;
13611 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
13612 ;;
13613 esac
13614 fi
13615 if test -f $installdir/$filename.unpacked; then
13616 depdir=$installdir
13617 fi
13619 fi
13620 # Source the builddeps file again, because in the previous command, the depdir
13621 # was updated to point at the current build dependency install directory.
13622 . $builddepsfile
13623 # Now extract variables from the builddeps.conf files.
13624 theroot=${builddep_freetype2_ROOT}
13625 thecflags=${builddep_freetype2_CFLAGS}
13626 thelibs=${builddep_freetype2_LIBS}
13627 if test "x$depdir" = x; then
13628 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5
13629 fi
13630 FREETYPE2=$depdir
13631 if test "x$theroot" != x; then
13632 FREETYPE2="$theroot"
13633 fi
13634 if test "x$thecflags" != x; then
13635 FREETYPE2_CFLAGS="$thecflags"
13636 fi
13637 if test "x$thelibs" != x; then
13638 FREETYPE2_LIBS="$thelibs"
13639 fi
13640 FREETYPE2_FOUND=yes
13641 else FREETYPE2_FOUND=no
13643 fi
13644 else FREETYPE2_FOUND=no
13646 fi
13648 USING_SYSTEM_FT_LIB=true
13649 fi
13650 if test "x$FREETYPE2_FOUND" = xno; then
13652 pkg_failed=no
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE2" >&5
13654 $as_echo_n "checking for FREETYPE2... " >&6; }
13656 if test -n "$FREETYPE2_CFLAGS"; then
13657 pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS"
13658 elif test -n "$PKG_CONFIG"; then
13659 if test -n "$PKG_CONFIG" && \
13660 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
13661 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
13662 ac_status=$?
13663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13664 test $ac_status = 0; }; then
13665 pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
13666 else
13667 pkg_failed=yes
13668 fi
13669 else
13670 pkg_failed=untried
13671 fi
13672 if test -n "$FREETYPE2_LIBS"; then
13673 pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS"
13674 elif test -n "$PKG_CONFIG"; then
13675 if test -n "$PKG_CONFIG" && \
13676 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
13677 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
13678 ac_status=$?
13679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13680 test $ac_status = 0; }; then
13681 pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
13682 else
13683 pkg_failed=yes
13684 fi
13685 else
13686 pkg_failed=untried
13687 fi
13691 if test $pkg_failed = yes; then
13693 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13694 _pkg_short_errors_supported=yes
13695 else
13696 _pkg_short_errors_supported=no
13697 fi
13698 if test $_pkg_short_errors_supported = yes; then
13699 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
13700 else
13701 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
13702 fi
13703 # Put the nasty error message in config.log where it belongs
13704 echo "$FREETYPE2_PKG_ERRORS" >&5
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13707 $as_echo "no" >&6; }
13708 FREETYPE2_FOUND=no
13709 elif test $pkg_failed = untried; then
13710 FREETYPE2_FOUND=no
13711 else
13712 FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS
13713 FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13715 $as_echo "yes" >&6; }
13716 FREETYPE2_FOUND=yes
13717 fi
13718 USING_SYSTEM_FT_LIB=true
13719 fi
13720 if test "x$FREETYPE2_FOUND" = xno; then
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype in some standard locations" >&5
13722 $as_echo_n "checking for freetype in some standard locations... " >&6; }
13724 if test -s /usr/X11/include/ft2build.h && test -d /usr/X11/include/freetype2/freetype; then
13725 DEFAULT_FREETYPE_CFLAGS="-I/usr/X11/include/freetype2 -I/usr/X11/include"
13726 DEFAULT_FREETYPE_LIBS="-L/usr/X11/lib -lfreetype"
13727 fi
13728 if test -s /usr/include/ft2build.h && test -d /usr/include/freetype2/freetype; then
13729 DEFAULT_FREETYPE_CFLAGS="-I/usr/include/freetype2"
13730 DEFAULT_FREETYPE_LIBS="-lfreetype"
13731 fi
13733 PREV_CXXCFLAGS="$CXXFLAGS"
13734 PREV_LDFLAGS="$LDFLAGS"
13735 CXXFLAGS="$CXXFLAGS $DEFAULT_FREETYPE_CFLAGS"
13736 LDFLAGS="$LDFLAGS $DEFAULT_FREETYPE_LIBS"
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13739 #include<ft2build.h>
13740 #include FT_FREETYPE_H
13741 int main() { return 0; }
13743 _ACEOF
13744 if ac_fn_cxx_try_link "$LINENO"; then :
13746 # Yes, the default cflags and libs did the trick.
13747 FREETYPE2_FOUND=yes
13748 FREETYPE2_CFLAGS="$DEFAULT_FREETYPE_CFLAGS"
13749 FREETYPE2_LIBS="$DEFAULT_FREETYPE_LIBS"
13751 else
13753 FREETYPE2_FOUND=no
13755 fi
13756 rm -f core conftest.err conftest.$ac_objext \
13757 conftest$ac_exeext conftest.$ac_ext
13758 CXXCFLAGS="$PREV_CXXFLAGS"
13759 LDFLAGS="$PREV_LDFLAGS"
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_FOUND" >&5
13761 $as_echo "$FREETYPE2_FOUND" >&6; }
13762 USING_SYSTEM_FT_LIB=true
13763 fi
13764 if test "x$FREETYPE2_FOUND" = xno; then
13765 help_on_build_dependency freetype2
13766 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
13767 fi
13768 fi
13775 ###############################################################################
13776 #
13777 # Check for alsa headers and libraries. Used on Linux/GNU systems.
13778 #
13780 # Check whether --with-alsa was given.
13781 if test "${with_alsa+set}" = set; then :
13782 withval=$with_alsa;
13783 fi
13786 # Check whether --with-alsa-include was given.
13787 if test "${with_alsa_include+set}" = set; then :
13788 withval=$with_alsa_include;
13789 fi
13792 # Check whether --with-alsa-lib was given.
13793 if test "${with_alsa_lib+set}" = set; then :
13794 withval=$with_alsa_lib;
13795 fi
13798 if test "x$ALSA_NOT_NEEDED" = xyes; then
13799 if test "x$with_alsa" != x || test "x$with_alsa-include" != x || test "x$with_alsa-lib" != x; then
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5
13801 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;}
13802 fi
13803 ALSA_CFLAGS=
13804 ALSA_LIBS=
13805 else
13806 ALSA_FOUND=no
13808 if test "x$with_alsa" = xno || test "x$with_alsa-include" = xno || test "x$with_alsa-lib" = xno; then
13809 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5
13810 fi
13812 if test "x$with_alsa" != x; then
13813 ALSA_LIBS="-L$with_alsa/lib -lalsa"
13814 ALSA_CFLAGS="-I$with_alsa/include"
13815 ALSA_FOUND=yes
13816 fi
13817 if test "x$with_alsa-include" != x; then
13818 ALSA_CFLAGS="-I$with_alsa/include"
13819 ALSA_FOUND=yes
13820 fi
13821 if test "x$with_alsa-lib" != x; then
13822 ALSA_LIBS="-L$with_alsa/lib -lalsa"
13823 ALSA_FOUND=yes
13824 fi
13825 if test "x$ALSA_FOUND" = xno; then
13828 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
13829 # Source the builddeps file again, to make sure it uses the latest variables!
13830 . $builddepsfile
13831 # Look for a host and build machine specific resource!
13832 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
13833 if test "x$resource" = x; then
13834 # Ok, lets instead look for a host specific resource
13835 eval resource=\${builddep_alsa_HOST_${rewritten_host_var}}
13836 fi
13837 if test "x$resource" = x; then
13838 # Ok, lets instead look for a build specific resource
13839 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}}
13840 fi
13841 if test "x$resource" = x; then
13842 # Ok, lets instead look for a generic resource
13843 # (The alsa comes from M4 and not the shell, thus no need for eval here.)
13844 resource=${builddep_alsa}
13845 fi
13846 if test "x$resource" != x; then
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5
13848 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;}
13849 # If the resource in the builddeps.conf file is an existing directory,
13850 # for example /java/linux/cups
13851 if test -d ${resource}; then
13852 depdir=${resource}
13853 else
13855 # alsa is for example mymodule
13856 # $resource is for example libs/general/libmymod_1_2_3.zip
13857 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
13858 # $with_builddeps_dir is for example /localhome/builddeps
13859 # depdir is the name of the variable into which we store the depdir, eg MYMOD
13860 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
13861 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
13862 filename=`basename $resource`
13863 filebase=`echo $filename | sed 's/\.[^\.]*$//'`
13864 filebase=${filename%%.*}
13865 extension=${filename#*.}
13866 installdir=$with_builddeps_dir/$filebase
13867 if test ! -f $installdir/$filename.unpacked; then
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5
13869 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;}
13870 if test ! -d $installdir; then
13871 mkdir -p $installdir
13872 fi
13873 if test ! -d $installdir; then
13874 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
13875 fi
13876 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX`
13877 touch $tmpfile
13878 if test ! -f $tmpfile; then
13879 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
13880 fi
13882 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip
13883 # $tmpfile is the local file name for the downloaded file.
13884 VALID_TOOL=no
13885 if test "x$BDEPS_FTP" = xwget; then
13886 VALID_TOOL=yes
13887 wget -O $tmpfile $with_builddeps_server/$resource
13888 fi
13889 if test "x$BDEPS_FTP" = xlftp; then
13890 VALID_TOOL=yes
13891 lftp -c "get $with_builddeps_server/$resource -o $tmpfile"
13892 fi
13893 if test "x$BDEPS_FTP" = xftp; then
13894 VALID_TOOL=yes
13895 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'`
13896 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'`
13897 FTPUSERPWD=${FTPSERVER%%@*}
13898 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
13899 FTPUSER=${userpwd%%:*}
13900 FTPPWD=${userpwd#*@}
13901 FTPSERVER=${FTPSERVER#*@}
13902 else
13903 FTPUSER=ftp
13904 FTPPWD=ftp
13905 fi
13906 # the "pass" command does not work on some
13907 # ftp clients (read ftp.exe) but if it works,
13908 # passive mode is better!
13909 (\
13910 echo "user $FTPUSER $FTPPWD" ;\
13911 echo "pass" ;\
13912 echo "bin" ;\
13913 echo "get $FTPPATH $tmpfile" ;\
13914 ) | ftp -in $FTPSERVER
13915 fi
13916 if test "x$VALID_TOOL" != xyes; then
13917 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
13918 fi
13920 mv $tmpfile $installdir/$filename
13921 if test ! -s $installdir/$filename; then
13922 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
13923 fi
13924 case "$extension" in
13925 zip) echo "Unzipping $installdir/$filename..."
13926 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
13927 ;;
13928 tar.gz) echo "Untaring $installdir/$filename..."
13929 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
13930 ;;
13931 tgz) echo "Untaring $installdir/$filename..."
13932 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
13933 ;;
13934 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
13935 ;;
13936 esac
13937 fi
13938 if test -f $installdir/$filename.unpacked; then
13939 depdir=$installdir
13940 fi
13942 fi
13943 # Source the builddeps file again, because in the previous command, the depdir
13944 # was updated to point at the current build dependency install directory.
13945 . $builddepsfile
13946 # Now extract variables from the builddeps.conf files.
13947 theroot=${builddep_alsa_ROOT}
13948 thecflags=${builddep_alsa_CFLAGS}
13949 thelibs=${builddep_alsa_LIBS}
13950 if test "x$depdir" = x; then
13951 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5
13952 fi
13953 ALSA=$depdir
13954 if test "x$theroot" != x; then
13955 ALSA="$theroot"
13956 fi
13957 if test "x$thecflags" != x; then
13958 ALSA_CFLAGS="$thecflags"
13959 fi
13960 if test "x$thelibs" != x; then
13961 ALSA_LIBS="$thelibs"
13962 fi
13963 ALSA_FOUND=yes
13964 else ALSA_FOUND=no
13966 fi
13967 else ALSA_FOUND=no
13969 fi
13971 fi
13972 if test "x$ALSA_FOUND" = xno; then
13974 pkg_failed=no
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
13976 $as_echo_n "checking for ALSA... " >&6; }
13978 if test -n "$ALSA_CFLAGS"; then
13979 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
13980 elif test -n "$PKG_CONFIG"; then
13981 if test -n "$PKG_CONFIG" && \
13982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
13983 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
13984 ac_status=$?
13985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13986 test $ac_status = 0; }; then
13987 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
13988 else
13989 pkg_failed=yes
13990 fi
13991 else
13992 pkg_failed=untried
13993 fi
13994 if test -n "$ALSA_LIBS"; then
13995 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
13996 elif test -n "$PKG_CONFIG"; then
13997 if test -n "$PKG_CONFIG" && \
13998 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
13999 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
14000 ac_status=$?
14001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14002 test $ac_status = 0; }; then
14003 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
14004 else
14005 pkg_failed=yes
14006 fi
14007 else
14008 pkg_failed=untried
14009 fi
14013 if test $pkg_failed = yes; then
14015 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14016 _pkg_short_errors_supported=yes
14017 else
14018 _pkg_short_errors_supported=no
14019 fi
14020 if test $_pkg_short_errors_supported = yes; then
14021 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
14022 else
14023 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
14024 fi
14025 # Put the nasty error message in config.log where it belongs
14026 echo "$ALSA_PKG_ERRORS" >&5
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14029 $as_echo "no" >&6; }
14030 ALSA_FOUND=no
14031 elif test $pkg_failed = untried; then
14032 ALSA_FOUND=no
14033 else
14034 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
14035 ALSA_LIBS=$pkg_cv_ALSA_LIBS
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14037 $as_echo "yes" >&6; }
14038 ALSA_FOUND=yes
14039 fi
14040 fi
14041 if test "x$ALSA_FOUND" = xno; then
14042 for ac_header in alsa/asoundlib.h
14043 do :
14044 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
14045 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
14046 cat >>confdefs.h <<_ACEOF
14047 #define HAVE_ALSA_ASOUNDLIB_H 1
14048 _ACEOF
14049 ALSA_FOUND=yes
14050 ALSA_CFLAGS=-Iignoreme
14051 ALSA_LIBS=-lasound
14052 DEFAULT_ALSA=yes
14053 else
14054 ALSA_FOUND=no
14055 fi
14057 done
14059 fi
14060 if test "x$ALSA_FOUND" = xno; then
14061 help_on_build_dependency alsa
14062 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
14063 fi
14064 fi
14069 ###############################################################################
14070 #
14071 # Check for pulse audio headers and libraries.
14072 #
14073 PULSE_FOUND=no
14075 # Check whether --with-pulse was given.
14076 if test "${with_pulse+set}" = set; then :
14077 withval=$with_pulse;
14078 fi
14081 # Check whether --with-pulse-include was given.
14082 if test "${with_pulse_include+set}" = set; then :
14083 withval=$with_pulse_include;
14084 fi
14087 # Check whether --with-pulse-lib was given.
14088 if test "${with_pulse_lib+set}" = set; then :
14089 withval=$with_pulse_lib;
14090 fi
14093 if test "x$with_pulse" != x; then
14094 PULSE_LIBS="-L$with_pulse/lib -lfreetype"
14095 PULSE_CFLAGS="-I$with_pulse/include"
14096 PULSE_FOUND=yes
14097 fi
14098 if test "x$with_pulse-include" != x; then
14099 PULSE_CFLAGS="-I$with_pulse/include"
14100 PULSE_FOUND=yes
14101 fi
14102 if test "x$with_pulse-lib" != x; then
14103 PULSE_LIBS="-L$with_pulse/lib -lfreetype"
14104 PULSE_FOUND=yes
14105 fi
14106 if test "x$PULSE_FOUND" = xno; then
14109 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
14110 # Source the builddeps file again, to make sure it uses the latest variables!
14111 . $builddepsfile
14112 # Look for a host and build machine specific resource!
14113 eval resource=\${builddep_pulse_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
14114 if test "x$resource" = x; then
14115 # Ok, lets instead look for a host specific resource
14116 eval resource=\${builddep_pulse_HOST_${rewritten_host_var}}
14117 fi
14118 if test "x$resource" = x; then
14119 # Ok, lets instead look for a build specific resource
14120 eval resource=\${builddep_pulse_BUILD_${rewritten_build_var}}
14121 fi
14122 if test "x$resource" = x; then
14123 # Ok, lets instead look for a generic resource
14124 # (The pulse comes from M4 and not the shell, thus no need for eval here.)
14125 resource=${builddep_pulse}
14126 fi
14127 if test "x$resource" != x; then
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for pulse" >&5
14129 $as_echo "$as_me: Using builddeps $resource for pulse" >&6;}
14130 # If the resource in the builddeps.conf file is an existing directory,
14131 # for example /java/linux/cups
14132 if test -d ${resource}; then
14133 depdir=${resource}
14134 else
14136 # pulse is for example mymodule
14137 # $resource is for example libs/general/libmymod_1_2_3.zip
14138 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
14139 # $with_builddeps_dir is for example /localhome/builddeps
14140 # depdir is the name of the variable into which we store the depdir, eg MYMOD
14141 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
14142 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
14143 filename=`basename $resource`
14144 filebase=`echo $filename | sed 's/\.[^\.]*$//'`
14145 filebase=${filename%%.*}
14146 extension=${filename#*.}
14147 installdir=$with_builddeps_dir/$filebase
14148 if test ! -f $installdir/$filename.unpacked; then
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency pulse from $with_builddeps_server/$resource and installing into $installdir" >&5
14150 $as_echo "$as_me: Downloading build dependency pulse from $with_builddeps_server/$resource and installing into $installdir" >&6;}
14151 if test ! -d $installdir; then
14152 mkdir -p $installdir
14153 fi
14154 if test ! -d $installdir; then
14155 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
14156 fi
14157 tmpfile=`mktemp $installdir/pulse.XXXXXXXXX`
14158 touch $tmpfile
14159 if test ! -f $tmpfile; then
14160 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
14161 fi
14163 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip
14164 # $tmpfile is the local file name for the downloaded file.
14165 VALID_TOOL=no
14166 if test "x$BDEPS_FTP" = xwget; then
14167 VALID_TOOL=yes
14168 wget -O $tmpfile $with_builddeps_server/$resource
14169 fi
14170 if test "x$BDEPS_FTP" = xlftp; then
14171 VALID_TOOL=yes
14172 lftp -c "get $with_builddeps_server/$resource -o $tmpfile"
14173 fi
14174 if test "x$BDEPS_FTP" = xftp; then
14175 VALID_TOOL=yes
14176 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'`
14177 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'`
14178 FTPUSERPWD=${FTPSERVER%%@*}
14179 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
14180 FTPUSER=${userpwd%%:*}
14181 FTPPWD=${userpwd#*@}
14182 FTPSERVER=${FTPSERVER#*@}
14183 else
14184 FTPUSER=ftp
14185 FTPPWD=ftp
14186 fi
14187 # the "pass" command does not work on some
14188 # ftp clients (read ftp.exe) but if it works,
14189 # passive mode is better!
14190 (\
14191 echo "user $FTPUSER $FTPPWD" ;\
14192 echo "pass" ;\
14193 echo "bin" ;\
14194 echo "get $FTPPATH $tmpfile" ;\
14195 ) | ftp -in $FTPSERVER
14196 fi
14197 if test "x$VALID_TOOL" != xyes; then
14198 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
14199 fi
14201 mv $tmpfile $installdir/$filename
14202 if test ! -s $installdir/$filename; then
14203 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
14204 fi
14205 case "$extension" in
14206 zip) echo "Unzipping $installdir/$filename..."
14207 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
14208 ;;
14209 tar.gz) echo "Untaring $installdir/$filename..."
14210 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
14211 ;;
14212 tgz) echo "Untaring $installdir/$filename..."
14213 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
14214 ;;
14215 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
14216 ;;
14217 esac
14218 fi
14219 if test -f $installdir/$filename.unpacked; then
14220 depdir=$installdir
14221 fi
14223 fi
14224 # Source the builddeps file again, because in the previous command, the depdir
14225 # was updated to point at the current build dependency install directory.
14226 . $builddepsfile
14227 # Now extract variables from the builddeps.conf files.
14228 theroot=${builddep_pulse_ROOT}
14229 thecflags=${builddep_pulse_CFLAGS}
14230 thelibs=${builddep_pulse_LIBS}
14231 if test "x$depdir" = x; then
14232 as_fn_error $? "Could not download build dependency pulse" "$LINENO" 5
14233 fi
14234 PULSE=$depdir
14235 if test "x$theroot" != x; then
14236 PULSE="$theroot"
14237 fi
14238 if test "x$thecflags" != x; then
14239 PULSE_CFLAGS="$thecflags"
14240 fi
14241 if test "x$thelibs" != x; then
14242 PULSE_LIBS="$thelibs"
14243 fi
14244 PULSE_FOUND=yes
14245 else PULSE_FOUND=no
14247 fi
14248 else PULSE_FOUND=no
14250 fi
14252 fi
14253 if test "x$PULSE_FOUND" = xno; then
14255 pkg_failed=no
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPULSE" >&5
14257 $as_echo_n "checking for LIBPULSE... " >&6; }
14259 if test -n "$LIBPULSE_CFLAGS"; then
14260 pkg_cv_LIBPULSE_CFLAGS="$LIBPULSE_CFLAGS"
14261 elif test -n "$PKG_CONFIG"; then
14262 if test -n "$PKG_CONFIG" && \
14263 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.11\""; } >&5
14264 ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.11") 2>&5
14265 ac_status=$?
14266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14267 test $ac_status = 0; }; then
14268 pkg_cv_LIBPULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.11" 2>/dev/null`
14269 else
14270 pkg_failed=yes
14271 fi
14272 else
14273 pkg_failed=untried
14274 fi
14275 if test -n "$LIBPULSE_LIBS"; then
14276 pkg_cv_LIBPULSE_LIBS="$LIBPULSE_LIBS"
14277 elif test -n "$PKG_CONFIG"; then
14278 if test -n "$PKG_CONFIG" && \
14279 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.11\""; } >&5
14280 ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.11") 2>&5
14281 ac_status=$?
14282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14283 test $ac_status = 0; }; then
14284 pkg_cv_LIBPULSE_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.11" 2>/dev/null`
14285 else
14286 pkg_failed=yes
14287 fi
14288 else
14289 pkg_failed=untried
14290 fi
14294 if test $pkg_failed = yes; then
14296 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14297 _pkg_short_errors_supported=yes
14298 else
14299 _pkg_short_errors_supported=no
14300 fi
14301 if test $_pkg_short_errors_supported = yes; then
14302 LIBPULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse >= 0.9.11" 2>&1`
14303 else
14304 LIBPULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse >= 0.9.11" 2>&1`
14305 fi
14306 # Put the nasty error message in config.log where it belongs
14307 echo "$LIBPULSE_PKG_ERRORS" >&5
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310 $as_echo "no" >&6; }
14311 PULSE_FOUND=no
14312 elif test $pkg_failed = untried; then
14313 PULSE_FOUND=no
14314 else
14315 LIBPULSE_CFLAGS=$pkg_cv_LIBPULSE_CFLAGS
14316 LIBPULSE_LIBS=$pkg_cv_LIBPULSE_LIBS
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14318 $as_echo "yes" >&6; }
14319 PULSE_FOUND=yes
14320 fi
14321 fi
14322 if test "x$PULSE_FOUND" = xno; then
14323 for ac_header in pulse/pulseaudio.h
14324 do :
14325 ac_fn_cxx_check_header_mongrel "$LINENO" "pulse/pulseaudio.h" "ac_cv_header_pulse_pulseaudio_h" "$ac_includes_default"
14326 if test "x$ac_cv_header_pulse_pulseaudio_h" = x""yes; then :
14327 cat >>confdefs.h <<_ACEOF
14328 #define HAVE_PULSE_PULSEAUDIO_H 1
14329 _ACEOF
14330 PULSE_FOUND=yes
14331 PULSE_CFLAGS=-Iignoreme
14332 PULSE_LIBS=
14333 DEFAULT_PULSE=yes
14334 else
14335 PULSE_FOUND=no
14336 fi
14338 done
14340 fi
14342 if test "x$PULSE_FOUND" = xno && test "x$PULSE_NOT_NEEDED" != xyes; then
14343 help_on_build_dependency pulse
14344 as_fn_error $? "Could not find pulse audio libraries. $HELP_MSG " "$LINENO" 5
14345 fi
14350 ###############################################################################
14351 #
14352 # Check for the jpeg library
14353 #
14355 USE_EXTERNAL_LIBJPEG=true
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
14357 $as_echo_n "checking for main in -ljpeg... " >&6; }
14358 if test "${ac_cv_lib_jpeg_main+set}" = set; then :
14359 $as_echo_n "(cached) " >&6
14360 else
14361 ac_check_lib_save_LIBS=$LIBS
14362 LIBS="-ljpeg $LIBS"
14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h. */
14367 int
14368 main ()
14369 {
14370 return main ();
14371 ;
14372 return 0;
14373 }
14374 _ACEOF
14375 if ac_fn_cxx_try_link "$LINENO"; then :
14376 ac_cv_lib_jpeg_main=yes
14377 else
14378 ac_cv_lib_jpeg_main=no
14379 fi
14380 rm -f core conftest.err conftest.$ac_objext \
14381 conftest$ac_exeext conftest.$ac_ext
14382 LIBS=$ac_check_lib_save_LIBS
14383 fi
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
14385 $as_echo "$ac_cv_lib_jpeg_main" >&6; }
14386 if test "x$ac_cv_lib_jpeg_main" = x""yes; then :
14387 cat >>confdefs.h <<_ACEOF
14388 #define HAVE_LIBJPEG 1
14389 _ACEOF
14391 LIBS="-ljpeg $LIBS"
14393 else
14394 USE_EXTERNAL_LIBJPEG=false
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
14396 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
14398 fi
14402 ###############################################################################
14403 #
14404 # Check for the gif library
14405 #
14407 USE_EXTERNAL_LIBJPEG=true
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgif" >&5
14409 $as_echo_n "checking for main in -lgif... " >&6; }
14410 if test "${ac_cv_lib_gif_main+set}" = set; then :
14411 $as_echo_n "(cached) " >&6
14412 else
14413 ac_check_lib_save_LIBS=$LIBS
14414 LIBS="-lgif $LIBS"
14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h. */
14419 int
14420 main ()
14421 {
14422 return main ();
14423 ;
14424 return 0;
14425 }
14426 _ACEOF
14427 if ac_fn_cxx_try_link "$LINENO"; then :
14428 ac_cv_lib_gif_main=yes
14429 else
14430 ac_cv_lib_gif_main=no
14431 fi
14432 rm -f core conftest.err conftest.$ac_objext \
14433 conftest$ac_exeext conftest.$ac_ext
14434 LIBS=$ac_check_lib_save_LIBS
14435 fi
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_main" >&5
14437 $as_echo "$ac_cv_lib_gif_main" >&6; }
14438 if test "x$ac_cv_lib_gif_main" = x""yes; then :
14439 cat >>confdefs.h <<_ACEOF
14440 #define HAVE_LIBGIF 1
14441 _ACEOF
14443 LIBS="-lgif $LIBS"
14445 else
14446 USE_EXTERNAL_LIBGIF=false
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use gif decoder bundled with the OpenJDK source" >&5
14448 $as_echo "$as_me: Will use gif decoder bundled with the OpenJDK source" >&6;}
14450 fi
14454 ###############################################################################
14455 #
14456 # Check for the zlib library
14457 #
14459 USE_EXTERNAL_LIBZ=true
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
14461 $as_echo_n "checking for main in -lz... " >&6; }
14462 if test "${ac_cv_lib_z_main+set}" = set; then :
14463 $as_echo_n "(cached) " >&6
14464 else
14465 ac_check_lib_save_LIBS=$LIBS
14466 LIBS="-lz $LIBS"
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h. */
14471 int
14472 main ()
14473 {
14474 return main ();
14475 ;
14476 return 0;
14477 }
14478 _ACEOF
14479 if ac_fn_cxx_try_link "$LINENO"; then :
14480 ac_cv_lib_z_main=yes
14481 else
14482 ac_cv_lib_z_main=no
14483 fi
14484 rm -f core conftest.err conftest.$ac_objext \
14485 conftest$ac_exeext conftest.$ac_ext
14486 LIBS=$ac_check_lib_save_LIBS
14487 fi
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
14489 $as_echo "$ac_cv_lib_z_main" >&6; }
14490 if test "x$ac_cv_lib_z_main" = x""yes; then :
14491 cat >>confdefs.h <<_ACEOF
14492 #define HAVE_LIBZ 1
14493 _ACEOF
14495 LIBS="-lz $LIBS"
14497 else
14498 USE_EXTERNAL_LIBZ=false
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use zlib bundled with the OpenJDK source" >&5
14500 $as_echo "$as_me: Will use zlib bundled with the OpenJDK source" >&6;}
14502 fi
14506 ###############################################################################
14507 #
14508 # Check if altzone exists in time.h
14509 #
14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14513 #include <time.h>
14514 int
14515 main ()
14516 {
14517 return (int)altzone;
14518 ;
14519 return 0;
14520 }
14521 _ACEOF
14522 if ac_fn_cxx_try_link "$LINENO"; then :
14523 has_altzone=yes
14524 else
14525 has_altzone=no
14526 fi
14527 rm -f core conftest.err conftest.$ac_objext \
14528 conftest$ac_exeext conftest.$ac_ext
14529 if test "x$has_altzone" = xyes; then
14531 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
14533 fi
14535 ###############################################################################
14536 #
14537 # Check the maths library
14538 #
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
14541 $as_echo_n "checking for main in -lm... " >&6; }
14542 if test "${ac_cv_lib_m_main+set}" = set; then :
14543 $as_echo_n "(cached) " >&6
14544 else
14545 ac_check_lib_save_LIBS=$LIBS
14546 LIBS="-lm $LIBS"
14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 /* end confdefs.h. */
14551 int
14552 main ()
14553 {
14554 return main ();
14555 ;
14556 return 0;
14557 }
14558 _ACEOF
14559 if ac_fn_cxx_try_link "$LINENO"; then :
14560 ac_cv_lib_m_main=yes
14561 else
14562 ac_cv_lib_m_main=no
14563 fi
14564 rm -f core conftest.err conftest.$ac_objext \
14565 conftest$ac_exeext conftest.$ac_ext
14566 LIBS=$ac_check_lib_save_LIBS
14567 fi
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
14569 $as_echo "$ac_cv_lib_m_main" >&6; }
14570 if test "x$ac_cv_lib_m_main" = x""yes; then :
14571 cat >>confdefs.h <<_ACEOF
14572 #define HAVE_LIBM 1
14573 _ACEOF
14575 LIBS="-lm $LIBS"
14577 else
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
14580 $as_echo "$as_me: Maths library was not found" >&6;}
14582 fi
14586 ###############################################################################
14587 #
14588 # Should we run the painfully slow javadoc tool?
14589 #
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
14591 $as_echo_n "checking whether to build documentation... " >&6; }
14592 # Check whether --enable-docs was given.
14593 if test "${enable_docs+set}" = set; then :
14594 enableval=$enable_docs; ENABLE_DOCS="${enableval}"
14595 else
14596 ENABLE_DOCS='no'
14597 fi
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DOCS" >&5
14600 $as_echo "$ENABLE_DOCS" >&6; }
14602 GENERATE_DOCS=false
14603 if test "x$ENABLE_DOCS" = xyes; then
14604 GENERATE_DOCS=true
14605 fi
14608 ###############################################################################
14609 #
14610 # Should we compile nimbus swing L&F? We can probably remove this option
14611 # since nimbus is officially part of javax now.
14612 #
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build nimbus L&F" >&5
14614 $as_echo_n "checking whether to build nimbus L&F... " >&6; }
14615 # Check whether --enable-nimbus was given.
14616 if test "${enable_nimbus+set}" = set; then :
14617 enableval=$enable_nimbus; ENABLE_NIMBUS="${enableval}"
14618 else
14619 ENABLE_NIMBUS='yes'
14620 fi
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_NIMBUS" >&5
14623 $as_echo "$ENABLE_NIMBUS" >&6; }
14624 DISABLE_NIMBUS=
14625 if test "x$ENABLE_NIMBUS" = xno; then
14626 DISABLE_NIMBUS=true
14627 fi
14630 ###############################################################################
14631 #
14632 # Setup the opt flags for different compilers
14633 # and different operating systems.
14634 #
14635 case $COMPILER_TYPE in
14636 CC )
14637 D_FLAG="-g"
14638 case $COMPILER_NAME in
14639 gcc )
14640 case $PLATFORM in
14641 macosx )
14642 # On MacOSX we optimize for size, something
14643 # we should do for all platforms?
14644 C_O_FLAG_HI="-O3"
14645 C_O_FLAG_NORM="-Os"
14646 C_O_FLAG_NONE="-O0"
14647 ;;
14648 *)
14649 C_O_FLAG_HI="-O3"
14650 C_O_FLAG_NORM="-O2"
14651 C_O_FLAG_NONE="-O0"
14652 ;;
14653 esac
14654 CXX_O_FLAG_HI="$C_O_FLAG_HI"
14655 CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
14656 CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
14657 ;;
14658 ossc )
14659 case $LEGACY_HOST_CPU1 in
14660 i586)
14661 C_O_FLAG_HI="-xO4 -Wu,-O4~yz"
14662 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz"
14663 C_O_FLAG_NONE=""
14664 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz"
14665 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz"
14666 CXX_O_FLAG_NONE=""
14667 ;;
14668 sparc)
14669 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0"
14670 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0"
14671 C_O_FLAG_NONE=""
14672 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
14673 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
14674 CXX_O_FLAG_NONE=""
14675 ;;
14676 esac
14677 esac
14678 ;;
14679 CL )
14680 D_FLAG=
14681 C_O_FLAG_HI="-O2"
14682 C_O_FLAG_NORM="-O1"
14683 C_O_FLAG_NONE="-Od"
14684 CXX_O_FLAG_HI="$C_O_FLAG_HI"
14685 CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
14686 CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
14687 ;;
14688 esac
14697 ###############################################################################
14698 #
14699 # Setup legacy vars/targets and new vars to deal with different debug levels.
14700 #
14701 case $DEBUG_LEVEL in
14702 release )
14703 HOTSPOT_DEBUG_LEVEL="product"
14704 HOTSPOT_EXPORT="product"
14705 ;;
14706 fastdebug )
14707 HOTSPOT_DEBUG_LEVEL="fastdebug"
14708 HOTSPOT_EXPORT="fastdebug"
14709 CFLAGS="$CFLAGS $D_FLAG"
14710 JAVAC_FLAGS="$JAVAC_FLAGS -g"
14711 ;;
14712 slowdebug )
14713 HOTSPOT_DEBUG_LEVEL="jvmg"
14714 HOTSPOT_EXPORT="debug"
14715 CFLAGS="$CFLAGS $D_FLAG"
14716 C_O_FLAG_HI="$C_O_FLAG_NONE"
14717 C_O_FLAG_NORM="$C_O_FLAG_NONE"
14718 CXX_O_FLAG_HI="$CXX_O_FLAG_NONE"
14719 CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE"
14720 JAVAC_FLAGS="$JAVAC_FLAGS -g"
14721 ;;
14722 esac
14724 ###############################################################################
14725 #
14726 # Generate the legacy makefile targets for hotspot.
14727 # The hotspot api for selecting the build artifacts, really, needs to be improved.
14728 #
14729 HOTSPOT_TARGET=""
14731 if test "x$JVM_VARIANT_SERVER" = xtrue; then
14732 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14733 fi
14735 if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14736 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14737 fi
14739 if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14740 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14741 fi
14743 if test "x$JVM_VARIANT_ZERO" = xtrue; then
14744 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14745 fi
14747 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14748 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14749 fi
14751 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14753 ###############################################################################
14754 #
14755 # Setup all directories for the subrepoes and the arguments to the sub makes.
14756 #
14757 LANGTOOLS_OUTPUTDIR="$OUTPUT_ROOT/langtools"
14758 LANGTOOLS_DIST="$OUTPUT_ROOT/langtools/dist"
14759 LANGTOOLS_MAKE_ARGS=""
14764 CORBA_OUTPUTDIR="$OUTPUT_ROOT/corba"
14765 CORBA_DIST="$OUTPUT_ROOT/corba/dist"
14766 CORBA_MAKE_ARGS=""
14771 JAXP_OUTPUTDIR="$OUTPUT_ROOT/jaxp"
14772 JAXP_DIST="$OUTPUT_ROOT/jaxp/dist"
14773 JAXP_MAKE_ARGS=""
14778 JAXWS_OUTPUTDIR="$OUTPUT_ROOT/jaxws"
14779 JAXWS_DIST="$OUTPUT_ROOT/jaxws/dist"
14780 JAXWS_MAKE_ARGS=""
14785 HOTSPOT_OUTPUTDIR="$OUTPUT_ROOT/hotspot"
14786 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist"
14787 HOTSPOT_MAKE_ARGS="ALT_OUTPUTDIR=$HOTSPOT_OUTPUTDIR ALT_EXPORT_PATH=$HOTSPOT_DIST $HOTSPOT_TARGET"
14792 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk"
14793 JDK_MAKE_ARGS="ALT_OUTPUTDIR=\"$OUTPUT_ROOT/jdk\""
14797 IMAGES_OUTPUTDIR=$OUTPUT_ROOT/images
14798 IMAGES_MAKE_ARGS="ALT_OUTPUTDIR=$OUTPUT_ROOT/jdk \
14799 SHARE_SRC=$JDK_TOPDIR/src/share \
14800 PLATFORM_SRC=$JDK_TOPDIR/src/$LEGACY_HOST_OS_API \
14801 TEMPDIR=$IMAGES_OUTPUTDIR/tmp \
14802 ABS_TEMPDIR=$IMAGES_OUTPUTDIR/tmp "
14806 ###############################################################################
14807 #
14808 # Now setup the CFLAGS and LDFLAGS for the JDK build.
14809 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build.
14810 #
14811 case $COMPILER_NAME in
14812 gcc )
14813 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -W -Wall -Wno-unused -Wno-parentheses -pipe -fno-omit-frame-pointer \
14814 -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
14815 CFLAGS_JDK="$CFLAGS_JDK -fno-strict-aliasing"
14816 ;;
14817 ossc )
14818 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa REQUIRED -v -mt -norunpath -xnolib"
14819 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt REQUIRED -features=no%except -DCC_NOEX"
14820 ;;
14821 cl )
14822 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
14823 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \
14824 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
14825 -DWIN32 -DIAL"
14826 case $LEGACY_HOST_CPU1 in
14827 i?86 )
14828 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86"
14829 ;;
14830 amd64 )
14831 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64"
14832 ;;
14833 esac
14834 ;;
14835 esac
14837 CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64"
14839 # The package path is used only on macosx?
14840 PACKAGE_PATH=/opt/local
14843 # Sometimes we use a cpu dir (.../lib/amd64/server)
14844 # Sometimes not (.../lib/server)
14845 LIBARCHDIR="$LEGACY_HOST_CPU2/"
14846 if test "x$ENDIAN" = xlittle; then
14847 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN"
14848 else
14849 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN"
14850 fi
14851 if test "x$HOST_OS" = xlinux; then
14852 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DLINUX"
14853 fi
14854 if test "x$HOST_OS" = xwindows; then
14855 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DWINDOWS"
14856 fi
14857 if test "x$HOST_OS" = xsolaris; then
14858 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS"
14859 fi
14860 if test "x$HOST_OS" = xmacosx; then
14861 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE"
14862 LIBARCHDIR=""
14863 fi
14864 if test "x$HOST_OS" = xbsd; then
14865 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE"
14866 fi
14867 if test "x$DEBUG_LEVEL" = xrelease; then
14868 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG"
14869 else
14870 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG"
14871 fi
14873 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$LEGACY_HOST_CPU1\"' -D$LEGACY_HOST_CPU1"
14874 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"$RELEASE\"'"
14876 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \
14877 -I${JDK_OUTPUTDIR}/include \
14878 -I${JDK_OUTPUTDIR}/include/$PLATFORM \
14879 -I${JDK_TOPDIR}/src/share/javavm/export \
14880 -I${JDK_TOPDIR}/src/$LEGACY_HOST_OS_API/javavm/export \
14881 -I${JDK_TOPDIR}/src/share/native/common \
14882 -I${JDK_TOPDIR}/src/$LEGACY_HOST_OS_API/native/common"
14884 # The shared libraries are compiled using the picflag.
14885 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA"
14886 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG"
14888 # Executable flags
14889 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK"
14890 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK"
14892 # Now this is odd. The JDK native libraries have to link against libjvm.so
14893 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server.
14894 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library
14895 # is identical for client and server? Yes. Which is picked at runtime (client or server)?
14896 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following
14897 # libraries will link to whatever is in memory. Yuck.
14898 #
14899 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh.
14900 if test "x$COMPILER_TYPE" = xCL; then
14901 LDFLAGS_JDKLIB="$LDFLAGS -libpath:${JDK_OUTPUTDIR}/lib jvm.lib java.lib"
14902 LDFLAGS_JDKLIB_SUFFIX=""
14903 if test "x$HOST_CPU_BITS" = "x64"; then
14904 LDFLAGS_JDKEXE="$CFLAGS ${JDK_OUTPUTDIR}/tmp/java/jli/obj64/jli.lib"
14905 else
14906 LDFLAGS_JDKEXE="$CFLAGS ${JDK_OUTPUTDIR}/tmp/java/jli/obj/jli.lib"
14907 fi
14908 LDFLAGS_JDKEXE_SUFFIX=""
14909 else
14910 # If this is a --hash-style=gnu system, use --hash-style=both, why?
14911 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'`
14912 if test -n "$HAS_GNU_HASH"; then
14913 # And since we now know that the linker is gnu, then add -z defs, to forbid
14914 # undefined symbols in object files.
14915 LDFLAGS="$LDFLAGS -Xlinker --hash-style=both -Xlinker -z -Xlinker defs"
14916 if test "x$DEBUG_LEVEL" == "xrelease"; then
14917 # When building release libraries, tell the linker optimize them.
14918 # Should this be supplied to the OSS linker as well?
14919 LDFLAGS="$LDFLAGS -Xlinker -O1"
14920 fi
14921 fi
14923 LDFLAGS_JDKLIB="$LDFLAGS $SHARED_LIBRARY_FLAGS -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}server \
14924 -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}client \
14925 -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}"
14926 LDFLAGS_JDKLIB_SUFFIX="-ljvm -ljava"
14927 if test "x$COMPILER_NAME" = xossc; then
14928 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc"
14929 fi
14931 # Only the jli library is explicitly linked when the launchers are built.
14932 # The libjvm is then dynamically loaded/linked by the launcher.
14933 LDFLAGS_JDKEXE="$LDFLAGS -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}jli"
14934 LDFLAGS_JDKEXE_SUFFIX="-ljli"
14935 fi
14950 ###############################################################################
14951 #
14952 # statically link libstdc++ before C++ ABI is stablized on Linux unless
14953 # dynamic build is configured on command line.
14954 #
14955 # Check whether --enable-static-link-stdc++ was given.
14956 if test "${enable_static_link_stdc__+set}" = set; then :
14957 enableval=$enable_static_link_stdc__;
14958 else
14960 enable_static_link_stdc__=yes
14962 fi
14965 if test "x$HOST_OS" = xlinux; then
14966 # Test if -lstdc++ works.
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5
14968 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; }
14969 ac_ext=cpp
14970 ac_cpp='$CXXCPP $CPPFLAGS'
14971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14975 OLD_CXXFLAGS="$CXXFLAGS"
14976 CXXFLAGS="$CXXFLAGS -lstdc++"
14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978 /* end confdefs.h. */
14980 int
14981 main ()
14982 {
14983 return 0;
14984 ;
14985 return 0;
14986 }
14987 _ACEOF
14988 if ac_fn_cxx_try_link "$LINENO"; then :
14989 has_dynamic_libstdcxx=yes
14990 else
14991 has_dynamic_libstdcxx=no
14992 fi
14993 rm -f core conftest.err conftest.$ac_objext \
14994 conftest$ac_exeext conftest.$ac_ext
14995 CXXFLAGS="$OLD_CXXFLAGS"
14996 ac_ext=cpp
14997 ac_cpp='$CXXCPP $CPPFLAGS'
14998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5
15003 $as_echo "$has_dynamic_libstdcxx" >&6; }
15005 # Test if stdc++ can be linked statically.
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5
15007 $as_echo_n "checking if static link of stdc++ is possible... " >&6; }
15008 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic"
15009 ac_ext=cpp
15010 ac_cpp='$CXXCPP $CPPFLAGS'
15011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15015 OLD_LIBS="$LIBS"
15016 OLD_CXX="$CXX"
15017 LIBS="$STATIC_STDCXX_FLAGS"
15018 CXX="$CC"
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15022 int
15023 main ()
15024 {
15025 return 0;
15026 ;
15027 return 0;
15028 }
15029 _ACEOF
15030 if ac_fn_cxx_try_link "$LINENO"; then :
15031 has_static_libstdcxx=yes
15032 else
15033 has_static_libstdcxx=no
15034 fi
15035 rm -f core conftest.err conftest.$ac_objext \
15036 conftest$ac_exeext conftest.$ac_ext
15037 LIBS="$OLD_LIBS"
15038 CXX="$OLD_CXX"
15039 ac_ext=cpp
15040 ac_cpp='$CXXCPP $CPPFLAGS'
15041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5
15046 $as_echo "$has_static_libstdcxx" >&6; }
15048 if test "x$has_static_libcxx" = xno && test "x$has_dynamic_libcxx" = xno; then
15049 as_fn_error $? "I cannot link to stdc++! Neither dynamically nor statically." "$LINENO" 5
15050 fi
15052 if test "x$enable_static_link_stdc__" = xyes && test "x$has_static_libstdcxx" = xno; then
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: Static linking of libstdc++ was not possible reverting to dynamic linking." >&5
15054 $as_echo "$as_me: Static linking of libstdc++ was not possible reverting to dynamic linking." >&6;}
15055 enable_static_link_stdc__=no
15056 fi
15058 if test "x$enable_static_link_stdc__" = xno && test "x$has_dynamic_libstdcxx" = xno; then
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: Dynamic linking of libstdc++ was not possible reverting to static linking." >&5
15060 $as_echo "$as_me: Dynamic linking of libstdc++ was not possible reverting to static linking." >&6;}
15061 enable_static_link_stdc__=yes
15062 fi
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5
15065 $as_echo_n "checking how to link with libstdc++... " >&6; }
15066 if test "x$enable_static_link_stdc__" = xyes; then
15067 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS"
15068 LDCXX="$CC"
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
15070 $as_echo "static" >&6; }
15071 else
15072 LIBCXX="$LIBCXX -lstdc++"
15073 LDCXX="$CXX"
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5
15075 $as_echo "dynamic" >&6; }
15076 fi
15077 fi
15079 ###############################################################################
15080 #
15081 # Could someone enlighten this configure script with a comment about libCrun?
15082 # The LEGACY_HOST_CPU3 is the setting for ISA_DIR.
15083 #
15084 if test "x$HOST_OS" = xsolaris; then
15085 LIBCXX="$LIBCXX /usr/lib${LEGACY_HOST_CPU3}/libCrun.so.1"
15086 fi
15090 ###############################################################################
15091 #
15092 # Misc
15093 #
15095 # Control wether Hotspot runs Queens test after build.
15096 # Check whether --enable-hotspot-test-in-build was given.
15097 if test "${enable_hotspot_test_in_build+set}" = set; then :
15098 enableval=$enable_hotspot_test_in_build;
15099 else
15100 enable_hotspot_test_in_build=no
15101 fi
15103 if test "x$enable_hotspot_test_in_build" = "xyes"; then
15104 TEST_IN_BUILD=true
15105 else
15106 TEST_IN_BUILD=false
15107 fi
15110 ###############################################################################
15111 #
15112 # A helpful message at the end of the configure run.
15113 #
15114 if test "x$CCACHE_FOUND" = x && test "x$GCC" = xyes; then
15115 help_on_build_dependency ccache
15117 printf "\nTip of the day:\nYou should really install ccache version 3.1.4 or newer.\n"
15118 printf "It gives a tremendous speedup for C++ recompilations with precompiled headers!\n"
15119 fi
15121 if test "x$CCACHE_FOUND" != x && test "x$HAS_GOOD_CCACHE" = x; then
15122 printf "You have a ccache installed, but it is a version prior to 3.1.4. Try upgrading.\n"
15123 fi
15125 cat >confcache <<\_ACEOF
15126 # This file is a shell script that caches the results of configure
15127 # tests run on this system so they can be shared between configure
15128 # scripts and configure runs, see configure's option --config-cache.
15129 # It is not useful on other systems. If it contains results you don't
15130 # want to keep, you may remove or edit it.
15131 #
15132 # config.status only pays attention to the cache file if you give it
15133 # the --recheck option to rerun configure.
15134 #
15135 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15136 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15137 # following values.
15139 _ACEOF
15141 # The following way of writing the cache mishandles newlines in values,
15142 # but we know of no workaround that is simple, portable, and efficient.
15143 # So, we kill variables containing newlines.
15144 # Ultrix sh set writes to stderr and can't be redirected directly,
15145 # and sets the high bit in the cache file unless we assign to the vars.
15146 (
15147 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15148 eval ac_val=\$$ac_var
15149 case $ac_val in #(
15150 *${as_nl}*)
15151 case $ac_var in #(
15152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15153 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15154 esac
15155 case $ac_var in #(
15156 _ | IFS | as_nl) ;; #(
15157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15158 *) { eval $ac_var=; unset $ac_var;} ;;
15159 esac ;;
15160 esac
15161 done
15163 (set) 2>&1 |
15164 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15165 *${as_nl}ac_space=\ *)
15166 # `set' does not quote correctly, so add quotes: double-quote
15167 # substitution turns \\\\ into \\, and sed turns \\ into \.
15168 sed -n \
15169 "s/'/'\\\\''/g;
15170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15171 ;; #(
15172 *)
15173 # `set' quotes correctly as required by POSIX, so do not add quotes.
15174 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15175 ;;
15176 esac |
15177 sort
15178 ) |
15179 sed '
15180 /^ac_cv_env_/b end
15181 t clear
15182 :clear
15183 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15184 t end
15185 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15186 :end' >>confcache
15187 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15188 if test -w "$cache_file"; then
15189 test "x$cache_file" != "x/dev/null" &&
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15191 $as_echo "$as_me: updating cache $cache_file" >&6;}
15192 cat confcache >$cache_file
15193 else
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15195 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15196 fi
15197 fi
15198 rm -f confcache
15200 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15201 # Let make expand exec_prefix.
15202 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15204 DEFS=-DHAVE_CONFIG_H
15206 ac_libobjs=
15207 ac_ltlibobjs=
15208 U=
15209 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15210 # 1. Remove the extension, and $U if already installed.
15211 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15212 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15213 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15214 # will be set to the directory where LIBOBJS objects are built.
15215 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15216 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15217 done
15218 LIBOBJS=$ac_libobjs
15220 LTLIBOBJS=$ac_ltlibobjs
15224 : ${CONFIG_STATUS=./config.status}
15225 ac_write_fail=0
15226 ac_clean_files_save=$ac_clean_files
15227 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15229 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15230 as_write_fail=0
15231 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15232 #! $SHELL
15233 # Generated by $as_me.
15234 # Run this file to recreate the current configuration.
15235 # Compiler output produced by configure, useful for debugging
15236 # configure, is in config.log if it exists.
15238 debug=false
15239 ac_cs_recheck=false
15240 ac_cs_silent=false
15242 SHELL=\${CONFIG_SHELL-$SHELL}
15243 export SHELL
15244 _ASEOF
15245 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15246 ## -------------------- ##
15247 ## M4sh Initialization. ##
15248 ## -------------------- ##
15250 # Be more Bourne compatible
15251 DUALCASE=1; export DUALCASE # for MKS sh
15252 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15253 emulate sh
15254 NULLCMD=:
15255 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15256 # is contrary to our usage. Disable this feature.
15257 alias -g '${1+"$@"}'='"$@"'
15258 setopt NO_GLOB_SUBST
15259 else
15260 case `(set -o) 2>/dev/null` in #(
15261 *posix*) :
15262 set -o posix ;; #(
15263 *) :
15264 ;;
15265 esac
15266 fi
15269 as_nl='
15270 '
15271 export as_nl
15272 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15273 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15274 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15275 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15276 # Prefer a ksh shell builtin over an external printf program on Solaris,
15277 # but without wasting forks for bash or zsh.
15278 if test -z "$BASH_VERSION$ZSH_VERSION" \
15279 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15280 as_echo='print -r --'
15281 as_echo_n='print -rn --'
15282 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15283 as_echo='printf %s\n'
15284 as_echo_n='printf %s'
15285 else
15286 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15287 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15288 as_echo_n='/usr/ucb/echo -n'
15289 else
15290 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15291 as_echo_n_body='eval
15292 arg=$1;
15293 case $arg in #(
15294 *"$as_nl"*)
15295 expr "X$arg" : "X\\(.*\\)$as_nl";
15296 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15297 esac;
15298 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15299 '
15300 export as_echo_n_body
15301 as_echo_n='sh -c $as_echo_n_body as_echo'
15302 fi
15303 export as_echo_body
15304 as_echo='sh -c $as_echo_body as_echo'
15305 fi
15307 # The user is always right.
15308 if test "${PATH_SEPARATOR+set}" != set; then
15309 PATH_SEPARATOR=:
15310 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15311 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15312 PATH_SEPARATOR=';'
15313 }
15314 fi
15317 # IFS
15318 # We need space, tab and new line, in precisely that order. Quoting is
15319 # there to prevent editors from complaining about space-tab.
15320 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15321 # splitting by setting IFS to empty value.)
15322 IFS=" "" $as_nl"
15324 # Find who we are. Look in the path if we contain no directory separator.
15325 case $0 in #((
15326 *[\\/]* ) as_myself=$0 ;;
15327 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15328 for as_dir in $PATH
15329 do
15330 IFS=$as_save_IFS
15331 test -z "$as_dir" && as_dir=.
15332 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15333 done
15334 IFS=$as_save_IFS
15336 ;;
15337 esac
15338 # We did not find ourselves, most probably we were run as `sh COMMAND'
15339 # in which case we are not to be found in the path.
15340 if test "x$as_myself" = x; then
15341 as_myself=$0
15342 fi
15343 if test ! -f "$as_myself"; then
15344 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15345 exit 1
15346 fi
15348 # Unset variables that we do not need and which cause bugs (e.g. in
15349 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15350 # suppresses any "Segmentation fault" message there. '((' could
15351 # trigger a bug in pdksh 5.2.14.
15352 for as_var in BASH_ENV ENV MAIL MAILPATH
15353 do eval test x\${$as_var+set} = xset \
15354 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15355 done
15356 PS1='$ '
15357 PS2='> '
15358 PS4='+ '
15360 # NLS nuisances.
15361 LC_ALL=C
15362 export LC_ALL
15363 LANGUAGE=C
15364 export LANGUAGE
15366 # CDPATH.
15367 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15371 # ----------------------------------------
15372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15374 # script with STATUS, using 1 if that was 0.
15375 as_fn_error ()
15376 {
15377 as_status=$1; test $as_status -eq 0 && as_status=1
15378 if test "$4"; then
15379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15381 fi
15382 $as_echo "$as_me: error: $2" >&2
15383 as_fn_exit $as_status
15384 } # as_fn_error
15387 # as_fn_set_status STATUS
15388 # -----------------------
15389 # Set $? to STATUS, without forking.
15390 as_fn_set_status ()
15391 {
15392 return $1
15393 } # as_fn_set_status
15395 # as_fn_exit STATUS
15396 # -----------------
15397 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15398 as_fn_exit ()
15399 {
15400 set +e
15401 as_fn_set_status $1
15402 exit $1
15403 } # as_fn_exit
15405 # as_fn_unset VAR
15406 # ---------------
15407 # Portably unset VAR.
15408 as_fn_unset ()
15409 {
15410 { eval $1=; unset $1;}
15411 }
15412 as_unset=as_fn_unset
15413 # as_fn_append VAR VALUE
15414 # ----------------------
15415 # Append the text in VALUE to the end of the definition contained in VAR. Take
15416 # advantage of any shell optimizations that allow amortized linear growth over
15417 # repeated appends, instead of the typical quadratic growth present in naive
15418 # implementations.
15419 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15420 eval 'as_fn_append ()
15421 {
15422 eval $1+=\$2
15423 }'
15424 else
15425 as_fn_append ()
15426 {
15427 eval $1=\$$1\$2
15428 }
15429 fi # as_fn_append
15431 # as_fn_arith ARG...
15432 # ------------------
15433 # Perform arithmetic evaluation on the ARGs, and store the result in the
15434 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15435 # must be portable across $(()) and expr.
15436 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15437 eval 'as_fn_arith ()
15438 {
15439 as_val=$(( $* ))
15440 }'
15441 else
15442 as_fn_arith ()
15443 {
15444 as_val=`expr "$@" || test $? -eq 1`
15445 }
15446 fi # as_fn_arith
15449 if expr a : '\(a\)' >/dev/null 2>&1 &&
15450 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15451 as_expr=expr
15452 else
15453 as_expr=false
15454 fi
15456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15457 as_basename=basename
15458 else
15459 as_basename=false
15460 fi
15462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15463 as_dirname=dirname
15464 else
15465 as_dirname=false
15466 fi
15468 as_me=`$as_basename -- "$0" ||
15469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15470 X"$0" : 'X\(//\)$' \| \
15471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15472 $as_echo X/"$0" |
15473 sed '/^.*\/\([^/][^/]*\)\/*$/{
15474 s//\1/
15475 q
15476 }
15477 /^X\/\(\/\/\)$/{
15478 s//\1/
15479 q
15480 }
15481 /^X\/\(\/\).*/{
15482 s//\1/
15483 q
15484 }
15485 s/.*/./; q'`
15487 # Avoid depending upon Character Ranges.
15488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15491 as_cr_digits='0123456789'
15492 as_cr_alnum=$as_cr_Letters$as_cr_digits
15494 ECHO_C= ECHO_N= ECHO_T=
15495 case `echo -n x` in #(((((
15496 -n*)
15497 case `echo 'xy\c'` in
15498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15499 xy) ECHO_C='\c';;
15500 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15501 ECHO_T=' ';;
15502 esac;;
15503 *)
15504 ECHO_N='-n';;
15505 esac
15507 rm -f conf$$ conf$$.exe conf$$.file
15508 if test -d conf$$.dir; then
15509 rm -f conf$$.dir/conf$$.file
15510 else
15511 rm -f conf$$.dir
15512 mkdir conf$$.dir 2>/dev/null
15513 fi
15514 if (echo >conf$$.file) 2>/dev/null; then
15515 if ln -s conf$$.file conf$$ 2>/dev/null; then
15516 as_ln_s='ln -s'
15517 # ... but there are two gotchas:
15518 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15519 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15520 # In both cases, we have to default to `cp -p'.
15521 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15522 as_ln_s='cp -p'
15523 elif ln conf$$.file conf$$ 2>/dev/null; then
15524 as_ln_s=ln
15525 else
15526 as_ln_s='cp -p'
15527 fi
15528 else
15529 as_ln_s='cp -p'
15530 fi
15531 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15532 rmdir conf$$.dir 2>/dev/null
15535 # as_fn_mkdir_p
15536 # -------------
15537 # Create "$as_dir" as a directory, including parents if necessary.
15538 as_fn_mkdir_p ()
15539 {
15541 case $as_dir in #(
15542 -*) as_dir=./$as_dir;;
15543 esac
15544 test -d "$as_dir" || eval $as_mkdir_p || {
15545 as_dirs=
15546 while :; do
15547 case $as_dir in #(
15548 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15549 *) as_qdir=$as_dir;;
15550 esac
15551 as_dirs="'$as_qdir' $as_dirs"
15552 as_dir=`$as_dirname -- "$as_dir" ||
15553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15554 X"$as_dir" : 'X\(//\)[^/]' \| \
15555 X"$as_dir" : 'X\(//\)$' \| \
15556 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15557 $as_echo X"$as_dir" |
15558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15559 s//\1/
15560 q
15561 }
15562 /^X\(\/\/\)[^/].*/{
15563 s//\1/
15564 q
15565 }
15566 /^X\(\/\/\)$/{
15567 s//\1/
15568 q
15569 }
15570 /^X\(\/\).*/{
15571 s//\1/
15572 q
15573 }
15574 s/.*/./; q'`
15575 test -d "$as_dir" && break
15576 done
15577 test -z "$as_dirs" || eval "mkdir $as_dirs"
15578 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15581 } # as_fn_mkdir_p
15582 if mkdir -p . 2>/dev/null; then
15583 as_mkdir_p='mkdir -p "$as_dir"'
15584 else
15585 test -d ./-p && rmdir ./-p
15586 as_mkdir_p=false
15587 fi
15589 if test -x / >/dev/null 2>&1; then
15590 as_test_x='test -x'
15591 else
15592 if ls -dL / >/dev/null 2>&1; then
15593 as_ls_L_option=L
15594 else
15595 as_ls_L_option=
15596 fi
15597 as_test_x='
15598 eval sh -c '\''
15599 if test -d "$1"; then
15600 test -d "$1/.";
15601 else
15602 case $1 in #(
15603 -*)set "./$1";;
15604 esac;
15605 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15606 ???[sx]*):;;*)false;;esac;fi
15607 '\'' sh
15608 '
15609 fi
15610 as_executable_p=$as_test_x
15612 # Sed expression to map a string onto a valid CPP name.
15613 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15615 # Sed expression to map a string onto a valid variable name.
15616 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15619 exec 6>&1
15620 ## ----------------------------------- ##
15621 ## Main body of $CONFIG_STATUS script. ##
15622 ## ----------------------------------- ##
15623 _ASEOF
15624 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15627 # Save the log message, to keep $0 and so on meaningful, and to
15628 # report actual input values of CONFIG_FILES etc. instead of their
15629 # values after options handling.
15630 ac_log="
15631 This file was extended by openjdk $as_me version-0.1, which was
15632 generated by GNU Autoconf 2.67. Invocation command line was
15634 CONFIG_FILES = $CONFIG_FILES
15635 CONFIG_HEADERS = $CONFIG_HEADERS
15636 CONFIG_LINKS = $CONFIG_LINKS
15637 CONFIG_COMMANDS = $CONFIG_COMMANDS
15638 $ $0 $@
15640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15641 "
15643 _ACEOF
15645 case $ac_config_files in *"
15646 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15647 esac
15649 case $ac_config_headers in *"
15650 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15651 esac
15654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15655 # Files that config.status was made for.
15656 config_files="$ac_config_files"
15657 config_headers="$ac_config_headers"
15659 _ACEOF
15661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15662 ac_cs_usage="\
15663 \`$as_me' instantiates files and other configuration actions
15664 from templates according to the current configuration. Unless the files
15665 and actions are specified as TAGs, all are instantiated by default.
15667 Usage: $0 [OPTION]... [TAG]...
15669 -h, --help print this help, then exit
15670 -V, --version print version number and configuration settings, then exit
15671 --config print configuration, then exit
15672 -q, --quiet, --silent
15673 do not print progress messages
15674 -d, --debug don't remove temporary files
15675 --recheck update $as_me by reconfiguring in the same conditions
15676 --file=FILE[:TEMPLATE]
15677 instantiate the configuration file FILE
15678 --header=FILE[:TEMPLATE]
15679 instantiate the configuration header FILE
15681 Configuration files:
15682 $config_files
15684 Configuration headers:
15685 $config_headers
15687 Report bugs to <build-infra-dev@openjdk.java.net>."
15689 _ACEOF
15690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15691 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15692 ac_cs_version="\\
15693 openjdk config.status version-0.1
15694 configured by $0, generated by GNU Autoconf 2.67,
15695 with options \\"\$ac_cs_config\\"
15697 Copyright (C) 2010 Free Software Foundation, Inc.
15698 This config.status script is free software; the Free Software Foundation
15699 gives unlimited permission to copy, distribute and modify it."
15701 ac_pwd='$ac_pwd'
15702 srcdir='$srcdir'
15703 AWK='$AWK'
15704 test -n "\$AWK" || AWK=awk
15705 _ACEOF
15707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15708 # The default lists apply if the user does not specify any file.
15709 ac_need_defaults=:
15710 while test $# != 0
15711 do
15712 case $1 in
15713 --*=?*)
15714 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15715 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15716 ac_shift=:
15717 ;;
15718 --*=)
15719 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15720 ac_optarg=
15721 ac_shift=:
15722 ;;
15723 *)
15724 ac_option=$1
15725 ac_optarg=$2
15726 ac_shift=shift
15727 ;;
15728 esac
15730 case $ac_option in
15731 # Handling of the options.
15732 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15733 ac_cs_recheck=: ;;
15734 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15735 $as_echo "$ac_cs_version"; exit ;;
15736 --config | --confi | --conf | --con | --co | --c )
15737 $as_echo "$ac_cs_config"; exit ;;
15738 --debug | --debu | --deb | --de | --d | -d )
15739 debug=: ;;
15740 --file | --fil | --fi | --f )
15741 $ac_shift
15742 case $ac_optarg in
15743 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15744 '') as_fn_error $? "missing file argument" ;;
15745 esac
15746 as_fn_append CONFIG_FILES " '$ac_optarg'"
15747 ac_need_defaults=false;;
15748 --header | --heade | --head | --hea )
15749 $ac_shift
15750 case $ac_optarg in
15751 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15752 esac
15753 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15754 ac_need_defaults=false;;
15755 --he | --h)
15756 # Conflict between --help and --header
15757 as_fn_error $? "ambiguous option: \`$1'
15758 Try \`$0 --help' for more information.";;
15759 --help | --hel | -h )
15760 $as_echo "$ac_cs_usage"; exit ;;
15761 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15762 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15763 ac_cs_silent=: ;;
15765 # This is an error.
15766 -*) as_fn_error $? "unrecognized option: \`$1'
15767 Try \`$0 --help' for more information." ;;
15769 *) as_fn_append ac_config_targets " $1"
15770 ac_need_defaults=false ;;
15772 esac
15773 shift
15774 done
15776 ac_configure_extra_args=
15778 if $ac_cs_silent; then
15779 exec 6>/dev/null
15780 ac_configure_extra_args="$ac_configure_extra_args --silent"
15781 fi
15783 _ACEOF
15784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15785 if \$ac_cs_recheck; then
15786 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15787 shift
15788 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15789 CONFIG_SHELL='$SHELL'
15790 export CONFIG_SHELL
15791 exec "\$@"
15792 fi
15794 _ACEOF
15795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15796 exec 5>>config.log
15797 {
15798 echo
15799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15800 ## Running $as_me. ##
15801 _ASBOX
15802 $as_echo "$ac_log"
15803 } >&5
15805 _ACEOF
15806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15807 _ACEOF
15809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15811 # Handling of arguments.
15812 for ac_config_target in $ac_config_targets
15813 do
15814 case $ac_config_target in
15815 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;;
15816 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;;
15817 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;;
15819 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
15820 esac
15821 done
15824 # If the user did not use the arguments to specify the items to instantiate,
15825 # then the envvar interface is used. Set only those that are not.
15826 # We use the long form for the default assignment because of an extremely
15827 # bizarre bug on SunOS 4.1.3.
15828 if $ac_need_defaults; then
15829 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15830 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15831 fi
15833 # Have a temporary directory for convenience. Make it in the build tree
15834 # simply because there is no reason against having it here, and in addition,
15835 # creating and moving files from /tmp can sometimes cause problems.
15836 # Hook for its removal unless debugging.
15837 # Note that there is a small window in which the directory will not be cleaned:
15838 # after its creation but before its name has been assigned to `$tmp'.
15839 $debug ||
15840 {
15841 tmp=
15842 trap 'exit_status=$?
15843 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15844 ' 0
15845 trap 'as_fn_exit 1' 1 2 13 15
15846 }
15847 # Create a (secure) tmp directory for tmp files.
15849 {
15850 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15851 test -n "$tmp" && test -d "$tmp"
15852 } ||
15853 {
15854 tmp=./conf$$-$RANDOM
15855 (umask 077 && mkdir "$tmp")
15856 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15858 # Set up the scripts for CONFIG_FILES section.
15859 # No need to generate them if there are no CONFIG_FILES.
15860 # This happens for instance with `./config.status config.h'.
15861 if test -n "$CONFIG_FILES"; then
15864 ac_cr=`echo X | tr X '\015'`
15865 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15866 # But we know of no other shell where ac_cr would be empty at this
15867 # point, so we can use a bashism as a fallback.
15868 if test "x$ac_cr" = x; then
15869 eval ac_cr=\$\'\\r\'
15870 fi
15871 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15872 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15873 ac_cs_awk_cr='\\r'
15874 else
15875 ac_cs_awk_cr=$ac_cr
15876 fi
15878 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15879 _ACEOF
15882 {
15883 echo "cat >conf$$subs.awk <<_ACEOF" &&
15884 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15885 echo "_ACEOF"
15886 } >conf$$subs.sh ||
15887 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15888 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15889 ac_delim='%!_!# '
15890 for ac_last_try in false false false false false :; do
15891 . ./conf$$subs.sh ||
15892 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15894 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15895 if test $ac_delim_n = $ac_delim_num; then
15896 break
15897 elif $ac_last_try; then
15898 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15899 else
15900 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15901 fi
15902 done
15903 rm -f conf$$subs.sh
15905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15906 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15907 _ACEOF
15908 sed -n '
15909 h
15910 s/^/S["/; s/!.*/"]=/
15911 p
15912 g
15913 s/^[^!]*!//
15914 :repl
15915 t repl
15916 s/'"$ac_delim"'$//
15917 t delim
15918 :nl
15919 h
15920 s/\(.\{148\}\)..*/\1/
15921 t more1
15922 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15923 p
15924 n
15925 b repl
15926 :more1
15927 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15928 p
15929 g
15930 s/.\{148\}//
15931 t nl
15932 :delim
15933 h
15934 s/\(.\{148\}\)..*/\1/
15935 t more2
15936 s/["\\]/\\&/g; s/^/"/; s/$/"/
15937 p
15938 b
15939 :more2
15940 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15941 p
15942 g
15943 s/.\{148\}//
15944 t delim
15945 ' <conf$$subs.awk | sed '
15946 /^[^""]/{
15947 N
15948 s/\n//
15949 }
15950 ' >>$CONFIG_STATUS || ac_write_fail=1
15951 rm -f conf$$subs.awk
15952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15953 _ACAWK
15954 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15955 for (key in S) S_is_set[key] = 1
15956 FS = ""
15958 }
15959 {
15960 line = $ 0
15961 nfields = split(line, field, "@")
15962 substed = 0
15963 len = length(field[1])
15964 for (i = 2; i < nfields; i++) {
15965 key = field[i]
15966 keylen = length(key)
15967 if (S_is_set[key]) {
15968 value = S[key]
15969 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15970 len += length(value) + length(field[++i])
15971 substed = 1
15972 } else
15973 len += 1 + keylen
15974 }
15976 print line
15977 }
15979 _ACAWK
15980 _ACEOF
15981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15982 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15983 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15984 else
15985 cat
15986 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15987 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15988 _ACEOF
15990 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15991 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15992 # trailing colons and then remove the whole line if VPATH becomes empty
15993 # (actually we leave an empty line to preserve line numbers).
15994 if test "x$srcdir" = x.; then
15995 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15996 h
15997 s///
15998 s/^/:/
15999 s/[ ]*$/:/
16000 s/:\$(srcdir):/:/g
16001 s/:\${srcdir}:/:/g
16002 s/:@srcdir@:/:/g
16003 s/^:*//
16004 s/:*$//
16005 x
16006 s/\(=[ ]*\).*/\1/
16007 G
16008 s/\n//
16009 s/^[^=]*=[ ]*$//
16010 }'
16011 fi
16013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16014 fi # test -n "$CONFIG_FILES"
16016 # Set up the scripts for CONFIG_HEADERS section.
16017 # No need to generate them if there are no CONFIG_HEADERS.
16018 # This happens for instance with `./config.status Makefile'.
16019 if test -n "$CONFIG_HEADERS"; then
16020 cat >"$tmp/defines.awk" <<\_ACAWK ||
16021 BEGIN {
16022 _ACEOF
16024 # Transform confdefs.h into an awk script `defines.awk', embedded as
16025 # here-document in config.status, that substitutes the proper values into
16026 # config.h.in to produce config.h.
16028 # Create a delimiter string that does not exist in confdefs.h, to ease
16029 # handling of long lines.
16030 ac_delim='%!_!# '
16031 for ac_last_try in false false :; do
16032 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16033 if test -z "$ac_t"; then
16034 break
16035 elif $ac_last_try; then
16036 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16037 else
16038 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16039 fi
16040 done
16042 # For the awk script, D is an array of macro values keyed by name,
16043 # likewise P contains macro parameters if any. Preserve backslash
16044 # newline sequences.
16046 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16047 sed -n '
16048 s/.\{148\}/&'"$ac_delim"'/g
16049 t rset
16050 :rset
16051 s/^[ ]*#[ ]*define[ ][ ]*/ /
16052 t def
16053 d
16054 :def
16055 s/\\$//
16056 t bsnl
16057 s/["\\]/\\&/g
16058 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16059 D["\1"]=" \3"/p
16060 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16061 d
16062 :bsnl
16063 s/["\\]/\\&/g
16064 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16065 D["\1"]=" \3\\\\\\n"\\/p
16066 t cont
16067 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16068 t cont
16069 d
16070 :cont
16071 n
16072 s/.\{148\}/&'"$ac_delim"'/g
16073 t clear
16074 :clear
16075 s/\\$//
16076 t bsnlc
16077 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16078 d
16079 :bsnlc
16080 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16081 b cont
16082 ' <confdefs.h | sed '
16083 s/'"$ac_delim"'/"\\\
16084 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16087 for (key in D) D_is_set[key] = 1
16088 FS = ""
16089 }
16090 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16091 line = \$ 0
16092 split(line, arg, " ")
16093 if (arg[1] == "#") {
16094 defundef = arg[2]
16095 mac1 = arg[3]
16096 } else {
16097 defundef = substr(arg[1], 2)
16098 mac1 = arg[2]
16099 }
16100 split(mac1, mac2, "(") #)
16101 macro = mac2[1]
16102 prefix = substr(line, 1, index(line, defundef) - 1)
16103 if (D_is_set[macro]) {
16104 # Preserve the white space surrounding the "#".
16105 print prefix "define", macro P[macro] D[macro]
16106 next
16107 } else {
16108 # Replace #undef with comments. This is necessary, for example,
16109 # in the case of _POSIX_SOURCE, which is predefined and required
16110 # on some systems where configure will not decide to define it.
16111 if (defundef == "undef") {
16112 print "/*", prefix defundef, macro, "*/"
16113 next
16114 }
16115 }
16116 }
16117 { print }
16118 _ACAWK
16119 _ACEOF
16120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16121 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16122 fi # test -n "$CONFIG_HEADERS"
16125 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16126 shift
16127 for ac_tag
16128 do
16129 case $ac_tag in
16130 :[FHLC]) ac_mode=$ac_tag; continue;;
16131 esac
16132 case $ac_mode$ac_tag in
16133 :[FHL]*:*);;
16134 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16135 :[FH]-) ac_tag=-:-;;
16136 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16137 esac
16138 ac_save_IFS=$IFS
16139 IFS=:
16140 set x $ac_tag
16141 IFS=$ac_save_IFS
16142 shift
16143 ac_file=$1
16144 shift
16146 case $ac_mode in
16147 :L) ac_source=$1;;
16148 :[FH])
16149 ac_file_inputs=
16150 for ac_f
16151 do
16152 case $ac_f in
16153 -) ac_f="$tmp/stdin";;
16154 *) # Look for the file first in the build tree, then in the source tree
16155 # (if the path is not absolute). The absolute path cannot be DOS-style,
16156 # because $ac_f cannot contain `:'.
16157 test -f "$ac_f" ||
16158 case $ac_f in
16159 [\\/$]*) false;;
16160 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16161 esac ||
16162 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16163 esac
16164 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16165 as_fn_append ac_file_inputs " '$ac_f'"
16166 done
16168 # Let's still pretend it is `configure' which instantiates (i.e., don't
16169 # use $as_me), people would be surprised to read:
16170 # /* config.h. Generated by config.status. */
16171 configure_input='Generated from '`
16172 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16173 `' by configure.'
16174 if test x"$ac_file" != x-; then
16175 configure_input="$ac_file. $configure_input"
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16177 $as_echo "$as_me: creating $ac_file" >&6;}
16178 fi
16179 # Neutralize special characters interpreted by sed in replacement strings.
16180 case $configure_input in #(
16181 *\&* | *\|* | *\\* )
16182 ac_sed_conf_input=`$as_echo "$configure_input" |
16183 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16184 *) ac_sed_conf_input=$configure_input;;
16185 esac
16187 case $ac_tag in
16188 *:-:* | *:-) cat >"$tmp/stdin" \
16189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16190 esac
16191 ;;
16192 esac
16194 ac_dir=`$as_dirname -- "$ac_file" ||
16195 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16196 X"$ac_file" : 'X\(//\)[^/]' \| \
16197 X"$ac_file" : 'X\(//\)$' \| \
16198 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16199 $as_echo X"$ac_file" |
16200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16201 s//\1/
16202 q
16203 }
16204 /^X\(\/\/\)[^/].*/{
16205 s//\1/
16206 q
16207 }
16208 /^X\(\/\/\)$/{
16209 s//\1/
16210 q
16211 }
16212 /^X\(\/\).*/{
16213 s//\1/
16214 q
16215 }
16216 s/.*/./; q'`
16217 as_dir="$ac_dir"; as_fn_mkdir_p
16218 ac_builddir=.
16220 case "$ac_dir" in
16221 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16222 *)
16223 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16224 # A ".." for each directory in $ac_dir_suffix.
16225 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16226 case $ac_top_builddir_sub in
16227 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16228 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16229 esac ;;
16230 esac
16231 ac_abs_top_builddir=$ac_pwd
16232 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16233 # for backward compatibility:
16234 ac_top_builddir=$ac_top_build_prefix
16236 case $srcdir in
16237 .) # We are building in place.
16238 ac_srcdir=.
16239 ac_top_srcdir=$ac_top_builddir_sub
16240 ac_abs_top_srcdir=$ac_pwd ;;
16241 [\\/]* | ?:[\\/]* ) # Absolute name.
16242 ac_srcdir=$srcdir$ac_dir_suffix;
16243 ac_top_srcdir=$srcdir
16244 ac_abs_top_srcdir=$srcdir ;;
16245 *) # Relative name.
16246 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16247 ac_top_srcdir=$ac_top_build_prefix$srcdir
16248 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16249 esac
16250 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16253 case $ac_mode in
16254 :F)
16255 #
16256 # CONFIG_FILE
16257 #
16259 _ACEOF
16261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16262 # If the template does not know about datarootdir, expand it.
16263 # FIXME: This hack should be removed a few years after 2.60.
16264 ac_datarootdir_hack=; ac_datarootdir_seen=
16265 ac_sed_dataroot='
16266 /datarootdir/ {
16267 p
16268 q
16269 }
16270 /@datadir@/p
16271 /@docdir@/p
16272 /@infodir@/p
16273 /@localedir@/p
16274 /@mandir@/p'
16275 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16276 *datarootdir*) ac_datarootdir_seen=yes;;
16277 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16279 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16280 _ACEOF
16281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16282 ac_datarootdir_hack='
16283 s&@datadir@&$datadir&g
16284 s&@docdir@&$docdir&g
16285 s&@infodir@&$infodir&g
16286 s&@localedir@&$localedir&g
16287 s&@mandir@&$mandir&g
16288 s&\\\${datarootdir}&$datarootdir&g' ;;
16289 esac
16290 _ACEOF
16292 # Neutralize VPATH when `$srcdir' = `.'.
16293 # Shell code in configure.ac might set extrasub.
16294 # FIXME: do we really want to maintain this feature?
16295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16296 ac_sed_extra="$ac_vpsub
16297 $extrasub
16298 _ACEOF
16299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16300 :t
16301 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16302 s|@configure_input@|$ac_sed_conf_input|;t t
16303 s&@top_builddir@&$ac_top_builddir_sub&;t t
16304 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16305 s&@srcdir@&$ac_srcdir&;t t
16306 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16307 s&@top_srcdir@&$ac_top_srcdir&;t t
16308 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16309 s&@builddir@&$ac_builddir&;t t
16310 s&@abs_builddir@&$ac_abs_builddir&;t t
16311 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16312 $ac_datarootdir_hack
16313 "
16314 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16315 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16317 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16318 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16319 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16321 which seems to be undefined. Please make sure it is defined" >&5
16322 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16323 which seems to be undefined. Please make sure it is defined" >&2;}
16325 rm -f "$tmp/stdin"
16326 case $ac_file in
16327 -) cat "$tmp/out" && rm -f "$tmp/out";;
16328 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16329 esac \
16330 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16331 ;;
16332 :H)
16333 #
16334 # CONFIG_HEADER
16335 #
16336 if test x"$ac_file" != x-; then
16337 {
16338 $as_echo "/* $configure_input */" \
16339 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16340 } >"$tmp/config.h" \
16341 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16342 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16344 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16345 else
16346 rm -f "$ac_file"
16347 mv "$tmp/config.h" "$ac_file" \
16348 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16349 fi
16350 else
16351 $as_echo "/* $configure_input */" \
16352 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16353 || as_fn_error $? "could not create -" "$LINENO" 5
16354 fi
16355 ;;
16358 esac
16360 done # for ac_tag
16363 as_fn_exit 0
16364 _ACEOF
16365 ac_clean_files=$ac_clean_files_save
16367 test $ac_write_fail = 0 ||
16368 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16371 # configure is writing to config.log, and then calls config.status.
16372 # config.status does its own redirection, appending to config.log.
16373 # Unfortunately, on DOS this fails, as config.log is still kept open
16374 # by configure, so config.status won't be able to write to it; its
16375 # output is simply discarded. So we exec the FD to /dev/null,
16376 # effectively closing config.log, so it can be properly (re)opened and
16377 # appended to by config.status. When coming back to configure, we
16378 # need to make the FD available again.
16379 if test "$no_create" != yes; then
16380 ac_cs_success=:
16381 ac_config_status_args=
16382 test "$silent" = yes &&
16383 ac_config_status_args="$ac_config_status_args --quiet"
16384 exec 5>/dev/null
16385 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16386 exec 5>>config.log
16387 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16388 # would make configure fail if this is the last instruction.
16389 $ac_cs_success || as_fn_exit 1
16390 fi
16391 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16393 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16394 fi