5d47d12fb23dbd160c0e7c2b57c663202f813958
[openafs.git] / configure.ac
1 AC_PREREQ([2.64])
2 AC_INIT([OpenAFS],[m4_esyscmd(build-tools/git-version .)],[openafs-bugs@openafs.org],[],[http://www.openafs.org/])
3 AC_CONFIG_AUX_DIR([build-tools])
4 AC_CONFIG_MACRO_DIR([src/cf])
5 AC_CONFIG_SRCDIR([src/config/stds.h])
6
7 AC_CONFIG_HEADER([src/config/afsconfig.h])
8 MACOS_VERSION=1.8.0fc1
9
10 AC_SUBST([MACOS_VERSION])
11
12 dnl If the user hasn't specified CFLAGS don't let configure pick -g -O2
13 AS_IF([test -z "$CFLAGS"], [CFLAGS=" "])
14
15 AC_USE_SYSTEM_EXTENSIONS
16
17 AFS_LT_INIT
18
19 AC_PROG_CC
20
21 AC_PATH_PROGS([PATH_CPP], [cpp], [${CC-cc} -E], [$PATH:/lib:/usr/ccs/lib])
22 AC_SUBST([PATH_CPP])
23 OPENAFS_CONFIGURE_COMMON
24 OPENAFS_KRB5
25 OPENAFS_GSS
26
27 dnl Checks for summary
28 OPENAFS_SUMMARY_CHECK_NAMEI
29
30 AS_IF([test -d 'doc/man-pages'],
31     [MAN_MAKEFILE="doc/man-pages/Makefile doc/man-pages/install-man"],
32     [MAN_MAKEFILE=])
33 AS_IF([test -f 'doc/xml/AdminGuide/Makefile.in'],
34     [ADMINGUIDE_MAKEFILE="doc/xml/AdminGuide/Makefile"],
35     [ADMINGUIDE_MAKEFILE=])
36 AS_IF([test -f 'doc/xml/QuickStartUnix/Makefile.in'],
37     [QSUNIX_MAKEFILE="doc/xml/QuickStartUnix/Makefile"],
38     [QSUNIX_MAKEFILE=])
39 AS_IF([test -f 'doc/xml/UserGuide/Makefile.in'],
40     [USERGUIDE_MAKEFILE="doc/xml/UserGuide/Makefile"],
41     [USERGUIDE_MAKEFILE=])
42 AS_IF([test -f 'doc/xml/AdminRef/Makefile.in'],
43     [ADMINREF_MAKEFILE="doc/xml/AdminRef/Makefile"],
44     [ADMINREF_MAKEFILE=])
45 AS_IF([test -f 'doc/xml/mobi-fixup.xsl.in'],
46     [MOBI_FIXUP_XSL="doc/xml/mobi-fixup.xsl"],
47     [MOBI_FIXUP_XSL=])
48 AS_IF([test -f 'doc/doxygen/Doxyfile.in'],
49     [DOXYFILE="doc/doxygen/Doxyfile"],
50     [DOXYFILE=])
51
52 AC_CONFIG_FILES([
53     Makefile
54     ${MAN_MAKEFILE}
55     ${ADMINGUIDE_MAKEFILE}
56     ${QSUNIX_MAKEFILE}
57     ${USERGUIDE_MAKEFILE}
58     ${ADMINREF_MAKEFILE}
59     ${MOBI_FIXUP_XSL}
60     ${DOXYFILE}
61     src/afs/Makefile
62     src/afsd/Makefile
63     src/afsmonitor/Makefile
64     src/afsweb/Makefile
65     src/aklog/Makefile
66     src/audit/Makefile
67     src/auth/Makefile
68     src/auth/test/Makefile
69     src/bozo/Makefile
70     src/bozo/test/Makefile
71     src/bu_utils/Makefile
72     src/bubasics/Makefile
73     src/bucoord/Makefile
74     src/budb/Makefile
75     src/tbudb/Makefile
76     src/butc/Makefile
77     src/butm/Makefile
78     src/cmd/Makefile
79     src/cmd/test/Makefile
80     src/comerr/Makefile
81     src/comerr/test/Makefile
82     src/config/Makefile
83     src/config/Makefile.config
84     src/config/Makefile.libtool
85     src/config/Makefile.lwp
86     src/config/Makefile.lwptool
87     src/config/Makefile.pthread
88     src/config/Makefile.version-CML
89     src/config/Makefile.version-NOCML
90     src/config/cc-wrapper
91     src/config/shlib-build
92     src/config/shlib-install
93     src/crypto/hcrypto/Makefile
94     src/crypto/rfc3961/Makefile
95     src/dir/Makefile
96     src/dir/test/Makefile
97     src/dviced/Makefile
98     src/dvolser/Makefile
99     src/export/Makefile
100     src/finale/Makefile
101     src/fsint/Makefile
102     src/fsprobe/Makefile
103     src/gtx/Makefile
104     src/JAVA/libjafs/Makefile
105     src/kauth/Makefile
106     src/kauth/test/Makefile
107     src/kopenafs/Makefile
108     src/libacl/Makefile
109     src/libacl/test/Makefile
110     src/libadmin/Makefile
111     src/libadmin/adminutil/Makefile
112     src/libadmin/bos/Makefile
113     src/libadmin/cfg/Makefile
114     src/libadmin/cfg/test/Makefile
115     src/libadmin/client/Makefile
116     src/libadmin/kas/Makefile
117     src/libadmin/pts/Makefile
118     src/libadmin/samples/Makefile
119     src/libadmin/test/Makefile
120     src/libadmin/vos/Makefile
121     src/libafs/Makefile.common
122     src/libafs/MakefileProto.${MKAFS_OSTYPE}
123     ${DARWIN_PLIST}
124     src/libafsauthent/Makefile
125     src/libafsrpc/Makefile
126     src/libuafs/Makefile.common
127     src/libuafs/MakefileProto.${MKAFS_OSTYPE}
128     src/log/Makefile
129     src/log/test/Makefile
130     src/lwp/Makefile
131     src/lwp/test/Makefile
132     src/opr/Makefile
133     src/packaging/MacOS/OpenAFS-debug.Description.plist
134     src/packaging/MacOS/OpenAFS-debug.Info.plist
135     src/packaging/MacOS/OpenAFS.Description.plist
136     src/packaging/MacOS/OpenAFS.Info.plist
137     src/packaging/MacOS/OpenAFS.info
138     src/packaging/MacOS/buildpkg.sh
139     src/packaging/MacOS/pkgbuild.sh
140     src/pam/Makefile
141     src/platform/Makefile
142     src/platform/${MKAFS_OSTYPE}/Makefile
143     src/platform/DARWIN/growlagent/Makefile
144     src/procmgmt/Makefile
145     src/procmgmt/test/Makefile
146     src/ptserver/Makefile
147     src/tptserver/Makefile
148     src/roken/Makefile
149     src/rx/Makefile
150     src/rx/bulk.example/Makefile
151     src/rx/bulktest/Makefile
152     src/rx/multi.example/Makefile
153     src/rx/simple.example/Makefile
154     src/rx/test/Makefile
155     src/rxdebug/Makefile
156     src/rxgen/Makefile
157     src/rxgk/Makefile
158     src/rxkad/Makefile
159     src/rxkad/test/Makefile
160     src/rxosd/Makefile
161     src/rxstat/Makefile
162     src/scout/Makefile
163     src/sys/Makefile
164     src/tbutc/Makefile
165     src/tests/Makefile
166     src/tests/run-tests
167     src/tools/Makefile
168     src/tools/dumpscan/Makefile
169     src/tools/rxperf/Makefile
170     src/tsalvaged/Makefile
171     src/tsm41/Makefile
172     src/tvolser/Makefile
173     src/ubik/Makefile
174     src/tubik/Makefile
175     src/update/Makefile
176     src/usd/Makefile
177     src/usd/test/Makefile
178     src/uss/Makefile
179     src/util/Makefile
180     src/util/test/Makefile
181     src/libafscp/Makefile
182     src/venus/Makefile
183     src/venus/test/Makefile
184     src/vfsck/Makefile
185     src/viced/Makefile
186     src/vlserver/Makefile
187     src/tvlserver/Makefile
188     src/vol/Makefile
189     src/vol/test/Makefile
190     src/volser/Makefile
191     src/xstat/Makefile
192     src/helper-splint.sh
193     tests/Makefile
194     tests/auth/Makefile
195     tests/cmd/Makefile
196     tests/common/Makefile
197     tests/opr/Makefile
198     tests/rpctestlib/Makefile
199     tests/rx/Makefile
200     tests/tap/Makefile
201     tests/util/Makefile
202     tests/volser/Makefile])
203 AC_CONFIG_COMMANDS([default],[chmod a+x src/config/shlib-build
204  chmod a+x src/config/shlib-install
205  chmod a+x src/config/cc-wrapper],[])
206 AC_OUTPUT
207
208 # print a final summary
209 OPENAFS_SUMMARY