Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 57 lines (44 sloc) 1.027 kb
3f81e65 @paulcbetts Initial import, based on vcachefs code
authored
1 AC_PREREQ(2.51)
2
3 AC_INIT(README)
4 AC_CANONICAL_HOST
b0ee176 @paulcbetts Mass rename of vcachefs to mongodbfs
authored
5 AM_INIT_AUTOMAKE(mongodbfs, 0.1)
3f81e65 @paulcbetts Initial import, based on vcachefs code
authored
6
7 AM_PROG_LIBTOOL
8
9 AC_ISC_POSIX
10 AC_PROG_CC
bdbfba5 @paulcbetts Blow away vcachefs code that doesn't apply to us, add C++ support so we
authored
11 AC_PROG_CXX
3f81e65 @paulcbetts Initial import, based on vcachefs code
authored
12 AC_C_INLINE
13 AC_STDC_HEADERS
14 AC_PROG_INSTALL
15 AC_PROG_LN_S
16 AC_PROG_MAKE_SET
17
18 AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS")
19 AC_CONFIG_SRCDIR(src)
20 AC_CONFIG_HEADERS(config.h)
21
22 AM_MAINTAINER_MODE
23
24 dnl -------------- Add the debug flag ----------------------
25 AC_ARG_ENABLE([debug],
26 AC_HELP_STRING([--enable-debug], [Enable Debug Mode (default disabled)]),
27 enable_debug=$enableval,
28 enable_debug=no)
29 ENABLE_DEBUG=$enable_debug
30 if test "x$enable_debug" = "xno"; then
31 DEBUG_CFLAGS=""
32 else
33 DEBUG_CFLAGS="-Wall -g"
34 fi
35 AC_SUBST(DEBUG_CFLAGS)
36 AC_SUBST(ENABLE_DEBUG)
37
38 dnl pkg-config
39 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
40 if test "x$PKG_CONFIG" = "xno"; then
41 AC_MSG_ERROR([You need to install pkg-config])
42 fi
43
44 GLIB_REQUIRED=2.9.0
45
b0ee176 @paulcbetts Mass rename of vcachefs to mongodbfs
authored
46 PKG_CHECK_MODULES(MONGODBFS, glib-2.0 >= $GLIB_REQUIRED
3f81e65 @paulcbetts Initial import, based on vcachefs code
authored
47 fuse )
48
b0ee176 @paulcbetts Mass rename of vcachefs to mongodbfs
authored
49 AC_SUBST(MONGODBFS_CFLAGS)
50 AC_SUBST(MONGODBFS_LIBS)
3f81e65 @paulcbetts Initial import, based on vcachefs code
authored
51
52 AC_OUTPUT([
53 Makefile
54 src/Makefile
55 ])
56
Something went wrong with that request. Please try again.