File: configure.ac

package info (click to toggle)
bindfs 1.8-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,504 kB
  • ctags: 148
  • sloc: sh: 8,955; ansic: 1,388; ruby: 120; makefile: 56
file content (44 lines) | stat: -rw-r--r-- 1,134 bytes parent folder | download
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
AC_INIT([bindfs],[1.8],[martin.partel@gmail.com])

AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)

AC_PROG_CC
AC_LANG(C)
AC_PROG_LIBTOOL

# --enable and --with options
AC_ARG_ENABLE([debug],
	AS_HELP_STRING([--enable-debug], [enable debugging]),
	[AC_DEFINE([BINDFS_DEBUG], [1], [Debugging])])
AC_ARG_WITH([core-foundation],
	AS_HELP_STRING([--with-core-foundation], [link against Core Foundation (OS X only) @<:@default=no@:>@]))


if test x"$enable_debug" == "xyes" ; then
	CFLAGS="${CFLAGS} -g -O0 -DMALLOC_CHECK_=2"
	CXXFLAGS="${CXXFLAGS} -g -O0 -DMALLOC_CHECK_=2"
else
	CFLAGS="${CFLAGS} -O2"
	CXXFLAGS="${CXXFLAGS} -O2"
fi

if test x"$with_core_foundation" == "xyes" ; then
	AC_MSG_NOTICE([Linking with Core Foundation])
	LDFLAGS="${LDFLAGS} -framework CoreFoundation"
fi

CFLAGS="${CFLAGS} -Wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=25"

# Check for xattrs
AC_CHECK_FUNCS([setxattr getxattr listxattr removexattr])
AC_CHECK_FUNCS([lsetxattr lgetxattr llistxattr lremovexattr])

# Check for fuse
PKG_CHECK_MODULES([fuse], [fuse >= 2.5.3])

AC_CONFIG_FILES([Makefile \
	src/Makefile \
	tests/Makefile])
AC_OUTPUT