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-potrace' (if in the TL tree),
11 # '--with-potrace-includes', and '--with-potrace-libdir'.
13 # Set the make variables POTRACE_INCLUDES and POTRACE_LIBS to the CPPFLAGS and
14 # LIBS required for the `-lpotrace' library in libs/potrace/ of the TL tree.
15 AC_DEFUN([KPSE_POTRACE_FLAGS], [dnl
16 _KPSE_LIB_FLAGS([potrace], [potrace], [],
17 [-IBLD/libs/potrace/include], [BLD/libs/potrace/libpotrace.a], [],
18 [], [${top_builddir}/../../libs/potrace/include/potracelib.h])[]dnl
19 ]) # KPSE_POTRACE_FLAGS
21 # KPSE_POTRACE_OPTIONS([WITH-SYSTEM])
22 # -----------------------------------
23 AC_DEFUN([KPSE_POTRACE_OPTIONS], [_KPSE_LIB_OPTIONS([potrace], [$1])])
25 # KPSE_POTRACE_SYSTEM_FLAGS
26 # -------------------------
27 AC_DEFUN([KPSE_POTRACE_SYSTEM_FLAGS], [_KPSE_LIB_FLAGS_SYSTEM([potrace], [potrace])])