From ab9b9cf254a7871f4f8cdee386971f0ba5c58e13 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 11 Jul 2015 19:33:44 +0200 Subject: directwrite: dynamically load dwrite.dll --- configure.ac | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 26c2c37..61a8533 100644 --- a/configure.ac +++ b/configure.ac @@ -180,20 +180,17 @@ fi if test x$enable_directwrite != xno; then AC_LANG_PUSH([C++]) CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions" -OLDLIBS="$LIBS" # Linking to DirectWrite directly only works from Windows -LIBS="$LIBS -ldwrite" AC_MSG_CHECKING([for DIRECTWRITE]) AC_LINK_IFELSE([ AC_LANG_PROGRAM( [[#include ]], - [[DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED, __uuidof(IDWriteFactory), NULL);]],) + [[DWRITE_FACTORY_TYPE_SHARED;]],) ], [ AC_DEFINE(CONFIG_DIRECTWRITE, 1, [found DirectWrite]) directwrite=true AC_MSG_RESULT([yes]) ], [ - LIBS="$OLDLIBS" directwrite=false AC_MSG_RESULT([no]) ]) -- cgit v1.2.3