< prev index next >

make/autoconf/libraries.m4

Print this page

 16 #
 17 # You should have received a copy of the GNU General Public License version
 18 # 2 along with this work; if not, write to the Free Software Foundation,
 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 20 #
 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 22 # or visit www.oracle.com if you need additional information or have any
 23 # questions.
 24 #
 25 
 26 # Major library component reside in separate files.
 27 m4_include([lib-alsa.m4])
 28 m4_include([lib-bundled.m4])
 29 m4_include([lib-cups.m4])
 30 m4_include([lib-ffi.m4])
 31 m4_include([lib-freetype.m4])
 32 m4_include([lib-std.m4])
 33 m4_include([lib-x11.m4])
 34 m4_include([lib-fontconfig.m4])
 35 m4_include([lib-tests.m4])

 36 
 37 ################################################################################
 38 # Determine which libraries are needed for this configuration
 39 ################################################################################
 40 AC_DEFUN_ONCE([LIB_DETERMINE_DEPENDENCIES],
 41 [
 42   # Check if X11 is needed
 43   if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
 44     # No X11 support on windows or macosx
 45     NEEDS_LIB_X11=false
 46   else
 47     # All other instances need X11, even if building headless only, libawt still
 48     # needs X11 headers.
 49     NEEDS_LIB_X11=true
 50   fi
 51 
 52   # Check if fontconfig is needed
 53   if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
 54     # No fontconfig support on windows or macosx
 55     NEEDS_LIB_FONTCONFIG=false

 85   else
 86     NEEDS_LIB_FFI=false
 87   fi
 88 ])
 89 
 90 ################################################################################
 91 # Parse library options, and setup needed libraries
 92 ################################################################################
 93 AC_DEFUN_ONCE([LIB_SETUP_LIBRARIES],
 94 [
 95   LIB_SETUP_STD_LIBS
 96   LIB_SETUP_X11
 97   LIB_SETUP_CUPS
 98   LIB_SETUP_FONTCONFIG
 99   LIB_SETUP_FREETYPE
100   LIB_SETUP_ALSA
101   LIB_SETUP_LIBFFI
102   LIB_SETUP_BUNDLED_LIBS
103   LIB_SETUP_MISC_LIBS
104   LIB_TESTS_SETUP_GTEST

105 
106   BASIC_JDKLIB_LIBS=""
107   if test "x$TOOLCHAIN_TYPE" != xmicrosoft; then
108     BASIC_JDKLIB_LIBS="-ljava -ljvm"
109   fi
110 
111   # Math library
112   BASIC_JVM_LIBS="$LIBM"
113 
114   # Dynamic loading library
115   if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xaix; then
116     BASIC_JVM_LIBS="$BASIC_JVM_LIBS $LIBDL"
117   fi
118 
119   # Threading library
120   if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xaix; then
121     BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lpthread"
122   fi
123 
124   # librt for legacy clock_gettime

 16 #
 17 # You should have received a copy of the GNU General Public License version
 18 # 2 along with this work; if not, write to the Free Software Foundation,
 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 20 #
 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 22 # or visit www.oracle.com if you need additional information or have any
 23 # questions.
 24 #
 25 
 26 # Major library component reside in separate files.
 27 m4_include([lib-alsa.m4])
 28 m4_include([lib-bundled.m4])
 29 m4_include([lib-cups.m4])
 30 m4_include([lib-ffi.m4])
 31 m4_include([lib-freetype.m4])
 32 m4_include([lib-std.m4])
 33 m4_include([lib-x11.m4])
 34 m4_include([lib-fontconfig.m4])
 35 m4_include([lib-tests.m4])
 36 m4_include([lib-clang.m4])
 37 
 38 ################################################################################
 39 # Determine which libraries are needed for this configuration
 40 ################################################################################
 41 AC_DEFUN_ONCE([LIB_DETERMINE_DEPENDENCIES],
 42 [
 43   # Check if X11 is needed
 44   if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
 45     # No X11 support on windows or macosx
 46     NEEDS_LIB_X11=false
 47   else
 48     # All other instances need X11, even if building headless only, libawt still
 49     # needs X11 headers.
 50     NEEDS_LIB_X11=true
 51   fi
 52 
 53   # Check if fontconfig is needed
 54   if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
 55     # No fontconfig support on windows or macosx
 56     NEEDS_LIB_FONTCONFIG=false

 86   else
 87     NEEDS_LIB_FFI=false
 88   fi
 89 ])
 90 
 91 ################################################################################
 92 # Parse library options, and setup needed libraries
 93 ################################################################################
 94 AC_DEFUN_ONCE([LIB_SETUP_LIBRARIES],
 95 [
 96   LIB_SETUP_STD_LIBS
 97   LIB_SETUP_X11
 98   LIB_SETUP_CUPS
 99   LIB_SETUP_FONTCONFIG
100   LIB_SETUP_FREETYPE
101   LIB_SETUP_ALSA
102   LIB_SETUP_LIBFFI
103   LIB_SETUP_BUNDLED_LIBS
104   LIB_SETUP_MISC_LIBS
105   LIB_TESTS_SETUP_GTEST
106   LIB_SETUP_LIBCLANG
107 
108   BASIC_JDKLIB_LIBS=""
109   if test "x$TOOLCHAIN_TYPE" != xmicrosoft; then
110     BASIC_JDKLIB_LIBS="-ljava -ljvm"
111   fi
112 
113   # Math library
114   BASIC_JVM_LIBS="$LIBM"
115 
116   # Dynamic loading library
117   if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xaix; then
118     BASIC_JVM_LIBS="$BASIC_JVM_LIBS $LIBDL"
119   fi
120 
121   # Threading library
122   if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xaix; then
123     BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lpthread"
124   fi
125 
126   # librt for legacy clock_gettime
< prev index next >