~james-w/+junk/fuse-debian-upstream

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: James Westby
  • Date: 2008-05-16 12:57:40 UTC
  • Revision ID: jw+debian@jameswestby.net-20080516125740-fn2iqsxtfd3olmib
Tags: upstream-debian-2.2.1
Import upstream from fuse_2.2.1.orig.tar.gz

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_INIT(fuse, 2.2.1)
 
2
AM_INIT_AUTOMAKE
 
3
AM_CONFIG_HEADER(include/config.h)
 
4
 
 
5
m4_ifdef([LT_INIT],
 
6
        [LT_INIT],
 
7
        [AC_PROG_LIBTOOL])
 
8
AC_PROG_CC
 
9
 
 
10
# compatibility for automake < 1.8
 
11
if test -z "$mkdir_p"; then
 
12
        mkdir_p="../mkinstalldirs"
 
13
        AC_SUBST(mkdir_p)
 
14
fi
 
15
 
 
16
CFLAGS="-Wall -W -g -O2"
 
17
CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22"
 
18
 
 
19
AC_ARG_ENABLE(kernel-module,
 
20
        [  --enable-kernel-module  Compile kernel module ])
 
21
AC_ARG_ENABLE(lib,
 
22
        [  --enable-lib            Compile with library ])
 
23
AC_ARG_ENABLE(util,
 
24
        [  --enable-util           Compile with util ])
 
25
AC_ARG_ENABLE(example,
 
26
        [  --enable-example        Compile with examples ])
 
27
AC_ARG_ENABLE(auto-modprobe,
 
28
        [  --enable-auto-modprobe  Automatically insert kernel module])
 
29
 
 
30
subdirs2="include"
 
31
 
 
32
if test "$enable_kernel_module" != "no"; then
 
33
        AC_CONFIG_SUBDIRS(kernel)
 
34
fi
 
35
 
 
36
if test "$enable_lib" != "no"; then
 
37
        subdirs2="$subdirs2 lib";
 
38
fi
 
39
if test "$enable_util" != "no"; then
 
40
        subdirs2="$subdirs2 util";
 
41
fi
 
42
if test "$enable_example" != "no"; then
 
43
        subdirs2="$subdirs2 example";
 
44
fi
 
45
if test "$enable_auto_modprobe" = "yes"; then
 
46
        AC_DEFINE(AUTO_MODPROBE, 1, [Automatically insert kernel module])
 
47
fi
 
48
 
 
49
AC_CHECK_FUNCS([setxattr])
 
50
AC_CHECK_MEMBERS([struct stat.st_atim])
 
51
 
 
52
AC_SUBST(subdirs2)
 
53
 
 
54
AC_CONFIG_FILES([fuse.pc Makefile lib/Makefile util/Makefile example/Makefile include/Makefile])
 
55
AC_OUTPUT