1krb5-config(1) User Commands krb5-config(1)
2
3
4
6 krb5-config - link against the installed Kerberos libraries
7
9 krb5-config
10 [--all | --cflags | --exec-prefix | --help | --libs library |
11 --prefix | --vendor | --version]
12
13
15 krb5-config identifies and displays the special flags that are needed
16 to compile and link programs against the installed Kerberos libraries.
17
19 The following options are supported:
20
21 --all Displays the version, vendor, prefix and exec-prefix.
22
23
24 --cflags Displays the compiler flags with which Kerberos was
25 built.
26
27
28 --exec-prefix Displays the exec-prefix with which Kerberos was
29 built.
30
31
32 --help Displays the usage message.
33
34 This is the default.
35
36
37 --libs library Displays compiler options required to link with
38 library.
39
40 The following library values are supported:
41
42 krb5 Kerberos 5 application
43
44
45
46 --prefix Displays the prefix with which Kerberos was built.
47
48
49 --vendor Displays the vendor of the installed Kerberos imple‐
50 mentation.
51
52
53 --version Displays the version of the installed Kerberos imple‐
54 mentation.
55
56
58 Example 1 Using the --cflags Option
59
60
61 The following example displays the C compiler flags needed to use
62 libkrb5(3LIB):
63
64
65 % krb5-config --cflags
66 -I/usr/include/kerberosv5
67
68
69
70 Example 2 Using the--libs Option
71
72
73 The following example shows the C compiler options needed to link
74 against libkrb5(3LIB):
75
76
77 % krb5-config --libs
78 -L/usr/lib -R/usr/lib -lkrb5
79
80
81
83 The following exit values are returned:
84
85 0 Successful completion.
86
87
88 >0 An error occurred.
89
90
92 See attributes(5) for descriptions of the following attributes:
93
94
95
96
97 ┌─────────────────────────────┬─────────────────────────────┐
98 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
99 ├─────────────────────────────┼─────────────────────────────┤
100 │Availability │SUNWkrbu │
101 ├─────────────────────────────┼─────────────────────────────┤
102 │Interface Stability │Volatile │
103 └─────────────────────────────┴─────────────────────────────┘
104
106 libgss(3LIB), libkrb5(3LIB), attributes(5)
107
108
109
110SunOS 5.11 24 Aug 2009 krb5-config(1)