< prev index next >

common/autoconf/generated-configure.sh

Print this page




 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS

 632 CCACHE
 633 USE_PRECOMPILED_HEADER
 634 SJAVAC_SERVER_DIR
 635 ENABLE_SJAVAC
 636 SJAVAC_SERVER_JAVA_FLAGS
 637 SJAVAC_SERVER_JAVA
 638 JAVA_TOOL_FLAGS_SMALL
 639 JAVA_FLAGS_SMALL
 640 JAVA_FLAGS_BIG
 641 JAVA_FLAGS
 642 JOBS
 643 MEMORY_SIZE
 644 NUM_CORES
 645 ENABLE_INTREE_EC
 646 SALIB_NAME
 647 HOTSPOT_MAKE_ARGS
 648 MSVCR_DLL
 649 LIBCXX
 650 LLVM_LIBS
 651 LLVM_LDFLAGS


4312 # Check if the VS env variables were setup prior to running configure.
4313 # If not, then find vcvarsall.bat and run it automatically, and integrate
4314 # the set env variables into the spec file.
4315 
4316 
4317 
4318 
4319 
4320 
4321 
4322 
4323 
4324 
4325 
4326 # This line needs to be here, verbatim, after all includes and the dummy hook
4327 # definitions. It is replaced with custom functionality when building
4328 # custom sources.
4329 #CUSTOM_AUTOCONF_INCLUDE
4330 
4331 # Do not change or remove the following line, it is needed for consistency checks:
4332 DATE_WHEN_GENERATED=1420811523
4333 
4334 ###############################################################################
4335 #
4336 # Initialization / Boot-strapping
4337 #
4338 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4339 # thus it jumps back and forth, each time gaining something needed later on.
4340 #
4341 ###############################################################################
4342 
4343 # If we are requested to print additional help, do that and then exit.
4344 # This must be the very first call.
4345 
4346   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4347     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4348     $PRINTF "Which are valid to use depends on the build platform.\n"
4349     for toolchain in $VALID_TOOLCHAINS_all; do
4350       # Use indirect variable referencing
4351       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4352       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


50569       else
50570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50571 $as_echo "yes" >&6; }
50572       fi
50573       rm -f conftest.h conftest.hpp.gch
50574     fi
50575   fi
50576 
50577 
50578 
50579 
50580 # Setup use of ccache, if available
50581 
50582   # Check whether --enable-ccache was given.
50583 if test "${enable_ccache+set}" = set; then :
50584   enableval=$enable_ccache;
50585 fi
50586 
50587 
50588   CCACHE=

50589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5
50590 $as_echo_n "checking is ccache enabled... " >&6; }
50591   ENABLE_CCACHE=$enable_ccache
50592   if test "x$enable_ccache" = xyes; then

50593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50594 $as_echo "yes" >&6; }
50595     OLD_PATH="$PATH"
50596     if test "x$TOOLCHAIN_PATH" != x; then
50597       PATH=$TOOLCHAIN_PATH:$PATH
50598     fi
50599 
50600 
50601 
50602   # Publish this variable in the help.
50603 
50604 
50605   if test "x$CCACHE" = x; then
50606     # The variable is not set by user, try to locate tool using the code snippet
50607     for ac_prog in ccache
50608 do
50609   # Extract the first word of "$ac_prog", so it can be a program name with args.
50610 set dummy $ac_prog; ac_word=$2
50611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
50612 $as_echo_n "checking for $ac_word... " >&6; }


50772         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5
50773 $as_echo_n "checking for CCACHE... " >&6; }
50774         if test ! -x "$tool_specified"; then
50775           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
50776 $as_echo "not found" >&6; }
50777           as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5
50778         fi
50779         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
50780 $as_echo "$tool_specified" >&6; }
50781       fi
50782     fi
50783   fi
50784 
50785 
50786 
50787   if test "x$CCACHE" = x; then
50788     as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5
50789   fi
50790 
50791 
50792     CCACHE_STATUS="enabled"
50793     PATH="$OLD_PATH"








50794   elif test "x$enable_ccache" = xno; then
50795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5
50796 $as_echo "no, explicitly disabled" >&6; }

