1807 C compiler flags for FREETYPE2, overriding pkg-config |
1818 C compiler flags for FREETYPE2, overriding pkg-config |
1808 FREETYPE2_LIBS |
1819 FREETYPE2_LIBS |
1809 linker flags for FREETYPE2, overriding pkg-config |
1820 linker flags for FREETYPE2, overriding pkg-config |
1810 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config |
1821 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config |
1811 ALSA_LIBS linker flags for ALSA, overriding pkg-config |
1822 ALSA_LIBS linker flags for ALSA, overriding pkg-config |
|
1823 LIBFFI_CFLAGS |
|
1824 C compiler flags for LIBFFI, overriding pkg-config |
|
1825 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config |
1812 |
1826 |
1813 Use these variables to override the choices made by `configure' or to help |
1827 Use these variables to override the choices made by `configure' or to help |
1814 it to find libraries and programs with nonstandard names/locations. |
1828 it to find libraries and programs with nonstandard names/locations. |
1815 |
1829 |
1816 Report bugs to <build-dev@openjdk.java.net>. |
1830 Report bugs to <build-dev@openjdk.java.net>. |
31691 |
31737 |
31692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 |
31738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 |
31693 $as_echo_n "checking how to link with libstdc++... " >&6; } |
31739 $as_echo_n "checking how to link with libstdc++... " >&6; } |
31694 # If dynamic was requested, it's available since it would fail above otherwise. |
31740 # If dynamic was requested, it's available since it would fail above otherwise. |
31695 # If dynamic wasn't requested, go with static unless it isn't available. |
31741 # If dynamic wasn't requested, go with static unless it isn't available. |
31696 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno; then |
31742 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then |
31697 LIBCXX="$LIBCXX -lstdc++" |
31743 LIBCXX="$LIBCXX -lstdc++" |
31698 LDCXX="$CXX" |
31744 LDCXX="$CXX" |
31699 STATIC_CXX_SETTING="STATIC_CXX=false" |
31745 STATIC_CXX_SETTING="STATIC_CXX=false" |
31700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 |
31746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 |
31701 $as_echo "dynamic" >&6; } |
31747 $as_echo "dynamic" >&6; } |
31706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 |
31752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 |
31707 $as_echo "static" >&6; } |
31753 $as_echo "static" >&6; } |
31708 fi |
31754 fi |
31709 fi |
31755 fi |
31710 |
31756 |
|
31757 |
|
31758 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then |
|
31759 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS |
|
31760 |
|
31761 pkg_failed=no |
|
31762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
|
31763 $as_echo_n "checking for LIBFFI... " >&6; } |
|
31764 |
|
31765 if test -n "$LIBFFI_CFLAGS"; then |
|
31766 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" |
|
31767 elif test -n "$PKG_CONFIG"; then |
|
31768 if test -n "$PKG_CONFIG" && \ |
|
31769 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
|
31770 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 |
|
31771 ac_status=$? |
|
31772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
31773 test $ac_status = 0; }; then |
|
31774 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
|
31775 else |
|
31776 pkg_failed=yes |
|
31777 fi |
|
31778 else |
|
31779 pkg_failed=untried |
|
31780 fi |
|
31781 if test -n "$LIBFFI_LIBS"; then |
|
31782 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" |
|
31783 elif test -n "$PKG_CONFIG"; then |
|
31784 if test -n "$PKG_CONFIG" && \ |
|
31785 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
|
31786 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 |
|
31787 ac_status=$? |
|
31788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
31789 test $ac_status = 0; }; then |
|
31790 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
|
31791 else |
|
31792 pkg_failed=yes |
|
31793 fi |
|
31794 else |
|
31795 pkg_failed=untried |
|
31796 fi |
|
31797 |
|
31798 |
|
31799 |
|
31800 if test $pkg_failed = yes; then |
|
31801 |
|
31802 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
|
31803 _pkg_short_errors_supported=yes |
|
31804 else |
|
31805 _pkg_short_errors_supported=no |
|
31806 fi |
|
31807 if test $_pkg_short_errors_supported = yes; then |
|
31808 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` |
|
31809 else |
|
31810 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` |
|
31811 fi |
|
31812 # Put the nasty error message in config.log where it belongs |
|
31813 echo "$LIBFFI_PKG_ERRORS" >&5 |
|
31814 |
|
31815 as_fn_error $? "Package requirements (libffi) were not met: |
|
31816 |
|
31817 $LIBFFI_PKG_ERRORS |
|
31818 |
|
31819 Consider adjusting the PKG_CONFIG_PATH environment variable if you |
|
31820 installed software in a non-standard prefix. |
|
31821 |
|
31822 Alternatively, you may set the environment variables LIBFFI_CFLAGS |
|
31823 and LIBFFI_LIBS to avoid the need to call pkg-config. |
|
31824 See the pkg-config man page for more details. |
|
31825 " "$LINENO" 5 |
|
31826 elif test $pkg_failed = untried; then |
|
31827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
31828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
31829 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
|
31830 is in your PATH or set the PKG_CONFIG environment variable to the full |
|
31831 path to pkg-config. |
|
31832 |
|
31833 Alternatively, you may set the environment variables LIBFFI_CFLAGS |
|
31834 and LIBFFI_LIBS to avoid the need to call pkg-config. |
|
31835 See the pkg-config man page for more details. |
|
31836 |
|
31837 To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
|
31838 See \`config.log' for more details" "$LINENO" 5; } |
|
31839 else |
|
31840 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS |
|
31841 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS |
|
31842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
31843 $as_echo "yes" >&6; } |
|
31844 : |
|
31845 fi |
|
31846 |
|
31847 fi |
|
31848 |
|
31849 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then |
|
31850 # Extract the first word of "llvm-config", so it can be a program name with args. |
|
31851 set dummy llvm-config; ac_word=$2 |
|
31852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
31853 $as_echo_n "checking for $ac_word... " >&6; } |
|
31854 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : |
|
31855 $as_echo_n "(cached) " >&6 |
|
31856 else |
|
31857 if test -n "$LLVM_CONFIG"; then |
|
31858 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. |
|
31859 else |
|
31860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
31861 for as_dir in $PATH |
|
31862 do |
|
31863 IFS=$as_save_IFS |
|
31864 test -z "$as_dir" && as_dir=. |
|
31865 for ac_exec_ext in '' $ac_executable_extensions; do |
|
31866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
31867 ac_cv_prog_LLVM_CONFIG="llvm-config" |
|
31868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
31869 break 2 |
|
31870 fi |
|
31871 done |
|
31872 done |
|
31873 IFS=$as_save_IFS |
|
31874 |
|
31875 fi |
|
31876 fi |
|
31877 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG |
|
31878 if test -n "$LLVM_CONFIG"; then |
|
31879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 |
|
31880 $as_echo "$LLVM_CONFIG" >&6; } |
|
31881 else |
|
31882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
31883 $as_echo "no" >&6; } |
|
31884 fi |
|
31885 |
|
31886 |
|
31887 |
|
31888 if test "x$LLVM_CONFIG" != xllvm-config; then |
|
31889 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 |
|
31890 fi |
|
31891 |
|
31892 llvm_components="jit mcjit engine nativecodegen native" |
|
31893 unset LLVM_CFLAGS |
|
31894 for flag in $("$LLVM_CONFIG" --cxxflags); do |
|
31895 if echo "${flag}" | grep -q '^-[ID]'; then |
|
31896 if test "${flag}" != "-D_DEBUG" ; then |
|
31897 if test "${LLVM_CFLAGS}" != "" ; then |
|
31898 LLVM_CFLAGS="${LLVM_CFLAGS} " |
|
31899 fi |
|
31900 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" |
|
31901 fi |
|
31902 fi |
|
31903 done |
|
31904 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') |
|
31905 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" |
|
31906 |
|
31907 unset LLVM_LDFLAGS |
|
31908 for flag in $("${LLVM_CONFIG}" --ldflags); do |
|
31909 if echo "${flag}" | grep -q '^-L'; then |
|
31910 if test "${LLVM_LDFLAGS}" != ""; then |
|
31911 LLVM_LDFLAGS="${LLVM_LDFLAGS} " |
|
31912 fi |
|
31913 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" |
|
31914 fi |
|
31915 done |
|
31916 |
|
31917 unset LLVM_LIBS |
|
31918 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do |
|
31919 if echo "${flag}" | grep -q '^-l'; then |
|
31920 if test "${LLVM_LIBS}" != ""; then |
|
31921 LLVM_LIBS="${LLVM_LIBS} " |
|
31922 fi |
|
31923 LLVM_LIBS="${LLVM_LIBS}${flag}" |
|
31924 fi |
|
31925 done |
|
31926 |
|
31927 |
|
31928 |
|
31929 |
|
31930 fi |
31711 |
31931 |
31712 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) |
31932 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) |
31713 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$LIBCXX" = x; then |
31933 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$LIBCXX" = x; then |
31714 LIBCXX="/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" |
31934 LIBCXX="/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" |
31715 fi |
31935 fi |