-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
41 lines (32 loc) · 916 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
AC_INIT(pam_otp, 0.1)
dnl Locate standard tools
AC_PROG_CC
AC_PROG_MAKE_SET
#AC_PROG_INSTALL
AC_AIX
AC_LANG(C)
dnl Determine this platform
DC_CHK_OS_INFO
dnl Determine how to create shared objects on this platform
DC_GET_SHOBJFLAGS
dnl Determine how to strip executables and remove symbols
DC_FIND_STRIP_AND_REMOVESYMS(pam_otp.syms)
dnl Check for all required headers
AC_CHECK_HEADERS(security/pam_appl.h security/pam_modules.h,, [
AC_WARN([Required header missing, compilation will likely fail.])
], [
#ifdef HAVE_SECURITY_PAM_APPL_H
# include <security/pam_appl.h>
#endif
#ifdef HAVE_SECURITY_PAM_MODULES_H
# include <security/pam_modules.h>
#endif
])
dnl Check for PAM libraries
AC_CHECK_LIB(pam, pam_get_user)
dnl Check for LDAP libraries
AC_CHECK_LIB(ldap, ldap_initialize)
dnl Check for LDAP libraries
AC_CHECK_LIB(gcrypt, gcry_md_read)
dnl Produce Makefile
AC_OUTPUT(Makefile pam_otp.syms)