summaryrefslogtreecommitdiff
path: root/Build/source/m4/kpse-paper-flags.m4
blob: c8e0e761e6e12556f2ae8e0772e6c395cc4b01f4 (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
# Public macros for the TeX Live (TL) tree.
# Copyright (C) 2013 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_PAPER_FLAGS
# ---------------
# Provide the configure options '--with-system-paper' (if in the TL tree),
# '--with-paper-includes', and '--with-paper-libdir'.
#
# Set the make variables PAPER_INCLUDES and PAPER_LIBS to the CPPFLAGS and
# LIBS required for the `-lz' library in libs/paper/ of the TL tree.
AC_DEFUN([KPSE_PAPER_FLAGS], [dnl
AC_REQUIRE([KPSE_SAVE_FLAGS])[]dnl
_KPSE_LIB_FLAGS([paper], [paper], [],
                [-IBLD/libs/paper/include], [BLD/libs/paper/libpaper.a], [],
                [], [${top_builddir}/../../libs/paper/include/paper.h])[]dnl
]) # KPSE_PAPER_FLAGS

# KPSE_PAPER_OPTIONS([WITH-SYSTEM])
# --------------------------------
AC_DEFUN([KPSE_PAPER_OPTIONS], [_KPSE_LIB_OPTIONS([paper], [$1])])

# KPSE_PAPER_SYSTEM_FLAGS
# ----------------------
AC_DEFUN([KPSE_PAPER_SYSTEM_FLAGS], [_KPSE_LIB_FLAGS_SYSTEM([paper], [paper])])