Debian Codegraph @

m4/kpse-libpng-flags.m4

raw
1 # Public macros for the TeX Live (TL) tree.
2 # Copyright (C) 2009-2015 Peter Breitenlohner <[email protected]>
3 #
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.
7
8 # serial 0
9
10 # KPSE_LIBPNG_FLAGS
11 # -----------------
12 # Provide the configure options '--with-system-libpng' (if in the TL tree).
13 #
14 # Set the make variables LIBPNG_INCLUDES and LIBPNG_LIBS to the CPPFLAGS and
15 # LIBS required for the `-lpng' library in libs/libpng/ of the TL tree.
16 AC_DEFUN([KPSE_LIBPNG_FLAGS], [dnl
17 AC_REQUIRE([KPSE_ZLIB_FLAGS])[]dnl
18 _KPSE_LIB_FLAGS([libpng], [png], [],
19 [-IBLD/libs/libpng/include], [BLD/libs/libpng/libpng.a], [],
20 [], [${top_builddir}/../../libs/libpng/include/png.h])[]dnl
21 ]) # KPSE_LIBPNG_FLAGS
22
23 # KPSE_LIBPNG_OPTIONS([WITH-SYSTEM])
24 # ----------------------------------
25 AC_DEFUN([KPSE_LIBPNG_OPTIONS], [_KPSE_LIB_OPTIONS([libpng], [$1], [pkg-config])])
26
27 # KPSE_LIBPNG_SYSTEM_FLAGS
28 # ------------------------
29 AC_DEFUN([KPSE_LIBPNG_SYSTEM_FLAGS], [dnl
30 _KPSE_PKG_CONFIG_FLAGS([libpng], [libpng])])