diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 1 insertions, 4 deletions
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 <dwrite.h>]], - [[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]) ]) |