3 m4_esyscmd([build-tools/git-version .]),
4 [openafs-bugs@openafs.org], [],
5 [http://www.openafs.org/])
6 AC_CONFIG_AUX_DIR([build-tools])
7 AC_CONFIG_MACRO_DIR([src/cf])
8 AC_CONFIG_SRCDIR([src/config/stds.h])
9 AM_INIT_AUTOMAKE([foreign])
11 AC_CONFIG_HEADER([src/config/afsconfig.h])
16 dnl Debian wants the release candidate version in the main upstream version,
17 dnl and wants ~ before it.
18 DEB_PKGVER=m4_esyscmd([build-tools/git-version .])
19 AS_IF([echo "$LINUX_PKGREL" | grep pre >/dev/null 2>/dev/null],
20 [DEB_PKGVER="$DEB_PKGVER"`echo "$LINUX_PKGREL" | sed 's/0.pre/~rc/'`])
22 AC_SUBST([MACOS_VERSION])
23 AC_SUBST([DEB_PKGVER])
25 dnl If the user hasn't specified CFLAGS don't let configure pick -g -O2
26 AS_IF([test -z "$CFLAGS"], [CFLAGS=" "])
28 AC_USE_SYSTEM_EXTENSIONS
35 AC_PATH_PROGS([PATH_CPP], [cpp], [${CC-cc} -E], [$PATH:/lib:/usr/ccs/lib])
37 OPENAFS_CONFIGURE_COMMON
39 dnl Probe for Kerberos. We have a few platform-specific overrides due to
40 dnl weird Kerberos implementations and installation locations.
41 AS_CASE([$AFS_SYSNAME],
43 [KRB5_CPPFLAGS="-I/usr/include/kerberosV"],
46 [KRB5_CPPFLAGS="-I/usr/include"
47 KRB5_LDFLAGS="-L/usr/lib -Wl,-search_paths_first"])
49 AS_CASE([$AFS_SYSNAME],
51 [KRB5_LIBS="-l:libkrb5.sl -l:libcom_err.sl"])
53 dnl Check for the characteristics of whatever Kerberos we found, if we found
57 AS_IF([test x"$KRB5_LIBS" != x],
61 AC_CHECK_FUNCS([add_error_table \
63 encode_krb5_enc_tkt_part \
65 krb5_524_conv_principal \
66 krb5_allow_weak_crypto \
70 krb5_get_init_creds_opt_alloc \
71 krb5_get_prompt_types \
73 krb5_principal_get_comp_string])
74 AC_CHECK_FUNCS([krb5_524_convert_creds], [],
75 [AC_CHECK_FUNCS([krb524_convert_creds_kdc], [],
76 [AC_CHECK_LIB([krb524], [krb524_convert_creds_kdc],
77 [LIBS="-lkrb524 $LIBS"
78 KRB5_LIBS="-lkrb524 $KRB5_LIBS"
79 AC_CHECK_LIB([krb524], [krb5_524_conv_principal],
80 [AC_DEFINE([HAVE_KRB5_524_CONV_PRINCIPAL], [1],
81 [Define to 1 if you have the `krb5_524_conv_principal' function.])
83 AC_DEFINE([HAVE_KRB524_CONVERT_CREDS_KDC], [1],
84 [Define to 1 if you have the `krb524_convert_creds_kdc' function.])
88 AC_CHECK_HEADERS([kerberosIV/krb.h])
89 AC_CHECK_HEADERS([kerberosV/heim_err.h])
90 AC_CHECK_HEADERS([com_err.h et/com_err.h krb5/com_err.h])
91 AS_IF([test x"$ac_cv_header_com_err_h" != xyes \
92 && test x"$ac_cv_header_et_com_err_h" != xyes \
93 && test x"$ac_cv_header_krb5_com_err_h" != xyes],
94 [AC_MSG_ERROR([Cannot find a usable com_err.h])])
95 AC_CHECK_MEMBERS([krb5_creds.keyblock, krb5_creds.keyblock.enctype, krb5_creds.session,
96 krb5_prompt.type], [], [], [#include <krb5.h>])
97 dnl If we have krb5_creds.session, we are using heimdal
98 dnl If we're using heimdal, aklog needs libasn1 for encode_EncTicketPart and a
99 dnl few other functions. But just aklog; not any of the other stuff that uses
101 AS_IF([test x"$ac_cv_member_krb5_creds_session" = xyes],
102 [AC_CHECK_LIB([asn1], [encode_EncTicketPart],
103 [AKLOG_KRB5_LIBS="-lasn1"])
107 AC_SUBST([BUILD_KRB5])
108 AC_SUBST([MAKE_KRB5])
109 AC_SUBST([AKLOG_KRB5_LIBS])
114 AS_IF([test -d 'doc/man-pages'],
115 [MAN_MAKEFILE="doc/man-pages/Makefile doc/man-pages/install-man"],
117 AS_IF([test -f 'doc/xml/AdminGuide/Makefile.in'],
118 [ADMINGUIDE_MAKEFILE="doc/xml/AdminGuide/Makefile"],
119 [ADMINGUIDE_MAKEFILE=])
120 AS_IF([test -f 'doc/xml/QuickStartUnix/Makefile.in'],
121 [QSUNIX_MAKEFILE="doc/xml/QuickStartUnix/Makefile"],
123 AS_IF([test -f 'doc/xml/UserGuide/Makefile.in'],
124 [USERGUIDE_MAKEFILE="doc/xml/UserGuide/Makefile"],
125 [USERGUIDE_MAKEFILE=])
126 AS_IF([test -f 'doc/xml/AdminRef/Makefile.in'],
127 [ADMINREF_MAKEFILE="doc/xml/AdminRef/Makefile"],
128 [ADMINREF_MAKEFILE=])
129 AS_IF([test -f 'doc/xml/mobi-fixup.xsl.in'],
130 [MOBI_FIXUP_XSL="doc/xml/mobi-fixup.xsl"],
136 ${ADMINGUIDE_MAKEFILE}
138 ${USERGUIDE_MAKEFILE}
143 src/afsmonitor/Makefile
148 src/auth/test/Makefile
150 src/bozo/test/Makefile
151 src/bu_utils/Makefile
152 src/bubasics/Makefile
159 src/cmd/test/Makefile
161 src/comerr/test/Makefile
163 src/config/Makefile.config
164 src/config/Makefile.libtool
165 src/config/Makefile.lwp
166 src/config/Makefile.lwptool
167 src/config/Makefile.pthread
168 src/config/Makefile.shared
169 src/config/Makefile.version-CML
170 src/config/Makefile.version-NOCML
171 src/config/shlib-build
172 src/config/shlib-install
173 src/crypto/hcrypto/Makefile
174 src/crypto/rfc3961/Makefile
176 src/dir/test/Makefile
184 src/JAVA/libjafs/Makefile
186 src/kauth/test/Makefile
187 src/kopenafs/Makefile
189 src/libacl/test/Makefile
190 src/libadmin/Makefile
191 src/libadmin/adminutil/Makefile
192 src/libadmin/bos/Makefile
193 src/libadmin/cfg/Makefile
194 src/libadmin/cfg/test/Makefile
195 src/libadmin/client/Makefile
196 src/libadmin/kas/Makefile
197 src/libadmin/pts/Makefile
198 src/libadmin/samples/Makefile
199 src/libadmin/test/Makefile
200 src/libadmin/vos/Makefile
201 src/libafs/Makefile.common
202 src/libafs/MakefileProto.${MKAFS_OSTYPE}
204 src/libafsauthent/Makefile
205 src/libafsrpc/Makefile
206 src/libuafs/Makefile.common
207 src/libuafs/MakefileProto.${MKAFS_OSTYPE}
209 src/log/test/Makefile
211 src/lwp/test/Makefile
213 src/packaging/Debian/changelog
214 src/packaging/MacOS/OpenAFS-debug.Description.plist
215 src/packaging/MacOS/OpenAFS-debug.Info.plist
216 src/packaging/MacOS/OpenAFS.Description.plist
217 src/packaging/MacOS/OpenAFS.Info.plist
218 src/packaging/MacOS/OpenAFS.info
219 src/packaging/MacOS/buildpkg.sh
221 src/platform/Makefile
222 src/platform/${MKAFS_OSTYPE}/Makefile
223 src/platform/DARWIN/growlagent/Makefile
224 src/procmgmt/Makefile
225 src/procmgmt/test/Makefile
226 src/ptserver/Makefile
227 src/tptserver/Makefile
230 src/rx/bulk.example/Makefile
231 src/rx/bulktest/Makefile
232 src/rx/multi.example/Makefile
233 src/rx/simple.example/Makefile
238 src/rxkad/test/Makefile
242 src/sgistuff/Makefile
248 src/tools/dumpscan/Makefile
249 src/tools/rxperf/Makefile
250 src/tsalvaged/Makefile
257 src/usd/test/Makefile
260 src/util/test/Makefile
261 src/libafscp/Makefile
263 src/venus/test/Makefile
266 src/vlserver/Makefile
267 src/tvlserver/Makefile
269 src/vol/test/Makefile
276 tests/common/Makefile
278 tests/rpctestlib/Makefile
282 tests/volser/Makefile],
283 [chmod a+x src/config/shlib-build
284 chmod a+x src/config/shlib-install])
286 # print a final summary