Looks good to me. 

/Magnus

> 8 feb. 2016 kl. 19:39 skrev David DeHaven <david.deha...@oracle.com>:
> 
> 
> JBS link:
> https://bugs.openjdk.java.net/browse/JDK-8147754
> 
> Please review this small fix for locating Freetype with the updated version 
> of XQuartz (for OSX 10.11):
> 
> --- cut here ---
> diff --git a/common/autoconf/lib-freetype.m4 b/common/autoconf/lib-freetype.m4
> --- a/common/autoconf/lib-freetype.m4
> +++ b/common/autoconf/lib-freetype.m4
> @@ -349,6 +349,14 @@
>             LIB_CHECK_POTENTIAL_FREETYPE([$FREETYPE_BASE_DIR/include], 
> [$FREETYPE_BASE_DIR/lib], [well-known location])
>           fi
> 
> +          if test "x$OPENJDK_TARGET_OS" = xmacosx; then
> +            if test "x$FOUND_FREETYPE" != xyes; then
> +              # Due to changes in OSX 10.11 XQuartz now installs to /opt/X11
> +              FREETYPE_BASE_DIR="$SYSROOT/opt/X11"
> +              LIB_CHECK_POTENTIAL_FREETYPE([$FREETYPE_BASE_DIR/include], 
> [$FREETYPE_BASE_DIR/lib], [well-known location])
> +            fi
> +          fi
> +
>           if test "x$FOUND_FREETYPE" != xyes; then
>             FREETYPE_BASE_DIR="$SYSROOT/usr/sfw"
>             LIB_CHECK_POTENTIAL_FREETYPE([$FREETYPE_BASE_DIR/include], 
> [$FREETYPE_BASE_DIR/lib], [well-known location])
> --- cut here ---
> 
> Tested on OSX 10.11 (El Capitan) with XQuartz 2.7.8:
> $ sh ./configure
> ...
> checking for freetype includes... /opt/X11/include/freetype2
> checking for freetype libraries... /opt/X11/lib
> ...
> 
> Build seems to work fine too.
> 
> -DrD-
> 

Reply via email to