Debian Codegraph @

m4/kpse-potrace-flags.m4

raw
1 # $Id: kpse-potrace-flags.m4 66135 2023-02-24 23:44:01Z karl $
2 # Public macros for the TeX Live (TL) tree.
3 # Copyright (C) 2022-2023 Luigi Scarso <[email protected]>
4 #
5 # This file is free software; the copyright holder
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # serial 0
10
11 # KPSE_POTRACE_FLAGS
12 # ------------------
13 # Provide the configure options '--with-system-potrace' (if in the TL tree),
14 # '--with-potrace-includes', and '--with-potrace-libdir'.
15 #
16 # Set the make variables POTRACE_INCLUDES and POTRACE_LIBS to the CPPFLAGS and
17 # LIBS required for the `-lpotrace' library in libs/potrace/ of the TL tree.
18 AC_DEFUN([KPSE_POTRACE_FLAGS], [dnl
19 AC_REQUIRE([KPSE_SAVE_FLAGS])[]dnl
20 _KPSE_LIB_FLAGS([potrace], [potrace], [],
21 [-IBLD/libs/potrace/include], [BLD/libs/potrace/libpotrace.a], [],
22 [], [${top_builddir}/../../libs/potrace/include/potrace.h])[]dnl
23 ]) # KPSE_POTRACE_FLAGS
24
25 # KPSE_POTRACE_OPTIONS([WITH-SYSTEM])
26 # ----------------------------------
27 AC_DEFUN([KPSE_POTRACE_OPTIONS], [_KPSE_LIB_OPTIONS([potrace], [$1])])
28
29 # KPSE_POTRACE_SYSTEM_FLAGS
30 # ------------------------
31 AC_DEFUN([KPSE_POTRACE_SYSTEM_FLAGS], [_KPSE_LIB_FLAGS_SYSTEM([potrace], [potrace])])