jdk/make/sun/xawt/Makefile
changeset 7933 afae9398b405
parent 7668 d4a77089c587
child 8583 15dea0fdc2ea
equal deleted inserted replaced
7932:f4ec6ef455c3 7933:afae9398b405
   134   CPPFLAGS += -I/usr/X11R6/include/X11/extensions \
   134   CPPFLAGS += -I/usr/X11R6/include/X11/extensions \
   135               -I/usr/include/X11/extensions \
   135               -I/usr/include/X11/extensions \
   136               -I$(OPENWIN_HOME)/include 
   136               -I$(OPENWIN_HOME)/include 
   137 endif
   137 endif
   138 
   138 
       
   139 # We have some odd logic here because some Solaris 10 updates
       
   140 # have a render.h file that suggests gradients are supported, but
       
   141 # the Xrender.h doesn't have the corresponding type definitions.
       
   142 # Earlier updates have neither. We'd like to know if there's a mismatch.
       
   143 # Whilst in the C preprocessor we can tell if the render.h define's are set
       
   144 # we can't tell anything about C declarations.
       
   145 # A grep of Xrender.h is the only way to know this. If they are absent
       
   146 # we will set a flag indicating this mismatch and the JDK source file
       
   147 # will interpret it to resolve the problem.
   139 ifeq ($(PLATFORM), solaris)
   148 ifeq ($(PLATFORM), solaris)
   140   CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions
   149   CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions
       
   150   OS_VERSION := $(shell uname -r)
       
   151   XRENDER_H := $(OPENWIN_HOME)/share/include/X11/extensions/Xrender.h
       
   152   ifeq ($(OS_VERSION),5.10) 
       
   153      LINEARGRADIENT_CNT := $(shell $(EGREP) -c XLinearGradient $(XRENDER_H))
       
   154      ifeq ($(LINEARGRADIENT_CNT),0) 
       
   155        CFLAGS+= -DSOLARIS10_NO_XRENDER_STRUCTS
       
   156      endif
       
   157  endif
   141 endif
   158 endif
   142 
   159 
   143 ifeq ($(MILESTONE), internal)
   160 ifeq ($(MILESTONE), internal)
   144   CPPFLAGS += -DINTERNAL_BUILD
   161   CPPFLAGS += -DINTERNAL_BUILD
   145 endif
   162 endif