summaryrefslogtreecommitdiff
path: root/Build/source/m4/kpse-harfbuzz-flags.m4
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-11-30 10:42:45 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-11-30 10:42:45 +0000
commitcdae43322cc315a65b9bee9f62b2e28934fefa6a (patch)
tree18a8ae660cb1dc7d1136962b4e8dcbccad5b873d /Build/source/m4/kpse-harfbuzz-flags.m4
parent156b1ea47fd003feee19afbb34c0e85e596b54dc (diff)
libs/harfbuzz: Added for future XeTeX
git-svn-id: svn://tug.org/texlive/trunk@28390 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/m4/kpse-harfbuzz-flags.m4')
-rw-r--r--Build/source/m4/kpse-harfbuzz-flags.m442
1 files changed, 42 insertions, 0 deletions
diff --git a/Build/source/m4/kpse-harfbuzz-flags.m4 b/Build/source/m4/kpse-harfbuzz-flags.m4
new file mode 100644
index 00000000000..e8fb50d0b1e
--- /dev/null
+++ b/Build/source/m4/kpse-harfbuzz-flags.m4
@@ -0,0 +1,42 @@
+# Public macros for the TeX Live (TL) tree.
+# Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org>
+#
+# This file is free software; the copyright holder
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# KPSE_HARFBUZZ_FLAGS
+# -----------------
+# Provide the configure options '--with-system-harfbuzz' (if in the TL tree).
+#
+# Set the make variables HARFBUZZ_INCLUDES and HARFBUZZ_LIBS to the CPPFLAGS and
+# LIBS required for the `-lpng' library in libs/harfbuzz/ of the TL tree.
+AC_DEFUN([KPSE_HARFBUZZ_FLAGS],
+[AC_REQUIRE([KPSE_FREETYPE2_FLAGS])[]dnl
+AC_REQUIRE([KPSE_ICU_FLAGS])[]dnl
+_KPSE_LIB_FLAGS([harfbuzz], [harfbuzz], [],
+ [-IBLD/libs/harfbuzz/include], [BLD/libs/harfbuzz/libharfbuzz.a], [],
+ [], [${top_builddir}/../../libs/harfbuzz/include/hb.h])[]dnl
+]) # KPSE_HARFBUZZ_FLAGS
+
+# KPSE_HARFBUZZ_OPTIONS([WITH-SYSTEM])
+# ----------------------------------
+AC_DEFUN([KPSE_HARFBUZZ_OPTIONS],
+[m4_ifval([$1],
+ [AC_ARG_WITH([system-harfbuzz],
+ AS_HELP_STRING([--with-system-harfbuzz],
+ [use installed harfbuzz headers and library
+ (requires pkg-config)]))])[]dnl
+]) # KPSE_HARFBUZZ_OPTIONS
+
+# KPSE_HARFBUZZ_SYSTEM_FLAGS
+# ------------------------
+AC_DEFUN([KPSE_HARFBUZZ_SYSTEM_FLAGS],
+[AC_REQUIRE([_KPSE_CHECK_PKG_CONFIG])[]dnl
+if $PKG_CONFIG harfbuzz; then
+ HARFBUZZ_INCLUDES=`$PKG_CONFIG harfbuzz --cflags`
+ HARFBUZZ_LIBS=`$PKG_CONFIG harfbuzz --libs`
+elif test "x$need_harfbuzz:$with_system_harfbuzz" = xyes:yes; then
+ AC_MSG_ERROR([did not find harfbuzz])
+fi
+]) # KPSE_HARFBUZZ_SYSTEM_FLAGS