50797   elif test "x$enable_ccache" = x; then
50798     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50799 $as_echo "no" >&6; }
50800   else
50801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
50802 $as_echo "unknown" >&6; }
50803     as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5
50804   fi
50805 
50806 
50807 
50808 # Check whether --with-ccache-dir was given.
50809 if test "${with_ccache_dir+set}" = set; then :
50810   withval=$with_ccache_dir;
50811 fi
50812 
50813 
50814   if test "x$with_ccache_dir" != x; then
50815     # When using a non home ccache directory, assume the use is to share ccache files
50816     # with other users. Thus change the umask.
50817     SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002"
50818     if test "x$CCACHE" = x; then
50819       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5
50820 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;}
50821     fi
50822   fi
50823 
50824   if test "x$CCACHE" != x; then
50825 
50826   if test "x$CCACHE" != x; then
50827     # Only use ccache if it is 3.1.4 or later, which supports
50828     # precompiled headers.
50829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5
50830 $as_echo_n "checking if ccache supports precompiled headers... " >&6; }
50831     HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null`
50832     if test "x$HAS_GOOD_CCACHE" = x; then
50833       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5
50834 $as_echo "no, disabling ccache" >&6; }
50835       CCACHE=
50836       CCACHE_STATUS="disabled"
50837     else
50838       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50839 $as_echo "yes" >&6; }
50840       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5
50841 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; }

50842       PUSHED_FLAGS="$CXXFLAGS"
50843       CXXFLAGS="-fpch-preprocess $CXXFLAGS"
50844       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50845 /* end confdefs.h.  */
50846 
50847 int
50848 main ()
50849 {
50850 
50851   ;
50852   return 0;
50853 }
50854 _ACEOF
50855 if ac_fn_cxx_try_compile "$LINENO"; then :
50856   CC_KNOWS_CCACHE_TRICK=yes
50857 else
50858   CC_KNOWS_CCACHE_TRICK=no
50859 fi
50860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50861       CXXFLAGS="$PUSHED_FLAGS"
50862       if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then
50863         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50864 $as_echo "yes" >&6; }



50865       else
50866         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5
50867 $as_echo "no, disabling ccaching of precompiled headers" >&6; }
50868         CCACHE=
50869         CCACHE_STATUS="disabled"
50870       fi
50871     fi
50872   fi
50873 
50874   if test "x$CCACHE" != x; then
50875     CCACHE_SLOPPINESS=time_macros
50876     CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE"
50877     CCACHE_FLAGS=-fpch-preprocess
50878 
50879     if test "x$SET_CCACHE_DIR" != x; then
50880       mkdir -p $CCACHE_DIR > /dev/null 2>&1
50881       chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1
50882     fi
50883   fi
50884 
50885   fi
50886 
50887 
50888 ###############################################################################
50889 #
50890 # And now the finish...
50891 #
50892 ###############################################################################
50893 
50894 # Check for some common pitfalls
50895 
50896   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
50897     file_to_test="$SRC_ROOT/LICENSE"




 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CFLAGS_CCACHE
 633 CCACHE
 634 USE_PRECOMPILED_HEADER
 635 SJAVAC_SERVER_DIR
 636 ENABLE_SJAVAC
 637 SJAVAC_SERVER_JAVA_FLAGS
 638 SJAVAC_SERVER_JAVA
 639 JAVA_TOOL_FLAGS_SMALL
 640 JAVA_FLAGS_SMALL
 641 JAVA_FLAGS_BIG
 642 JAVA_FLAGS
 643 JOBS
 644 MEMORY_SIZE
 645 NUM_CORES
 646 ENABLE_INTREE_EC
 647 SALIB_NAME
 648 HOTSPOT_MAKE_ARGS
 649 MSVCR_DLL
 650 LIBCXX
 651 LLVM_LIBS
 652 LLVM_LDFLAGS


4313 # Check if the VS env variables were setup prior to running configure.
4314 # If not, then find vcvarsall.bat and run it automatically, and integrate
4315 # the set env variables into the spec file.
4316 
4317 
4318 
4319 
4320 
4321 
4322 
4323 
4324 
4325 
4326 
4327 # This line needs to be here, verbatim, after all includes and the dummy hook
4328 # definitions. It is replaced with custom functionality when building
4329 # custom sources.
4330 #CUSTOM_AUTOCONF_INCLUDE
4331 
4332 # Do not change or remove the following line, it is needed for consistency checks:
4333 DATE_WHEN_GENERATED=1423146375
4334 
4335 ###############################################################################
4336 #
4337 # Initialization / Boot-strapping
4338 #
4339 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4340 # thus it jumps back and forth, each time gaining something needed later on.
4341 #
4342 ###############################################################################
4343 
4344 # If we are requested to print additional help, do that and then exit.
4345 # This must be the very first call.
4346 
4347   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4348     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4349     $PRINTF "Which are valid to use depends on the build platform.\n"
4350     for toolchain in $VALID_TOOLCHAINS_all; do
4351       # Use indirect variable referencing
4352       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4353       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


50570       else
50571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50572 $as_echo "yes" >&6; }
50573       fi
50574       rm -f conftest.h conftest.hpp.gch
50575     fi
50576   fi
50577 
50578 
50579 
50580 
50581 # Setup use of ccache, if available
50582 
50583   # Check whether --enable-ccache was given.
50584 if test "${enable_ccache+set}" = set; then :
50585   enableval=$enable_ccache;
50586 fi
50587 
50588 
50589   CCACHE=
50590   CCACHE_STATUS=
50591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5
50592 $as_echo_n "checking is ccache enabled... " >&6; }

50593   if test "x$enable_ccache" = xyes; then
50594     if test "x$TOOLCHAIN_TYPE" = "xgccapa" -o "x$TOOLCHAIN_TYPE" = "xclang"; then
50595       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50596 $as_echo "yes" >&6; }
50597       OLD_PATH="$PATH"
50598       if test "x$TOOLCHAIN_PATH" != x; then
50599         PATH=$TOOLCHAIN_PATH:$PATH
50600       fi
50601 
50602 
50603 
50604   # Publish this variable in the help.
50605 
50606 
50607   if test "x$CCACHE" = x; then
50608     # The variable is not set by user, try to locate tool using the code snippet
50609     for ac_prog in ccache
50610 do
50611   # Extract the first word of "$ac_prog", so it can be a program name with args.
50612 set dummy $ac_prog; ac_word=$2
50613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
50614 $as_echo_n "checking for $ac_word... " >&6; }


50774         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5
50775 $as_echo_n "checking for CCACHE... " >&6; }
50776         if test ! -x "$tool_specified"; then
50777           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
50778 $as_echo "not found" >&6; }
50779           as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5
50780         fi
50781         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
50782 $as_echo "$tool_specified" >&6; }
50783       fi
50784     fi
50785   fi
50786 
50787 
50788 
50789   if test "x$CCACHE" = x; then
50790     as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5
50791   fi
50792 
50793 

50794       PATH="$OLD_PATH"
50795       CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'`
50796       CCACHE_STATUS="Active ($CCACHE_VERSION)"
50797     else
50798       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50799 $as_echo "no" >&6; }
50800       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5
50801 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;}
50802     fi
50803   elif test "x$enable_ccache" = xno; then
50804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5
50805 $as_echo "no, explicitly disabled" >&6; }
50806     CCACHE_STATUS="Disabled"
50807   elif test "x$enable_ccache" = x; then
50808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50809 $as_echo "no" >&6; }
50810   else
50811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
50812 $as_echo "unknown" >&6; }
50813     as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5
50814   fi
50815 
50816 
50817 
50818 # Check whether --with-ccache-dir was given.
50819 if test "${with_ccache_dir+set}" = set; then :
50820   withval=$with_ccache_dir;
50821 fi
50822 
50823 
50824   if test "x$with_ccache_dir" != x; then
50825     # When using a non home ccache directory, assume the use is to share ccache files
50826     # with other users. Thus change the umask.
50827     SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002"
50828     if test "x$CCACHE" = x; then
50829       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5
50830 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;}
50831     fi
50832   fi
50833 
50834   if test "x$CCACHE" != x; then
50835 
50836   if test "x$CCACHE" != x; then
50837     if test "x$USE_PRECOMPILED_HEADER" = "x1"; then
50838       HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \
50839           $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]'`
50840       if test "x$HAS_BAD_CCACHE" != "x"; then
50841         as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5
50842       fi







