Remove local crypto
[openafs.git] / configure.ac
1 AC_PREREQ([2.60])
2 AC_INIT([OpenAFS], m4_esyscmd([build-tools/git-version .]))
3 AC_CONFIG_AUX_DIR([build-tools])
4 AC_CONFIG_SRCDIR([src/config/stds.h])
5 AM_INIT_AUTOMAKE
6
7 AC_CONFIG_HEADER(src/config/afsconfig.h)
8 MACOS_VERSION=1.5.76
9 LINUX_PKGVER=1.5.76
10 #LINUX_PKGREL=0.pre3
11 LINUX_PKGREL=1.1
12
13 dnl Debian wants the release candidate version in the main upstream version,
14 dnl and wants ~ before it.
15 DEB_PKGVER=m4_esyscmd([build-tools/git-version .])
16 if echo "$LINUX_PKGREL" | grep pre >/dev/null 2>/dev/null ; then
17     DEB_PKGVER="$DEB_PKGVER"`echo "$LINUX_PKGREL" | sed 's/0.pre/~rc/'`
18 fi
19
20 AC_SUBST(MACOS_VERSION)
21 AC_SUBST(LINUX_PKGVER)
22 AC_SUBST(LINUX_PKGREL)
23 AC_SUBST(DEB_PKGVER)
24
25 AC_USE_SYSTEM_EXTENSIONS
26
27 dnl If the user hasn't specified CFLAGS don't let configure pick -g -O2
28 AS_IF([test -z "$CFLAGS"], [CFLAGS=" "], [])
29 AC_PROG_CC
30
31 AC_PATH_PROGS([PATH_CPP], [cpp], [${CC-cc} -E], [$PATH:/lib:/usr/ccs/lib])
32 AC_SUBST([PATH_CPP])
33 OPENAFS_CONFIGURE_COMMON
34
35 dnl Probe for Kerberos.  We have a few platform-specific overrides due to
36 dnl weird Kerberos implementations and installation locations.
37 AS_CASE([$AFS_SYSNAME],
38     [*_obsd*],
39     [KRB5_CPPFLAGS="-I/usr/include/kerberosV"],
40
41     [ppc_darwin_70],
42     [KRB5_CPPFLAGS="-I/usr/include"
43      KRB5_LDFLAGS="-L/usr/lib -Wl,-search_paths_first"])
44 RRA_LIB_KRB5_OPTIONAL
45 AS_CASE([$AFS_SYSNAME],
46     [hp_ux*|*_hpux*],
47     [KRB5_LIBS="-l:libkrb5.sl -l:libcom_err.sl"])
48
49 dnl Check for the characteristics of whatever Kerberos we found, if we found
50 dnl one.
51 BUILD_KRB5=no
52 MAKE_KRB5="#"
53 AS_IF([test x"$KRB5_LIBS" != x],
54     [BUILD_KRB5=yes
55      MAKE_KRB5=
56      RRA_LIB_KRB5_SWITCH
57      AC_CHECK_FUNCS([add_error_table \
58         add_to_error_table \
59         encode_krb5_enc_tkt_part \
60         encode_krb5_ticket \
61         krb5_allow_weak_crypto \
62         krb5_c_encrypt \
63         krb5_decode_ticket \
64         krb5_enctype_enable \
65         krb5_get_init_creds_opt_alloc \
66         krb5_get_prompt_types \
67         krb5_princ_size \
68         krb5_principal_get_comp_string])
69      AC_CHECK_FUNCS([krb5_524_convert_creds], ,
70          [AC_CHECK_FUNCS([krb524_convert_creds_kdc], ,
71              [AC_CHECK_LIB([krb524], [krb524_convert_creds_kdc],
72                  [LIBS="-lkrb524 $LIBS"
73                   KRB5_LIBS="-lkrb524 $KRB5_LIBS"
74                   AC_DEFINE([HAVE_KRB524_CONVERT_CREDS_KDC], 1,
75                      [Define to 1 if you have the `krb524_convert_creds_kdc' function.])])])])
76      AC_CHECK_HEADERS([kerberosIV/krb.h])
77      AC_CHECK_HEADERS([kerberosV/heim_err.h])
78      AC_CHECK_MEMBERS([krb5_creds.keyblock, krb5_creds.session,
79                        krb5_prompt.type], , , [#include <krb5.h>])
80      RRA_LIB_KRB5_RESTORE])
81 AC_SUBST([BUILD_KRB5])
82 AC_SUBST([MAKE_KRB5])
83
84 if test -d 'doc/man-pages' ; then
85     MAN_MAKEFILE="doc/man-pages/Makefile doc/man-pages/install-man"
86 else
87     MAN_MAKEFILE=
88 fi
89 if test -f 'doc/xml/AdminGuide/Makefile.in' ; then
90    ADMINGUIDE_MAKEFILE="doc/xml/AdminGuide/Makefile"
91 else
92    ADMINGUIDE_MAKEFILE=
93 fi
94 if test -f 'doc/xml/QuickStartUnix/Makefile.in' ; then
95    QSUNIX_MAKEFILE="doc/xml/QuickStartUnix/Makefile"
96 else
97    QSUNIX_MAKEFILE=
98 fi
99 if test -f 'doc/xml/UserGuide/Makefile.in' ; then
100    USERGUIDE_MAKEFILE="doc/xml/UserGuide/Makefile"
101 else
102    USERGUIDE_MAKEFILE=
103 fi
104
105 AC_OUTPUT(             \
106 Makefile               \
107 ${MAN_MAKEFILE} \
108 ${ADMINGUIDE_MAKEFILE} \
109 ${QSUNIX_MAKEFILE} \
110 ${USERGUIDE_MAKEFILE} \
111 src/afs/Makefile \
112 src/afsd/Makefile \
113 src/afsmonitor/Makefile \
114 src/afsweb/Makefile \
115 src/aklog/Makefile \
116 src/audit/Makefile \
117 src/auth/Makefile \
118 src/auth/test/Makefile \
119 src/bozo/Makefile \
120 src/bozo/test/Makefile \
121 src/bu_utils/Makefile \
122 src/bubasics/Makefile \
123 src/bucoord/Makefile \
124 src/budb/Makefile \
125 src/tbudb/Makefile \
126 src/butc/Makefile \
127 src/butm/Makefile \
128 src/cmd/Makefile \
129 src/cmd/test/Makefile \
130 src/comerr/Makefile \
131 src/comerr/test/Makefile \
132 src/config/Makefile \
133 src/config/Makefile.config \
134 src/config/Makefile.lwp \
135 src/config/Makefile.pthread \
136 src/config/Makefile.shared \
137 src/config/Makefile.version-CML \
138 src/config/Makefile.version-NOCML \
139 src/config/shlib-build \
140 src/config/shlib-install \
141 src/crypto/hcrypto/Makefile \
142 src/dir/Makefile \
143 src/dir/test/Makefile \
144 src/dviced/Makefile \
145 src/dvolser/Makefile \
146 src/export/Makefile \
147 src/finale/Makefile \
148 src/fsint/Makefile \
149 src/fsprobe/Makefile \
150 src/gtx/Makefile \
151 src/JAVA/libjafs/Makefile \
152 src/kauth/Makefile \
153 src/kauth/test/Makefile \
154 src/kopenafs/Makefile \
155 src/libacl/Makefile \
156 src/libacl/test/Makefile \
157 src/libadmin/Makefile \
158 src/libadmin/adminutil/Makefile \
159 src/libadmin/bos/Makefile \
160 src/libadmin/cfg/Makefile \
161 src/libadmin/cfg/test/Makefile \
162 src/libadmin/client/Makefile \
163 src/libadmin/kas/Makefile \
164 src/libadmin/pts/Makefile \
165 src/libadmin/samples/Makefile \
166 src/libadmin/test/Makefile \
167 src/libadmin/vos/Makefile \
168 src/libafs/Makefile.common \
169 src/libafs/MakefileProto.${MKAFS_OSTYPE} \
170 ${DARWIN_PLIST} \
171 src/libafsauthent/Makefile \
172 src/libafsrpc/Makefile \
173 src/libuafs/Makefile.common \
174 src/libuafs/MakefileProto.${MKAFS_OSTYPE} \
175 src/log/Makefile \
176 src/log/test/Makefile \
177 src/lwp/Makefile \
178 src/lwp/test/Makefile \
179 src/packaging/Debian/changelog \
180 src/packaging/MacOS/OpenAFS-debug.Description.plist \
181 src/packaging/MacOS/OpenAFS-debug.Info.plist \
182 src/packaging/MacOS/OpenAFS.Description.plist \
183 src/packaging/MacOS/OpenAFS.Info.plist \
184 src/packaging/MacOS/OpenAFS.info \
185 src/packaging/MacOS/buildpkg.sh \
186 src/packaging/RedHat/openafs.spec \
187 src/pam/Makefile \
188 src/platform/Makefile \
189 src/platform/${MKAFS_OSTYPE}/Makefile \
190 src/platform/DARWIN/growlagent/Makefile \
191 src/procmgmt/Makefile \
192 src/procmgmt/test/Makefile \
193 src/ptserver/Makefile \
194 src/tptserver/Makefile \
195 src/roken/Makefile \
196 src/rx/Makefile \
197 src/rx/bulk.example/Makefile \
198 src/rx/bulktest/Makefile \
199 src/rx/multi.example/Makefile \
200 src/rx/simple.example/Makefile \
201 src/rx/test/Makefile \
202 src/rxdebug/Makefile \
203 src/rxgen/Makefile \
204 src/rxkad/Makefile \
205 src/rxkad/test/Makefile \
206 src/rxosd/Makefile \
207 src/rxstat/Makefile \
208 src/scout/Makefile \
209 src/sgistuff/Makefile \
210 src/shlibafsauthent/Makefile \
211 src/shlibafsrpc/Makefile \
212 src/sys/Makefile \
213 src/tbutc/Makefile \
214 src/tests/Makefile \
215 src/tests/run-tests \
216 src/tsalvaged/Makefile \
217 src/tsm41/Makefile \
218 src/tviced/Makefile \
219 src/tvolser/Makefile \
220 src/ubik/Makefile \
221 src/tubik/Makefile \
222 src/update/Makefile \
223 src/usd/Makefile \
224 src/usd/test/Makefile \
225 src/uss/Makefile \
226 src/util/Makefile \
227 src/util/test/Makefile \
228 src/venus/Makefile \
229 src/venus/test/Makefile \
230 src/vfsck/Makefile \
231 src/viced/Makefile \
232 src/vlserver/Makefile \
233 src/tvlserver/Makefile \
234 src/vol/Makefile \
235 src/vol/test/Makefile \
236 src/volser/Makefile \
237 src/xstat/Makefile \
238 src/helper-splint.sh \
239 tests/Makefile \
240 tests/rpctestlib/Makefile \
241 tests/tap/Makefile \
242 tests/util/Makefile,
243
244 [chmod a+x src/config/shlib-build
245  chmod a+x src/config/shlib-install])