xref: /freebsd/contrib/pam-krb5/m4/lib-depends.m4 (revision bf6873c5786e333d679a7838d28812febf479a8a)
1dnl Provides option to change library probes.
2dnl
3dnl This file provides RRA_ENABLE_REDUCED_DEPENDS, which adds the configure
4dnl option --enable-reduced-depends to request that library probes assume
5dnl shared libraries are in use and dependencies of libraries should not be
6dnl probed.  If this option is given, the shell variable rra_reduced_depends
7dnl is set to true; otherwise, it is set to false.
8dnl
9dnl This macro doesn't do much but is defined separately so that other macros
10dnl can require it with AC_REQUIRE.
11dnl
12dnl The canonical version of this file is maintained in the rra-c-util
13dnl package, available at <https://www.eyrie.org/~eagle/software/rra-c-util/>.
14dnl
15dnl Written by Russ Allbery <eagle@eyrie.org>
16dnl Copyright 2005-2007
17dnl     The Board of Trustees of the Leland Stanford Junior University
18dnl
19dnl This file is free software; the authors give unlimited permission to copy
20dnl and/or distribute it, with or without modifications, as long as this
21dnl notice is preserved.
22dnl
23dnl SPDX-License-Identifier: FSFULLR
24
25AC_DEFUN([RRA_ENABLE_REDUCED_DEPENDS],
26[rra_reduced_depends=false
27AC_ARG_ENABLE([reduced-depends],
28    [AS_HELP_STRING([--enable-reduced-depends],
29        [Try to minimize shared library dependencies])],
30    [AS_IF([test x"$enableval" = xyes], [rra_reduced_depends=true])])])
31