-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfigure.ac
85 lines (70 loc) · 2.09 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
dnl Package initialisation
AC_INIT([auks],
m4_esyscmd([build-aux/git-version-gen .tarball-version]),
dnl Auxiliary scripts directory
AC_CONFIG_AUX_DIR([build-aux])
dnl In-house m4 macro directory
AC_CONFIG_MACRO_DIR([m4])
dnl This is a GNU aimed project
AC_GNU_SOURCE
dnl Automake options
AM_INIT_AUTOMAKE([-Wall -Werror])
dnl Autoconf header file to generate
AC_CONFIG_HEADERS([config.h])
dnl In order to build lib using Autotools .la format
AM_PROG_AR
AC_PROG_LIBTOOL
m4_pattern_allow([AM_PROG_AR])
dnl This is a C project
AC_PROG_CC
AM_PROG_CC_C_O
dnl This project uses lex an yacc internaly
AC_PROG_LEX
AM_PROG_LEX
AC_PROG_YACC
dnl Look after SLURM resource manager
AX_SLURM
dnl Look after PAM library
AX_PAM
dnl Look for tirpc
AC_ARG_ENABLE(tirpc,
[AC_HELP_STRING([--enable-tirpc],
[enable use of TI-RPC @<:@default=yes@:>@])],
enable_tirpc=$enableval,
enable_tirpc='yes')
AC_LIBTIRPC
dnl Look for krb5 with pkgconfig
PKG_PROG_PKG_CONFIG([0.25])
PKG_CHECK_MODULES([KRB5], [krb5])
AC_CHECK_LIB([krb5], [k5_rc_resolve],
[AC_DEFINE([HAVE_K5_RC], 1, [Define to 1 if you have k5_rc_resolve() calls])],
AC_CHECK_LIB([krb5], [krb5_rc_resolve_full],
[AC_DEFINE([HAVE_K5_RC], 0, [Define to 1 if you have k5_rc_resolve() calls])]))
AC_CHECK_LIB([krb5], [krb5_get_cred_via_tkt], [], [AC_MSG_ERROR(Missing krb5 internal function (k5-int.h))])
AC_CHECK_LIB([krb5], [krb5_read_message], [], [AC_MSG_ERROR(Missing krb5 internal function (k5-int.h))])
AC_CHECK_LIB([krb5], [krb5_write_message], [], [AC_MSG_ERROR(Missing krb5 internal function (k5-int.h))])
dnl Files to build during configure
AC_CONFIG_FILES([Makefile
auks.spec
src/Makefile
src/api/Makefile
src/api/confparse/Makefile
src/api/xternal/Makefile
src/api/auks/Makefile
src/auks/Makefile
src/auksd/Makefile
src/plugins/Makefile
src/plugins/slurm/Makefile
src/plugins/pam/Makefile
etc/init.d.auksd
etc/init.d.auksdrenewer
etc/init.d.aukspriv
etc/auksd.service
etc/auksdrenewer.service
etc/aukspriv.service
etc/Makefile
doc/Makefile
doc/man/Makefile])
dnl
AC_OUTPUT