-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfigure.ac
77 lines (69 loc) · 2.33 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
AC_INIT(unfs3, 0.9.23)
AC_CONFIG_HEADER(config.h)
AC_PROG_INSTALL
AC_PROG_CC([gcc egcs kgcc cc])
AC_CHECK_TOOL([AR], [ar])
AC_PROG_LEX
AS_IF([test "x$LEX" == "x:"], [
AC_MSG_ERROR([flex or lex missing.])
])
AC_PROG_YACC
AC_HEADER_STDC
AC_SYS_LARGEFILE
AC_SEARCH_LIBS(xdr_int, nsl)
AC_SEARCH_LIBS(socket, socket)
AC_SEARCH_LIBS(inet_aton, resolv)
AC_CHECK_HEADERS(mntent.h,,,[#include <stdio.h>])
AC_CHECK_HEADERS(stdint.h,,,[#include <stdio.h>])
AC_CHECK_HEADERS(sys/mnttab.h,,,[#include <stdio.h>])
AC_CHECK_HEADERS(sys/mount.h,,,[#include <stdio.h>])
AC_CHECK_HEADERS(sys/vmount.h,,,[#include <stdio.h>])
AC_CHECK_HEADERS(rpc/svc_soc.h,,,[#include <rpc/rpc.h>])
AC_CHECK_HEADERS(linux/ext2_fs.h,,,[#include <unistd.h>])
AC_CHECK_TYPES(int32,,,[#include <sys/inttypes.h>])
AC_CHECK_TYPES(uint32,,,[#include <sys/inttypes.h>])
AC_CHECK_TYPES(int64,,,[#include <sys/inttypes.h>])
AC_CHECK_TYPES(uint64,,,[#include <sys/inttypes.h>])
AC_CHECK_MEMBERS([struct stat.st_gen],,,[#include <sys/stat.h>])
AC_CHECK_MEMBERS([struct __rpc_svcxprt.xp_fd],,,[#include <rpc/rpc.h>])
AC_CHECK_FUNCS(xdr_int xdr_u_int)
AC_CHECK_FUNCS(xdr_int32 xdr_int32_t)
AC_CHECK_FUNCS(xdr_uint32 xdr_uint32_t xdr_u_int32_t)
AC_CHECK_FUNCS(xdr_uint64 xdr_uint64_t xdr_u_int64_t)
AC_CHECK_FUNCS(svc_getreq_poll)
AC_CHECK_FUNCS(statvfs)
AC_CHECK_FUNCS(seteuid setegid)
AC_CHECK_FUNCS(setresuid setresgid)
AC_CHECK_FUNCS(vsyslog)
AC_CHECK_FUNCS(lchown)
AC_CHECK_FUNCS(setgroups)
UNFS3_SOLARIS_RPC
UNFS3_PORTMAP_DEFINE
UNFS3_COMPILE_WARNINGS
AC_ARG_ENABLE(afs,
AS_HELP_STRING([--enable-afs], [include better support for exporting from AFS]),
[AC_DEFINE([AFS_SUPPORT], [], [Enable better support for exporting from AFS])])
AC_ARG_WITH(afs-prefix,
AS_HELP_STRING([--with-afs-prefix=PFX], [use AFS libs installed under PFX]),
[AFS_INCLUDES="-I$withval/include"
AFS_LIBS="-L$withval/lib/afs"],
[AFS_INCLUDES=""
AFS_LIBS="-L/usr/lib/afs"])
AFS_LIBS="$AFS_LIBS -lsys -lrx -lafsutil -llwp"
if test "_$enable_afs" != _yes
then
AFS_INCLUDES=
AFS_LIBS=
fi
AC_SUBST([AFS_INCLUDES])
AC_SUBST([AFS_LIBS])
AC_ARG_ENABLE(cluster,
AS_HELP_STRING([--enable-cluster], [include clustering extensions]),
[AC_DEFINE([WANT_CLUSTER], [], [Cluster extensions])
SUBDIRS=Extras
EXTRAOBJ=Extras/lib.a],
[SUBDIRS=
EXTRAOBJ=])
AC_SUBST([SUBDIRS])
AC_SUBST([EXTRAOBJ])
AC_OUTPUT(Makefile Config/Makefile Extras/Makefile)