summaryrefslogtreecommitdiff
path: root/source4/heimdal_build/external.m4
blob: ad9443f9991555e125eadb41335715715e423d50 (plain)
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
# This is every experimental
# We should really add configure checks
# to verify the installed heimdal libraries
# are good enough for our usage!!!

HEIMDAL_KRB5_LIBS="-lkrb5 -lcom_err"
HEIMDAL_KRB5_CFLAGS=""
HEIMDAL_KRB5_CPPFLAGS=""
HEIMDAL_KRB5_LDFLAGS=""
SMB_EXT_LIB(HEIMDAL_KRB5,
	    [${HEIMDAL_KRB5_LIBS}],
	    [${HEIMDAL_KRB5_CFLAGS}],
	    [${HEIMDAL_KRB5_CPPFLAGS}],
	    [${HEIMDAL_KRB5_LDFLAGS}])
SMB_ENABLE(HEIMDAL_KRB5,YES)
AC_DEFINE(HAVE_KRB5,1,[Whether kerberos is available])
HAVE_KRB5=YES
AC_DEFINE(HAVE_COM_ERR,1,[Whether com_err is available])
HAVE_COM_ERR=YES

HEIMDAL_GSSAPI_LIBS="-lgssapi"
HEIMDAL_GSSAPI_CFLAGS=""
HEIMDAL_GSSAPI_CPPFLAGS=""
HEIMDAL_GSSAPI_LDFLAGS=""
SMB_EXT_LIB(HEIMDAL_GSSAPI,
	    [${HEIMDAL_GSSAPI_LIBS}],
	    [${HEIMDAL_GSSAPI_CFLAGS}],
	    [${HEIMDAL_GSSAPI_CPPFLAGS}],
	    [${HEIMDAL_GSSAPI_LDFLAGS}])
SMB_ENABLE(HEIMDAL_GSSAPI,YES)
AC_DEFINE(HAVE_GSSAPI,1,[Whether GSSAPI is available])
HAVE_GSSAPI=YES

HEIMDAL_HDB_LIBS="-lhdb"
HEIMDAL_HDB_CFLAGS=""
HEIMDAL_HDB_CPPFLAGS=""
HEIMDAL_HDB_LDFLAGS=""
SMB_EXT_LIB(HEIMDAL_HDB,
	    [${HEIMDAL_HDB_LIBS}],
	    [${HEIMDAL_HDB_CFLAGS}],
	    [${HEIMDAL_HDB_CPPFLAGS}],
	    [${HEIMDAL_HDB_LDFLAGS}])
SMB_ENABLE(HEIMDAL_HDB,YES)

HEIMDAL_KDC_LIBS="-lkdc"
HEIMDAL_KDC_CFLAGS=""
HEIMDAL_KDC_CPPFLAGS=""
HEIMDAL_KDC_LDFLAGS=""
SMB_EXT_LIB(HEIMDAL_KDC,
	    [${HEIMDAL_KDC_LIBS}],
	    [${HEIMDAL_KDC_CFLAGS}],
	    [${HEIMDAL_KDC_CPPFLAGS}],
	    [${HEIMDAL_KDC_LDFLAGS}])
SMB_ENABLE(HEIMDAL_KDC,YES)