Added xattr mime-type detection to sendfile.
[ashd.git] / configure.in
... / ...
CommitLineData
1AC_INIT(src/htparser.c)
2AM_INIT_AUTOMAKE([ashd], [0.1])
3AM_CONFIG_HEADER(config.h)
4
5AC_PROG_CC
6AM_PROG_CC_C_O
7AC_PROG_INSTALL
8AC_PROG_RANLIB
9
10dnl Add for libtool:
11dnl AM_PROG_LIBTOOL
12
13AC_HEADER_STDC
14
15AH_TEMPLATE(HAVE_XATTR, [define to compile support for filesystem extended attributes])
16AC_ARG_WITH(xattr, [ --with-xattr Enable XATTR support])
17HAS_XATTR=""
18if test "$with_xattr" = no; then HAS_XATTR=no; fi
19if test -z "$HAS_XATTR"; then
20 AC_CHECK_LIB(attr, getxattr, [:], [HAS_XATTR=no])
21fi
22if test -z "$HAS_XATTR"; then
23 AC_CHECK_HEADER(attr/xattr.h, [], [HAS_XATTR=no])
24fi
25if test "$HAS_XATTR" != no; then HAS_XATTR=yes; fi
26if test "$with_xattr" = yes -a "$HAS_XATTR" = no; then
27 AC_MSG_ERROR([*** cannot find xattr support on this system])
28fi
29if test "$HAS_XATTR" = yes; then
30 XATTR_LIBS=-lattr
31 AC_DEFINE(HAVE_XATTR)
32fi
33AC_SUBST(XATTR_LIBS)
34
35AC_OUTPUT([
36Makefile
37src/Makefile
38lib/Makefile
39])