1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/.../pam_pkcs11/pam_pkcs11.conf
5 # Copyright (C) 2006 - 2020 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
15 atstage native || hook_add preconf 5 "echo 'ac_cv_func_malloc_0_nonnull=yes' >> config.cache"
16 atstage native || hook_add preconf 5 "echo 'ac_cv_func_realloc_0_nonnull=yes' >> config.cache"
19 # Note: doesn't build without setting "--enable-debug"
20 # 2006-04-08 Christian Wiese
22 var_append confopt ' ' "--enable-debug"
24 # check for curl support
25 pkginstalled curl && var_append confopt ' ' "--with-curl"
27 # check for LDAP support
28 if pkginstalled openldap; then
30 var_append confopt ' ' "--with-ldap"
32 LDAPLIBS="$root/$( pkgprefix libdir openldap )"
33 LDAPINCS="$root/$( pkgprefix includedir openldap )"
35 var_append GCC_WRAPPER_APPEND ' ' "-I$LDAPINCS"
36 var_append GCC_WRAPPER_APPEND ' ' "-L$LDAPLIBS"
38 var_append CPP_WRAPPER_APPEND ' ' "-I$LDAPINCS"
39 var_append CPP_WRAPPER_APPEND ' ' "-L$LDAPLIBS"