deleted useless files
[luatex.git] / source / m4 / kpse-gd-flags.m4
blob7703541f8341eb9938448847a5b3a1f71924a311
1 # Public macros for the TeX Live (TL) tree.
2 # Copyright (C) 2009-2013 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.
8 # KPSE_GD_FLAGS
9 # -------------
10 # Provide the configure options '--with-system-gd' (if in the TL tree),
11 # '--with-gd-includes', and '--with-gd-libdir'.
13 # Set the make variables GD_INCLUDES and GD_LIBS to the CPPFLAGS and
14 # LIBS required for the `-lgd' library in libs/gd/ of the TL tree.
15 AC_DEFUN([KPSE_GD_FLAGS], [dnl
16 AC_REQUIRE([KPSE_CHECK_WIN32])[]dnl
17 AC_REQUIRE([KPSE_LIBPNG_FLAGS])[]dnl
18 AC_REQUIRE([KPSE_FREETYPE2_FLAGS])[]dnl
19 _KPSE_LIB_FLAGS([gd], [gd], [],
20                 [-IBLD/libs/gd/include], [BLD/libs/gd/libgd.a],
21                 [test "x$kpse_cv_have_win32" = xno || GD_INCLUDES="$GD_INCLUDES -DBGDWIN32 -DNONDLL"],
22                 [], [${top_builddir}/../../libs/gd/include/gd.h])[]dnl
23 ]) # KPSE_GD_FLAGS
25 # KPSE_GD_OPTIONS([WITH-SYSTEM])
26 # ------------------------------
27 AC_DEFUN([KPSE_GD_OPTIONS], [_KPSE_LIB_OPTIONS([gd], [$1])])
29 # KPSE_GD_SYSTEM_FLAGS
30 # --------------------
31 AC_DEFUN([KPSE_GD_SYSTEM_FLAGS], [_KPSE_LIB_FLAGS_SYSTEM([gd], [gd])])