configure revision 423:e1830598f0b7
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## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if 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 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_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. 47if 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 --' 51elif (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' 54else 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' 74fi 75 76# The user is always right. 77if 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 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 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 103IFS=$as_save_IFS 104 105 ;; 106esac 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. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 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. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if 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 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test 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 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 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 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 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 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and 234$0: build-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 240fi 241fi 242fi 243SHELL=${CONFIG_SHELL-/bin/sh} 244export SHELL 245# Unset more variables known to interfere with behavior of common tools. 246CLICOLOR_FORCE= GREP_OPTIONS= 247unset CLICOLOR_FORCE GREP_OPTIONS 248 249## --------------------- ## 250## M4sh Shell Functions. ## 251## --------------------- ## 252# as_fn_unset VAR 253# --------------- 254# Portably unset VAR. 255as_fn_unset () 256{ 257 { eval $1=; unset $1;} 258} 259as_unset=as_fn_unset 260 261# as_fn_set_status STATUS 262# ----------------------- 263# Set $? to STATUS, without forking. 264as_fn_set_status () 265{ 266 return $1 267} # as_fn_set_status 268 269# as_fn_exit STATUS 270# ----------------- 271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 272as_fn_exit () 273{ 274 set +e 275 as_fn_set_status $1 276 exit $1 277} # as_fn_exit 278 279# as_fn_mkdir_p 280# ------------- 281# Create "$as_dir" as a directory, including parents if necessary. 282as_fn_mkdir_p () 283{ 284 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" 323 324 325} # as_fn_mkdir_p 326# as_fn_append VAR VALUE 327# ---------------------- 328# Append the text in VALUE to the end of the definition contained in VAR. Take 329# advantage of any shell optimizations that allow amortized linear growth over 330# repeated appends, instead of the typical quadratic growth present in naive 331# implementations. 332if (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 }' 337else 338 as_fn_append () 339 { 340 eval $1=\$$1\$2 341 } 342fi # as_fn_append 343 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. 349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 350 eval 'as_fn_arith () 351 { 352 as_val=$(( $* )) 353 }' 354else 355 as_fn_arith () 356 { 357 as_val=`expr "$@" || test $? -eq 1` 358 } 359fi # as_fn_arith 360 361 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. 367as_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 377 378if expr a : '\(a\)' >/dev/null 2>&1 && 379 test "X`expr 00001 : '.*\(...\)'`" = X001; then 380 as_expr=expr 381else 382 as_expr=false 383fi 384 385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 386 as_basename=basename 387else 388 as_basename=false 389fi 390 391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 392 as_dirname=dirname 393else 394 as_dirname=false 395fi 396 397as_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'` 415 416# Avoid depending upon Character Ranges. 417as_cr_letters='abcdefghijklmnopqrstuvwxyz' 418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 419as_cr_Letters=$as_cr_letters$as_cr_LETTERS 420as_cr_digits='0123456789' 421as_cr_alnum=$as_cr_Letters$as_cr_digits 422 423 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; } 446 447 # Don't try to exec as it changes $[0], causing all sort of problems 448 # (the dirname of $[0] is not the place where we might find the 449 # original and so on. Autoconf is especially sensitive to this). 450 . "./$as_me.lineno" 451 # Exit status is that of the last command. 452 exit 453} 454 455ECHO_C= ECHO_N= ECHO_T= 456case `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';; 466esac 467 468rm -f conf$$ conf$$.exe conf$$.file 469if test -d conf$$.dir; then 470 rm -f conf$$.dir/conf$$.file 471else 472 rm -f conf$$.dir 473 mkdir conf$$.dir 2>/dev/null 474fi 475if (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 489else 490 as_ln_s='cp -p' 491fi 492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 493rmdir conf$$.dir 2>/dev/null 494 495if mkdir -p . 2>/dev/null; then 496 as_mkdir_p='mkdir -p "$as_dir"' 497else 498 test -d ./-p && rmdir ./-p 499 as_mkdir_p=false 500fi 501 502if test -x / >/dev/null 2>&1; then 503 as_test_x='test -x' 504else 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 ' 522fi 523as_executable_p=$as_test_x 524 525# Sed expression to map a string onto a valid CPP name. 526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 527 528# Sed expression to map a string onto a valid variable name. 529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 530 531 532test -n "$DJDIR" || exec 7<&0 </dev/null 533exec 6>&1 534 535# Name of the host. 536# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 537# so uname gets run too. 538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 539 540# 541# Initializations. 542# 543ac_default_prefix=/usr/local 544ac_clean_files= 545ac_config_libobj_dir=. 546LIBOBJS= 547cross_compiling=no 548subdirs= 549MFLAGS= 550MAKEFLAGS= 551 552# Identity of this package. 553PACKAGE_NAME='openjdk' 554PACKAGE_TARNAME='openjdk' 555PACKAGE_VERSION='version-0.1' 556PACKAGE_STRING='openjdk version-0.1' 557PACKAGE_BUGREPORT='build-infra-dev@openjdk.java.net' 558PACKAGE_URL='' 559 560# Factoring default headers for most tests. 561ac_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" 595 596ac_subst_vars='LTLIBOBJS 597LIBOBJS 598TEST_IN_BUILD 599LIBCXX 600LDFLAGS_JDKEXE_SUFFIX 601LDFLAGS_JDKLIB_SUFFIX 602LDFLAGS_JDKEXE 603LDFLAGS_JDKLIB 604CXXFLAGS_JDKEXE 605CXXFLAGS_JDKLIB 606CFLAGS_JDKEXE 607CFLAGS_JDKLIB 608PACKAGE_PATH 609IMAGES_MAKE_ARGS 610IMAGES_OUTPUTDIR 611JDK_MAKE_ARGS 612JDK_OUTPUTDIR 613HOTSPOT_MAKE_ARGS 614HOTSPOT_DIST 615HOTSPOT_OUTPUTDIR 616JAXWS_MAKE_ARGS 617JAXWS_DIST 618JAXWS_OUTPUTDIR 619JAXP_MAKE_ARGS 620JAXP_DIST 621JAXP_OUTPUTDIR 622CORBA_MAKE_ARGS 623CORBA_DIST 624CORBA_OUTPUTDIR 625LANGTOOLS_MAKE_ARGS 626LANGTOOLS_DIST 627LANGTOOLS_OUTPUTDIR 628CXX_O_FLAG_NONE 629CXX_O_FLAG_NORM 630CXX_O_FLAG_HI 631C_O_FLAG_NONE 632C_O_FLAG_NORM 633C_O_FLAG_HI 634DISABLE_NIMBUS 635GENERATE_DOCS 636ENABLE_DOCS 637LIBM 638USE_EXTERNAL_LIBZ 639USE_EXTERNAL_LIBGIF 640USE_EXTERNAL_LIBJPEG 641PULSE_LIBS 642PULSE_CFLAGS 643LIBPULSE_LIBS 644LIBPULSE_CFLAGS 645ALSA_LIBS 646ALSA_CFLAGS 647FREETYPE2_LIB_PATH 648USING_SYSTEM_FT_LIB 649FREETYPE2_LIBS 650FREETYPE2_CFLAGS 651CUPS_LIBS 652CUPS_CFLAGS 653OPENWIN_HOME 654X_EXTRA_LIBS 655X_LIBS 656X_PRE_LIBS 657X_CFLAGS 658XMKMF 659JAVAC_USE_MODE 660JAVAC_USE_DEPS 661JAVAC_SERVER_CORES 662JAVAC_SERVERS 663JAVAC_USE_REMOTE 664SERVER_JAVA 665BOOT_JDK_JVMARGS 666OVERRIDE_SRC_ROOT 667ADD_SRC_ROOT 668RMIC 669JAR 670JAVAH 671JAVAC_FLAGS 672JAVAC 673BOOT_JDK_SOURCETARGET 674JAVA 675BOOT_TOOLSJAR 676BOOT_RTJAR 677BOOT_JDK 678JAVA_CHECK 679JAVAC_CHECK 680ENDIAN 681SET_SHARED_LIBRARY_ORIGIN 682SET_SHARED_LIBRARY_MAPFILE 683SET_SHARED_LIBRARY_NAME 684SHARED_LIBRARY_FLAGS 685EXE_SUFFIX 686STATIC_LIBRARY_SUFFIX 687SHARED_LIBRARY_SUFFIX 688LIBRARY_PREFIX 689STATIC_LIBRARY 690SHARED_LIBRARY 691OBJ_SUFFIX 692USE_PRECOMPILED_HEADER 693ARCH_DATA_MODEL 694LP64 695BUILD_LOG_WRAPPER 696BUILD_LOG 697CCACHE 698UNCYGDRIVE 699MCS 700STRIP 701NM 702ASFLAGS 703AS 704CXXCPP 705CPP 706COMPILER_TYPE 707RC_FLAGS 708DUMPBIN 709WINAR 710RC 711MT 712WINLD 713ARFLAGS 714AR 715LDEXECXX 716LDCXX 717LDEXE 718LD 719ac_ct_OBJC 720OBJCFLAGS 721OBJC 722ac_ct_CXX 723CXXFLAGS 724CXX 725OBJEXT 726EXEEXT 727ac_ct_CC 728CPPFLAGS 729LDFLAGS 730CFLAGS 731CC 732HOSTCXX 733HOSTCC 734HOST_CXX 735HOST_CC 736DEFINE_CROSS_COMPILE_ARCH 737AR_OUT_OPTION 738LD_OUT_OPTION 739EXE_OUT_OPTION 740CC_OUT_OPTION 741SYS_ROOT 742BDEPS_FTP 743BDEPS_UNZIP 744PKG_CONFIG 745JDK_TOPDIR 746HOTSPOT_TOPDIR 747JAXWS_TOPDIR 748JAXP_TOPDIR 749CORBA_TOPDIR 750LANGTOOLS_TOPDIR 751OUTPUT_ROOT 752SPEC 753MSVCR100DLL 754CHECK_FOR_VCINSTALLDIR 755SETUPDEVENV 756COOKED_BUILD_NUMBER 757FULL_VERSION 758RELEASE 759JDK_VERSION 760RUNTIME_NAME 761COPYRIGHT_YEAR 762COMPANY_NAME 763JDK_RC_PLATFORM_NAME 764PRODUCT_SUFFIX 765PRODUCT_NAME 766LAUNCHER_NAME 767MILESTONE 768JDK_BUILD_NUMBER 769JDK_UPDATE_VERSION 770JDK_MICRO_VERSION 771JDK_MINOR_VERSION 772JDK_MAJOR_VERSION 773BUILD_VARIANT_RELEASE 774DEBUG_CLASSFILES 775FASTDEBUG 776VARIANT 777DEBUG_LEVEL 778JVM_VARIANT_ZEROSHARK 779JVM_VARIANT_ZERO 780JVM_VARIANT_KERNEL 781JVM_VARIANT_CLIENT 782JVM_VARIANT_SERVER 783JVM_VARIANTS 784BUILD_HEADLESS_ONLY 785BUILD_HEADLESS 786SUPPORT_HEADFUL 787SUPPORT_HEADLESS 788JDK_VARIANT 789MINIMIZE_RAM_USAGE 790JAVASE_EMBEDDED 791JIGSAW 792SET_OPENJDK 793PATH_SEP 794CYGPATH 795SRC_ROOT 796MEMORY_SIZE 797CONCURRENT_BUILD_JOBS 798NUM_CORES 799DATE_WHEN_CONFIGURED 800LEGACY_BUILD_CPU3 801LEGACY_BUILD_CPU2 802LEGACY_BUILD_CPU1 803BUILD_CPU_ENDIAN 804BUILD_CPU_BITS 805BUILD_CPU_ARCH 806BUILD_CPU 807LEGACY_BUILD_OS_API 808BUILD_OS_API 809BUILD_OS_FAMILY 810BUILD_OS 811LEGACY_HOST_CPU3 812LEGACY_HOST_CPU2 813LEGACY_HOST_CPU1 814HOST_CPU_ENDIAN 815HOST_CPU_BITS 816HOST_CPU_ARCH 817HOST_CPU 818LEGACY_HOST_OS_API 819HOST_OS_API 820HOST_OS_FAMILY 821HOST_OS 822BUILD 823HOST 824host_os 825host_vendor 826host_cpu 827host 828build_os 829build_vendor 830build_cpu 831build 832FILE 833EXPR 834READELF 835OTOOL 836LDD 837UNZIP 838ZIP 839XARGS 840WC 841TOUCH 842TR 843TEE 844TAIL 845TAR 846SORT 847SH 848SED 849RM 850THEPWDCMD 851PRINTF 852NAWK 853MV 854MKDIR 855MAKE 856LS 857LN 858HEAD 859FIND_DELETE 860FIND 861FGREP 862EGREP 863GREP 864ECHO 865DIFF 866DF 867DATE 868CUT 869CPIO 870CP 871CHMOD 872CAT 873AWK 874READLINK 875CONFIGURE_COMMAND_LINE 876PKGHANDLER 877target_alias 878host_alias 879build_alias 880LIBS 881ECHO_T 882ECHO_N 883ECHO_C 884DEFS 885mandir 886localedir 887libdir 888psdir 889pdfdir 890dvidir 891htmldir 892infodir 893docdir 894oldincludedir 895includedir 896localstatedir 897sharedstatedir 898sysconfdir 899datadir 900datarootdir 901libexecdir 902sbindir 903bindir 904program_transform_name 905prefix 906exec_prefix 907PACKAGE_URL 908PACKAGE_BUGREPORT 909PACKAGE_STRING 910PACKAGE_VERSION 911PACKAGE_TARNAME 912PACKAGE_NAME 913PATH_SEPARATOR 914SHELL' 915ac_subst_files='' 916ac_user_opts=' 917enable_option_checking 918with_data_model 919with_num_cores 920with_memory_size 921enable_openjdk 922enable_jigsaw 923with_jdk_variant 924enable_headful 925with_jvm_variants 926enable_debug 927with_debug_level 928with_msvcr100dll 929with_builddeps_conf 930with_builddeps_server 931with_builddeps_dir 932with_builddeps_group 933enable_list_builddeps 934with_sys_root 935enable_ccache 936with_ccache_dir 937enable_precompiled_headers 938with_boot_jdk 939with_add_source_root 940with_override_source_root 941with_adds_and_overrides 942with_override_langtools 943with_override_corba 944with_override_jaxp 945with_override_jaxws 946with_override_hotspot 947with_override_jdk 948with_boot_jdk_jvmargs 949with_server_java 950enable_javac_server 951with_javac_server_cores 952enable_javac_deps 953enable_javac_multi_core 954enable_macosx_runtime_support 955with_x 956with_cups 957with_cups_include 958with_cups_lib 959with_freetype 960with_alsa 961with_alsa_include 962with_alsa_lib 963with_pulse 964with_pulse_include 965with_pulse_lib 966enable_docs 967enable_nimbus 968enable_static_link_stdc__ 969enable_hotspot_test_in_build 970' 971 ac_precious_vars='build_alias 972host_alias 973target_alias 974PKG_CONFIG 975CC 976CFLAGS 977LDFLAGS 978LIBS 979CPPFLAGS 980CXX 981CXXFLAGS 982CCC 983OBJC 984OBJCFLAGS 985CPP 986CXXCPP 987XMKMF 988FREETYPE2_CFLAGS 989FREETYPE2_LIBS 990ALSA_CFLAGS 991ALSA_LIBS 992LIBPULSE_CFLAGS 993LIBPULSE_LIBS' 994 995 996# Initialize some variables set by options. 997ac_init_help= 998ac_init_version=false 999ac_unrecognized_opts= 1000ac_unrecognized_sep= 1001# The variables have the same names as the options, with 1002# dashes changed to underlines. 1003cache_file=/dev/null 1004exec_prefix=NONE 1005no_create= 1006no_recursion= 1007prefix=NONE 1008program_prefix=NONE 1009program_suffix=NONE 1010program_transform_name=s,x,x, 1011silent= 1012site= 1013srcdir= 1014verbose= 1015x_includes=NONE 1016x_libraries=NONE 1017 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.) 1024bindir='${exec_prefix}/bin' 1025sbindir='${exec_prefix}/sbin' 1026libexecdir='${exec_prefix}/libexec' 1027datarootdir='${prefix}/share' 1028datadir='${datarootdir}' 1029sysconfdir='${prefix}/etc' 1030sharedstatedir='${prefix}/com' 1031localstatedir='${prefix}/var' 1032includedir='${prefix}/include' 1033oldincludedir='/usr/include' 1034docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1035infodir='${datarootdir}/info' 1036htmldir='${docdir}' 1037dvidir='${docdir}' 1038pdfdir='${docdir}' 1039psdir='${docdir}' 1040libdir='${exec_prefix}/lib' 1041localedir='${datarootdir}/locale' 1042mandir='${datarootdir}/man' 1043 1044ac_prev= 1045ac_dashdash= 1046for ac_option 1047do 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 1054 1055 case $ac_option in 1056 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1057 *=) ac_optarg= ;; 1058 *) ac_optarg=yes ;; 1059 esac 1060 1061 # Accept the important Cygnus configure options, so we can diagnose typos. 1062 1063 case $ac_dashdash$ac_option in 1064 --) 1065 ac_dashdash=yes ;; 1066 1067 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1068 ac_prev=bindir ;; 1069 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1070 bindir=$ac_optarg ;; 1071 1072 -build | --build | --buil | --bui | --bu) 1073 ac_prev=build_alias ;; 1074 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1075 build_alias=$ac_optarg ;; 1076 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 ;; 1083 1084 --config-cache | -C) 1085 cache_file=config.cache ;; 1086 1087 -datadir | --datadir | --datadi | --datad) 1088 ac_prev=datadir ;; 1089 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1090 datadir=$ac_optarg ;; 1091 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 ;; 1098 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 ;; 1114 1115 -docdir | --docdir | --docdi | --doc | --do) 1116 ac_prev=docdir ;; 1117 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1118 docdir=$ac_optarg ;; 1119 1120 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1121 ac_prev=dvidir ;; 1122 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1123 dvidir=$ac_optarg ;; 1124 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 ;; 1140 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 ;; 1149 1150 -gas | --gas | --ga | --g) 1151 # Obsolete; use --with-gas. 1152 with_gas=yes ;; 1153 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 ;; 1160 1161 -host | --host | --hos | --ho) 1162 ac_prev=host_alias ;; 1163 -host=* | --host=* | --hos=* | --ho=*) 1164 host_alias=$ac_optarg ;; 1165 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 ;; 1171 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 ;; 1178 1179 -infodir | --infodir | --infodi | --infod | --info | --inf) 1180 ac_prev=infodir ;; 1181 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1182 infodir=$ac_optarg ;; 1183 1184 -libdir | --libdir | --libdi | --libd) 1185 ac_prev=libdir ;; 1186 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1187 libdir=$ac_optarg ;; 1188 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 ;; 1195 1196 -localedir | --localedir | --localedi | --localed | --locale) 1197 ac_prev=localedir ;; 1198 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1199 localedir=$ac_optarg ;; 1200 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 ;; 1207 1208 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1209 ac_prev=mandir ;; 1210 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1211 mandir=$ac_optarg ;; 1212 1213 -nfp | --nfp | --nf) 1214 # Obsolete; use --without-fp. 1215 with_fp=no ;; 1216 1217 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1218 | --no-cr | --no-c | -n) 1219 no_create=yes ;; 1220 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 ;; 1224 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 ;; 1233 1234 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1235 ac_prev=prefix ;; 1236 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1237 prefix=$ac_optarg ;; 1238 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 ;; 1245 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 ;; 1252 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 ;; 1269 1270 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1271 ac_prev=pdfdir ;; 1272 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1273 pdfdir=$ac_optarg ;; 1274 1275 -psdir | --psdir | --psdi | --psd | --ps) 1276 ac_prev=psdir ;; 1277 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1278 psdir=$ac_optarg ;; 1279 1280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1281 | -silent | --silent | --silen | --sile | --sil) 1282 silent=yes ;; 1283 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 ;; 1289 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 ;; 1300 1301 -site | --site | --sit) 1302 ac_prev=site ;; 1303 -site=* | --site=* | --sit=*) 1304 site=$ac_optarg ;; 1305 1306 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1307 ac_prev=srcdir ;; 1308 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1309 srcdir=$ac_optarg ;; 1310 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 ;; 1317 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 ;; 1322 1323 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1324 verbose=yes ;; 1325 1326 -version | --version | --versio | --versi | --vers | -V) 1327 ac_init_version=: ;; 1328 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 ;; 1344 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 ;; 1360 1361 --x) 1362 # Obsolete; use --with-x. 1363 with_x=yes ;; 1364 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 ;; 1371 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 ;; 1378 1379 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1380Try \`$0 --help' for more information" 1381 ;; 1382 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 ;; 1392 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 ;; 1400 1401 esac 1402done 1403 1404if test -n "$ac_prev"; then 1405 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1406 as_fn_error $? "missing argument to $ac_option" 1407fi 1408 1409if 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 1415fi 1416 1417# Check all directory arguments for consistency. 1418for 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 1422do 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" 1436done 1437 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. 1441build=$build_alias 1442host=$host_alias 1443target=$target_alias 1444 1445# FIXME: To remove some day. 1446if 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 1454fi 1455 1456ac_tool_prefix= 1457test -n "$host_alias" && ac_tool_prefix=$host_alias- 1458 1459test "$silent" = yes && exec 6>/dev/null 1460 1461 1462ac_pwd=`pwd` && test -n "$ac_pwd" && 1463ac_ls_di=`ls -di .` && 1464ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1465 as_fn_error $? "working directory cannot be determined" 1466test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1467 as_fn_error $? "pwd does not report name of working directory" 1468 1469 1470# Find the source files, if location was not specified. 1471if 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 1501else 1502 ac_srcdir_defaulted=no 1503fi 1504if 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" 1507fi 1508ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1509ac_abs_confdir=`( 1510 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1511 pwd)` 1512# When building in place, set srcdir=. 1513if test "$ac_abs_confdir" = "$ac_pwd"; then 1514 srcdir=. 1515fi 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. 1519case $srcdir in 1520*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1521esac 1522for 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} 1527done 1528 1529# 1530# Report the --help message. 1531# 1532if 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. 1537 1538Usage: $0 [OPTION]... [VAR=VALUE]... 1539 1540To assign environment variables (e.g., CC, CFLAGS...), specify them as 1541VAR=VALUE. See below for descriptions of some of the useful variables. 1542 1543Defaults for the options are specified in brackets. 1544 1545Configuration: 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 \`..'] 1555 1556Installation 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] 1561 1562By default, \`make install' will install all the files in 1563\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1564an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1565for instance \`--prefix=\$HOME'. 1566 1567For better control, use the options below. 1568 1569Fine 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 1590 1591 cat <<\_ACEOF 1592 1593X features: 1594 --x-includes=DIR X include files are in DIR 1595 --x-libraries=DIR X library files are in DIR 1596 1597System 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 1601fi 1602 1603if 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 1608 1609Optional 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] 1643 1644Optional 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 1721 1722Some 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 1748 1749Use these variables to override the choices made by `configure' or to help 1750it to find libraries and programs with nonstandard names/locations. 1751 1752Report bugs to <build-infra-dev@openjdk.java.net>. 1753_ACEOF 1754ac_status=$? 1755fi 1756 1757if 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=. 1764 1765case "$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 ;; 1775esac 1776ac_abs_top_builddir=$ac_pwd 1777ac_abs_builddir=$ac_pwd$ac_dir_suffix 1778# for backward compatibility: 1779ac_top_builddir=$ac_top_build_prefix 1780 1781case $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 ;; 1794esac 1795ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1796 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 1810fi 1811 1812test -n "$ac_init_help" && exit $ac_status 1813if $ac_init_version; then 1814 cat <<\_ACEOF 1815openjdk configure version-0.1 1816generated by GNU Autoconf 2.67 1817 1818Copyright (C) 2010 Free Software Foundation, Inc. 1819This configure script is free software; the Free Software Foundation 1820gives unlimited permission to copy, distribute and modify it. 1821_ACEOF 1822 exit 1823fi 1824 1825## ------------------------ ## 1826## Autoconf initialization. ## 1827## ------------------------ ## 1828 1829# ac_fn_c_try_compile LINENO 1830# -------------------------- 1831# Try to compile conftest.$ac_ext, and return whether this succeeded. 1832ac_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" 1837case "(($ac_try" in 1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1839 *) ac_try_echo=$ac_try;; 1840esac 1841eval 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 1856else 1857 $as_echo "$as_me: failed program was:" >&5 1858sed 's/^/| /' conftest.$ac_ext >&5 1859 1860 ac_retval=1 1861fi 1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1863 as_fn_set_status $ac_retval 1864 1865} # ac_fn_c_try_compile 1866 1867# ac_fn_cxx_try_compile LINENO 1868# ---------------------------- 1869# Try to compile conftest.$ac_ext, and return whether this succeeded. 1870ac_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" 1875case "(($ac_try" in 1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1877 *) ac_try_echo=$ac_try;; 1878esac 1879eval 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 1894else 1895 $as_echo "$as_me: failed program was:" >&5 1896sed 's/^/| /' conftest.$ac_ext >&5 1897 1898 ac_retval=1 1899fi 1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1901 as_fn_set_status $ac_retval 1902 1903} # ac_fn_cxx_try_compile 1904 1905# ac_fn_objc_try_compile LINENO 1906# ----------------------------- 1907# Try to compile conftest.$ac_ext, and return whether this succeeded. 1908ac_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" 1913case "(($ac_try" in 1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1915 *) ac_try_echo=$ac_try;; 1916esac 1917eval 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 1932else 1933 $as_echo "$as_me: failed program was:" >&5 1934sed 's/^/| /' conftest.$ac_ext >&5 1935 1936 ac_retval=1 1937fi 1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1939 as_fn_set_status $ac_retval 1940 1941} # ac_fn_objc_try_compile 1942 1943# ac_fn_c_try_cpp LINENO 1944# ---------------------- 1945# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1946ac_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" 1950case "(($ac_try" in 1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1952 *) ac_try_echo=$ac_try;; 1953esac 1954eval 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 1969else 1970 $as_echo "$as_me: failed program was:" >&5 1971sed 's/^/| /' conftest.$ac_ext >&5 1972 1973 ac_retval=1 1974fi 1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1976 as_fn_set_status $ac_retval 1977 1978} # ac_fn_c_try_cpp 1979 1980# ac_fn_cxx_try_cpp LINENO 1981# ------------------------ 1982# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1983ac_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" 1987case "(($ac_try" in 1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1989 *) ac_try_echo=$ac_try;; 1990esac 1991eval 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 2006else 2007 $as_echo "$as_me: failed program was:" >&5 2008sed 's/^/| /' conftest.$ac_ext >&5 2009 2010 ac_retval=1 2011fi 2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2013 as_fn_set_status $ac_retval 2014 2015} # ac_fn_cxx_try_cpp 2016 2017# ac_fn_cxx_try_link LINENO 2018# ------------------------- 2019# Try to link conftest.$ac_ext, and return whether this succeeded. 2020ac_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" 2025case "(($ac_try" in 2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2027 *) ac_try_echo=$ac_try;; 2028esac 2029eval 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 2047else 2048 $as_echo "$as_me: failed program was:" >&5 2049sed 's/^/| /' conftest.$ac_ext >&5 2050 2051 ac_retval=1 2052fi 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 2060 2061} # ac_fn_cxx_try_link 2062 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. 2067ac_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" 2071case "(($ac_try" in 2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2073 *) ac_try_echo=$ac_try;; 2074esac 2075eval 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;; 2084esac 2085eval 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 2092else 2093 $as_echo "$as_me: program exited with status $ac_status" >&5 2094 $as_echo "$as_me: failed program was:" >&5 2095sed 's/^/| /' conftest.$ac_ext >&5 2096 2097 ac_retval=$ac_status 2098fi 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 2102 2103} # ac_fn_cxx_try_run 2104 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 2110ac_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. 2115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2116/* end confdefs.h. */ 2117$4 2118int 2119main () 2120{ 2121static int test_array [1 - 2 * !(($2) >= 0)]; 2122test_array [0] = 0 2123 2124 ; 2125 return 0; 2126} 2127_ACEOF 2128if 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 2134int 2135main () 2136{ 2137static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2138test_array [0] = 0 2139 2140 ; 2141 return 0; 2142} 2143_ACEOF 2144if ac_fn_cxx_try_compile "$LINENO"; then : 2145 ac_hi=$ac_mid; break 2146else 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 2153fi 2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2155 done 2156else 2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2158/* end confdefs.h. */ 2159$4 2160int 2161main () 2162{ 2163static int test_array [1 - 2 * !(($2) < 0)]; 2164test_array [0] = 0 2165 2166 ; 2167 return 0; 2168} 2169_ACEOF 2170if 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 2176int 2177main () 2178{ 2179static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2180test_array [0] = 0 2181 2182 ; 2183 return 0; 2184} 2185_ACEOF 2186if ac_fn_cxx_try_compile "$LINENO"; then : 2187 ac_lo=$ac_mid; break 2188else 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 2195fi 2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2197 done 2198else 2199 ac_lo= ac_hi= 2200fi 2201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2202fi 2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2204# Binary search between lo and hi bounds. 2205while 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 2210int 2211main () 2212{ 2213static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2214test_array [0] = 0 2215 2216 ; 2217 return 0; 2218} 2219_ACEOF 2220if ac_fn_cxx_try_compile "$LINENO"; then : 2221 ac_hi=$ac_mid 2222else 2223 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2224fi 2225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2226done 2227case $ac_lo in #(( 2228?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2229'') ac_retval=1 ;; 2230esac 2231 else 2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2233/* end confdefs.h. */ 2234$4 2235static long int longval () { return $2; } 2236static unsigned long int ulongval () { return $2; } 2237#include <stdio.h> 2238#include <stdlib.h> 2239int 2240main () 2241{ 2242 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; 2263 2264 ; 2265 return 0; 2266} 2267_ACEOF 2268if ac_fn_cxx_try_run "$LINENO"; then : 2269 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2270else 2271 ac_retval=1 2272fi 2273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2274 conftest.$ac_objext conftest.beam conftest.$ac_ext 2275rm -f conftest.val 2276 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 2280 2281} # ac_fn_cxx_compute_int 2282 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. 2287ac_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; } 2292if eval "test \"\${$3+set}\"" = set; then : 2293 $as_echo_n "(cached) " >&6 2294else 2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2296/* end confdefs.h. */ 2297$4 2298#include <$2> 2299_ACEOF 2300if ac_fn_cxx_try_compile "$LINENO"; then : 2301 eval "$3=yes" 2302else 2303 eval "$3=no" 2304fi 2305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2306fi 2307eval 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;} 2311 2312} # ac_fn_cxx_check_header_compile 2313 2314# ac_fn_cxx_check_func LINENO FUNC VAR 2315# ------------------------------------ 2316# Tests whether FUNC exists, setting the cache variable VAR accordingly 2317ac_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; } 2322if eval "test \"\${$3+set}\"" = set; then : 2323 $as_echo_n "(cached) " >&6 2324else 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 2330 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. */ 2335 2336#ifdef __STDC__ 2337# include <limits.h> 2338#else 2339# include <assert.h> 2340#endif 2341 2342#undef $2 2343 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 2348extern "C" 2349#endif 2350char $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 2355choke me 2356#endif 2357 2358int 2359main () 2360{ 2361return $2 (); 2362 ; 2363 return 0; 2364} 2365_ACEOF 2366if ac_fn_cxx_try_link "$LINENO"; then : 2367 eval "$3=yes" 2368else 2369 eval "$3=no" 2370fi 2371rm -f core conftest.err conftest.$ac_objext \ 2372 conftest$ac_exeext conftest.$ac_ext 2373fi 2374eval 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;} 2378 2379} # ac_fn_cxx_check_func 2380 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. 2386ac_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; } 2392if eval "test \"\${$3+set}\"" = set; then : 2393 $as_echo_n "(cached) " >&6 2394fi 2395eval ac_res=\$$3 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2397$as_echo "$ac_res" >&6; } 2398else 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; } 2402cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2403/* end confdefs.h. */ 2404$4 2405#include <$2> 2406_ACEOF 2407if ac_fn_c_try_compile "$LINENO"; then : 2408 ac_header_compiler=yes 2409else 2410 ac_header_compiler=no 2411fi 2412rm -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; } 2415 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; } 2419cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2420/* end confdefs.h. */ 2421#include <$2> 2422_ACEOF 2423if ac_fn_c_try_cpp "$LINENO"; then : 2424 ac_header_preproc=yes 2425else 2426 ac_header_preproc=no 2427fi 2428rm -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; } 2431 2432# So? What about this header? 2433case $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 ;; 2456esac 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2458$as_echo_n "checking for $2... " >&6; } 2459if eval "test \"\${$3+set}\"" = set; then : 2460 $as_echo_n "(cached) " >&6 2461else 2462 eval "$3=\$ac_header_compiler" 2463fi 2464eval ac_res=\$$3 2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2466$as_echo "$ac_res" >&6; } 2467fi 2468 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2469 2470} # ac_fn_c_check_header_mongrel 2471 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. 2477ac_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; } 2483if eval "test \"\${$3+set}\"" = set; then : 2484 $as_echo_n "(cached) " >&6 2485fi 2486eval ac_res=\$$3 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2488$as_echo "$ac_res" >&6; } 2489else 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; } 2493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2494/* end confdefs.h. */ 2495$4 2496#include <$2> 2497_ACEOF 2498if ac_fn_cxx_try_compile "$LINENO"; then : 2499 ac_header_compiler=yes 2500else 2501 ac_header_compiler=no 2502fi 2503rm -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; } 2506 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; } 2510cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2511/* end confdefs.h. */ 2512#include <$2> 2513_ACEOF 2514if ac_fn_cxx_try_cpp "$LINENO"; then : 2515 ac_header_preproc=yes 2516else 2517 ac_header_preproc=no 2518fi 2519rm -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; } 2522 2523# So? What about this header? 2524case $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 ;; 2547esac 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2549$as_echo_n "checking for $2... " >&6; } 2550if eval "test \"\${$3+set}\"" = set; then : 2551 $as_echo_n "(cached) " >&6 2552else 2553 eval "$3=\$ac_header_compiler" 2554fi 2555eval ac_res=\$$3 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2557$as_echo "$ac_res" >&6; } 2558fi 2559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2560 2561} # ac_fn_cxx_check_header_mongrel 2562cat >config.log <<_ACEOF 2563This file contains any messages produced by compilers while 2564running configure, to aid debugging if configure makes a mistake. 2565 2566It was created by openjdk $as_me version-0.1, which was 2567generated by GNU Autoconf 2.67. Invocation command line was 2568 2569 $ $0 $@ 2570 2571_ACEOF 2572exec 5>>config.log 2573{ 2574cat <<_ASUNAME 2575## --------- ## 2576## Platform. ## 2577## --------- ## 2578 2579hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2580uname -m = `(uname -m) 2>/dev/null || echo unknown` 2581uname -r = `(uname -r) 2>/dev/null || echo unknown` 2582uname -s = `(uname -s) 2>/dev/null || echo unknown` 2583uname -v = `(uname -v) 2>/dev/null || echo unknown` 2584 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` 2587 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` 2595 2596_ASUNAME 2597 2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2599for as_dir in $PATH 2600do 2601 IFS=$as_save_IFS 2602 test -z "$as_dir" && as_dir=. 2603 $as_echo "PATH: $as_dir" 2604 done 2605IFS=$as_save_IFS 2606 2607} >&5 2608 2609cat >&5 <<_ACEOF 2610 2611 2612## ----------- ## 2613## Core tests. ## 2614## ----------- ## 2615 2616_ACEOF 2617 2618 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. 2624ac_configure_args= 2625ac_configure_args0= 2626ac_configure_args1= 2627ac_must_keep_next=false 2628for ac_pass in 1 2 2629do 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 2663done 2664{ ac_configure_args0=; unset ac_configure_args0;} 2665{ ac_configure_args1=; unset ac_configure_args1;} 2666 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. 2672trap 'exit_status=$? 2673 # Save into config.log some information that might help in debugging. 2674 { 2675 echo 2676 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 2712 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 2726 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 2742 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 2759for ac_signal in 1 2 13 15; do 2760 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2761done 2762ac_signal=0 2763 2764# confdefs.h avoids OS command line length limits that DEFS can exceed. 2765rm -f -r conftest* confdefs.h 2766 2767$as_echo "/* confdefs.h */" > confdefs.h 2768 2769# Predefined preprocessor variables. 2770 2771cat >>confdefs.h <<_ACEOF 2772#define PACKAGE_NAME "$PACKAGE_NAME" 2773_ACEOF 2774 2775cat >>confdefs.h <<_ACEOF 2776#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2777_ACEOF 2778 2779cat >>confdefs.h <<_ACEOF 2780#define PACKAGE_VERSION "$PACKAGE_VERSION" 2781_ACEOF 2782 2783cat >>confdefs.h <<_ACEOF 2784#define PACKAGE_STRING "$PACKAGE_STRING" 2785_ACEOF 2786 2787cat >>confdefs.h <<_ACEOF 2788#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2789_ACEOF 2790 2791cat >>confdefs.h <<_ACEOF 2792#define PACKAGE_URL "$PACKAGE_URL" 2793_ACEOF 2794 2795 2796# Let the site file select an alternate cache file if it wants to. 2797# Prefer an explicitly selected file to automatically selected ones. 2798ac_site_file1=NONE 2799ac_site_file2=NONE 2800if 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 2807elif test "x$prefix" != xNONE; then 2808 ac_site_file1=$prefix/share/config.site 2809 ac_site_file2=$prefix/etc/config.site 2810else 2811 ac_site_file1=$ac_default_prefix/share/config.site 2812 ac_site_file2=$ac_default_prefix/etc/config.site 2813fi 2814for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2815do 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;} 2824as_fn_error $? "failed to load site script $ac_site_file 2825See \`config.log' for more details" "$LINENO" 5 ; } 2826 fi 2827done 2828 2829if 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 2840else 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 2844fi 2845 2846# Check that the precious variables saved in the cache have kept the same 2847# value. 2848ac_cache_corrupted=false 2849for 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 2895done 2896if $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 2902fi 2903## -------------------- ## 2904## Main body of script. ## 2905## -------------------- ## 2906 2907ac_ext=c 2908ac_cpp='$CPP $CPPFLAGS' 2909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2911ac_compiler_gnu=$ac_cv_c_compiler_gnu 2912 2913 2914 2915ac_aux_dir= 2916for 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 2930done 2931if 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 2933fi 2934 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. 2939ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2940ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2941ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2942 2943 2944 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. 2967 2968# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 2969# ---------------------------------- 2970# PKG_PROG_PKG_CONFIG 2971 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# -------------------------------------------------------------- 2982 2983 2984 2985# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 2986# --------------------------------------------- 2987# _PKG_CONFIG 2988 2989# _PKG_SHORT_ERRORS_SUPPORTED 2990# ----------------------------- 2991# _PKG_SHORT_ERRORS_SUPPORTED 2992 2993 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 3005 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# 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 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# 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095# Fixes paths on windows hosts to be mixed mode short. 3096 3097 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# 3122 3123 3124 3125 3126 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# 3151 3152function 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= 3157 3158 for ac_prog in apt-get yum port pkgutil pkgadd 3159do 3160 # Extract the first word of "$ac_prog", so it can be a program name with args. 3161set 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; } 3164if test "${ac_cv_prog_PKGHANDLER+set}" = set; then : 3165 $as_echo_n "(cached) " >&6 3166else 3167 if test -n "$PKGHANDLER"; then 3168 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 3169else 3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3171for as_dir in $PATH 3172do 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 3181done 3182 done 3183IFS=$as_save_IFS 3184 3185fi 3186fi 3187PKGHANDLER=$ac_cv_prog_PKGHANDLER 3188if test -n "$PKGHANDLER"; then 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 3190$as_echo "$PKGHANDLER" >&6; } 3191else 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3193$as_echo "no" >&6; } 3194fi 3195 3196 3197 test -n "$PKGHANDLER" && break 3198done 3199 3200 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 3215 3216 if test "x$PKGHANDLER_COMMAND" != x; then 3217 HELP_MSG="Try running '$PKGHANDLER_COMMAND'." 3218 fi 3219} 3220 3221function 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} 3243 3244function 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} 3266 3267function port_help { 3268 PKGHANDLER_COMMAND="" 3269} 3270 3271function pkgutil_help { 3272 PKGHANDLER_COMMAND="" 3273} 3274 3275function pkgadd_help { 3276 PKGHANDLER_COMMAND="" 3277} 3278 3279 3280# Save the command line. Do this very early, before it is lost by calling autoconf macros. 3281CONFIGURE_COMMAND_LINE="$@" 3282 3283 3284# Locate the directory of this script. 3285SCRIPT="$0" 3286 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. 3292set 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; } 3295if test "${ac_cv_path_READLINK+set}" = set; then : 3296 $as_echo_n "(cached) " >&6 3297else 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 3304for as_dir in $PATH 3305do 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 3314done 3315 done 3316IFS=$as_save_IFS 3317 3318 ;; 3319esac 3320fi 3321READLINK=$ac_cv_path_READLINK 3322if test -n "$READLINK"; then 3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 3324$as_echo "$READLINK" >&6; } 3325else 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3327$as_echo "no" >&6; } 3328fi 3329 3330 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 3342 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 3367 3368AUTOCONF_DIR=`dirname $0` 3369 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. 3375for ac_prog in gawk mawk nawk awk 3376do 3377 # Extract the first word of "$ac_prog", so it can be a program name with args. 3378set 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; } 3381if test "${ac_cv_prog_AWK+set}" = set; then : 3382 $as_echo_n "(cached) " >&6 3383else 3384 if test -n "$AWK"; then 3385 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3386else 3387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3388for as_dir in $PATH 3389do 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 3398done 3399 done 3400IFS=$as_save_IFS 3401 3402fi 3403fi 3404AWK=$ac_cv_prog_AWK 3405if test -n "$AWK"; then 3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3407$as_echo "$AWK" >&6; } 3408else 3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3410$as_echo "no" >&6; } 3411fi 3412 3413 3414 test -n "$AWK" && break 3415done 3416 3417 3418 # Test that variable AWK is not empty. 3419 if test "" = "$AWK"; then as_fn_error $? "Could not find awk !" "$LINENO" 5 ; fi 3420 3421# Extract the first word of "cat", so it can be a program name with args. 3422set 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; } 3425if test "${ac_cv_path_CAT+set}" = set; then : 3426 $as_echo_n "(cached) " >&6 3427else 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 3434for as_dir in $PATH 3435do 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 3444done 3445 done 3446IFS=$as_save_IFS 3447 3448 ;; 3449esac 3450fi 3451CAT=$ac_cv_path_CAT 3452if test -n "$CAT"; then 3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 3454$as_echo "$CAT" >&6; } 3455else 3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3457$as_echo "no" >&6; } 3458fi 3459 3460 3461 3462 # Test that variable CAT is not empty. 3463 if test "" = "$CAT"; then as_fn_error $? "Could not find cat !" "$LINENO" 5 ; fi 3464 3465# Extract the first word of "chmod", so it can be a program name with args. 3466set 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; } 3469if test "${ac_cv_path_CHMOD+set}" = set; then : 3470 $as_echo_n "(cached) " >&6 3471else 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 3478for as_dir in $PATH 3479do 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 3488done 3489 done 3490IFS=$as_save_IFS 3491 3492 ;; 3493esac 3494fi 3495CHMOD=$ac_cv_path_CHMOD 3496if test -n "$CHMOD"; then 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 3498$as_echo "$CHMOD" >&6; } 3499else 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3501$as_echo "no" >&6; } 3502fi 3503 3504 3505 3506 # Test that variable CHMOD is not empty. 3507 if test "" = "$CHMOD"; then as_fn_error $? "Could not find chmod !" "$LINENO" 5 ; fi 3508 3509# Extract the first word of "cp", so it can be a program name with args. 3510set 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; } 3513if test "${ac_cv_path_CP+set}" = set; then : 3514 $as_echo_n "(cached) " >&6 3515else 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 3522for as_dir in $PATH 3523do 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 3532done 3533 done 3534IFS=$as_save_IFS 3535 3536 ;; 3537esac 3538fi 3539CP=$ac_cv_path_CP 3540if test -n "$CP"; then 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 3542$as_echo "$CP" >&6; } 3543else 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3545$as_echo "no" >&6; } 3546fi 3547 3548 3549 3550 # Test that variable CP is not empty. 3551 if test "" = "$CP"; then as_fn_error $? "Could not find cp !" "$LINENO" 5 ; fi 3552 3553# Extract the first word of "cpio", so it can be a program name with args. 3554set 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; } 3557if test "${ac_cv_path_CPIO+set}" = set; then : 3558 $as_echo_n "(cached) " >&6 3559else 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 3566for as_dir in $PATH 3567do 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 3576done 3577 done 3578IFS=$as_save_IFS 3579 3580 ;; 3581esac 3582fi 3583CPIO=$ac_cv_path_CPIO 3584if test -n "$CPIO"; then 3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 3586$as_echo "$CPIO" >&6; } 3587else 3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3589$as_echo "no" >&6; } 3590fi 3591 3592 3593 3594 # Test that variable CPIO is not empty. 3595 if test "" = "$CPIO"; then as_fn_error $? "Could not find cpio !" "$LINENO" 5 ; fi 3596 3597# Extract the first word of "cut", so it can be a program name with args. 3598set 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; } 3601if test "${ac_cv_path_CUT+set}" = set; then : 3602 $as_echo_n "(cached) " >&6 3603else 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 3610for as_dir in $PATH 3611do 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 3620done 3621 done 3622IFS=$as_save_IFS 3623 3624 ;; 3625esac 3626fi 3627CUT=$ac_cv_path_CUT 3628if test -n "$CUT"; then 3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 3630$as_echo "$CUT" >&6; } 3631else 3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3633$as_echo "no" >&6; } 3634fi 3635 3636 3637 3638 # Test that variable CUT is not empty. 3639 if test "" = "$CUT"; then as_fn_error $? "Could not find cut !" "$LINENO" 5 ; fi 3640 3641# Extract the first word of "date", so it can be a program name with args. 3642set 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; } 3645if test "${ac_cv_path_DATE+set}" = set; then : 3646 $as_echo_n "(cached) " >&6 3647else 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 3654for as_dir in $PATH 3655do 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 3664done 3665 done 3666IFS=$as_save_IFS 3667 3668 ;; 3669esac 3670fi 3671DATE=$ac_cv_path_DATE 3672if test -n "$DATE"; then 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 3674$as_echo "$DATE" >&6; } 3675else 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3677$as_echo "no" >&6; } 3678fi 3679 3680 3681 3682 # Test that variable DATE is not empty. 3683 if test "" = "$DATE"; then as_fn_error $? "Could not find date !" "$LINENO" 5 ; fi 3684 3685# Extract the first word of "df", so it can be a program name with args. 3686set 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; } 3689if test "${ac_cv_path_DF+set}" = set; then : 3690 $as_echo_n "(cached) " >&6 3691else 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 3698for as_dir in $PATH 3699do 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 3708done 3709 done 3710IFS=$as_save_IFS 3711 3712 ;; 3713esac 3714fi 3715DF=$ac_cv_path_DF 3716if test -n "$DF"; then 3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 3718$as_echo "$DF" >&6; } 3719else 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3721$as_echo "no" >&6; } 3722fi 3723 3724 3725 3726 # Test that variable DF is not empty. 3727 if test "" = "$DF"; then as_fn_error $? "Could not find df !" "$LINENO" 5 ; fi 3728 3729# Extract the first word of "diff", so it can be a program name with args. 3730set 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; } 3733if test "${ac_cv_path_DIFF+set}" = set; then : 3734 $as_echo_n "(cached) " >&6 3735else 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 3742for as_dir in $PATH 3743do 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 3752done 3753 done 3754IFS=$as_save_IFS 3755 3756 ;; 3757esac 3758fi 3759DIFF=$ac_cv_path_DIFF 3760if test -n "$DIFF"; then 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 3762$as_echo "$DIFF" >&6; } 3763else 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3765$as_echo "no" >&6; } 3766fi 3767 3768 3769 3770 # Test that variable DIFF is not empty. 3771 if test "" = "$DIFF"; then as_fn_error $? "Could not find diff !" "$LINENO" 5 ; fi 3772 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. 3777set 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; } 3780if test "${ac_cv_path_ECHO+set}" = set; then : 3781 $as_echo_n "(cached) " >&6 3782else 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 3789for as_dir in $PATH 3790do 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 3799done 3800 done 3801IFS=$as_save_IFS 3802 3803 ;; 3804esac 3805fi 3806ECHO=$ac_cv_path_ECHO 3807if test -n "$ECHO"; then 3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 3809$as_echo "$ECHO" >&6; } 3810else 3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3812$as_echo "no" >&6; } 3813fi 3814 3815 3816 3817 # Test that variable ECHO is not empty. 3818 if test "" = "$ECHO"; then as_fn_error $? "Could not find echo !" "$LINENO" 5 ; fi 3819 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; } 3822if test "${ac_cv_path_GREP+set}" = set; then : 3823 $as_echo_n "(cached) " >&6 3824else 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 3829for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3830do 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 3839case `"$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;; 3863esac 3864 3865 $ac_path_GREP_found && break 3 3866 done 3867 done 3868 done 3869IFS=$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 3873else 3874 ac_cv_path_GREP=$GREP 3875fi 3876 3877fi 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" 3881 3882 3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3884$as_echo_n "checking for egrep... " >&6; } 3885if test "${ac_cv_path_EGREP+set}" = set; then : 3886 $as_echo_n "(cached) " >&6 3887else 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 3895for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3896do 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 3905case `"$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;; 3929esac 3930 3931 $ac_path_EGREP_found && break 3 3932 done 3933 done 3934 done 3935IFS=$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 3939else 3940 ac_cv_path_EGREP=$EGREP 3941fi 3942 3943 fi 3944fi 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" 3948 3949 3950 3951 # Test that variable EGREP is not empty. 3952 if test "" = "$EGREP"; then as_fn_error $? "Could not find egrep !" "$LINENO" 5 ; fi 3953 3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3955$as_echo_n "checking for fgrep... " >&6; } 3956if test "${ac_cv_path_FGREP+set}" = set; then : 3957 $as_echo_n "(cached) " >&6 3958else 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 3966for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3967do 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 3976case `"$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;; 4000esac 4001 4002 $ac_path_FGREP_found && break 3 4003 done 4004 done 4005 done 4006IFS=$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 4010else 4011 ac_cv_path_FGREP=$FGREP 4012fi 4013 4014 fi 4015fi 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" 4019 4020 4021 4022 # Test that variable FGREP is not empty. 4023 if test "" = "$FGREP"; then as_fn_error $? "Could not find fgrep !" "$LINENO" 5 ; fi 4024 4025 4026# Extract the first word of "find", so it can be a program name with args. 4027set 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; } 4030if test "${ac_cv_path_FIND+set}" = set; then : 4031 $as_echo_n "(cached) " >&6 4032else 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 4039for as_dir in $PATH 4040do 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 4049done 4050 done 4051IFS=$as_save_IFS 4052 4053 ;; 4054esac 4055fi 4056FIND=$ac_cv_path_FIND 4057if test -n "$FIND"; then 4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 4059$as_echo "$FIND" >&6; } 4060else 4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4062$as_echo "no" >&6; } 4063fi 4064 4065 4066 4067 # Test that variable FIND is not empty. 4068 if test "" = "$FIND"; then as_fn_error $? "Could not find find !" "$LINENO" 5 ; fi 4069 4070 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" 4075 4076 DELETEDIR=`mktemp -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 4077 4078 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 4079 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 4092 4093 4094 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; } 4097if test "${ac_cv_path_GREP+set}" = set; then : 4098 $as_echo_n "(cached) " >&6 4099else 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 4104for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4105do 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 4114case `"$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;; 4138esac 4139 4140 $ac_path_GREP_found && break 3 4141 done 4142 done 4143 done 4144IFS=$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 4148else 4149 ac_cv_path_GREP=$GREP 4150fi 4151 4152fi 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" 4156 4157 4158 4159 # Test that variable GREP is not empty. 4160 if test "" = "$GREP"; then as_fn_error $? "Could not find grep !" "$LINENO" 5 ; fi 4161 4162# Extract the first word of "head", so it can be a program name with args. 4163set 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; } 4166if test "${ac_cv_path_HEAD+set}" = set; then : 4167 $as_echo_n "(cached) " >&6 4168else 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 4175for as_dir in $PATH 4176do 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 4185done 4186 done 4187IFS=$as_save_IFS 4188 4189 ;; 4190esac 4191fi 4192HEAD=$ac_cv_path_HEAD 4193if test -n "$HEAD"; then 4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 4195$as_echo "$HEAD" >&6; } 4196else 4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4198$as_echo "no" >&6; } 4199fi 4200 4201 4202 4203 # Test that variable HEAD is not empty. 4204 if test "" = "$HEAD"; then as_fn_error $? "Could not find head !" "$LINENO" 5 ; fi 4205 4206# Extract the first word of "ln", so it can be a program name with args. 4207set 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; } 4210if test "${ac_cv_path_LN+set}" = set; then : 4211 $as_echo_n "(cached) " >&6 4212else 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 4219for as_dir in $PATH 4220do 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 4229done 4230 done 4231IFS=$as_save_IFS 4232 4233 ;; 4234esac 4235fi 4236LN=$ac_cv_path_LN 4237if test -n "$LN"; then 4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 4239$as_echo "$LN" >&6; } 4240else 4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4242$as_echo "no" >&6; } 4243fi 4244 4245 4246 4247 # Test that variable LN is not empty. 4248 if test "" = "$LN"; then as_fn_error $? "Could not find ln !" "$LINENO" 5 ; fi 4249 4250# Extract the first word of "ls", so it can be a program name with args. 4251set 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; } 4254if test "${ac_cv_path_LS+set}" = set; then : 4255 $as_echo_n "(cached) " >&6 4256else 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 4263for as_dir in $PATH 4264do 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 4273done 4274 done 4275IFS=$as_save_IFS 4276 4277 ;; 4278esac 4279fi 4280LS=$ac_cv_path_LS 4281if test -n "$LS"; then 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 4283$as_echo "$LS" >&6; } 4284else 4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4286$as_echo "no" >&6; } 4287fi 4288 4289 4290 4291 # Test that variable LS is not empty. 4292 if test "" = "$LS"; then as_fn_error $? "Could not find ls !" "$LINENO" 5 ; fi 4293 4294for ac_prog in gmake make 4295do 4296 # Extract the first word of "$ac_prog", so it can be a program name with args. 4297set 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; } 4300if test "${ac_cv_path_MAKE+set}" = set; then : 4301 $as_echo_n "(cached) " >&6 4302else 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 4309for as_dir in $PATH 4310do 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 4319done 4320 done 4321IFS=$as_save_IFS 4322 4323 ;; 4324esac 4325fi 4326MAKE=$ac_cv_path_MAKE 4327if test -n "$MAKE"; then 4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 4329$as_echo "$MAKE" >&6; } 4330else 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4332$as_echo "no" >&6; } 4333fi 4334 4335 4336 test -n "$MAKE" && break 4337done 4338 4339 4340 # Test that variable MAKE is not empty. 4341 if test "" = "$MAKE"; then as_fn_error $? "Could not find make !" "$LINENO" 5 ; fi 4342 4343MAKE_VERSION=`$MAKE --version | head -n 1 | grep '3.8[12346789]'` 4344if 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 4346fi 4347# Extract the first word of "mkdir", so it can be a program name with args. 4348set 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; } 4351if test "${ac_cv_path_MKDIR+set}" = set; then : 4352 $as_echo_n "(cached) " >&6 4353else 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 4360for as_dir in $PATH 4361do 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 4370done 4371 done 4372IFS=$as_save_IFS 4373 4374 ;; 4375esac 4376fi 4377MKDIR=$ac_cv_path_MKDIR 4378if test -n "$MKDIR"; then 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 4380$as_echo "$MKDIR" >&6; } 4381else 4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4383$as_echo "no" >&6; } 4384fi 4385 4386 4387 4388 # Test that variable MKDIR is not empty. 4389 if test "" = "$MKDIR"; then as_fn_error $? "Could not find mkdir !" "$LINENO" 5 ; fi 4390 4391# Extract the first word of "mv", so it can be a program name with args. 4392set 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; } 4395if test "${ac_cv_path_MV+set}" = set; then : 4396 $as_echo_n "(cached) " >&6 4397else 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 4404for as_dir in $PATH 4405do 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 4414done 4415 done 4416IFS=$as_save_IFS 4417 4418 ;; 4419esac 4420fi 4421MV=$ac_cv_path_MV 4422if test -n "$MV"; then 4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 4424$as_echo "$MV" >&6; } 4425else 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4427$as_echo "no" >&6; } 4428fi 4429 4430 4431 4432 # Test that variable MV is not empty. 4433 if test "" = "$MV"; then as_fn_error $? "Could not find mv !" "$LINENO" 5 ; fi 4434 4435for ac_prog in nawk gawk awk 4436do 4437 # Extract the first word of "$ac_prog", so it can be a program name with args. 4438set 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; } 4441if test "${ac_cv_path_NAWK+set}" = set; then : 4442 $as_echo_n "(cached) " >&6 4443else 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 4450for as_dir in $PATH 4451do 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 4460done 4461 done 4462IFS=$as_save_IFS 4463 4464 ;; 4465esac 4466fi 4467NAWK=$ac_cv_path_NAWK 4468if test -n "$NAWK"; then 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 4470$as_echo "$NAWK" >&6; } 4471else 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4473$as_echo "no" >&6; } 4474fi 4475 4476 4477 test -n "$NAWK" && break 4478done 4479 4480 4481 # Test that variable NAWK is not empty. 4482 if test "" = "$NAWK"; then as_fn_error $? "Could not find nawk !" "$LINENO" 5 ; fi 4483 4484# Extract the first word of "printf", so it can be a program name with args. 4485set 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; } 4488if test "${ac_cv_path_PRINTF+set}" = set; then : 4489 $as_echo_n "(cached) " >&6 4490else 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 4497for as_dir in $PATH 4498do 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 4507done 4508 done 4509IFS=$as_save_IFS 4510 4511 ;; 4512esac 4513fi 4514PRINTF=$ac_cv_path_PRINTF 4515if test -n "$PRINTF"; then 4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 4517$as_echo "$PRINTF" >&6; } 4518else 4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4520$as_echo "no" >&6; } 4521fi 4522 4523 4524 4525 # Test that variable PRINTF is not empty. 4526 if test "" = "$PRINTF"; then as_fn_error $? "Could not find printf !" "$LINENO" 5 ; fi 4527 4528# Extract the first word of "pwd", so it can be a program name with args. 4529set 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; } 4532if test "${ac_cv_path_THEPWDCMD+set}" = set; then : 4533 $as_echo_n "(cached) " >&6 4534else 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 4541for as_dir in $PATH 4542do 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 4551done 4552 done 4553IFS=$as_save_IFS 4554 4555 ;; 4556esac 4557fi 4558THEPWDCMD=$ac_cv_path_THEPWDCMD 4559if test -n "$THEPWDCMD"; then 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THEPWDCMD" >&5 4561$as_echo "$THEPWDCMD" >&6; } 4562else 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4564$as_echo "no" >&6; } 4565fi 4566 4567 4568# Extract the first word of "rm", so it can be a program name with args. 4569set 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; } 4572if test "${ac_cv_path_RM+set}" = set; then : 4573 $as_echo_n "(cached) " >&6 4574else 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 4581for as_dir in $PATH 4582do 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 4591done 4592 done 4593IFS=$as_save_IFS 4594 4595 ;; 4596esac 4597fi 4598RM=$ac_cv_path_RM 4599if test -n "$RM"; then 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 4601$as_echo "$RM" >&6; } 4602else 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4604$as_echo "no" >&6; } 4605fi 4606 4607 4608 4609 # Test that variable RM is not empty. 4610 if test "" = "$RM"; then as_fn_error $? "Could not find rm !" "$LINENO" 5 ; fi 4611 4612RM="$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; } 4615if test "${ac_cv_path_SED+set}" = set; then : 4616 $as_echo_n "(cached) " >&6 4617else 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 4628for as_dir in $PATH 4629do 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 4638case `"$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;; 4662esac 4663 4664 $ac_path_SED_found && break 3 4665 done 4666 done 4667 done 4668IFS=$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 4672else 4673 ac_cv_path_SED=$SED 4674fi 4675 4676fi 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 4681 4682 4683 # Test that variable SED is not empty. 4684 if test "" = "$SED"; then as_fn_error $? "Could not find sed !" "$LINENO" 5 ; fi 4685 4686# Extract the first word of "sh", so it can be a program name with args. 4687set 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; } 4690if test "${ac_cv_path_SH+set}" = set; then : 4691 $as_echo_n "(cached) " >&6 4692else 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 4699for as_dir in $PATH 4700do 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 4709done 4710 done 4711IFS=$as_save_IFS 4712 4713 ;; 4714esac 4715fi 4716SH=$ac_cv_path_SH 4717if test -n "$SH"; then 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 4719$as_echo "$SH" >&6; } 4720else 4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4722$as_echo "no" >&6; } 4723fi 4724 4725 4726 4727 # Test that variable SH is not empty. 4728 if test "" = "$SH"; then as_fn_error $? "Could not find sh !" "$LINENO" 5 ; fi 4729 4730# Extract the first word of "sort", so it can be a program name with args. 4731set 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; } 4734if test "${ac_cv_path_SORT+set}" = set; then : 4735 $as_echo_n "(cached) " >&6 4736else 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 4743for as_dir in $PATH 4744do 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 4753done 4754 done 4755IFS=$as_save_IFS 4756 4757 ;; 4758esac 4759fi 4760SORT=$ac_cv_path_SORT 4761if test -n "$SORT"; then 4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 4763$as_echo "$SORT" >&6; } 4764else 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4766$as_echo "no" >&6; } 4767fi 4768 4769 4770 4771 # Test that variable SORT is not empty. 4772 if test "" = "$SORT"; then as_fn_error $? "Could not find sort !" "$LINENO" 5 ; fi 4773 4774# Extract the first word of "tar", so it can be a program name with args. 4775set 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; } 4778if test "${ac_cv_path_TAR+set}" = set; then : 4779 $as_echo_n "(cached) " >&6 4780else 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 4787for as_dir in $PATH 4788do 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 4797done 4798 done 4799IFS=$as_save_IFS 4800 4801 ;; 4802esac 4803fi 4804TAR=$ac_cv_path_TAR 4805if test -n "$TAR"; then 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 4807$as_echo "$TAR" >&6; } 4808else 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4810$as_echo "no" >&6; } 4811fi 4812 4813 4814 4815 # Test that variable TAR is not empty. 4816 if test "" = "$TAR"; then as_fn_error $? "Could not find tar !" "$LINENO" 5 ; fi 4817 4818# Extract the first word of "tail", so it can be a program name with args. 4819set 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; } 4822if test "${ac_cv_path_TAIL+set}" = set; then : 4823 $as_echo_n "(cached) " >&6 4824else 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 4831for as_dir in $PATH 4832do 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 4841done 4842 done 4843IFS=$as_save_IFS 4844 4845 ;; 4846esac 4847fi 4848TAIL=$ac_cv_path_TAIL 4849if test -n "$TAIL"; then 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 4851$as_echo "$TAIL" >&6; } 4852else 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4854$as_echo "no" >&6; } 4855fi 4856 4857 4858 4859 # Test that variable TAIL is not empty. 4860 if test "" = "$TAIL"; then as_fn_error $? "Could not find tail !" "$LINENO" 5 ; fi 4861 4862# Extract the first word of "tee", so it can be a program name with args. 4863set 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; } 4866if test "${ac_cv_path_TEE+set}" = set; then : 4867 $as_echo_n "(cached) " >&6 4868else 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 4875for as_dir in $PATH 4876do 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 4885done 4886 done 4887IFS=$as_save_IFS 4888 4889 ;; 4890esac 4891fi 4892TEE=$ac_cv_path_TEE 4893if test -n "$TEE"; then 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 4895$as_echo "$TEE" >&6; } 4896else 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4898$as_echo "no" >&6; } 4899fi 4900 4901 4902 4903 # Test that variable TEE is not empty. 4904 if test "" = "$TEE"; then as_fn_error $? "Could not find tee !" "$LINENO" 5 ; fi 4905 4906# Extract the first word of "tr", so it can be a program name with args. 4907set 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; } 4910if test "${ac_cv_path_TR+set}" = set; then : 4911 $as_echo_n "(cached) " >&6 4912else 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 4919for as_dir in $PATH 4920do 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 4929done 4930 done 4931IFS=$as_save_IFS 4932 4933 ;; 4934esac 4935fi 4936TR=$ac_cv_path_TR 4937if test -n "$TR"; then 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 4939$as_echo "$TR" >&6; } 4940else 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4942$as_echo "no" >&6; } 4943fi 4944 4945 4946 4947 # Test that variable TR is not empty. 4948 if test "" = "$TR"; then as_fn_error $? "Could not find tr !" "$LINENO" 5 ; fi 4949 4950# Extract the first word of "touch", so it can be a program name with args. 4951set 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; } 4954if test "${ac_cv_path_TOUCH+set}" = set; then : 4955 $as_echo_n "(cached) " >&6 4956else 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 4963for as_dir in $PATH 4964do 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 4973done 4974 done 4975IFS=$as_save_IFS 4976 4977 ;; 4978esac 4979fi 4980TOUCH=$ac_cv_path_TOUCH 4981if test -n "$TOUCH"; then 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 4983$as_echo "$TOUCH" >&6; } 4984else 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4986$as_echo "no" >&6; } 4987fi 4988 4989 4990 4991 # Test that variable TOUCH is not empty. 4992 if test "" = "$TOUCH"; then as_fn_error $? "Could not find touch !" "$LINENO" 5 ; fi 4993 4994# Extract the first word of "wc", so it can be a program name with args. 4995set 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; } 4998if test "${ac_cv_path_WC+set}" = set; then : 4999 $as_echo_n "(cached) " >&6 5000else 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 5007for as_dir in $PATH 5008do 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 5017done 5018 done 5019IFS=$as_save_IFS 5020 5021 ;; 5022esac 5023fi 5024WC=$ac_cv_path_WC 5025if test -n "$WC"; then 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 5027$as_echo "$WC" >&6; } 5028else 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5030$as_echo "no" >&6; } 5031fi 5032 5033 5034 5035 # Test that variable WC is not empty. 5036 if test "" = "$WC"; then as_fn_error $? "Could not find wc !" "$LINENO" 5 ; fi 5037 5038# Extract the first word of "xargs", so it can be a program name with args. 5039set 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; } 5042if test "${ac_cv_path_XARGS+set}" = set; then : 5043 $as_echo_n "(cached) " >&6 5044else 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 5051for as_dir in $PATH 5052do 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 5061done 5062 done 5063IFS=$as_save_IFS 5064 5065 ;; 5066esac 5067fi 5068XARGS=$ac_cv_path_XARGS 5069if test -n "$XARGS"; then 5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 5071$as_echo "$XARGS" >&6; } 5072else 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5074$as_echo "no" >&6; } 5075fi 5076 5077 5078 5079 # Test that variable XARGS is not empty. 5080 if test "" = "$XARGS"; then as_fn_error $? "Could not find xargs !" "$LINENO" 5 ; fi 5081 5082# Extract the first word of "zip", so it can be a program name with args. 5083set 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; } 5086if test "${ac_cv_path_ZIP+set}" = set; then : 5087 $as_echo_n "(cached) " >&6 5088else 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 5095for as_dir in $PATH 5096do 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 5105done 5106 done 5107IFS=$as_save_IFS 5108 5109 ;; 5110esac 5111fi 5112ZIP=$ac_cv_path_ZIP 5113if test -n "$ZIP"; then 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 5115$as_echo "$ZIP" >&6; } 5116else 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5118$as_echo "no" >&6; } 5119fi 5120 5121 5122 5123 # Test that variable ZIP is not empty. 5124 if test "" = "$ZIP"; then as_fn_error $? "Could not find zip !" "$LINENO" 5 ; fi 5125 5126# Extract the first word of "unzip", so it can be a program name with args. 5127set 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; } 5130if test "${ac_cv_path_UNZIP+set}" = set; then : 5131 $as_echo_n "(cached) " >&6 5132else 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 5139for as_dir in $PATH 5140do 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 5149done 5150 done 5151IFS=$as_save_IFS 5152 5153 ;; 5154esac 5155fi 5156UNZIP=$ac_cv_path_UNZIP 5157if test -n "$UNZIP"; then 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 5159$as_echo "$UNZIP" >&6; } 5160else 5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5162$as_echo "no" >&6; } 5163fi 5164 5165 5166 5167 # Test that variable UNZIP is not empty. 5168 if test "" = "$UNZIP"; then as_fn_error $? "Could not find unzip !" "$LINENO" 5 ; fi 5169 5170# Extract the first word of "ldd", so it can be a program name with args. 5171set 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; } 5174if test "${ac_cv_path_LDD+set}" = set; then : 5175 $as_echo_n "(cached) " >&6 5176else 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 5183for as_dir in $PATH 5184do 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 5193done 5194 done 5195IFS=$as_save_IFS 5196 5197 ;; 5198esac 5199fi 5200LDD=$ac_cv_path_LDD 5201if test -n "$LDD"; then 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 5203$as_echo "$LDD" >&6; } 5204else 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5206$as_echo "no" >&6; } 5207fi 5208 5209 5210if 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" 5215fi 5216# Extract the first word of "otool", so it can be a program name with args. 5217set 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; } 5220if test "${ac_cv_path_OTOOL+set}" = set; then : 5221 $as_echo_n "(cached) " >&6 5222else 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 5229for as_dir in $PATH 5230do 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 5239done 5240 done 5241IFS=$as_save_IFS 5242 5243 ;; 5244esac 5245fi 5246OTOOL=$ac_cv_path_OTOOL 5247if test -n "$OTOOL"; then 5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 5249$as_echo "$OTOOL" >&6; } 5250else 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5252$as_echo "no" >&6; } 5253fi 5254 5255 5256if test "x$OTOOL" = "x"; then 5257 OTOOL="true" 5258fi 5259# Extract the first word of "readelf", so it can be a program name with args. 5260set 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; } 5263if test "${ac_cv_path_READELF+set}" = set; then : 5264 $as_echo_n "(cached) " >&6 5265else 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 5272for as_dir in $PATH 5273do 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 5282done 5283 done 5284IFS=$as_save_IFS 5285 5286 ;; 5287esac 5288fi 5289READELF=$ac_cv_path_READELF 5290if test -n "$READELF"; then 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 5292$as_echo "$READELF" >&6; } 5293else 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5295$as_echo "no" >&6; } 5296fi 5297 5298 5299# Extract the first word of "expr", so it can be a program name with args. 5300set 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; } 5303if test "${ac_cv_path_EXPR+set}" = set; then : 5304 $as_echo_n "(cached) " >&6 5305else 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 5312for as_dir in $PATH 5313do 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 5322done 5323 done 5324IFS=$as_save_IFS 5325 5326 ;; 5327esac 5328fi 5329EXPR=$ac_cv_path_EXPR 5330if test -n "$EXPR"; then 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 5332$as_echo "$EXPR" >&6; } 5333else 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5335$as_echo "no" >&6; } 5336fi 5337 5338 5339 5340 # Test that variable EXPR is not empty. 5341 if test "" = "$EXPR"; then as_fn_error $? "Could not find expr !" "$LINENO" 5 ; fi 5342 5343# Extract the first word of "file", so it can be a program name with args. 5344set 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; } 5347if test "${ac_cv_path_FILE+set}" = set; then : 5348 $as_echo_n "(cached) " >&6 5349else 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 5356for as_dir in $PATH 5357do 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 5366done 5367 done 5368IFS=$as_save_IFS 5369 5370 ;; 5371esac 5372fi 5373FILE=$ac_cv_path_FILE 5374if test -n "$FILE"; then 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 5376$as_echo "$FILE" >&6; } 5377else 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5379$as_echo "no" >&6; } 5380fi 5381 5382 5383 5384 # Test that variable FILE is not empty. 5385 if test "" = "$FILE"; then as_fn_error $? "Could not find file !" "$LINENO" 5 ; fi 5386 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 5391 5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5393$as_echo_n "checking build system type... " >&6; } 5394if test "${ac_cv_build+set}" = set; then : 5395 $as_echo_n "(cached) " >&6 5396else 5397 ac_build_alias=$build_alias 5398test "x$ac_build_alias" = x && 5399 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5400test "x$ac_build_alias" = x && 5401 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5402ac_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 5404 5405fi 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5407$as_echo "$ac_cv_build" >&6; } 5408case $ac_cv_build in 5409*-*-*) ;; 5410*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 5411esac 5412build=$ac_cv_build 5413ac_save_IFS=$IFS; IFS='-' 5414set x $ac_cv_build 5415shift 5416build_cpu=$1 5417build_vendor=$2 5418shift; shift 5419# Remember, the first character of IFS is used to create $*, 5420# except with old shells: 5421build_os=$* 5422IFS=$ac_save_IFS 5423case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5424 5425 5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5427$as_echo_n "checking host system type... " >&6; } 5428if test "${ac_cv_host+set}" = set; then : 5429 $as_echo_n "(cached) " >&6 5430else 5431 if test "x$host_alias" = x; then 5432 ac_cv_host=$ac_cv_build 5433else 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 5436fi 5437 5438fi 5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5440$as_echo "$ac_cv_host" >&6; } 5441case $ac_cv_host in 5442*-*-*) ;; 5443*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 5444esac 5445host=$ac_cv_host 5446ac_save_IFS=$IFS; IFS='-' 5447set x $ac_cv_host 5448shift 5449host_cpu=$1 5450host_vendor=$2 5451shift; shift 5452# Remember, the first character of IFS is used to create $*, 5453# except with old shells: 5454host_os=$* 5455IFS=$ac_save_IFS 5456case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5457 5458 5459 5460 5461# Check whether --with-data-model was given. 5462if test "${with_data_model+set}" = set; then : 5463 withval=$with_data_model; 5464fi 5465 5466 5467if 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 5471fi 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 5476 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} 5502 5503 BUILD=${build} 5504 5505 5506 5507 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 5538 5539 HOST_OS="$VAR_OS" 5540 HOST_OS_FAMILY="$VAR_OS_FAMILY" 5541 HOST_OS_API="$VAR_OS_API" 5542 5543 5544 5545 5546 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 5553 5554 5555 5556 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 5648 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 5662 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 5675 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" 5680 5681 5682 5683 5684 5685 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" 5689 5690 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 5697 5698 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 5708 5709 5710 5711 5712 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 5743 5744 BUILD_OS="$VAR_OS" 5745 BUILD_OS_FAMILY="$VAR_OS_FAMILY" 5746 BUILD_OS_API="$VAR_OS_API" 5747 5748 5749 5750 5751 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 5758 5759 5760 5761 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 5853 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 5867 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 5880 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" 5885 5886 5887 5888 5889 5890 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" 5894 5895 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 5902 5903 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 5913 5914 5915 5916 if test "x$HOST_OS" != xsolaris; then 5917 LEGACY_HOST_CPU3="" 5918 LEGACY_BUILD_CPU3="" 5919 fi 5920 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 5938 5939DATE_WHEN_CONFIGURED=`LANG=C date` 5940 5941 5942# How many cores do we have on this build system? 5943 5944# Check whether --with-num-cores was given. 5945if test "${with_num_cores+set}" = set; then : 5946 withval=$with_num_cores; 5947fi 5948 5949if test "x$with_num_cores" = x; then 5950 # The number of cores were not specified, try to probe them. 5951 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 5956 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 5962 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 5968 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 5974 5975 if test "x$build_os" = xwindows; then 5976 NUM_CORES=4 5977 fi 5978 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` 5982 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 5990 5991 5992else 5993 NUM_CORES=$with_num_cores 5994 CONCURRENT_BUILD_JOBS=`expr $NUM_CORES \* 2` 5995fi 5996 5997 5998 5999# How many cores do we have on this build system? 6000 6001# Check whether --with-memory-size was given. 6002if test "${with_memory_size+set}" = set; then : 6003 withval=$with_memory_size; 6004fi 6005 6006if test "x$with_memory_size" = x; then 6007 # The memory size was not specified, try to probe it. 6008 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 6014 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 6021 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 6027 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 6034 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 6039 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 6047 6048else 6049 MEMORY_SIZE=$with_memory_size 6050fi 6051 6052 6053# Where is the source? It is located two levels above the configure script. 6054CURDIR="$PWD" 6055cd "$AUTOCONF_DIR/../.." 6056SRC_ROOT="`pwd`" 6057 6058cd "$CURDIR" 6059 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. 6062set 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; } 6065if test "${ac_cv_path_CYGPATH+set}" = set; then : 6066 $as_echo_n "(cached) " >&6 6067else 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 6074for as_dir in $PATH 6075do 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 6084done 6085 done 6086IFS=$as_save_IFS 6087 6088 ;; 6089esac 6090fi 6091CYGPATH=$ac_cv_path_CYGPATH 6092if test -n "$CYGPATH"; then 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 6094$as_echo "$CYGPATH" >&6; } 6095else 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6097$as_echo "no" >&6; } 6098fi 6099 6100 6101PATH_SEP=":" 6102if 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=";" 6107fi 6108 6109 6110 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 6122 6123 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 6135 6136 6137if 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" 6140fi 6141 6142############################################################################### 6143# 6144# OpenJDK or closed 6145# 6146# Check whether --enable-openjdk was given. 6147if test "${enable_openjdk+set}" = set; then : 6148 enableval=$enable_openjdk; 6149fi 6150 6151 6152if test "x$enable_openjdk" = "xyes"; then 6153 OPENJDK=true 6154elif test "x$enable_openjdk" = "xno"; then 6155 OPENJDK=false 6156elif test -d "$SRC_ROOT/jdk/src/closed"; then 6157 OPENJDK=false 6158else 6159 OPENJDK=true 6160fi 6161 6162if test "x$OPENJDK" = "xtrue"; then 6163 SET_OPENJDK=OPENJDK=true 6164fi 6165 6166 6167 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. 6175if test "${enable_jigsaw+set}" = set; then : 6176 enableval=$enable_jigsaw; 6177fi 6178 6179 6180if test "x$enable_jigsaw" = "xyes"; then 6181 JIGSAW=true 6182else 6183 JIGSAW=false 6184fi 6185 6186 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; } 6200 6201# Check whether --with-jdk-variant was given. 6202if test "${with_jdk_variant+set}" = set; then : 6203 withval=$with_jdk_variant; 6204fi 6205 6206 6207if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 6208 JAVASE_EMBEDDED="" 6209 MINIMIZE_RAM_USAGE="" 6210 JDK_VARIANT="normal" 6211elif 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" 6215else 6216 as_fn_error $? "The available JDK variants are: normal, embedded" "$LINENO" 5 6217fi 6218 6219 6220 6221 6222 6223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 6224$as_echo "$JDK_VARIANT" >&6; } 6225 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. 6234if test "${enable_headful+set}" = set; then : 6235 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 6236else 6237 SUPPORT_HEADFUL=yes 6238fi 6239 6240 6241SUPPORT_HEADLESS=yes 6242BUILD_HEADLESS="BUILD_HEADLESS:=true" 6243 6244if 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" 6248fi 6249 6250if 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" 6255fi 6256 6257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 6258$as_echo "$headful_msg" >&6; } 6259 6260 6261 6262 6263 6264 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; } 6277 6278# Check whether --with-jvm-variants was given. 6279if test "${with_jvm_variants+set}" = set; then : 6280 withval=$with_jvm_variants; 6281fi 6282 6283 6284if 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 6294fi 6295 6296JVM_VARIANTS=",$with_jvm_variants," 6297TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//'` 6298 6299if test "x$TEST_VARIANTS" != "x,"; then 6300 as_fn_error $? "The available JVM variants are: server, client, kernel, zero, zeroshark" "$LINENO" 5 6301fi 6302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 6303$as_echo "$with_jvm_variants" >&6; } 6304 6305JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 6306JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 6307JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 6308JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 6309JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 6310 6311if 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 6315fi 6316if 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 6320fi 6321 6322COUNT_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. 6324ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/'` 6325if 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;} 6328fi 6329 6330 6331 6332 6333 6334 6335 6336 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# 6344DEBUG_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. 6348if test "${enable_debug+set}" = set; then : 6349 enableval=$enable_debug; 6350 ENABLE_DEBUG="${enableval}" 6351 DEBUG_LEVEL="fastdebug" 6352 6353else 6354 ENABLE_DEBUG="no" 6355fi 6356 6357 6358 6359# Check whether --with-debug-level was given. 6360if 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 6366 6367fi 6368 6369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 6370$as_echo "$DEBUG_LEVEL" >&6; } 6371 6372if 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 6376fi 6377 6378case $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 ;; 6397esac 6398 6399 6400 6401 6402 6403 6404 6405# Source the version numbers 6406. $AUTOCONF_DIR/version.numbers 6407if test "x$OPENJDK" = "xfalse"; then 6408 . $AUTOCONF_DIR/closed.version.numbers 6409fi 6410# Now set the JDK version, milestone, build number etc. 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423COPYRIGHT_YEAR=`date +'%Y'` 6424 6425 6426RUNTIME_NAME="$PRODUCT_NAME $PRODUCT_SUFFIX" 6427 6428 6429if test "x$JDK_UPDATE_VERSION" != x; then 6430 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 6431else 6432 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 6433fi 6434 6435 6436if test "x$MILESTONE" != x; then 6437 RELEASE="${JDK_VERSION}-${MILESTONE}${BUILD_VARIANT_RELEASE}" 6438else 6439 RELEASE="${JDK_VERSION}${BUILD_VARIANT_RELEASE}" 6440fi 6441 6442 6443if test "x$JDK_BUILD_NUMBER" != x; then 6444 FULL_VERSION="${RELEASE}-${JDK_BUILD_NUMBER}" 6445else 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}" 6452fi 6453 6454COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 6455 6456 6457# Test from where we are running configure, in or outside of src root. 6458if 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 6466else 6467 # We are running configure from outside of the src dir. 6468 # Then use the current directory as output dir! 6469 OUTPUT_ROOT="$CURDIR" 6470fi 6471 6472 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 6484 6485 6486# Save the arguments given to us 6487echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments 6488 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. 6492SETUPDEVENV="# No special vars" 6493if 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" 6558 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 6560$as_echo_n "checking for msvcr100.dll... " >&6; } 6561 6562# Check whether --with-msvcr100dll was given. 6563if test "${with_msvcr100dll+set}" = set; then : 6564 withval=$with_msvcr100dll; 6565fi 6566 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; } 6586 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 6598 6599 fi 6600fi 6601 6602 6603 6604 6605# Most of the probed defines are put into config.h 6606ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 6607 6608# The spec.gmk file contains all variables for the make system. 6609ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 6610 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? 6616ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 6617 6618 6619SPEC=$OUTPUT_ROOT/spec.gmk 6620 6621OUTPUT_ROOT=$OUTPUT_ROOT 6622 6623 6624# Where are the sources. Any of these can be overridden 6625# using --with-override-corba and the likes. 6626LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 6627CORBA_TOPDIR="$SRC_ROOT/corba" 6628JAXP_TOPDIR="$SRC_ROOT/jaxp" 6629JAXWS_TOPDIR="$SRC_ROOT/jaxws" 6630HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 6631JDK_TOPDIR="$SRC_ROOT/jdk" 6632 6633 6634 6635 6636 6637 6638 6639# Check if pkg-config is available. 6640 6641 6642if 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. 6645set 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; } 6648if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 6649 $as_echo_n "(cached) " >&6 6650else 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 6657for as_dir in $PATH 6658do 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 6667done 6668 done 6669IFS=$as_save_IFS 6670 6671 ;; 6672esac 6673fi 6674PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6675if test -n "$PKG_CONFIG"; then 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6677$as_echo "$PKG_CONFIG" >&6; } 6678else 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6680$as_echo "no" >&6; } 6681fi 6682 6683 6684fi 6685if 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. 6688set 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; } 6691if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 6692 $as_echo_n "(cached) " >&6 6693else 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 6700for as_dir in $PATH 6701do 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 6710done 6711 done 6712IFS=$as_save_IFS 6713 6714 ;; 6715esac 6716fi 6717ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6718if 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; } 6721else 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6723$as_echo "no" >&6; } 6724fi 6725 6726 if test "x$ac_pt_PKG_CONFIG" = x; then 6727 PKG_CONFIG="" 6728 else 6729 case $cross_compiling:$ac_tool_warned in 6730yes:) 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;} 6733ac_tool_warned=yes ;; 6734esac 6735 PKG_CONFIG=$ac_pt_PKG_CONFIG 6736 fi 6737else 6738 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6739fi 6740 6741fi 6742if 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 6754 6755fi 6756 6757 6758# Check whether --with-builddeps-conf was given. 6759if test "${with_builddeps_conf+set}" = set; then : 6760 withval=$with_builddeps_conf; 6761fi 6762 6763 6764 6765# Check whether --with-builddeps-server was given. 6766if test "${with_builddeps_server+set}" = set; then : 6767 withval=$with_builddeps_server; 6768fi 6769 6770 6771 6772# Check whether --with-builddeps-dir was given. 6773if test "${with_builddeps_dir+set}" = set; then : 6774 withval=$with_builddeps_dir; 6775else 6776 with_builddeps_dir=/localhome/builddeps 6777fi 6778 6779 6780 6781# Check whether --with-builddeps-group was given. 6782if test "${with_builddeps_group+set}" = set; then : 6783 withval=$with_builddeps_group; 6784fi 6785 6786 6787# Check whether --enable-list-builddeps was given. 6788if test "${enable_list_builddeps+set}" = set; then : 6789 enableval=$enable_list_builddeps; LIST_BUILDDEPS="${enableval}" 6790else 6791 LIST_BUILDDEPS='no' 6792fi 6793 6794 6795if 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 6802fi 6803 6804# If builddeps server or conf file is given. Setup buildeps usage. 6805 6806 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 6858do 6859 # Extract the first word of "$ac_prog", so it can be a program name with args. 6860set 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; } 6863if test "${ac_cv_prog_BDEPS_UNZIP+set}" = set; then : 6864 $as_echo_n "(cached) " >&6 6865else 6866 if test -n "$BDEPS_UNZIP"; then 6867 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 6868else 6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6870for as_dir in $PATH 6871do 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 6880done 6881 done 6882IFS=$as_save_IFS 6883 6884fi 6885fi 6886BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 6887if test -n "$BDEPS_UNZIP"; then 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 6889$as_echo "$BDEPS_UNZIP" >&6; } 6890else 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6892$as_echo "no" >&6; } 6893fi 6894 6895 6896 test -n "$BDEPS_UNZIP" && break 6897done 6898 6899 if test "x$BDEPS_UNZIP" = x7z; then 6900 BDEPS_UNZIP="7z x" 6901 fi 6902 6903 for ac_prog in wget lftp ftp 6904do 6905 # Extract the first word of "$ac_prog", so it can be a program name with args. 6906set 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; } 6909if test "${ac_cv_prog_BDEPS_FTP+set}" = set; then : 6910 $as_echo_n "(cached) " >&6 6911else 6912 if test -n "$BDEPS_FTP"; then 6913 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 6914else 6915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6916for as_dir in $PATH 6917do 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 6926done 6927 done 6928IFS=$as_save_IFS 6929 6930fi 6931fi 6932BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 6933if test -n "$BDEPS_FTP"; then 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 6935$as_echo "$BDEPS_FTP" >&6; } 6936else 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6938$as_echo "no" >&6; } 6939fi 6940 6941 6942 test -n "$BDEPS_FTP" && break 6943done 6944 6945 6946 6947############################################################################### 6948# 6949# Configure the development tool paths and potential sysroot. 6950# 6951ac_ext=cpp 6952ac_cpp='$CXXCPP $CPPFLAGS' 6953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6956 6957DEVKIT= 6958SYS_ROOT=/ 6959 6960 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. 6963CC_OUT_OPTION='-o$(SPACE)' 6964# When linking, how to specify the to be created executable. 6965EXE_OUT_OPTION='-o$(SPACE)' 6966# When linking, how to specify the to be created dynamically linkable library. 6967LD_OUT_OPTION='-o$(SPACE)' 6968# When archiving, how to specify the to be create static archive for object files. 6969AR_OUT_OPTION='rcs$(SPACE)' 6970 6971 6972 6973 6974 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. 6984 6985DEFINE_CROSS_COMPILE_ARCH="" 6986HOSTCC="" 6987HOSTCXX="" 6988 6989 6990 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; } 6993if 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 7002do 7003 # Extract the first word of "$ac_prog", so it can be a program name with args. 7004set 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; } 7007if test "${ac_cv_path_HOSTCC+set}" = set; then : 7008 $as_echo_n "(cached) " >&6 7009else 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 7016for as_dir in $PATH 7017do 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 7026done 7027 done 7028IFS=$as_save_IFS 7029 7030 ;; 7031esac 7032fi 7033HOSTCC=$ac_cv_path_HOSTCC 7034if test -n "$HOSTCC"; then 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTCC" >&5 7036$as_echo "$HOSTCC" >&6; } 7037else 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7039$as_echo "no" >&6; } 7040fi 7041 7042 7043 test -n "$HOSTCC" && break 7044done 7045 7046 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 7057 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" 7076 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 7087 7088 for ac_prog in cl CC g++ 7089do 7090 # Extract the first word of "$ac_prog", so it can be a program name with args. 7091set 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; } 7094if test "${ac_cv_path_HOSTCXX+set}" = set; then : 7095 $as_echo_n "(cached) " >&6 7096else 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 7103for as_dir in $PATH 7104do 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 7113done 7114 done 7115IFS=$as_save_IFS 7116 7117 ;; 7118esac 7119fi 7120HOSTCXX=$ac_cv_path_HOSTCXX 7121if test -n "$HOSTCXX"; then 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTCXX" >&5 7123$as_echo "$HOSTCXX" >&6; } 7124else 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7126$as_echo "no" >&6; } 7127fi 7128 7129 7130 test -n "$HOSTCXX" && break 7131done 7132 7133 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 7144 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" 7163 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 7174 7175 # Building for the build platform should be easy. Therefore 7176 # we do not need any linkers or assemblers etc. 7177else 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7179$as_echo "no" >&6; } 7180fi 7181 7182# You can force the sys-root if the sys-root encoded into the cross compiler tools 7183# is not correct. 7184 7185# Check whether --with-sys-root was given. 7186if test "${with_sys_root+set}" = set; then : 7187 withval=$with_sys_root; 7188fi 7189 7190 7191if test "x$with_sys_root" != x; then 7192 SYS_ROOT=$with_sys_root 7193fi 7194 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. 7198 7199 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 7226 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 7253 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 7291 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 7313 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 7344 7345 7346 fi 7347 7348 fi 7349 7350 7351if 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" 7358fi 7359 7360# Store the CFLAGS etal passed to the configure script. 7361ORG_CFLAGS="$CFLAGS" 7362ORG_CXXFLAGS="$CXXFLAGS" 7363ORG_OBJCFLAGS="$OBJCFLAGS" 7364 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. 7368ac_ext=c 7369ac_cpp='$CPP $CPPFLAGS' 7370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7372ac_compiler_gnu=$ac_cv_c_compiler_gnu 7373if 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. 7377set 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; } 7380if test "${ac_cv_prog_CC+set}" = set; then : 7381 $as_echo_n "(cached) " >&6 7382else 7383 if test -n "$CC"; then 7384 ac_cv_prog_CC="$CC" # Let the user override the test. 7385else 7386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7387for as_dir in $PATH 7388do 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 7397done 7398 done 7399IFS=$as_save_IFS 7400 7401fi 7402fi 7403CC=$ac_cv_prog_CC 7404if test -n "$CC"; then 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 7406$as_echo "$CC" >&6; } 7407else 7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7409$as_echo "no" >&6; } 7410fi 7411 7412 7413 test -n "$CC" && break 7414 done 7415fi 7416if test -z "$CC"; then 7417 ac_ct_CC=$CC 7418 for ac_prog in cl cc gcc 7419do 7420 # Extract the first word of "$ac_prog", so it can be a program name with args. 7421set 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; } 7424if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 7425 $as_echo_n "(cached) " >&6 7426else 7427 if test -n "$ac_ct_CC"; then 7428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 7429else 7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7431for as_dir in $PATH 7432do 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 7441done 7442 done 7443IFS=$as_save_IFS 7444 7445fi 7446fi 7447ac_ct_CC=$ac_cv_prog_ac_ct_CC 7448if 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; } 7451else 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7453$as_echo "no" >&6; } 7454fi 7455 7456 7457 test -n "$ac_ct_CC" && break 7458done 7459 7460 if test "x$ac_ct_CC" = x; then 7461 CC="" 7462 else 7463 case $cross_compiling:$ac_tool_warned in 7464yes:) 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;} 7467ac_tool_warned=yes ;; 7468esac 7469 CC=$ac_ct_CC 7470 fi 7471fi 7472 7473 7474test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7476as_fn_error $? "no acceptable C compiler found in \$PATH 7477See \`config.log' for more details" "$LINENO" 5 ; } 7478 7479# Provide some information about the compiler. 7480$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 7481set X $ac_compile 7482ac_compiler=$2 7483for ac_option in --version -v -V -qversion; do 7484 { { ac_try="$ac_compiler $ac_option >&5" 7485case "(($ac_try" in 7486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7487 *) ac_try_echo=$ac_try;; 7488esac 7489eval 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; } 7502done 7503 7504cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7505/* end confdefs.h. */ 7506 7507int 7508main () 7509{ 7510 7511 ; 7512 return 0; 7513} 7514_ACEOF 7515ac_clean_files_save=$ac_clean_files 7516ac_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; } 7522ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 7523 7524# The possible output files: 7525ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 7526 7527ac_rmfiles= 7528for ac_file in $ac_files 7529do 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 7534done 7535rm -f $ac_rmfiles 7536 7537if { { ac_try="$ac_link_default" 7538case "(($ac_try" in 7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7540 *) ac_try_echo=$ac_try;; 7541esac 7542eval 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. 7553for ac_file in $ac_files '' 7554do 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 7577done 7578test "$ac_cv_exeext" = no && ac_cv_exeext= 7579 7580else 7581 ac_file='' 7582fi 7583if 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 7587sed 's/^/| /' conftest.$ac_ext >&5 7588 7589{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7591as_fn_error 77 "C compiler cannot create executables 7592See \`config.log' for more details" "$LINENO" 5 ; } 7593else 7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7595$as_echo "yes" >&6; } 7596fi 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; } 7601ac_exeext=$ac_cv_exeext 7602 7603rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 7604ac_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; } 7607if { { ac_try="$ac_link" 7608case "(($ac_try" in 7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7610 *) ac_try_echo=$ac_try;; 7611esac 7612eval 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'. 7622for 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 7630done 7631else 7632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7634as_fn_error $? "cannot compute suffix of executables: cannot compile and link 7635See \`config.log' for more details" "$LINENO" 5 ; } 7636fi 7637rm -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; } 7640 7641rm -f conftest.$ac_ext 7642EXEEXT=$ac_cv_exeext 7643ac_exeext=$EXEEXT 7644cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7645/* end confdefs.h. */ 7646#include <stdio.h> 7647int 7648main () 7649{ 7650FILE *f = fopen ("conftest.out", "w"); 7651 return ferror (f) || fclose (f) != 0; 7652 7653 ; 7654 return 0; 7655} 7656_ACEOF 7657ac_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; } 7662if test "$cross_compiling" != yes; then 7663 { { ac_try="$ac_link" 7664case "(($ac_try" in 7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7666 *) ac_try_echo=$ac_try;; 7667esac 7668eval 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;; 7678esac 7679eval 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;} 7692as_fn_error $? "cannot run C compiled programs. 7693If you meant to cross compile, use \`--host'. 7694See \`config.log' for more details" "$LINENO" 5 ; } 7695 fi 7696 fi 7697fi 7698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 7699$as_echo "$cross_compiling" >&6; } 7700 7701rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 7702ac_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; } 7705if test "${ac_cv_objext+set}" = set; then : 7706 $as_echo_n "(cached) " >&6 7707else 7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7709/* end confdefs.h. */ 7710 7711int 7712main () 7713{ 7714 7715 ; 7716 return 0; 7717} 7718_ACEOF 7719rm -f conftest.o conftest.obj 7720if { { ac_try="$ac_compile" 7721case "(($ac_try" in 7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7723 *) ac_try_echo=$ac_try;; 7724esac 7725eval 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 7738done 7739else 7740 $as_echo "$as_me: failed program was:" >&5 7741sed 's/^/| /' conftest.$ac_ext >&5 7742 7743{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7745as_fn_error $? "cannot compute suffix of object files: cannot compile 7746See \`config.log' for more details" "$LINENO" 5 ; } 7747fi 7748rm -f conftest.$ac_cv_objext conftest.$ac_ext 7749fi 7750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 7751$as_echo "$ac_cv_objext" >&6; } 7752OBJEXT=$ac_cv_objext 7753ac_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; } 7756if test "${ac_cv_c_compiler_gnu+set}" = set; then : 7757 $as_echo_n "(cached) " >&6 7758else 7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7760/* end confdefs.h. */ 7761 7762int 7763main () 7764{ 7765#ifndef __GNUC__ 7766 choke me 7767#endif 7768 7769 ; 7770 return 0; 7771} 7772_ACEOF 7773if ac_fn_c_try_compile "$LINENO"; then : 7774 ac_compiler_gnu=yes 7775else 7776 ac_compiler_gnu=no 7777fi 7778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7779ac_cv_c_compiler_gnu=$ac_compiler_gnu 7780 7781fi 7782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 7783$as_echo "$ac_cv_c_compiler_gnu" >&6; } 7784if test $ac_compiler_gnu = yes; then 7785 GCC=yes 7786else 7787 GCC= 7788fi 7789ac_test_CFLAGS=${CFLAGS+set} 7790ac_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; } 7793if test "${ac_cv_prog_cc_g+set}" = set; then : 7794 $as_echo_n "(cached) " >&6 7795else 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. */ 7802 7803int 7804main () 7805{ 7806 7807 ; 7808 return 0; 7809} 7810_ACEOF 7811if ac_fn_c_try_compile "$LINENO"; then : 7812 ac_cv_prog_cc_g=yes 7813else 7814 CFLAGS="" 7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7816/* end confdefs.h. */ 7817 7818int 7819main () 7820{ 7821 7822 ; 7823 return 0; 7824} 7825_ACEOF 7826if ac_fn_c_try_compile "$LINENO"; then : 7827 7828else 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. */ 7833 7834int 7835main () 7836{ 7837 7838 ; 7839 return 0; 7840} 7841_ACEOF 7842if ac_fn_c_try_compile "$LINENO"; then : 7843 ac_cv_prog_cc_g=yes 7844fi 7845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7846fi 7847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7848fi 7849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7850 ac_c_werror_flag=$ac_save_c_werror_flag 7851fi 7852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 7853$as_echo "$ac_cv_prog_cc_g" >&6; } 7854if test "$ac_test_CFLAGS" = set; then 7855 CFLAGS=$ac_save_CFLAGS 7856elif 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 7862else 7863 if test "$GCC" = yes; then 7864 CFLAGS="-O2" 7865 else 7866 CFLAGS= 7867 fi 7868fi 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; } 7871if test "${ac_cv_prog_cc_c89+set}" = set; then : 7872 $as_echo_n "(cached) " >&6 7873else 7874 ac_cv_prog_cc_c89=no 7875ac_save_CC=$CC 7876cat 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. */ 7883struct buf { int x; }; 7884FILE * (*rcsopen) (struct buf *, struct stat *, int); 7885static char *e (p, i) 7886 char **p; 7887 int i; 7888{ 7889 return p[i]; 7890} 7891static 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} 7900 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. */ 7908int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 7909 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' 7913int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 7914 7915int test (int i, double x); 7916struct s1 {int (*f) (int a);}; 7917struct s2 {int (*f) (double a);}; 7918int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 7919int argc; 7920char **argv; 7921int 7922main () 7923{ 7924return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 7925 ; 7926 return 0; 7927} 7928_ACEOF 7929for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 7930 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 7931do 7932 CC="$ac_save_CC $ac_arg" 7933 if ac_fn_c_try_compile "$LINENO"; then : 7934 ac_cv_prog_cc_c89=$ac_arg 7935fi 7936rm -f core conftest.err conftest.$ac_objext 7937 test "x$ac_cv_prog_cc_c89" != "xno" && break 7938done 7939rm -f conftest.$ac_ext 7940CC=$ac_save_CC 7941 7942fi 7943# AC_CACHE_VAL 7944case "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; } ;; 7955esac 7956if test "x$ac_cv_prog_cc_c89" != xno; then : 7957 7958fi 7959 7960ac_ext=cpp 7961ac_cpp='$CXXCPP $CPPFLAGS' 7962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7965 7966if test "x$CC" = x; then 7967 help_on_build_dependency devkit 7968 as_fn_error $? "Could not find a compiler. $HELP_MSG" "$LINENO" 5 7969fi 7970if test "x$CC" = xcc && test "x$BUILD_OS" = xmacosx; then 7971 # Do not use cc on MacOSX use gcc instead. 7972 CC="gcc" 7973fi 7974 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 7985 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" 8004 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 8015 8016 8017ac_ext=cpp 8018ac_cpp='$CXXCPP $CPPFLAGS' 8019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8022if 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. 8030set 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; } 8033if test "${ac_cv_prog_CXX+set}" = set; then : 8034 $as_echo_n "(cached) " >&6 8035else 8036 if test -n "$CXX"; then 8037 ac_cv_prog_CXX="$CXX" # Let the user override the test. 8038else 8039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8040for as_dir in $PATH 8041do 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 8050done 8051 done 8052IFS=$as_save_IFS 8053 8054fi 8055fi 8056CXX=$ac_cv_prog_CXX 8057if test -n "$CXX"; then 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 8059$as_echo "$CXX" >&6; } 8060else 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8062$as_echo "no" >&6; } 8063fi 8064 8065 8066 test -n "$CXX" && break 8067 done 8068fi 8069if test -z "$CXX"; then 8070 ac_ct_CXX=$CXX 8071 for ac_prog in cl CC g++ 8072do 8073 # Extract the first word of "$ac_prog", so it can be a program name with args. 8074set 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; } 8077if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 8078 $as_echo_n "(cached) " >&6 8079else 8080 if test -n "$ac_ct_CXX"; then 8081 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 8082else 8083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8084for as_dir in $PATH 8085do 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 8094done 8095 done 8096IFS=$as_save_IFS 8097 8098fi 8099fi 8100ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 8101if 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; } 8104else 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8106$as_echo "no" >&6; } 8107fi 8108 8109 8110 test -n "$ac_ct_CXX" && break 8111done 8112 8113 if test "x$ac_ct_CXX" = x; then 8114 CXX="g++" 8115 else 8116 case $cross_compiling:$ac_tool_warned in 8117yes:) 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;} 8120ac_tool_warned=yes ;; 8121esac 8122 CXX=$ac_ct_CXX 8123 fi 8124fi 8125 8126 fi 8127fi 8128# Provide some information about the compiler. 8129$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 8130set X $ac_compile 8131ac_compiler=$2 8132for ac_option in --version -v -V -qversion; do 8133 { { ac_try="$ac_compiler $ac_option >&5" 8134case "(($ac_try" in 8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8136 *) ac_try_echo=$ac_try;; 8137esac 8138eval 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; } 8151done 8152 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; } 8155if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 8156 $as_echo_n "(cached) " >&6 8157else 8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8159/* end confdefs.h. */ 8160 8161int 8162main () 8163{ 8164#ifndef __GNUC__ 8165 choke me 8166#endif 8167 8168 ; 8169 return 0; 8170} 8171_ACEOF 8172if ac_fn_cxx_try_compile "$LINENO"; then : 8173 ac_compiler_gnu=yes 8174else 8175 ac_compiler_gnu=no 8176fi 8177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8178ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 8179 8180fi 8181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 8182$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 8183if test $ac_compiler_gnu = yes; then 8184 GXX=yes 8185else 8186 GXX= 8187fi 8188ac_test_CXXFLAGS=${CXXFLAGS+set} 8189ac_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; } 8192if test "${ac_cv_prog_cxx_g+set}" = set; then : 8193 $as_echo_n "(cached) " >&6 8194else 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. */ 8201 8202int 8203main () 8204{ 8205 8206 ; 8207 return 0; 8208} 8209_ACEOF 8210if ac_fn_cxx_try_compile "$LINENO"; then : 8211 ac_cv_prog_cxx_g=yes 8212else 8213 CXXFLAGS="" 8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8215/* end confdefs.h. */ 8216 8217int 8218main () 8219{ 8220 8221 ; 8222 return 0; 8223} 8224_ACEOF 8225if ac_fn_cxx_try_compile "$LINENO"; then : 8226 8227else 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. */ 8232 8233int 8234main () 8235{ 8236 8237 ; 8238 return 0; 8239} 8240_ACEOF 8241if ac_fn_cxx_try_compile "$LINENO"; then : 8242 ac_cv_prog_cxx_g=yes 8243fi 8244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8245fi 8246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8247fi 8248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8249 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8250fi 8251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 8252$as_echo "$ac_cv_prog_cxx_g" >&6; } 8253if test "$ac_test_CXXFLAGS" = set; then 8254 CXXFLAGS=$ac_save_CXXFLAGS 8255elif 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 8261else 8262 if test "$GXX" = yes; then 8263 CXXFLAGS="-O2" 8264 else 8265 CXXFLAGS= 8266 fi 8267fi 8268ac_ext=cpp 8269ac_cpp='$CXXCPP $CPPFLAGS' 8270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8273 8274if 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++" 8278fi 8279 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 8290 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" 8309 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 8320 8321 8322if 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 8325fi 8326 8327if test "x$BUILD_OS" != xwindows; then 8328 ac_ext=m 8329ac_cpp='$OBJCPP $CPPFLAGS' 8330ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8331ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8332ac_compiler_gnu=$ac_cv_objc_compiler_gnu 8333if 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. 8337set 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; } 8340if test "${ac_cv_prog_OBJC+set}" = set; then : 8341 $as_echo_n "(cached) " >&6 8342else 8343 if test -n "$OBJC"; then 8344 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 8345else 8346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8347for as_dir in $PATH 8348do 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 8357done 8358 done 8359IFS=$as_save_IFS 8360 8361fi 8362fi 8363OBJC=$ac_cv_prog_OBJC 8364if test -n "$OBJC"; then 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 8366$as_echo "$OBJC" >&6; } 8367else 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8369$as_echo "no" >&6; } 8370fi 8371 8372 8373 test -n "$OBJC" && break 8374 done 8375fi 8376if test -z "$OBJC"; then 8377 ac_ct_OBJC=$OBJC 8378 for ac_prog in gcc objcc objc cc CC 8379do 8380 # Extract the first word of "$ac_prog", so it can be a program name with args. 8381set 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; } 8384if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then : 8385 $as_echo_n "(cached) " >&6 8386else 8387 if test -n "$ac_ct_OBJC"; then 8388 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 8389else 8390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8391for as_dir in $PATH 8392do 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 8401done 8402 done 8403IFS=$as_save_IFS 8404 8405fi 8406fi 8407ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 8408if 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; } 8411else 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8413$as_echo "no" >&6; } 8414fi 8415 8416 8417 test -n "$ac_ct_OBJC" && break 8418done 8419 8420 if test "x$ac_ct_OBJC" = x; then 8421 OBJC="gcc" 8422 else 8423 case $cross_compiling:$ac_tool_warned in 8424yes:) 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;} 8427ac_tool_warned=yes ;; 8428esac 8429 OBJC=$ac_ct_OBJC 8430 fi 8431fi 8432 8433# Provide some information about the compiler. 8434$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 8435set X $ac_compile 8436ac_compiler=$2 8437for ac_option in --version -v -V -qversion; do 8438 { { ac_try="$ac_compiler $ac_option >&5" 8439case "(($ac_try" in 8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8441 *) ac_try_echo=$ac_try;; 8442esac 8443eval 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; } 8456done 8457 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; } 8460if test "${ac_cv_objc_compiler_gnu+set}" = set; then : 8461 $as_echo_n "(cached) " >&6 8462else 8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8464/* end confdefs.h. */ 8465 8466int 8467main () 8468{ 8469#ifndef __GNUC__ 8470 choke me 8471#endif 8472 8473 ; 8474 return 0; 8475} 8476_ACEOF 8477if ac_fn_objc_try_compile "$LINENO"; then : 8478 ac_compiler_gnu=yes 8479else 8480 ac_compiler_gnu=no 8481fi 8482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8483ac_cv_objc_compiler_gnu=$ac_compiler_gnu 8484 8485fi 8486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 8487$as_echo "$ac_cv_objc_compiler_gnu" >&6; } 8488if test $ac_compiler_gnu = yes; then 8489 GOBJC=yes 8490else 8491 GOBJC= 8492fi 8493ac_test_OBJCFLAGS=${OBJCFLAGS+set} 8494ac_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; } 8497if test "${ac_cv_prog_objc_g+set}" = set; then : 8498 $as_echo_n "(cached) " >&6 8499else 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. */ 8506 8507int 8508main () 8509{ 8510 8511 ; 8512 return 0; 8513} 8514_ACEOF 8515if ac_fn_objc_try_compile "$LINENO"; then : 8516 ac_cv_prog_objc_g=yes 8517else 8518 OBJCFLAGS="" 8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8520/* end confdefs.h. */ 8521 8522int 8523main () 8524{ 8525 8526 ; 8527 return 0; 8528} 8529_ACEOF 8530if ac_fn_objc_try_compile "$LINENO"; then : 8531 8532else 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. */ 8537 8538int 8539main () 8540{ 8541 8542 ; 8543 return 0; 8544} 8545_ACEOF 8546if ac_fn_objc_try_compile "$LINENO"; then : 8547 ac_cv_prog_objc_g=yes 8548fi 8549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8550fi 8551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8552fi 8553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8554 ac_objc_werror_flag=$ac_save_objc_werror_flag 8555fi 8556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 8557$as_echo "$ac_cv_prog_objc_g" >&6; } 8558if test "$ac_test_OBJCFLAGS" = set; then 8559 OBJCFLAGS=$ac_save_OBJCFLAGS 8560elif 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 8566else 8567 if test "$GOBJC" = yes; then 8568 OBJCFLAGS="-O2" 8569 else 8570 OBJCFLAGS= 8571 fi 8572fi 8573ac_ext=cpp 8574ac_cpp='$CXXCPP $CPPFLAGS' 8575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8578 8579 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 8590 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" 8609 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 8620 8621else 8622 OBJC= 8623fi 8624 8625# Restore the flags to the user specified values. 8626# This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 8627CFLAGS="$ORG_CFLAGS" 8628CXXFLAGS="$ORG_CXXFLAGS" 8629OBJCFLAGS="$ORG_OBJCFLAGS" 8630 8631# If we are not cross compiling, use the same compilers for 8632# building the build platform executables. 8633if test "x$DEFINE_CROSS_COMPILE_ARCH" = x; then 8634 HOSTCC="$CC" 8635 HOSTCXX="$CXX" 8636fi 8637 8638if 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. 8640set 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; } 8643if test "${ac_cv_prog_LD+set}" = set; then : 8644 $as_echo_n "(cached) " >&6 8645else 8646 if test -n "$LD"; then 8647 ac_cv_prog_LD="$LD" # Let the user override the test. 8648else 8649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8650for as_dir in $PATH 8651do 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 8660done 8661 done 8662IFS=$as_save_IFS 8663 8664fi 8665fi 8666LD=$ac_cv_prog_LD 8667if test -n "$LD"; then 8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8669$as_echo "$LD" >&6; } 8670else 8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8672$as_echo "no" >&6; } 8673fi 8674 8675 8676fi 8677if 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. 8680set 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; } 8683if test "${ac_cv_prog_ac_ct_LD+set}" = set; then : 8684 $as_echo_n "(cached) " >&6 8685else 8686 if test -n "$ac_ct_LD"; then 8687 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. 8688else 8689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8690for as_dir in $PATH 8691do 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 8700done 8701 done 8702IFS=$as_save_IFS 8703 8704fi 8705fi 8706ac_ct_LD=$ac_cv_prog_ac_ct_LD 8707if 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; } 8710else 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8712$as_echo "no" >&6; } 8713fi 8714 8715 if test "x$ac_ct_LD" = x; then 8716 LD="" 8717 else 8718 case $cross_compiling:$ac_tool_warned in 8719yes:) 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;} 8722ac_tool_warned=yes ;; 8723esac 8724 LD=$ac_ct_LD 8725 fi 8726else 8727 LD="$ac_cv_prog_LD" 8728fi 8729 8730 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 8741 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" 8760 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 8771 8772LDEXE="$LD" 8773LDCXX="$LD" 8774LDEXECXX="$LD" 8775# LDEXE is the linker to use, when creating executables. 8776 8777# Linking C++ libraries. 8778 8779# Linking C++ executables. 8780 8781 8782if 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. 8784set 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; } 8787if test "${ac_cv_prog_AR+set}" = set; then : 8788 $as_echo_n "(cached) " >&6 8789else 8790 if test -n "$AR"; then 8791 ac_cv_prog_AR="$AR" # Let the user override the test. 8792else 8793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8794for as_dir in $PATH 8795do 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 8804done 8805 done 8806IFS=$as_save_IFS 8807 8808fi 8809fi 8810AR=$ac_cv_prog_AR 8811if test -n "$AR"; then 8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8813$as_echo "$AR" >&6; } 8814else 8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8816$as_echo "no" >&6; } 8817fi 8818 8819 8820fi 8821if 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. 8824set 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; } 8827if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 8828 $as_echo_n "(cached) " >&6 8829else 8830 if test -n "$ac_ct_AR"; then 8831 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8832else 8833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8834for as_dir in $PATH 8835do 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 8844done 8845 done 8846IFS=$as_save_IFS 8847 8848fi 8849fi 8850ac_ct_AR=$ac_cv_prog_ac_ct_AR 8851if 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; } 8854else 8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8856$as_echo "no" >&6; } 8857fi 8858 8859 if test "x$ac_ct_AR" = x; then 8860 AR="" 8861 else 8862 case $cross_compiling:$ac_tool_warned in 8863yes:) 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;} 8866ac_tool_warned=yes ;; 8867esac 8868 AR=$ac_ct_AR 8869 fi 8870else 8871 AR="$ac_cv_prog_AR" 8872fi 8873 8874 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 8885 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" 8904 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 8915 8916if test "x$BUILD_OS" = xmacosx; then 8917 ARFLAGS="-r" 8918else 8919 ARFLAGS="" 8920fi 8921 8922 8923COMPILER_NAME=gcc 8924COMPILER_TYPE=CC 8925if test "x$BUILD_OS" = xwindows; then : 8926 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. 8935set 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; } 8938if test "${ac_cv_prog_WINLD+set}" = set; then : 8939 $as_echo_n "(cached) " >&6 8940else 8941 if test -n "$WINLD"; then 8942 ac_cv_prog_WINLD="$WINLD" # Let the user override the test. 8943else 8944 ac_prog_rejected=no 8945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8946for as_dir in $PATH 8947do 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 8960done 8961 done 8962IFS=$as_save_IFS 8963 8964if 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 8975fi 8976fi 8977fi 8978WINLD=$ac_cv_prog_WINLD 8979if test -n "$WINLD"; then 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINLD" >&5 8981$as_echo "$WINLD" >&6; } 8982else 8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8984$as_echo "no" >&6; } 8985fi 8986 8987 8988 # Since we must ignore the first found link, WINLD will contain 8989 # the full path to the link.exe program. 8990 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" 9009 9010 LD="$WINLD" 9011 # However creating executables can only be done with cl.exe. 9012 LDEXE="$CC" 9013 LDCXX="$WINLD" 9014 LDEXECXX="$CC" 9015 9016 # Extract the first word of "mt", so it can be a program name with args. 9017set 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; } 9020if test "${ac_cv_prog_MT+set}" = set; then : 9021 $as_echo_n "(cached) " >&6 9022else 9023 if test -n "$MT"; then 9024 ac_cv_prog_MT="$MT" # Let the user override the test. 9025else 9026 ac_prog_rejected=no 9027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9028for as_dir in $PATH 9029do 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 9042done 9043 done 9044IFS=$as_save_IFS 9045 9046if 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 9057fi 9058fi 9059fi 9060MT=$ac_cv_prog_MT 9061if test -n "$MT"; then 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 9063$as_echo "$MT" >&6; } 9064else 9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9066$as_echo "no" >&6; } 9067fi 9068 9069 9070 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" 9089 9090 # The resource compiler 9091 # Extract the first word of "rc", so it can be a program name with args. 9092set 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; } 9095if test "${ac_cv_prog_RC+set}" = set; then : 9096 $as_echo_n "(cached) " >&6 9097else 9098 if test -n "$RC"; then 9099 ac_cv_prog_RC="$RC" # Let the user override the test. 9100else 9101 ac_prog_rejected=no 9102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9103for as_dir in $PATH 9104do 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 9117done 9118 done 9119IFS=$as_save_IFS 9120 9121if 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 9132fi 9133fi 9134fi 9135RC=$ac_cv_prog_RC 9136if test -n "$RC"; then 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 9138$as_echo "$RC" >&6; } 9139else 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9141$as_echo "no" >&6; } 9142fi 9143 9144 9145 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" 9164 9165 9166 RC_FLAGS="/l 0x409 /r" 9167 if test "x$VARIANT" = xOPT; then : 9168 9169 RC_FLAGS="$RC_FLAGS -d NDEBUG" 9170 9171fi 9172 JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION 9173 if test "x$JDK_UPDATE_VERSION" = x; then : 9174 9175 JDK_UPDATE_VERSION_NOTNULL=0 9176 9177fi 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\"" 9185 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. 9188set 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; } 9191if test "${ac_cv_prog_WINAR+set}" = set; then : 9192 $as_echo_n "(cached) " >&6 9193else 9194 if test -n "$WINAR"; then 9195 ac_cv_prog_WINAR="$WINAR" # Let the user override the test. 9196else 9197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9198for as_dir in $PATH 9199do 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 9208done 9209 done 9210IFS=$as_save_IFS 9211 9212fi 9213fi 9214WINAR=$ac_cv_prog_WINAR 9215if test -n "$WINAR"; then 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINAR" >&5 9217$as_echo "$WINAR" >&6; } 9218else 9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9220$as_echo "no" >&6; } 9221fi 9222 9223 9224 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" 9243 9244 AR="$WINAR" 9245 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 9246 9247 # Extract the first word of "dumpbin", so it can be a program name with args. 9248set 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; } 9251if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 9252 $as_echo_n "(cached) " >&6 9253else 9254 if test -n "$DUMPBIN"; then 9255 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 9256else 9257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9258for as_dir in $PATH 9259do 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 9268done 9269 done 9270IFS=$as_save_IFS 9271 9272fi 9273fi 9274DUMPBIN=$ac_cv_prog_DUMPBIN 9275if test -n "$DUMPBIN"; then 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 9277$as_echo "$DUMPBIN" >&6; } 9278else 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9280$as_echo "no" >&6; } 9281fi 9282 9283 9284 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" 9303 9304 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 9314 9315fi 9316 9317 9318 9319ac_ext=c 9320ac_cpp='$CPP $CPPFLAGS' 9321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9323ac_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. 9327if test -n "$CPP" && test -d "$CPP"; then 9328 CPP= 9329fi 9330if test -z "$CPP"; then 9331 if test "${ac_cv_prog_CPP+set}" = set; then : 9332 $as_echo_n "(cached) " >&6 9333else 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 9338for ac_c_preproc_warn_flag in '' yes 9339do 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 9355if ac_fn_c_try_cpp "$LINENO"; then : 9356 9357else 9358 # Broken: fails on valid input. 9359continue 9360fi 9361rm -f conftest.err conftest.i conftest.$ac_ext 9362 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 9369if ac_fn_c_try_cpp "$LINENO"; then : 9370 # Broken: success on invalid input. 9371continue 9372else 9373 # Passes both tests. 9374ac_preproc_ok=: 9375break 9376fi 9377rm -f conftest.err conftest.i conftest.$ac_ext 9378 9379done 9380# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9381rm -f conftest.i conftest.err conftest.$ac_ext 9382if $ac_preproc_ok; then : 9383 break 9384fi 9385 9386 done 9387 ac_cv_prog_CPP=$CPP 9388 9389fi 9390 CPP=$ac_cv_prog_CPP 9391else 9392 ac_cv_prog_CPP=$CPP 9393fi 9394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 9395$as_echo "$CPP" >&6; } 9396ac_preproc_ok=false 9397for ac_c_preproc_warn_flag in '' yes 9398do 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 9414if ac_fn_c_try_cpp "$LINENO"; then : 9415 9416else 9417 # Broken: fails on valid input. 9418continue 9419fi 9420rm -f conftest.err conftest.i conftest.$ac_ext 9421 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 9428if ac_fn_c_try_cpp "$LINENO"; then : 9429 # Broken: success on invalid input. 9430continue 9431else 9432 # Passes both tests. 9433ac_preproc_ok=: 9434break 9435fi 9436rm -f conftest.err conftest.i conftest.$ac_ext 9437 9438done 9439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9440rm -f conftest.i conftest.err conftest.$ac_ext 9441if $ac_preproc_ok; then : 9442 9443else 9444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9446as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 9447See \`config.log' for more details" "$LINENO" 5 ; } 9448fi 9449 9450ac_ext=cpp 9451ac_cpp='$CXXCPP $CPPFLAGS' 9452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9455 9456 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 9467 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" 9486 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 9497 9498 9499ac_ext=cpp 9500ac_cpp='$CXXCPP $CPPFLAGS' 9501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9503ac_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; } 9506if test -z "$CXXCPP"; then 9507 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 9508 $as_echo_n "(cached) " >&6 9509else 9510 # Double quotes because CXXCPP needs to be expanded 9511 for CXXCPP in "$CXX -E" "/lib/cpp" 9512 do 9513 ac_preproc_ok=false 9514for ac_cxx_preproc_warn_flag in '' yes 9515do 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 9531if ac_fn_cxx_try_cpp "$LINENO"; then : 9532 9533else 9534 # Broken: fails on valid input. 9535continue 9536fi 9537rm -f conftest.err conftest.i conftest.$ac_ext 9538 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 9545if ac_fn_cxx_try_cpp "$LINENO"; then : 9546 # Broken: success on invalid input. 9547continue 9548else 9549 # Passes both tests. 9550ac_preproc_ok=: 9551break 9552fi 9553rm -f conftest.err conftest.i conftest.$ac_ext 9554 9555done 9556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9557rm -f conftest.i conftest.err conftest.$ac_ext 9558if $ac_preproc_ok; then : 9559 break 9560fi 9561 9562 done 9563 ac_cv_prog_CXXCPP=$CXXCPP 9564 9565fi 9566 CXXCPP=$ac_cv_prog_CXXCPP 9567else 9568 ac_cv_prog_CXXCPP=$CXXCPP 9569fi 9570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 9571$as_echo "$CXXCPP" >&6; } 9572ac_preproc_ok=false 9573for ac_cxx_preproc_warn_flag in '' yes 9574do 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 9590if ac_fn_cxx_try_cpp "$LINENO"; then : 9591 9592else 9593 # Broken: fails on valid input. 9594continue 9595fi 9596rm -f conftest.err conftest.i conftest.$ac_ext 9597 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 9604if ac_fn_cxx_try_cpp "$LINENO"; then : 9605 # Broken: success on invalid input. 9606continue 9607else 9608 # Passes both tests. 9609ac_preproc_ok=: 9610break 9611fi 9612rm -f conftest.err conftest.i conftest.$ac_ext 9613 9614done 9615# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9616rm -f conftest.i conftest.err conftest.$ac_ext 9617if $ac_preproc_ok; then : 9618 9619else 9620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9622as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 9623See \`config.log' for more details" "$LINENO" 5 ; } 9624fi 9625 9626ac_ext=cpp 9627ac_cpp='$CXXCPP $CPPFLAGS' 9628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9631 9632 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 9643 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" 9662 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 9673 9674 9675# Find the right assembler. 9676if test "x$BUILD_OS" = xsolaris; then 9677 # Extract the first word of "as", so it can be a program name with args. 9678set 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; } 9681if test "${ac_cv_path_AS+set}" = set; then : 9682 $as_echo_n "(cached) " >&6 9683else 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 9690for as_dir in $PATH 9691do 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 9700done 9701 done 9702IFS=$as_save_IFS 9703 9704 ;; 9705esac 9706fi 9707AS=$ac_cv_path_AS 9708if test -n "$AS"; then 9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 9710$as_echo "$AS" >&6; } 9711else 9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9713$as_echo "no" >&6; } 9714fi 9715 9716 9717 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 9728 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" 9747 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 9758 9759 ASFLAGS=" " 9760else 9761 AS="$CC -c" 9762 ASFLAGS=" " 9763fi 9764 9765 9766 9767if 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; } 9773 9774cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9775/* end confdefs.h. */ 9776int main() { return 0; } 9777_ACEOF 9778if ac_fn_cxx_try_link "$LINENO"; then : 9779 9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9781$as_echo "yes" >&6; } 9782 9783else 9784 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 9788 9789fi 9790rm -f core conftest.err conftest.$ac_objext \ 9791 conftest$ac_exeext conftest.$ac_ext 9792fi 9793 9794if test "x$BUILD_OS" = xsolaris; then 9795 # Extract the first word of "nm", so it can be a program name with args. 9796set 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; } 9799if test "${ac_cv_path_NM+set}" = set; then : 9800 $as_echo_n "(cached) " >&6 9801else 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 9808for as_dir in $PATH 9809do 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 9818done 9819 done 9820IFS=$as_save_IFS 9821 9822 ;; 9823esac 9824fi 9825NM=$ac_cv_path_NM 9826if test -n "$NM"; then 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 9828$as_echo "$NM" >&6; } 9829else 9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9831$as_echo "no" >&6; } 9832fi 9833 9834 9835 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 9846 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" 9865 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 9876 9877 # Extract the first word of "strip", so it can be a program name with args. 9878set 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; } 9881if test "${ac_cv_path_STRIP+set}" = set; then : 9882 $as_echo_n "(cached) " >&6 9883else 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 9890for as_dir in $PATH 9891do 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 9900done 9901 done 9902IFS=$as_save_IFS 9903 9904 ;; 9905esac 9906fi 9907STRIP=$ac_cv_path_STRIP 9908if test -n "$STRIP"; then 9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9910$as_echo "$STRIP" >&6; } 9911else 9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9913$as_echo "no" >&6; } 9914fi 9915 9916 9917 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 9928 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" 9947 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 9958 9959 # Extract the first word of "mcs", so it can be a program name with args. 9960set 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; } 9963if test "${ac_cv_path_MCS+set}" = set; then : 9964 $as_echo_n "(cached) " >&6 9965else 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 9972for as_dir in $PATH 9973do 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 9982done 9983 done 9984IFS=$as_save_IFS 9985 9986 ;; 9987esac 9988fi 9989MCS=$ac_cv_path_MCS 9990if test -n "$MCS"; then 9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 9992$as_echo "$MCS" >&6; } 9993else 9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9995$as_echo "no" >&6; } 9996fi 9997 9998 9999 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 10010 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" 10029 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 10040 10041else 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. 10044set 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; } 10047if test "${ac_cv_prog_NM+set}" = set; then : 10048 $as_echo_n "(cached) " >&6 10049else 10050 if test -n "$NM"; then 10051 ac_cv_prog_NM="$NM" # Let the user override the test. 10052else 10053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10054for as_dir in $PATH 10055do 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 10064done 10065 done 10066IFS=$as_save_IFS 10067 10068fi 10069fi 10070NM=$ac_cv_prog_NM 10071if test -n "$NM"; then 10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 10073$as_echo "$NM" >&6; } 10074else 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10076$as_echo "no" >&6; } 10077fi 10078 10079 10080fi 10081if 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. 10084set 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; } 10087if test "${ac_cv_prog_ac_ct_NM+set}" = set; then : 10088 $as_echo_n "(cached) " >&6 10089else 10090 if test -n "$ac_ct_NM"; then 10091 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 10092else 10093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10094for as_dir in $PATH 10095do 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 10104done 10105 done 10106IFS=$as_save_IFS 10107 10108fi 10109fi 10110ac_ct_NM=$ac_cv_prog_ac_ct_NM 10111if 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; } 10114else 10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10116$as_echo "no" >&6; } 10117fi 10118 10119 if test "x$ac_ct_NM" = x; then 10120 NM="" 10121 else 10122 case $cross_compiling:$ac_tool_warned in 10123yes:) 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;} 10126ac_tool_warned=yes ;; 10127esac 10128 NM=$ac_ct_NM 10129 fi 10130else 10131 NM="$ac_cv_prog_NM" 10132fi 10133 10134 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 10145 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" 10164 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 10175 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. 10178set 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; } 10181if test "${ac_cv_prog_STRIP+set}" = set; then : 10182 $as_echo_n "(cached) " >&6 10183else 10184 if test -n "$STRIP"; then 10185 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10186else 10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10188for as_dir in $PATH 10189do 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 10198done 10199 done 10200IFS=$as_save_IFS 10201 10202fi 10203fi 10204STRIP=$ac_cv_prog_STRIP 10205if test -n "$STRIP"; then 10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10207$as_echo "$STRIP" >&6; } 10208else 10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10210$as_echo "no" >&6; } 10211fi 10212 10213 10214fi 10215if 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. 10218set 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; } 10221if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 10222 $as_echo_n "(cached) " >&6 10223else 10224 if test -n "$ac_ct_STRIP"; then 10225 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10226else 10227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10228for as_dir in $PATH 10229do 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 10238done 10239 done 10240IFS=$as_save_IFS 10241 10242fi 10243fi 10244ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10245if 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; } 10248else 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10250$as_echo "no" >&6; } 10251fi 10252 10253 if test "x$ac_ct_STRIP" = x; then 10254 STRIP="" 10255 else 10256 case $cross_compiling:$ac_tool_warned in 10257yes:) 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;} 10260ac_tool_warned=yes ;; 10261esac 10262 STRIP=$ac_ct_STRIP 10263 fi 10264else 10265 STRIP="$ac_cv_prog_STRIP" 10266fi 10267 10268 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 10279 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" 10298 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 10309 10310fi 10311 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. 10316UNCYGDRIVE= 10317if 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 10326 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 10349fi 10350 10351 10352 10353 10354 # Check whether --enable-ccache was given. 10355if test "${enable_ccache+set}" = set; then : 10356 enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache} 10357else 10358 ENABLE_CCACHE=yes 10359fi 10360 10361 if test "x$ENABLE_CCACHE" = xyes; then 10362 # Extract the first word of "ccache", so it can be a program name with args. 10363set 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; } 10366if test "${ac_cv_path_CCACHE+set}" = set; then : 10367 $as_echo_n "(cached) " >&6 10368else 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 10375for as_dir in $PATH 10376do 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 10385done 10386 done 10387IFS=$as_save_IFS 10388 10389 ;; 10390esac 10391fi 10392CCACHE=$ac_cv_path_CCACHE 10393if test -n "$CCACHE"; then 10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 10395$as_echo "$CCACHE" >&6; } 10396else 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10398$as_echo "no" >&6; } 10399fi 10400 10401 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 10409 10410 10411 10412# Check whether --with-ccache-dir was given. 10413if test "${with_ccache_dir+set}" = set; then : 10414 withval=$with_ccache_dir; 10415fi 10416 10417 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 10425 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. */ 10446 10447int 10448main () 10449{ 10450 10451 ; 10452 return 0; 10453} 10454_ACEOF 10455if ac_fn_cxx_try_compile "$LINENO"; then : 10456 CC_KNOWS_CCACHE_TRICK=yes 10457else 10458 CC_KNOWS_CCACHE_TRICK=no 10459fi 10460rm -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 10472 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 10477 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 10483 10484 fi 10485 10486 10487# Used on GNU/Linux systems, can be empty... 10488#AC_PATH_PROG(ELFDUMP, elfdump) 10489 10490# Setup default logging of stdout and stderr to build.log in the output root. 10491BUILD_LOG='$(OUTPUT_ROOT)/build.log' 10492BUILD_LOG_WRAPPER='$(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 10493 10494 10495 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# 10502 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; } 10505if test "${ac_cv_header_stdc+set}" = set; then : 10506 $as_echo_n "(cached) " >&6 10507else 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> 10514 10515int 10516main () 10517{ 10518 10519 ; 10520 return 0; 10521} 10522_ACEOF 10523if ac_fn_cxx_try_compile "$LINENO"; then : 10524 ac_cv_header_stdc=yes 10525else 10526 ac_cv_header_stdc=no 10527fi 10528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10529 10530if 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> 10535 10536_ACEOF 10537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10538 $EGREP "memchr" >/dev/null 2>&1; then : 10539 10540else 10541 ac_cv_header_stdc=no 10542fi 10543rm -f conftest* 10544 10545fi 10546 10547if 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> 10552 10553_ACEOF 10554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10555 $EGREP "free" >/dev/null 2>&1; then : 10556 10557else 10558 ac_cv_header_stdc=no 10559fi 10560rm -f conftest* 10561 10562fi 10563 10564if 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 : 10568else 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 10583 10584#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10585int 10586main () 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 10596if ac_fn_cxx_try_run "$LINENO"; then : 10597 10598else 10599 ac_cv_header_stdc=no 10600fi 10601rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10602 conftest.$ac_objext conftest.beam conftest.$ac_ext 10603fi 10604 10605fi 10606fi 10607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 10608$as_echo "$ac_cv_header_stdc" >&6; } 10609if test $ac_cv_header_stdc = yes; then 10610 10611$as_echo "#define STDC_HEADERS 1" >>confdefs.h 10612 10613fi 10614 10615# On IRIX 5.3, sys/types and inttypes.h are conflicting. 10616for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 10617 inttypes.h stdint.h unistd.h 10618do : 10619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10620ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10621" 10622if 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 10626 10627fi 10628 10629done 10630 10631 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; } 10638if test "${ac_cv_sizeof_int_p+set}" = set; then : 10639 $as_echo_n "(cached) " >&6 10640else 10641 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 10642 10643else 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;} 10647as_fn_error 77 "cannot compute sizeof (int *) 10648See \`config.log' for more details" "$LINENO" 5 ; } 10649 else 10650 ac_cv_sizeof_int_p=0 10651 fi 10652fi 10653 10654fi 10655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 10656$as_echo "$ac_cv_sizeof_int_p" >&6; } 10657 10658 10659 10660cat >>confdefs.h <<_ACEOF 10661#define SIZEOF_INT_P $ac_cv_sizeof_int_p 10662_ACEOF 10663 10664 10665if 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 10668else 10669 ARCH_DATA_MODEL=`expr 8 \* $ac_cv_sizeof_int_p` 10670fi 10671 10672if test "x$ARCH_DATA_MODEL" = x64; then 10673 A_LP64="LP64:=" 10674 ADD_LP64="-D_LP64=1" 10675fi 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; } 10680LP64=$A_LP64 10681 10682 10683 10684if 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 10686fi 10687 10688############################################################################### 10689# 10690# Can the C/C++ compiler use precompiled headers? 10691# 10692# Check whether --enable-precompiled-headers was given. 10693if test "${enable_precompiled_headers+set}" = set; then : 10694 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled-headers} 10695else 10696 ENABLE_PRECOMPH=yes 10697fi 10698 10699 10700USE_PRECOMPILED_HEADER=1 10701if test "x$ENABLE_PRECOMPH" = xno; then 10702 USE_PRECOMPILED_HEADER=0 10703fi 10704 10705if 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 10723fi 10724 10725 10726 10727############################################################################### 10728# 10729# How to compile shared libraries. 10730# 10731 10732if 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" 10750 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 10763else 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 10797fi 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811# The (cross) compiler is now configured, we can now test capabilities 10812# of the host platform. 10813 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; } 10820if test "${ac_cv_c_bigendian+set}" = set; then : 10821 $as_echo_n "(cached) " >&6 10822else 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; 10831 10832_ACEOF 10833if ac_fn_cxx_try_compile "$LINENO"; then : 10834 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 10856fi 10857rm -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> 10864 10865int 10866main () 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 10873 10874 ; 10875 return 0; 10876} 10877_ACEOF 10878if 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> 10884 10885int 10886main () 10887{ 10888#if BYTE_ORDER != BIG_ENDIAN 10889 not big endian 10890 #endif 10891 10892 ; 10893 return 0; 10894} 10895_ACEOF 10896if ac_fn_cxx_try_compile "$LINENO"; then : 10897 ac_cv_c_bigendian=yes 10898else 10899 ac_cv_c_bigendian=no 10900fi 10901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10902fi 10903rm -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> 10910 10911int 10912main () 10913{ 10914#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 10915 bogus endian macros 10916 #endif 10917 10918 ; 10919 return 0; 10920} 10921_ACEOF 10922if 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> 10927 10928int 10929main () 10930{ 10931#ifndef _BIG_ENDIAN 10932 not big endian 10933 #endif 10934 10935 ; 10936 return 0; 10937} 10938_ACEOF 10939if ac_fn_cxx_try_compile "$LINENO"; then : 10940 ac_cv_c_bigendian=yes 10941else 10942 ac_cv_c_bigendian=no 10943fi 10944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10945fi 10946rm -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. */ 10954short 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; 10969 10970int 10971main () 10972{ 10973return use_ascii (foo) == use_ebcdic (foo); 10974 ; 10975 return 0; 10976} 10977_ACEOF 10978if 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 10990fi 10991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10992else 10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10994/* end confdefs.h. */ 10995$ac_includes_default 10996int 10997main () 10998{ 10999 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; 11008 11009 ; 11010 return 0; 11011} 11012_ACEOF 11013if ac_fn_cxx_try_run "$LINENO"; then : 11014 ac_cv_c_bigendian=no 11015else 11016 ac_cv_c_bigendian=yes 11017fi 11018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11019 conftest.$ac_objext conftest.beam conftest.$ac_ext 11020fi 11021 11022 fi 11023fi 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 11037 11038 11039if 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 11041fi 11042if test "x$ENDIAN" = xunknown; then 11043 ENDIAN="$HOST_CPU_ENDIAN" 11044fi 11045if 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" 11049fi 11050 11051 11052############################################################################### 11053# 11054# We need a Boot JDK to bootstrap the build. 11055# 11056BOOT_JDK_FOUND=no 11057 11058# Check whether --with-boot-jdk was given. 11059if test "${with_boot_jdk+set}" = set; then : 11060 withval=$with_boot_jdk; 11061fi 11062 11063 11064if test "x$with_boot_jdk" != x; then 11065 BOOT_JDK=$with_boot_jdk 11066 BOOT_JDK_FOUND=yes 11067fi 11068if test "x$BOOT_JDK_FOUND" = xno; then 11069 11070 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 11097 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 11124 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 11162 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 11184 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 11208 11209 fi 11210 else BOOT_JDK_FOUND=no 11211 11212 fi 11213 11214fi 11215 11216if 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 11234fi 11235 11236if test "x$BOOT_JDK_FOUND" = xno; then 11237 # Extract the first word of "javac", so it can be a program name with args. 11238set 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; } 11241if test "${ac_cv_path_JAVAC_CHECK+set}" = set; then : 11242 $as_echo_n "(cached) " >&6 11243else 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 11250for as_dir in $PATH 11251do 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 11260done 11261 done 11262IFS=$as_save_IFS 11263 11264 ;; 11265esac 11266fi 11267JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 11268if test -n "$JAVAC_CHECK"; then 11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 11270$as_echo "$JAVAC_CHECK" >&6; } 11271else 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11273$as_echo "no" >&6; } 11274fi 11275 11276 11277 # Extract the first word of "java", so it can be a program name with args. 11278set 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; } 11281if test "${ac_cv_path_JAVA_CHECK+set}" = set; then : 11282 $as_echo_n "(cached) " >&6 11283else 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 11290for as_dir in $PATH 11291do 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 11300done 11301 done 11302IFS=$as_save_IFS 11303 11304 ;; 11305esac 11306fi 11307JAVA_CHECK=$ac_cv_path_JAVA_CHECK 11308if test -n "$JAVA_CHECK"; then 11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 11310$as_echo "$JAVA_CHECK" >&6; } 11311else 11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11313$as_echo "no" >&6; } 11314fi 11315 11316 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. 11326 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" 11345 11346 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. 11352set 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; } 11355if test "${ac_cv_path_READLINK+set}" = set; then : 11356 $as_echo_n "(cached) " >&6 11357else 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 11364for as_dir in $PATH 11365do 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 11374done 11375 done 11376IFS=$as_save_IFS 11377 11378 ;; 11379esac 11380fi 11381READLINK=$ac_cv_path_READLINK 11382if test -n "$READLINK"; then 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 11384$as_echo "$READLINK" >&6; } 11385else 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11387$as_echo "no" >&6; } 11388fi 11389 11390 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 11402 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 11427 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 11436fi 11437 11438if 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 11448fi 11449 11450if test "x$BOOT_JDK_FOUND" = xno; then 11451 # Extract the first word of "java", so it can be a program name with args. 11452set 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; } 11455if test "${ac_cv_path_JAVA_CHECK+set}" = set; then : 11456 $as_echo_n "(cached) " >&6 11457else 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 11464for as_dir in $PATH 11465do 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 11474done 11475 done 11476IFS=$as_save_IFS 11477 11478 ;; 11479esac 11480fi 11481JAVA_CHECK=$ac_cv_path_JAVA_CHECK 11482if test -n "$JAVA_CHECK"; then 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 11484$as_echo "$JAVA_CHECK" >&6; } 11485else 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11487$as_echo "no" >&6; } 11488fi 11489 11490 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 11511fi 11512 11513 11514 if test "x$BUILD_OS" = "xwindows"; then 11515 # Extract the first word of "cygpath", so it can be a program name with args. 11516set 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; } 11519if test "${ac_cv_path_CYGPATH+set}" = set; then : 11520 $as_echo_n "(cached) " >&6 11521else 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 11528for as_dir in $PATH 11529do 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 11538done 11539 done 11540IFS=$as_save_IFS 11541 11542 ;; 11543esac 11544fi 11545CYGPATH=$ac_cv_path_CYGPATH 11546if test -n "$CYGPATH"; then 11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 11548$as_echo "$CYGPATH" >&6; } 11549else 11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11551$as_echo "no" >&6; } 11552fi 11553 11554 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 11560 11561 11562# Now see if we can find the rt.jar, or its nearest equivalent. 11563BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 11564 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 11576 11577 11578BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 11579 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 11591 11592 11593if 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" 11603fi 11604 11605 11606 11607 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; } 11620 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; } 11624JAVA=$BOOT_JDK/bin/java 11625if test ! -x $JAVA; then 11626 as_fn_error $? "Could not find a working java" "$LINENO" 5 11627fi 11628BOOT_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; } 11631 11632 11633# Extra M4 quote needed to protect [] in grep expression. 11634FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 11635if 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 11638fi 11639 11640# When compiling code to be executed by the Boot JDK, force jdk7 compatibility. 11641BOOT_JDK_SOURCETARGET="-source 7 -target 7" 11642 11643 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; } 11647JAVAC=$BOOT_JDK/bin/javac 11648if test ! -x $JAVAC; then 11649 as_fn_error $? "Could not find a working javac" "$LINENO" 5 11650fi 11651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11652$as_echo "yes" >&6; } 11653 11654 11655 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; } 11659JAVAH=$BOOT_JDK/bin/javah 11660if test ! -x $JAVAH; then 11661 as_fn_error $? "Could not find a working javah" "$LINENO" 5 11662fi 11663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11664$as_echo "yes" >&6; } 11665 11666 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; } 11670JAR=$BOOT_JDK/bin/jar 11671if test ! -x $JAR; then 11672 as_fn_error $? "Could not find a working jar" "$LINENO" 5 11673fi 11674 11675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11676$as_echo "yes" >&6; } 11677 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; } 11681RMIC=$BOOT_JDK/bin/rmic 11682if test ! -x $RMIC; then 11683 as_fn_error $? "Could not find a working rmic" "$LINENO" 5 11684fi 11685 11686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11687$as_echo "yes" >&6; } 11688 11689############################################################################### 11690# 11691# Pickup additional source for a component from outside of the source root 11692# or override source for a component. 11693# 11694 11695# Check whether --with-add-source-root was given. 11696if test "${with_add_source_root+set}" = set; then : 11697 withval=$with_add_source_root; 11698fi 11699 11700 11701 11702# Check whether --with-override-source-root was given. 11703if test "${with_override_source_root+set}" = set; then : 11704 withval=$with_override_source_root; 11705fi 11706 11707 11708 11709# Check whether --with-adds-and-overrides was given. 11710if test "${with_adds_and_overrides+set}" = set; then : 11711 withval=$with_adds_and_overrides; 11712fi 11713 11714 11715if 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" 11718fi 11719 11720if 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 11754fi 11755 11756 11757if 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 11789fi 11790 11791 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# 11810 11811 11812# Check whether --with-override-langtools was given. 11813if test "${with_override_langtools+set}" = set; then : 11814 withval=$with_override_langtools; 11815fi 11816 11817 11818 11819# Check whether --with-override-corba was given. 11820if test "${with_override_corba+set}" = set; then : 11821 withval=$with_override_corba; 11822fi 11823 11824 11825 11826# Check whether --with-override-jaxp was given. 11827if test "${with_override_jaxp+set}" = set; then : 11828 withval=$with_override_jaxp; 11829fi 11830 11831 11832 11833# Check whether --with-override-jaxws was given. 11834if test "${with_override_jaxws+set}" = set; then : 11835 withval=$with_override_jaxws; 11836fi 11837 11838 11839 11840# Check whether --with-override-hotspot was given. 11841if test "${with_override_hotspot+set}" = set; then : 11842 withval=$with_override_hotspot; 11843fi 11844 11845 11846 11847# Check whether --with-override-jdk was given. 11848if test "${with_override_jdk+set}" = set; then : 11849 withval=$with_override_jdk; 11850fi 11851 11852 11853if 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; } 11865fi 11866if 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; } 11878fi 11879if 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; } 11891fi 11892if 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; } 11904fi 11905if 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; } 11918fi 11919if 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; } 11931fi 11932 11933############################################################################### 11934# 11935# Specify options for anything that is run with the Boot JDK. 11936# 11937 11938# Check whether --with-boot-jdk-jvmargs was given. 11939if test "${with_boot_jdk_jvmargs+set}" = set; then : 11940 withval=$with_boot_jdk_jvmargs; 11941fi 11942 11943 11944if 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 11956 11957 # Minimum amount of heap memory. 11958 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 11966 11967 if test "x$HOST_OS" = "xmacosx"; then 11968 # Why does macosx need more heap? Its the huge JDK batch. 11969 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 11977 11978 else 11979 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 11987 11988 fi 11989 # When is adding -client something that speeds up the JVM? 11990 # ADD_JVM_ARG_IF_OK([-client],boot_jdk_jvmargs,[$JAVA]) 11991 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 11999 12000 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 12008 12009 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 12017 12018 # Disable special log output when a debug build is used as Boot JDK... 12019 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 12027 12028fi 12029 12030BOOT_JDK_JVMARGS=$boot_jdk_jvmargs 12031 12032 12033 12034# Check whether --with-server-java was given. 12035if test "${with_server_java+set}" = set; then : 12036 withval=$with_server_java; 12037fi 12038 12039 12040if 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 12046else 12047 SERVER_JAVA="" 12048 # Hotspot specific options. 12049 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 12057 12058 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 12066 12067 # JRockit specific options. 12068 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 12076 12077 SERVER_JAVA="$JAVA $SERVER_JAVA" 12078fi 12079 12080 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. 12084if test "${enable_javac_server+set}" = set; then : 12085 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 12086else 12087 ENABLE_JAVAC_SERVER='no' 12088fi 12089 12090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 12091$as_echo "$ENABLE_JAVAC_SERVER" >&6; } 12092if test "x$ENABLE_JAVAC_SERVER" = xyes; then 12093 JAVAC_USE_REMOTE=true 12094 JAVAC_SERVERS="$OUTPUT_ROOT/javacservers" 12095else 12096 JAVAC_USE_REMOTE=false 12097 JAVAC_SERVERS= 12098fi 12099 12100 12101 12102 12103# Check whether --with-javac-server-cores was given. 12104if test "${with_javac_server_cores+set}" = set; then : 12105 withval=$with_javac_server_cores; 12106fi 12107 12108if test "x$with_javac_server_cores" != x; then 12109 JAVAC_SERVER_CORES="$with_javac_server_cores" 12110else 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 12121 12122 if test "$MEMORY_SIZE" -gt "17000"; then 12123 MAX_HEAP_MEM=10000 12124 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 12132 12133 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 12141 12142 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 12150 12151 elif test "$MEMORY_SIZE" -gt "10000"; then 12152 MAX_HEAP_MEM=6000 12153 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 12161 12162 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 12170 12171 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 12179 12180 elif test "$MEMORY_SIZE" -gt "5000"; then 12181 MAX_HEAP_MEM=3000 12182 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 12190 12191 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 12199 12200 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 12208 12209 elif test "$MEMORY_SIZE" -gt "3800"; then 12210 MAX_HEAP_MEM=2500 12211 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 12219 12220 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 12228 12229 elif test "$MEMORY_SIZE" -gt "1900"; then 12230 MAX_HEAP_MEM=1200 12231 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 12239 12240 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 12248 12249 elif test "$MEMORY_SIZE" -gt "1000"; then 12250 MAX_HEAP_MEM=900 12251 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 12259 12260 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 12268 12269 else 12270 MAX_HEAP_MEM=512 12271 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 12279 12280 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 12288 12289 fi 12290 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 12299fi 12300 12301 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. 12305if test "${enable_javac_deps+set}" = set; then : 12306 enableval=$enable_javac_deps; ENABLE_JAVAC_DEPS="${enableval}" 12307else 12308 ENABLE_JAVAC_DEPS='no' 12309fi 12310 12311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_DEPS" >&5 12312$as_echo "$ENABLE_JAVAC_DEPS" >&6; } 12313if test "x$ENABLE_JAVAC_DEPS" = xyes; then 12314 JAVAC_USE_DEPS=true 12315else 12316 JAVAC_USE_DEPS=false 12317fi 12318 12319 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. 12323if test "${enable_javac_multi_core+set}" = set; then : 12324 enableval=$enable_javac_multi_core; ENABLE_JAVAC_MULTICORE="${enableval}" 12325else 12326 ENABLE_JAVAC_MULTICORE='no' 12327fi 12328 12329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_MULTICORE" >&5 12330$as_echo "$ENABLE_JAVAC_MULTICORE" >&6; } 12331if test "x$ENABLE_JAVAC_MULTICORE" = xyes; then 12332 JAVAC_USE_MODE=MULTI_CORE_CONCURRENT 12333else 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 12349fi 12350 12351 12352############################################################################### 12353# 12354# OS specific settings that we never will need to probe. 12355# 12356if 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; } 12362fi 12363 12364if 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; } 12371fi 12372 12373if 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; } 12382fi 12383 12384if 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; } 12395fi 12396 12397if 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; } 12403fi 12404 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. 12411if test "${enable_macosx_runtime_support+set}" = set; then : 12412 enableval=$enable_macosx_runtime_support; MACOSX_RUNTIME_SUPPORT="${enableval}" 12413else 12414 MACOSX_RUNTIME_SUPPORT="no" 12415fi 12416 12417 12418USE_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; } 12421if 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 12431else 12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12433$as_echo "no" >&6; } 12434fi 12435 12436if 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; } 12443fi 12444 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; } 12451 12452 12453# Check whether --with-x was given. 12454if test "${with_x+set}" = set; then : 12455 withval=$with_x; 12456fi 12457 12458# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 12459if test "x$with_x" = xno; then 12460 # The user explicitly disabled X. 12461 have_x=disabled 12462else 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 12467else 12468 # One or both of the vars are not set, and there is no cached value. 12469ac_x_includes=no ac_x_libraries=no 12470rm -f -r conftest.dir 12471if mkdir conftest.dir; then 12472 cd conftest.dir 12473 cat >Imakefile <<'_ACEOF' 12474incroot: 12475 @echo incroot='${INCROOT}' 12476usrlibdir: 12477 @echo usrlibdir='${USRLIBDIR}' 12478libdir: 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 12507fi 12508 12509# Standard set of common directories for X headers. 12510# Check X11 before X11Rn because it is often a symlink to the current release. 12511ac_x_header_dirs=' 12512/usr/X11/include 12513/usr/X11R7/include 12514/usr/X11R6/include 12515/usr/X11R5/include 12516/usr/X11R4/include 12517 12518/usr/include/X11 12519/usr/include/X11R7 12520/usr/include/X11R6 12521/usr/include/X11R5 12522/usr/include/X11R4 12523 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 12529 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 12535 12536/usr/X386/include 12537/usr/x386/include 12538/usr/XFree86/include/X11 12539 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 12546 12547/usr/openwin/include 12548/usr/openwin/share/include' 12549 12550if 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 12557if ac_fn_cxx_try_cpp "$LINENO"; then : 12558 # We can compile using X headers with no special include directory. 12559ac_x_includes= 12560else 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 12566done 12567fi 12568rm -f conftest.err conftest.i conftest.$ac_ext 12569fi # $ac_x_includes = no 12570 12571if 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> 12580int 12581main () 12582{ 12583XrmInitialize () 12584 ; 12585 return 0; 12586} 12587_ACEOF 12588if ac_fn_cxx_try_link "$LINENO"; then : 12589 LIBS=$ac_save_LIBS 12590# We can link X programs with no special library path. 12591ac_x_libraries= 12592else 12593 LIBS=$ac_save_LIBS 12594for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 12595do 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 12603done 12604fi 12605rm -f core conftest.err conftest.$ac_objext \ 12606 conftest$ac_exeext conftest.$ac_ext 12607fi # $ac_x_libraries = no 12608 12609case $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'" 12618esac 12619fi 12620;; #( 12621 *) have_x=yes;; 12622 esac 12623 eval "$ac_cv_have_x" 12624fi # $with_x != no 12625 12626if 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 12630else 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; } 12640fi 12641 12642if test "$no_x" = yes; then 12643 # Not all programs may use this symbol, but it does not hurt to define it. 12644 12645$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 12646 12647 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 12648else 12649 if test -n "$x_includes"; then 12650 X_CFLAGS="$X_CFLAGS -I$x_includes" 12651 fi 12652 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. */ 12665 12666int 12667main () 12668{ 12669 12670 ; 12671 return 0; 12672} 12673_ACEOF 12674if 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" 12678else 12679 LIBS="$ac_xsave_LIBS -R $x_libraries" 12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12681/* end confdefs.h. */ 12682 12683int 12684main () 12685{ 12686 12687 ; 12688 return 0; 12689} 12690_ACEOF 12691if 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" 12695else 12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 12697$as_echo "neither works" >&6; } 12698fi 12699rm -f core conftest.err conftest.$ac_objext \ 12700 conftest$ac_exeext conftest.$ac_ext 12701fi 12702rm -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 12707 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. 12711 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. */ 12721 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 12726extern "C" 12727#endif 12728char XOpenDisplay (); 12729int 12730main () 12731{ 12732return XOpenDisplay (); 12733 ; 12734 return 0; 12735} 12736_ACEOF 12737if ac_fn_cxx_try_link "$LINENO"; then : 12738 12739else 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; } 12742if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 12743 $as_echo_n "(cached) " >&6 12744else 12745 ac_check_lib_save_LIBS=$LIBS 12746LIBS="-ldnet $LIBS" 12747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12748/* end confdefs.h. */ 12749 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 12754extern "C" 12755#endif 12756char dnet_ntoa (); 12757int 12758main () 12759{ 12760return dnet_ntoa (); 12761 ; 12762 return 0; 12763} 12764_ACEOF 12765if ac_fn_cxx_try_link "$LINENO"; then : 12766 ac_cv_lib_dnet_dnet_ntoa=yes 12767else 12768 ac_cv_lib_dnet_dnet_ntoa=no 12769fi 12770rm -f core conftest.err conftest.$ac_objext \ 12771 conftest$ac_exeext conftest.$ac_ext 12772LIBS=$ac_check_lib_save_LIBS 12773fi 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; } 12776if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 12777 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 12778fi 12779 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; } 12783if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : 12784 $as_echo_n "(cached) " >&6 12785else 12786 ac_check_lib_save_LIBS=$LIBS 12787LIBS="-ldnet_stub $LIBS" 12788cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12789/* end confdefs.h. */ 12790 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 12795extern "C" 12796#endif 12797char dnet_ntoa (); 12798int 12799main () 12800{ 12801return dnet_ntoa (); 12802 ; 12803 return 0; 12804} 12805_ACEOF 12806if ac_fn_cxx_try_link "$LINENO"; then : 12807 ac_cv_lib_dnet_stub_dnet_ntoa=yes 12808else 12809 ac_cv_lib_dnet_stub_dnet_ntoa=no 12810fi 12811rm -f core conftest.err conftest.$ac_objext \ 12812 conftest$ac_exeext conftest.$ac_ext 12813LIBS=$ac_check_lib_save_LIBS 12814fi 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; } 12817if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : 12818 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 12819fi 12820 12821 fi 12822fi 12823rm -f core conftest.err conftest.$ac_objext \ 12824 conftest$ac_exeext conftest.$ac_ext 12825 LIBS="$ac_xsave_LIBS" 12826 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" 12836if test "x$ac_cv_func_gethostbyname" = x""yes; then : 12837 12838fi 12839 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; } 12843if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 12844 $as_echo_n "(cached) " >&6 12845else 12846 ac_check_lib_save_LIBS=$LIBS 12847LIBS="-lnsl $LIBS" 12848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12849/* end confdefs.h. */ 12850 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 12855extern "C" 12856#endif 12857char gethostbyname (); 12858int 12859main () 12860{ 12861return gethostbyname (); 12862 ; 12863 return 0; 12864} 12865_ACEOF 12866if ac_fn_cxx_try_link "$LINENO"; then : 12867 ac_cv_lib_nsl_gethostbyname=yes 12868else 12869 ac_cv_lib_nsl_gethostbyname=no 12870fi 12871rm -f core conftest.err conftest.$ac_objext \ 12872 conftest$ac_exeext conftest.$ac_ext 12873LIBS=$ac_check_lib_save_LIBS 12874fi 12875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 12876$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 12877if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 12878 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 12879fi 12880 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; } 12884if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : 12885 $as_echo_n "(cached) " >&6 12886else 12887 ac_check_lib_save_LIBS=$LIBS 12888LIBS="-lbsd $LIBS" 12889cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12890/* end confdefs.h. */ 12891 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 12896extern "C" 12897#endif 12898char gethostbyname (); 12899int 12900main () 12901{ 12902return gethostbyname (); 12903 ; 12904 return 0; 12905} 12906_ACEOF 12907if ac_fn_cxx_try_link "$LINENO"; then : 12908 ac_cv_lib_bsd_gethostbyname=yes 12909else 12910 ac_cv_lib_bsd_gethostbyname=no 12911fi 12912rm -f core conftest.err conftest.$ac_objext \ 12913 conftest$ac_exeext conftest.$ac_ext 12914LIBS=$ac_check_lib_save_LIBS 12915fi 12916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 12917$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 12918if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : 12919 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 12920fi 12921 12922 fi 12923 fi 12924 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" 12933if test "x$ac_cv_func_connect" = x""yes; then : 12934 12935fi 12936 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; } 12940if test "${ac_cv_lib_socket_connect+set}" = set; then : 12941 $as_echo_n "(cached) " >&6 12942else 12943 ac_check_lib_save_LIBS=$LIBS 12944LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 12945cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12946/* end confdefs.h. */ 12947 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 12952extern "C" 12953#endif 12954char connect (); 12955int 12956main () 12957{ 12958return connect (); 12959 ; 12960 return 0; 12961} 12962_ACEOF 12963if ac_fn_cxx_try_link "$LINENO"; then : 12964 ac_cv_lib_socket_connect=yes 12965else 12966 ac_cv_lib_socket_connect=no 12967fi 12968rm -f core conftest.err conftest.$ac_objext \ 12969 conftest$ac_exeext conftest.$ac_ext 12970LIBS=$ac_check_lib_save_LIBS 12971fi 12972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 12973$as_echo "$ac_cv_lib_socket_connect" >&6; } 12974if test "x$ac_cv_lib_socket_connect" = x""yes; then : 12975 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 12976fi 12977 12978 fi 12979 12980 # Guillermo Gomez says -lposix is necessary on A/UX. 12981 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 12982if test "x$ac_cv_func_remove" = x""yes; then : 12983 12984fi 12985 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; } 12989if test "${ac_cv_lib_posix_remove+set}" = set; then : 12990 $as_echo_n "(cached) " >&6 12991else 12992 ac_check_lib_save_LIBS=$LIBS 12993LIBS="-lposix $LIBS" 12994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12995/* end confdefs.h. */ 12996 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 13001extern "C" 13002#endif 13003char remove (); 13004int 13005main () 13006{ 13007return remove (); 13008 ; 13009 return 0; 13010} 13011_ACEOF 13012if ac_fn_cxx_try_link "$LINENO"; then : 13013 ac_cv_lib_posix_remove=yes 13014else 13015 ac_cv_lib_posix_remove=no 13016fi 13017rm -f core conftest.err conftest.$ac_objext \ 13018 conftest$ac_exeext conftest.$ac_ext 13019LIBS=$ac_check_lib_save_LIBS 13020fi 13021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 13022$as_echo "$ac_cv_lib_posix_remove" >&6; } 13023if test "x$ac_cv_lib_posix_remove" = x""yes; then : 13024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 13025fi 13026 13027 fi 13028 13029 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 13030 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 13031if test "x$ac_cv_func_shmat" = x""yes; then : 13032 13033fi 13034 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; } 13038if test "${ac_cv_lib_ipc_shmat+set}" = set; then : 13039 $as_echo_n "(cached) " >&6 13040else 13041 ac_check_lib_save_LIBS=$LIBS 13042LIBS="-lipc $LIBS" 13043cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13044/* end confdefs.h. */ 13045 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 13050extern "C" 13051#endif 13052char shmat (); 13053int 13054main () 13055{ 13056return shmat (); 13057 ; 13058 return 0; 13059} 13060_ACEOF 13061if ac_fn_cxx_try_link "$LINENO"; then : 13062 ac_cv_lib_ipc_shmat=yes 13063else 13064 ac_cv_lib_ipc_shmat=no 13065fi 13066rm -f core conftest.err conftest.$ac_objext \ 13067 conftest$ac_exeext conftest.$ac_ext 13068LIBS=$ac_check_lib_save_LIBS 13069fi 13070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 13071$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 13072if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : 13073 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 13074fi 13075 13076 fi 13077 fi 13078 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; } 13090if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : 13091 $as_echo_n "(cached) " >&6 13092else 13093 ac_check_lib_save_LIBS=$LIBS 13094LIBS="-lICE $X_EXTRA_LIBS $LIBS" 13095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13096/* end confdefs.h. */ 13097 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 13102extern "C" 13103#endif 13104char IceConnectionNumber (); 13105int 13106main () 13107{ 13108return IceConnectionNumber (); 13109 ; 13110 return 0; 13111} 13112_ACEOF 13113if ac_fn_cxx_try_link "$LINENO"; then : 13114 ac_cv_lib_ICE_IceConnectionNumber=yes 13115else 13116 ac_cv_lib_ICE_IceConnectionNumber=no 13117fi 13118rm -f core conftest.err conftest.$ac_objext \ 13119 conftest$ac_exeext conftest.$ac_ext 13120LIBS=$ac_check_lib_save_LIBS 13121fi 13122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 13123$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 13124if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : 13125 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 13126fi 13127 13128 LDFLAGS=$ac_save_LDFLAGS 13129 13130fi 13131 13132 13133if 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 13136fi 13137 13138 13139 13140 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. 13144if 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 13151fi 13152if test "x$HOST_OS" = xsolaris; then 13153 OPENWIN_HOME="/usr/openwin" 13154fi 13155 13156 13157ac_ext=c 13158ac_cpp='$CPP $CPPFLAGS' 13159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13161ac_compiler_gnu=$ac_cv_c_compiler_gnu 13162 13163OLD_CFLAGS="$CFLAGS" 13164CFLAGS="$CFLAGS $X_CFLAGS" 13165 13166 13167for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h 13168do : 13169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13170ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13171if 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 13176else 13177 X11_A_OK=no 13178fi 13179 13180done 13181 13182CFLAGS="$OLD_CFLAGS" 13183ac_ext=cpp 13184ac_cpp='$CXXCPP $CPPFLAGS' 13185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13188 13189 13190if 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 13193fi 13194 13195############################################################################### 13196# 13197# The common unix printing system cups is used to print from java. 13198# 13199 13200# Check whether --with-cups was given. 13201if test "${with_cups+set}" = set; then : 13202 withval=$with_cups; 13203fi 13204 13205 13206# Check whether --with-cups-include was given. 13207if test "${with_cups_include+set}" = set; then : 13208 withval=$with_cups_include; 13209fi 13210 13211 13212# Check whether --with-cups-lib was given. 13213if test "${with_cups_lib+set}" = set; then : 13214 withval=$with_cups_lib; 13215fi 13216 13217 13218if 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= 13225else 13226 CUPS_FOUND=no 13227 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 13231 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 13246 13247 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 13274 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 13301 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 13339 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 13361 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 13384 13385 fi 13386 13387 fi 13388 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 13393do : 13394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13395ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13396if 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 13404fi 13405 13406done 13407 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 13432fi 13433 13434 13435 13436 13437############################################################################### 13438# 13439# The ubiquitous freetype2 library is used to render fonts. 13440# 13441 13442# Check whether --with-freetype was given. 13443if test "${with_freetype+set}" = set; then : 13444 withval=$with_freetype; 13445fi 13446 13447 13448# If we are using the OS installed system lib for freetype, then we do not need to copy it to the build tree 13449USING_SYSTEM_FT_LIB=false 13450 13451if 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= 13459else 13460 FREETYPE2_FOUND=no 13461 13462 if test "x$with_freetype" != x; then 13463 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 13475 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 13503 13504 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 13531 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 13558 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 13596 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 13618 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 13642 13643 fi 13644 else FREETYPE2_FOUND=no 13645 13646 fi 13647 13648 USING_SYSTEM_FT_LIB=true 13649 fi 13650 if test "x$FREETYPE2_FOUND" = xno; then 13651 13652pkg_failed=no 13653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE2" >&5 13654$as_echo_n "checking for FREETYPE2... " >&6; } 13655 13656if 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` 13666else 13667 pkg_failed=yes 13668fi 13669 else 13670 pkg_failed=untried 13671fi 13672if 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` 13682else 13683 pkg_failed=yes 13684fi 13685 else 13686 pkg_failed=untried 13687fi 13688 13689 13690 13691if test $pkg_failed = yes; then 13692 13693if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13694 _pkg_short_errors_supported=yes 13695else 13696 _pkg_short_errors_supported=no 13697fi 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 13705 13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13707$as_echo "no" >&6; } 13708 FREETYPE2_FOUND=no 13709elif test $pkg_failed = untried; then 13710 FREETYPE2_FOUND=no 13711else 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 13717fi 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; } 13723 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 13732 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; } 13742 13743_ACEOF 13744if ac_fn_cxx_try_link "$LINENO"; then : 13745 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" 13750 13751else 13752 13753 FREETYPE2_FOUND=no 13754 13755fi 13756rm -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 13768fi 13769 13770 13771 13772 13773 13774 13775############################################################################### 13776# 13777# Check for alsa headers and libraries. Used on Linux/GNU systems. 13778# 13779 13780# Check whether --with-alsa was given. 13781if test "${with_alsa+set}" = set; then : 13782 withval=$with_alsa; 13783fi 13784 13785 13786# Check whether --with-alsa-include was given. 13787if test "${with_alsa_include+set}" = set; then : 13788 withval=$with_alsa_include; 13789fi 13790 13791 13792# Check whether --with-alsa-lib was given. 13793if test "${with_alsa_lib+set}" = set; then : 13794 withval=$with_alsa_lib; 13795fi 13796 13797 13798if 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= 13805else 13806 ALSA_FOUND=no 13807 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 13811 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 13826 13827 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 13854 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 13881 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 13919 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 13941 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 13965 13966 fi 13967 else ALSA_FOUND=no 13968 13969 fi 13970 13971 fi 13972 if test "x$ALSA_FOUND" = xno; then 13973 13974pkg_failed=no 13975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 13976$as_echo_n "checking for ALSA... " >&6; } 13977 13978if 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` 13988else 13989 pkg_failed=yes 13990fi 13991 else 13992 pkg_failed=untried 13993fi 13994if 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` 14004else 14005 pkg_failed=yes 14006fi 14007 else 14008 pkg_failed=untried 14009fi 14010 14011 14012 14013if test $pkg_failed = yes; then 14014 14015if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14016 _pkg_short_errors_supported=yes 14017else 14018 _pkg_short_errors_supported=no 14019fi 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 14027 14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14029$as_echo "no" >&6; } 14030 ALSA_FOUND=no 14031elif test $pkg_failed = untried; then 14032 ALSA_FOUND=no 14033else 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 14039fi 14040 fi 14041 if test "x$ALSA_FOUND" = xno; then 14042 for ac_header in alsa/asoundlib.h 14043do : 14044 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 14045if 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 14053else 14054 ALSA_FOUND=no 14055fi 14056 14057done 14058 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 14064fi 14065 14066 14067 14068 14069############################################################################### 14070# 14071# Check for pulse audio headers and libraries. 14072# 14073PULSE_FOUND=no 14074 14075# Check whether --with-pulse was given. 14076if test "${with_pulse+set}" = set; then : 14077 withval=$with_pulse; 14078fi 14079 14080 14081# Check whether --with-pulse-include was given. 14082if test "${with_pulse_include+set}" = set; then : 14083 withval=$with_pulse_include; 14084fi 14085 14086 14087# Check whether --with-pulse-lib was given. 14088if test "${with_pulse_lib+set}" = set; then : 14089 withval=$with_pulse_lib; 14090fi 14091 14092 14093if 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 14097fi 14098if test "x$with_pulse-include" != x; then 14099 PULSE_CFLAGS="-I$with_pulse/include" 14100 PULSE_FOUND=yes 14101fi 14102if test "x$with_pulse-lib" != x; then 14103 PULSE_LIBS="-L$with_pulse/lib -lfreetype" 14104 PULSE_FOUND=yes 14105fi 14106if test "x$PULSE_FOUND" = xno; then 14107 14108 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 14135 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 14162 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 14200 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 14222 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 14246 14247 fi 14248 else PULSE_FOUND=no 14249 14250 fi 14251 14252fi 14253if test "x$PULSE_FOUND" = xno; then 14254 14255pkg_failed=no 14256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPULSE" >&5 14257$as_echo_n "checking for LIBPULSE... " >&6; } 14258 14259if 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` 14269else 14270 pkg_failed=yes 14271fi 14272 else 14273 pkg_failed=untried 14274fi 14275if 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` 14285else 14286 pkg_failed=yes 14287fi 14288 else 14289 pkg_failed=untried 14290fi 14291 14292 14293 14294if test $pkg_failed = yes; then 14295 14296if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14297 _pkg_short_errors_supported=yes 14298else 14299 _pkg_short_errors_supported=no 14300fi 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 14308 14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14310$as_echo "no" >&6; } 14311 PULSE_FOUND=no 14312elif test $pkg_failed = untried; then 14313 PULSE_FOUND=no 14314else 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 14320fi 14321fi 14322if test "x$PULSE_FOUND" = xno; then 14323 for ac_header in pulse/pulseaudio.h 14324do : 14325 ac_fn_cxx_check_header_mongrel "$LINENO" "pulse/pulseaudio.h" "ac_cv_header_pulse_pulseaudio_h" "$ac_includes_default" 14326if 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 14334else 14335 PULSE_FOUND=no 14336fi 14337 14338done 14339 14340fi 14341 14342if 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 14345fi 14346 14347 14348 14349 14350############################################################################### 14351# 14352# Check for the jpeg library 14353# 14354 14355USE_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; } 14358if test "${ac_cv_lib_jpeg_main+set}" = set; then : 14359 $as_echo_n "(cached) " >&6 14360else 14361 ac_check_lib_save_LIBS=$LIBS 14362LIBS="-ljpeg $LIBS" 14363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14364/* end confdefs.h. */ 14365 14366 14367int 14368main () 14369{ 14370return main (); 14371 ; 14372 return 0; 14373} 14374_ACEOF 14375if ac_fn_cxx_try_link "$LINENO"; then : 14376 ac_cv_lib_jpeg_main=yes 14377else 14378 ac_cv_lib_jpeg_main=no 14379fi 14380rm -f core conftest.err conftest.$ac_objext \ 14381 conftest$ac_exeext conftest.$ac_ext 14382LIBS=$ac_check_lib_save_LIBS 14383fi 14384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5 14385$as_echo "$ac_cv_lib_jpeg_main" >&6; } 14386if test "x$ac_cv_lib_jpeg_main" = x""yes; then : 14387 cat >>confdefs.h <<_ACEOF 14388#define HAVE_LIBJPEG 1 14389_ACEOF 14390 14391 LIBS="-ljpeg $LIBS" 14392 14393else 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;} 14397 14398fi 14399 14400 14401 14402############################################################################### 14403# 14404# Check for the gif library 14405# 14406 14407USE_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; } 14410if test "${ac_cv_lib_gif_main+set}" = set; then : 14411 $as_echo_n "(cached) " >&6 14412else 14413 ac_check_lib_save_LIBS=$LIBS 14414LIBS="-lgif $LIBS" 14415cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14416/* end confdefs.h. */ 14417 14418 14419int 14420main () 14421{ 14422return main (); 14423 ; 14424 return 0; 14425} 14426_ACEOF 14427if ac_fn_cxx_try_link "$LINENO"; then : 14428 ac_cv_lib_gif_main=yes 14429else 14430 ac_cv_lib_gif_main=no 14431fi 14432rm -f core conftest.err conftest.$ac_objext \ 14433 conftest$ac_exeext conftest.$ac_ext 14434LIBS=$ac_check_lib_save_LIBS 14435fi 14436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_main" >&5 14437$as_echo "$ac_cv_lib_gif_main" >&6; } 14438if test "x$ac_cv_lib_gif_main" = x""yes; then : 14439 cat >>confdefs.h <<_ACEOF 14440#define HAVE_LIBGIF 1 14441_ACEOF 14442 14443 LIBS="-lgif $LIBS" 14444 14445else 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;} 14449 14450fi 14451 14452 14453 14454############################################################################### 14455# 14456# Check for the zlib library 14457# 14458 14459USE_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; } 14462if test "${ac_cv_lib_z_main+set}" = set; then : 14463 $as_echo_n "(cached) " >&6 14464else 14465 ac_check_lib_save_LIBS=$LIBS 14466LIBS="-lz $LIBS" 14467cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14468/* end confdefs.h. */ 14469 14470 14471int 14472main () 14473{ 14474return main (); 14475 ; 14476 return 0; 14477} 14478_ACEOF 14479if ac_fn_cxx_try_link "$LINENO"; then : 14480 ac_cv_lib_z_main=yes 14481else 14482 ac_cv_lib_z_main=no 14483fi 14484rm -f core conftest.err conftest.$ac_objext \ 14485 conftest$ac_exeext conftest.$ac_ext 14486LIBS=$ac_check_lib_save_LIBS 14487fi 14488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5 14489$as_echo "$ac_cv_lib_z_main" >&6; } 14490if test "x$ac_cv_lib_z_main" = x""yes; then : 14491 cat >>confdefs.h <<_ACEOF 14492#define HAVE_LIBZ 1 14493_ACEOF 14494 14495 LIBS="-lz $LIBS" 14496 14497else 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;} 14501 14502fi 14503 14504 14505 14506############################################################################### 14507# 14508# Check if altzone exists in time.h 14509# 14510 14511cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14512/* end confdefs.h. */ 14513#include <time.h> 14514int 14515main () 14516{ 14517return (int)altzone; 14518 ; 14519 return 0; 14520} 14521_ACEOF 14522if ac_fn_cxx_try_link "$LINENO"; then : 14523 has_altzone=yes 14524else 14525 has_altzone=no 14526fi 14527rm -f core conftest.err conftest.$ac_objext \ 14528 conftest$ac_exeext conftest.$ac_ext 14529if test "x$has_altzone" = xyes; then 14530 14531$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 14532 14533fi 14534 14535############################################################################### 14536# 14537# Check the maths library 14538# 14539 14540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 14541$as_echo_n "checking for main in -lm... " >&6; } 14542if test "${ac_cv_lib_m_main+set}" = set; then : 14543 $as_echo_n "(cached) " >&6 14544else 14545 ac_check_lib_save_LIBS=$LIBS 14546LIBS="-lm $LIBS" 14547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14548/* end confdefs.h. */ 14549 14550 14551int 14552main () 14553{ 14554return main (); 14555 ; 14556 return 0; 14557} 14558_ACEOF 14559if ac_fn_cxx_try_link "$LINENO"; then : 14560 ac_cv_lib_m_main=yes 14561else 14562 ac_cv_lib_m_main=no 14563fi 14564rm -f core conftest.err conftest.$ac_objext \ 14565 conftest$ac_exeext conftest.$ac_ext 14566LIBS=$ac_check_lib_save_LIBS 14567fi 14568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 14569$as_echo "$ac_cv_lib_m_main" >&6; } 14570if test "x$ac_cv_lib_m_main" = x""yes; then : 14571 cat >>confdefs.h <<_ACEOF 14572#define HAVE_LIBM 1 14573_ACEOF 14574 14575 LIBS="-lm $LIBS" 14576 14577else 14578 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;} 14581 14582fi 14583 14584 14585 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. 14593if test "${enable_docs+set}" = set; then : 14594 enableval=$enable_docs; ENABLE_DOCS="${enableval}" 14595else 14596 ENABLE_DOCS='no' 14597fi 14598 14599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DOCS" >&5 14600$as_echo "$ENABLE_DOCS" >&6; } 14601 14602GENERATE_DOCS=false 14603if test "x$ENABLE_DOCS" = xyes; then 14604 GENERATE_DOCS=true 14605fi 14606 14607 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. 14616if test "${enable_nimbus+set}" = set; then : 14617 enableval=$enable_nimbus; ENABLE_NIMBUS="${enableval}" 14618else 14619 ENABLE_NIMBUS='yes' 14620fi 14621 14622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_NIMBUS" >&5 14623$as_echo "$ENABLE_NIMBUS" >&6; } 14624DISABLE_NIMBUS= 14625if test "x$ENABLE_NIMBUS" = xno; then 14626 DISABLE_NIMBUS=true 14627fi 14628 14629 14630############################################################################### 14631# 14632# Setup the opt flags for different compilers 14633# and different operating systems. 14634# 14635case $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 ;; 14688esac 14689 14690 14691 14692 14693 14694 14695 14696 14697############################################################################### 14698# 14699# Setup legacy vars/targets and new vars to deal with different debug levels. 14700# 14701case $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 ;; 14722esac 14723 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# 14729HOTSPOT_TARGET="" 14730 14731if test "x$JVM_VARIANT_SERVER" = xtrue; then 14732 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14733fi 14734 14735if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14736 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14737fi 14738 14739if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14740 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14741fi 14742 14743if test "x$JVM_VARIANT_ZERO" = xtrue; then 14744 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14745fi 14746 14747if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14748 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14749fi 14750 14751HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14752 14753############################################################################### 14754# 14755# Setup all directories for the subrepoes and the arguments to the sub makes. 14756# 14757LANGTOOLS_OUTPUTDIR="$OUTPUT_ROOT/langtools" 14758LANGTOOLS_DIST="$OUTPUT_ROOT/langtools/dist" 14759LANGTOOLS_MAKE_ARGS="" 14760 14761 14762 14763 14764CORBA_OUTPUTDIR="$OUTPUT_ROOT/corba" 14765CORBA_DIST="$OUTPUT_ROOT/corba/dist" 14766CORBA_MAKE_ARGS="" 14767 14768 14769 14770 14771JAXP_OUTPUTDIR="$OUTPUT_ROOT/jaxp" 14772JAXP_DIST="$OUTPUT_ROOT/jaxp/dist" 14773JAXP_MAKE_ARGS="" 14774 14775 14776 14777 14778JAXWS_OUTPUTDIR="$OUTPUT_ROOT/jaxws" 14779JAXWS_DIST="$OUTPUT_ROOT/jaxws/dist" 14780JAXWS_MAKE_ARGS="" 14781 14782 14783 14784 14785HOTSPOT_OUTPUTDIR="$OUTPUT_ROOT/hotspot" 14786HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 14787HOTSPOT_MAKE_ARGS="ALT_OUTPUTDIR=$HOTSPOT_OUTPUTDIR ALT_EXPORT_PATH=$HOTSPOT_DIST $HOTSPOT_TARGET" 14788 14789 14790 14791 14792JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 14793JDK_MAKE_ARGS="ALT_OUTPUTDIR=\"$OUTPUT_ROOT/jdk\"" 14794 14795 14796 14797IMAGES_OUTPUTDIR=$OUTPUT_ROOT/images 14798IMAGES_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 " 14803 14804 14805 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# 14811case $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 ;; 14835esac 14836 14837CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64" 14838 14839# The package path is used only on macosx? 14840PACKAGE_PATH=/opt/local 14841 14842 14843# Sometimes we use a cpu dir (.../lib/amd64/server) 14844# Sometimes not (.../lib/server) 14845LIBARCHDIR="$LEGACY_HOST_CPU2/" 14846if test "x$ENDIAN" = xlittle; then 14847 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 14848else 14849 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN" 14850fi 14851if test "x$HOST_OS" = xlinux; then 14852 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DLINUX" 14853fi 14854if test "x$HOST_OS" = xwindows; then 14855 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DWINDOWS" 14856fi 14857if test "x$HOST_OS" = xsolaris; then 14858 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS" 14859fi 14860if test "x$HOST_OS" = xmacosx; then 14861 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE" 14862 LIBARCHDIR="" 14863fi 14864if test "x$HOST_OS" = xbsd; then 14865 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE" 14866fi 14867if test "x$DEBUG_LEVEL" = xrelease; then 14868 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG" 14869else 14870 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG" 14871fi 14872 14873CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$LEGACY_HOST_CPU1\"' -D$LEGACY_HOST_CPU1" 14874CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"$RELEASE\"'" 14875 14876CCXXFLAGS_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" 14883 14884# The shared libraries are compiled using the picflag. 14885CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 14886CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG" 14887 14888# Executable flags 14889CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK" 14890CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK" 14891 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. 14900if 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="" 14909else 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 14922 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 14930 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" 14935fi 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 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. 14956if test "${enable_static_link_stdc__+set}" = set; then : 14957 enableval=$enable_static_link_stdc__; 14958else 14959 14960 enable_static_link_stdc__=yes 14961 14962fi 14963 14964 14965if 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 14970ac_cpp='$CXXCPP $CPPFLAGS' 14971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14974 14975 OLD_CXXFLAGS="$CXXFLAGS" 14976 CXXFLAGS="$CXXFLAGS -lstdc++" 14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14978/* end confdefs.h. */ 14979 14980int 14981main () 14982{ 14983return 0; 14984 ; 14985 return 0; 14986} 14987_ACEOF 14988if ac_fn_cxx_try_link "$LINENO"; then : 14989 has_dynamic_libstdcxx=yes 14990else 14991 has_dynamic_libstdcxx=no 14992fi 14993rm -f core conftest.err conftest.$ac_objext \ 14994 conftest$ac_exeext conftest.$ac_ext 14995 CXXFLAGS="$OLD_CXXFLAGS" 14996 ac_ext=cpp 14997ac_cpp='$CXXCPP $CPPFLAGS' 14998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15001 15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 15003$as_echo "$has_dynamic_libstdcxx" >&6; } 15004 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 15010ac_cpp='$CXXCPP $CPPFLAGS' 15011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15014 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. */ 15021 15022int 15023main () 15024{ 15025return 0; 15026 ; 15027 return 0; 15028} 15029_ACEOF 15030if ac_fn_cxx_try_link "$LINENO"; then : 15031 has_static_libstdcxx=yes 15032else 15033 has_static_libstdcxx=no 15034fi 15035rm -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 15040ac_cpp='$CXXCPP $CPPFLAGS' 15041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15044 15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 15046$as_echo "$has_static_libstdcxx" >&6; } 15047 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 15051 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 15057 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 15063 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 15077fi 15078 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# 15084if test "x$HOST_OS" = xsolaris; then 15085 LIBCXX="$LIBCXX /usr/lib${LEGACY_HOST_CPU3}/libCrun.so.1" 15086fi 15087 15088 15089 15090############################################################################### 15091# 15092# Misc 15093# 15094 15095# Control wether Hotspot runs Queens test after build. 15096# Check whether --enable-hotspot-test-in-build was given. 15097if test "${enable_hotspot_test_in_build+set}" = set; then : 15098 enableval=$enable_hotspot_test_in_build; 15099else 15100 enable_hotspot_test_in_build=no 15101fi 15102 15103if test "x$enable_hotspot_test_in_build" = "xyes"; then 15104 TEST_IN_BUILD=true 15105else 15106 TEST_IN_BUILD=false 15107fi 15108 15109 15110############################################################################### 15111# 15112# A helpful message at the end of the configure run. 15113# 15114if test "x$CCACHE_FOUND" = x && test "x$GCC" = xyes; then 15115 help_on_build_dependency ccache 15116 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" 15119fi 15120 15121if 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" 15123fi 15124 15125cat >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. 15138 15139_ACEOF 15140 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 15162 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 15187if 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 15197fi 15198rm -f confcache 15199 15200test "x$prefix" = xNONE && prefix=$ac_default_prefix 15201# Let make expand exec_prefix. 15202test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15203 15204DEFS=-DHAVE_CONFIG_H 15205 15206ac_libobjs= 15207ac_ltlibobjs= 15208U= 15209for 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' 15217done 15218LIBOBJS=$ac_libobjs 15219 15220LTLIBOBJS=$ac_ltlibobjs 15221 15222 15223 15224: ${CONFIG_STATUS=./config.status} 15225ac_write_fail=0 15226ac_clean_files_save=$ac_clean_files 15227ac_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;} 15230as_write_fail=0 15231cat >$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. 15237 15238debug=false 15239ac_cs_recheck=false 15240ac_cs_silent=false 15241 15242SHELL=\${CONFIG_SHELL-$SHELL} 15243export SHELL 15244_ASEOF 15245cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15246## -------------------- ## 15247## M4sh Initialization. ## 15248## -------------------- ## 15249 15250# Be more Bourne compatible 15251DUALCASE=1; export DUALCASE # for MKS sh 15252if 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 15259else 15260 case `(set -o) 2>/dev/null` in #( 15261 *posix*) : 15262 set -o posix ;; #( 15263 *) : 15264 ;; 15265esac 15266fi 15267 15268 15269as_nl=' 15270' 15271export as_nl 15272# Printing a long string crashes Solaris 7 /usr/bin/printf. 15273as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15274as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15275as_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. 15278if 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 --' 15282elif (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' 15285else 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' 15305fi 15306 15307# The user is always right. 15308if 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 } 15314fi 15315 15316 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.) 15322IFS=" "" $as_nl" 15323 15324# Find who we are. Look in the path if we contain no directory separator. 15325case $0 in #(( 15326 *[\\/]* ) as_myself=$0 ;; 15327 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15328for as_dir in $PATH 15329do 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 15334IFS=$as_save_IFS 15335 15336 ;; 15337esac 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. 15340if test "x$as_myself" = x; then 15341 as_myself=$0 15342fi 15343if test ! -f "$as_myself"; then 15344 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15345 exit 1 15346fi 15347 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. 15352for as_var in BASH_ENV ENV MAIL MAILPATH 15353do eval test x\${$as_var+set} = xset \ 15354 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15355done 15356PS1='$ ' 15357PS2='> ' 15358PS4='+ ' 15359 15360# NLS nuisances. 15361LC_ALL=C 15362export LC_ALL 15363LANGUAGE=C 15364export LANGUAGE 15365 15366# CDPATH. 15367(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15368 15369 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. 15375as_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 15385 15386 15387# as_fn_set_status STATUS 15388# ----------------------- 15389# Set $? to STATUS, without forking. 15390as_fn_set_status () 15391{ 15392 return $1 15393} # as_fn_set_status 15394 15395# as_fn_exit STATUS 15396# ----------------- 15397# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15398as_fn_exit () 15399{ 15400 set +e 15401 as_fn_set_status $1 15402 exit $1 15403} # as_fn_exit 15404 15405# as_fn_unset VAR 15406# --------------- 15407# Portably unset VAR. 15408as_fn_unset () 15409{ 15410 { eval $1=; unset $1;} 15411} 15412as_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. 15419if (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 }' 15424else 15425 as_fn_append () 15426 { 15427 eval $1=\$$1\$2 15428 } 15429fi # as_fn_append 15430 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. 15436if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15437 eval 'as_fn_arith () 15438 { 15439 as_val=$(( $* )) 15440 }' 15441else 15442 as_fn_arith () 15443 { 15444 as_val=`expr "$@" || test $? -eq 1` 15445 } 15446fi # as_fn_arith 15447 15448 15449if expr a : '\(a\)' >/dev/null 2>&1 && 15450 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15451 as_expr=expr 15452else 15453 as_expr=false 15454fi 15455 15456if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15457 as_basename=basename 15458else 15459 as_basename=false 15460fi 15461 15462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15463 as_dirname=dirname 15464else 15465 as_dirname=false 15466fi 15467 15468as_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'` 15486 15487# Avoid depending upon Character Ranges. 15488as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15489as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15490as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15491as_cr_digits='0123456789' 15492as_cr_alnum=$as_cr_Letters$as_cr_digits 15493 15494ECHO_C= ECHO_N= ECHO_T= 15495case `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';; 15505esac 15506 15507rm -f conf$$ conf$$.exe conf$$.file 15508if test -d conf$$.dir; then 15509 rm -f conf$$.dir/conf$$.file 15510else 15511 rm -f conf$$.dir 15512 mkdir conf$$.dir 2>/dev/null 15513fi 15514if (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 15528else 15529 as_ln_s='cp -p' 15530fi 15531rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15532rmdir conf$$.dir 2>/dev/null 15533 15534 15535# as_fn_mkdir_p 15536# ------------- 15537# Create "$as_dir" as a directory, including parents if necessary. 15538as_fn_mkdir_p () 15539{ 15540 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" 15579 15580 15581} # as_fn_mkdir_p 15582if mkdir -p . 2>/dev/null; then 15583 as_mkdir_p='mkdir -p "$as_dir"' 15584else 15585 test -d ./-p && rmdir ./-p 15586 as_mkdir_p=false 15587fi 15588 15589if test -x / >/dev/null 2>&1; then 15590 as_test_x='test -x' 15591else 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 ' 15609fi 15610as_executable_p=$as_test_x 15611 15612# Sed expression to map a string onto a valid CPP name. 15613as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15614 15615# Sed expression to map a string onto a valid variable name. 15616as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15617 15618 15619exec 6>&1 15620## ----------------------------------- ## 15621## Main body of $CONFIG_STATUS script. ## 15622## ----------------------------------- ## 15623_ASEOF 15624test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15625 15626cat >>$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. 15630ac_log=" 15631This file was extended by openjdk $as_me version-0.1, which was 15632generated by GNU Autoconf 2.67. Invocation command line was 15633 15634 CONFIG_FILES = $CONFIG_FILES 15635 CONFIG_HEADERS = $CONFIG_HEADERS 15636 CONFIG_LINKS = $CONFIG_LINKS 15637 CONFIG_COMMANDS = $CONFIG_COMMANDS 15638 $ $0 $@ 15639 15640on `(hostname || uname -n) 2>/dev/null | sed 1q` 15641" 15642 15643_ACEOF 15644 15645case $ac_config_files in *" 15646"*) set x $ac_config_files; shift; ac_config_files=$*;; 15647esac 15648 15649case $ac_config_headers in *" 15650"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15651esac 15652 15653 15654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15655# Files that config.status was made for. 15656config_files="$ac_config_files" 15657config_headers="$ac_config_headers" 15658 15659_ACEOF 15660 15661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15662ac_cs_usage="\ 15663\`$as_me' instantiates files and other configuration actions 15664from templates according to the current configuration. Unless the files 15665and actions are specified as TAGs, all are instantiated by default. 15666 15667Usage: $0 [OPTION]... [TAG]... 15668 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 15680 15681Configuration files: 15682$config_files 15683 15684Configuration headers: 15685$config_headers 15686 15687Report bugs to <build-infra-dev@openjdk.java.net>." 15688 15689_ACEOF 15690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15691ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15692ac_cs_version="\\ 15693openjdk config.status version-0.1 15694configured by $0, generated by GNU Autoconf 2.67, 15695 with options \\"\$ac_cs_config\\" 15696 15697Copyright (C) 2010 Free Software Foundation, Inc. 15698This config.status script is free software; the Free Software Foundation 15699gives unlimited permission to copy, distribute and modify it." 15700 15701ac_pwd='$ac_pwd' 15702srcdir='$srcdir' 15703AWK='$AWK' 15704test -n "\$AWK" || AWK=awk 15705_ACEOF 15706 15707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15708# The default lists apply if the user does not specify any file. 15709ac_need_defaults=: 15710while test $# != 0 15711do 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 15729 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' 15758Try \`$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=: ;; 15764 15765 # This is an error. 15766 -*) as_fn_error $? "unrecognized option: \`$1' 15767Try \`$0 --help' for more information." ;; 15768 15769 *) as_fn_append ac_config_targets " $1" 15770 ac_need_defaults=false ;; 15771 15772 esac 15773 shift 15774done 15775 15776ac_configure_extra_args= 15777 15778if $ac_cs_silent; then 15779 exec 6>/dev/null 15780 ac_configure_extra_args="$ac_configure_extra_args --silent" 15781fi 15782 15783_ACEOF 15784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15785if \$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 "\$@" 15792fi 15793 15794_ACEOF 15795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15796exec 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 15804 15805_ACEOF 15806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15807_ACEOF 15808 15809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15810 15811# Handling of arguments. 15812for ac_config_target in $ac_config_targets 15813do 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" ;; 15818 15819 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 15820 esac 15821done 15822 15823 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. 15828if $ac_need_defaults; then 15829 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15830 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15831fi 15832 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. 15848 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 15857 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'. 15861if test -n "$CONFIG_FILES"; then 15862 15863 15864ac_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. 15868if test "x$ac_cr" = x; then 15869 eval ac_cr=\$\'\\r\' 15870fi 15871ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15872if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15873 ac_cs_awk_cr='\\r' 15874else 15875 ac_cs_awk_cr=$ac_cr 15876fi 15877 15878echo 'BEGIN {' >"$tmp/subs1.awk" && 15879_ACEOF 15880 15881 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 15888ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15889ac_delim='%!_!# ' 15890for 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 15893 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 15902done 15903rm -f conf$$subs.sh 15904 15905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15906cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 15907_ACEOF 15908sed -n ' 15909h 15910s/^/S["/; s/!.*/"]=/ 15911p 15912g 15913s/^[^!]*!// 15914:repl 15915t repl 15916s/'"$ac_delim"'$// 15917t delim 15918:nl 15919h 15920s/\(.\{148\}\)..*/\1/ 15921t more1 15922s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15923p 15924n 15925b repl 15926:more1 15927s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15928p 15929g 15930s/.\{148\}// 15931t nl 15932:delim 15933h 15934s/\(.\{148\}\)..*/\1/ 15935t more2 15936s/["\\]/\\&/g; s/^/"/; s/$/"/ 15937p 15938b 15939:more2 15940s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15941p 15942g 15943s/.\{148\}// 15944t delim 15945' <conf$$subs.awk | sed ' 15946/^[^""]/{ 15947 N 15948 s/\n// 15949} 15950' >>$CONFIG_STATUS || ac_write_fail=1 15951rm -f conf$$subs.awk 15952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15953_ACAWK 15954cat >>"\$tmp/subs1.awk" <<_ACAWK && 15955 for (key in S) S_is_set[key] = 1 15956 FS = "" 15957 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 } 15975 15976 print line 15977} 15978 15979_ACAWK 15980_ACEOF 15981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15982if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15983 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15984else 15985 cat 15986fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 15987 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15988_ACEOF 15989 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). 15994if test "x$srcdir" = x.; then 15995 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15996h 15997s/// 15998s/^/:/ 15999s/[ ]*$/:/ 16000s/:\$(srcdir):/:/g 16001s/:\${srcdir}:/:/g 16002s/:@srcdir@:/:/g 16003s/^:*// 16004s/:*$// 16005x 16006s/\(=[ ]*\).*/\1/ 16007G 16008s/\n// 16009s/^[^=]*=[ ]*$// 16010}' 16011fi 16012 16013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16014fi # test -n "$CONFIG_FILES" 16015 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'. 16019if test -n "$CONFIG_HEADERS"; then 16020cat >"$tmp/defines.awk" <<\_ACAWK || 16021BEGIN { 16022_ACEOF 16023 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. 16027 16028# Create a delimiter string that does not exist in confdefs.h, to ease 16029# handling of long lines. 16030ac_delim='%!_!# ' 16031for 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 16040done 16041 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. 16045 16046ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16047sed -n ' 16048s/.\{148\}/&'"$ac_delim"'/g 16049t rset 16050:rset 16051s/^[ ]*#[ ]*define[ ][ ]*/ / 16052t def 16053d 16054:def 16055s/\\$// 16056t bsnl 16057s/["\\]/\\&/g 16058s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16059D["\1"]=" \3"/p 16060s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16061d 16062:bsnl 16063s/["\\]/\\&/g 16064s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16065D["\1"]=" \3\\\\\\n"\\/p 16066t cont 16067s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16068t cont 16069d 16070:cont 16071n 16072s/.\{148\}/&'"$ac_delim"'/g 16073t clear 16074:clear 16075s/\\$// 16076t bsnlc 16077s/["\\]/\\&/g; s/^/"/; s/$/"/p 16078d 16079:bsnlc 16080s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16081b cont 16082' <confdefs.h | sed ' 16083s/'"$ac_delim"'/"\\\ 16084"/g' >>$CONFIG_STATUS || ac_write_fail=1 16085 16086cat >>$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 16120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16121 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16122fi # test -n "$CONFIG_HEADERS" 16123 16124 16125eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 16126shift 16127for ac_tag 16128do 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 16145 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 16167 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 16186 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 16193 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=. 16219 16220case "$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 ;; 16230esac 16231ac_abs_top_builddir=$ac_pwd 16232ac_abs_builddir=$ac_pwd$ac_dir_suffix 16233# for backward compatibility: 16234ac_top_builddir=$ac_top_build_prefix 16235 16236case $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 ;; 16249esac 16250ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16251 16252 16253 case $ac_mode in 16254 :F) 16255 # 16256 # CONFIG_FILE 16257 # 16258 16259_ACEOF 16260 16261cat >>$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. 16264ac_datarootdir_hack=; ac_datarootdir_seen= 16265ac_sed_dataroot=' 16266/datarootdir/ { 16267 p 16268 q 16269} 16270/@datadir@/p 16271/@docdir@/p 16272/@infodir@/p 16273/@localedir@/p 16274/@mandir@/p' 16275case `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 16281cat >>$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' ;; 16289esac 16290_ACEOF 16291 16292# Neutralize VPATH when `$srcdir' = `.'. 16293# Shell code in configure.ac might set extrasub. 16294# FIXME: do we really want to maintain this feature? 16295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16296ac_sed_extra="$ac_vpsub 16297$extrasub 16298_ACEOF 16299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16300:t 16301/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16302s|@configure_input@|$ac_sed_conf_input|;t t 16303s&@top_builddir@&$ac_top_builddir_sub&;t t 16304s&@top_build_prefix@&$ac_top_build_prefix&;t t 16305s&@srcdir@&$ac_srcdir&;t t 16306s&@abs_srcdir@&$ac_abs_srcdir&;t t 16307s&@top_srcdir@&$ac_top_srcdir&;t t 16308s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16309s&@builddir@&$ac_builddir&;t t 16310s&@abs_builddir@&$ac_abs_builddir&;t t 16311s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16312$ac_datarootdir_hack 16313" 16314eval 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 16316 16317test -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' 16321which 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' 16323which seems to be undefined. Please make sure it is defined" >&2;} 16324 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 ;; 16356 16357 16358 esac 16359 16360done # for ac_tag 16361 16362 16363as_fn_exit 0 16364_ACEOF 16365ac_clean_files=$ac_clean_files_save 16366 16367test $ac_write_fail = 0 || 16368 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16369 16370 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. 16379if 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 16390fi 16391if 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;} 16394fi 16395 16396