beta-0.89.2
[luatex.git] / source / m4 / kpse-gmp-flags.m4
blob07edc013cf684928dbbb6010464629e6688b8352
1 # Public macros for the TeX Live (TL) tree.
2 # Copyright (C) 2014 Taco Hoekwater <taco@metatex.org>
3 # Copyright (C) 2014 Peter Breitenlohner <tex-live@tug.org>
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.
9 # KPSE_GMP_FLAGS
10 # -----------------
11 # Provide the configure options '--with-system-gmp' (if in the TL tree),
12 # '--with-gmp-includes', and '--with-gmp-libdir'.
14 # Set the make variables GMP_INCLUDES and GMP_LIBS to the CPPFLAGS and
15 # LIBS required for the `-lgmp' library in libs/gmp/ of the TL tree.
16 AC_DEFUN([KPSE_GMP_FLAGS], [dnl
17 _KPSE_LIB_FLAGS([gmp], [gmp], [],
18                 [-IBLD/libs/gmp/include], [BLD/libs/gmp/libgmp.a], [],
19                 [], [${top_builddir}/../../libs/gmp/include/gmp.h])[]dnl
20 ]) # KPSE_GMP_FLAGS
22 # KPSE_GMP_OPTIONS([WITH-SYSTEM])
23 # ----------------------------------
24 AC_DEFUN([KPSE_GMP_OPTIONS], [_KPSE_LIB_OPTIONS([gmp], [$1])])
26 # KPSE_GMP_SYSTEM_FLAGS
27 # ------------------------
28 AC_DEFUN([KPSE_GMP_SYSTEM_FLAGS], [_KPSE_LIB_FLAGS_SYSTEM([gmp], [gmp])])