summaryrefslogtreecommitdiff
path: root/Build/source/m4/kpse-xpdf-flags.m4
blob: 82fb20542c75c6740fc22711cb2ee092a8dfb42a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Public macros for the teTeX / TeX Live (TL) tree.
# Copyright (C) 2009 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.

# serial 0

# KPSE_XPDF_FLAGS()
# -----------------
# Set the make variables XPDF_INCLUDES and XPDF_LIBS to the CPPFLAGS and
# LIBS required for the `-lxpdf' library in libs/xpdf/ of the TL tree.
AC_DEFUN([KPSE_XPDF_FLAGS],
[_KPSE_LIB_FLAGS([xpdf], [xpdf], [],
                 _Kpse_Xpdf_Flags[ -IBLD/libs/xpdf -IBLD/libs/xpdf/goo -IBLD/libs/xpdf/fofi -IBLD/libs/xpdf/xpdf],
                 [BLD/libs/xpdf/libxpdf.a],
                 [tree],
                 [], [${top_builddir}/../../libs/xpdf/xpdf/Stream.h])[]dnl
]) # KPSE_XPDF_FLAGS

# KPSE_XPDF_SELF_FLAGS()
# ----------------------
# Flags for building and using libxpdf.
AC_DEFUN([KPSE_XPDF_SELF_FLAGS],
[XPDF_SELF_FLAGS=_Kpse_Xpdf_Flags
AC_SUBST([XPDF_SELF_FLAGS])[]dnl
]) # KPSE_XPDF_SELF_FLAGS

m4_define([_Kpse_Xpdf_Flags], [-DPDF_PARSER_ONLY])