summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdvipdfmx/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/xdvipdfmx/configure.ac')
-rw-r--r--Build/source/texk/xdvipdfmx/configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/Build/source/texk/xdvipdfmx/configure.ac b/Build/source/texk/xdvipdfmx/configure.ac
index db6fd5ee46e..08fc22347a6 100644
--- a/Build/source/texk/xdvipdfmx/configure.ac
+++ b/Build/source/texk/xdvipdfmx/configure.ac
@@ -59,10 +59,18 @@ CHO_CHECK_ZLIB
KPSE_ADD_FLAGS([libpng])
CHO_CHECK_LIBPNG
+set -x
+kpse_save_FREETYPE2_INCLUDES=$FREETYPE2_INCLUDES
+kpse_save_FREETYPE2_LIBS=$FREETYPE2_LIBS
+eval FREETYPE2_INCLUDES="$FREETYPE2_INCLUDES"
+eval FREETYPE2_LIBS="$FREETYPE2_LIBS"
+set +x
KPSE_ADD_FLAGS([freetype2])
CHO_CHECK_LIBFREETYPE([xdvipdfmx])
KPSE_RESTORE_FLAGS
+FREETYPE2_INCLUDES=$kpse_save_FREETYPE2_INCLUDES
+FREETYPE2_LIBS=$kpse_save_FREETYPE2_LIBS
dnl We do not provide the configure option '--enable-tetex-build', but may
dnl inherit enable_tetex_build when part of a teTeX / TeX Live installation.