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