1 AC_INIT(src/htparser.c)
2 AM_INIT_AUTOMAKE([ashd], [0.1])
3 AM_CONFIG_HEADER(config.h)
15 AH_TEMPLATE(HAVE_XATTR, [define to compile support for filesystem extended attributes])
16 AC_ARG_WITH(xattr, [ --with-xattr Enable XATTR support])
18 if test "$with_xattr" = no; then HAS_XATTR=no; fi
19 if test -z "$HAS_XATTR"; then
20 AC_CHECK_LIB(attr, getxattr, [:], [HAS_XATTR=no])
22 if test -z "$HAS_XATTR"; then
23 AC_CHECK_HEADER(attr/xattr.h, [], [HAS_XATTR=no])
25 if test "$HAS_XATTR" != no; then HAS_XATTR=yes; fi
26 if test "$with_xattr" = yes -a "$HAS_XATTR" = no; then
27 AC_MSG_ERROR([*** cannot find xattr support on this system])
29 if test "$HAS_XATTR" = yes; then
35 AH_TEMPLATE(HAVE_GNUTLS, [define to use the GnuTLS library for SSL support])
36 AC_ARG_WITH(gnutls, [ --with-gnutls Enable SSL support with the GnuTLS library])
38 if test "$with_gnutls" = no; then HAS_GNUTLS=no; fi
39 if test -z "$HAS_GNUTLS"; then
40 AC_CHECK_LIB(gnutls, gnutls_global_init, [:], [HAS_GNUTLS=no])
42 if test -z "$HAS_GNUTLS"; then
43 AC_CHECK_HEADER(gnutls/gnutls.h, [], [HAS_GNUTLS=no])
45 if test "$HAS_GNUTLS" != no; then HAS_GNUTLS=yes; fi
46 if test "$with_gnutls" = yes -a "$HAS_GNUTLS" = no; then
47 AC_MSG_ERROR([*** cannot find GnuTLS on this system])
49 if test "$HAS_GNUTLS" = yes; then
51 GNUTLS_CPPFLAGS=-D_GNU_SOURCE
52 AC_DEFINE(HAVE_GNUTLS)
54 AC_SUBST(GNUTLS_CPPFLAGS)