50843       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5
50844 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; }
50845       CCACHE_PRECOMP_FLAG="-fpch-preprocess"
50846       PUSHED_FLAGS="$CXXFLAGS"
50847       CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS"
50848       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50849 /* end confdefs.h.  */
50850 
50851 int
50852 main ()
50853 {
50854 
50855   ;
50856   return 0;
50857 }
50858 _ACEOF
50859 if ac_fn_cxx_try_compile "$LINENO"; then :
50860   CC_KNOWS_CCACHE_TRICK=yes
50861 else
50862   CC_KNOWS_CCACHE_TRICK=no
50863 fi
50864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50865       CXXFLAGS="$PUSHED_FLAGS"
50866       if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then
50867         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50868 $as_echo "yes" >&6; }
50869         CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG"
50870 
50871         CCACHE_SLOPPINESS=pch_defines,time_macros
50872       else
50873         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50874 $as_echo "no" >&6; }
50875         as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5


50876       fi
50877     fi
50878 
50879     CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \
50880         CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE"


50881 
50882     if test "x$SET_CCACHE_DIR" != x; then
50883       mkdir -p $CCACHE_DIR > /dev/null 2>&1
50884       chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1
50885     fi
50886   fi
50887 
50888   fi
50889 
50890 
50891 ###############################################################################
50892 #
50893 # And now the finish...
50894 #
50895 ###############################################################################
50896 
50897 # Check for some common pitfalls
50898 
50899   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
50900     file_to_test="$SRC_ROOT/LICENSE"


< prev index next >