1 # Public macros for the TeX Live (TL) tree.
2 # Copyright (C) 2013, 2014 Peter Breitenlohner <tex-live@tug.org>
4 # This file is free software; the copyright holder
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
10 # Provide the configure options '--with-system-libpaper' (if in the TL tree),
11 # '--with-libpaper-includes', and '--with-libpaper-libdir'.
13 # Set the make variables LIBPAPER_INCLUDES and LIBPAPER_LIBS to the
14 # CPPFLAGS and LIBS required for the `-lpaper' library in libs/libspaper/
16 AC_DEFUN([KPSE_LIBPAPER_FLAGS], [dnl
17 AC_REQUIRE([KPSE_SAVE_FLAGS])[]dnl
18 _KPSE_LIB_FLAGS([libpaper], [paper], [],
19 [-IBLD/libs/libpaper/include], [BLD/libs/libpaper/libpaper.a], [],
20 [], [${top_builddir}/../../libs/libpaper/include/paper.h])[]dnl
21 ]) # KPSE_LIBPAPER_FLAGS
23 # KPSE_LIBPAPER_OPTIONS([WITH-SYSTEM])
24 # ------------------------------------
25 AC_DEFUN([KPSE_LIBPAPER_OPTIONS], [_KPSE_LIB_OPTIONS([libpaper], [$1])])
27 # KPSE_LIBPAPER_SYSTEM_FLAGS
28 # --------------------------
29 AC_DEFUN([KPSE_LIBPAPER_SYSTEM_FLAGS], [_KPSE_LIB_FLAGS_SYSTEM([libpaper], [paper])])