libfuse/configure.in

63 lines
1.5 KiB
Plaintext
Raw Normal View History

2005-08-15 23:10:48 +08:00
AC_INIT(fuse, 2.4.0-pre1)
2004-11-10 19:52:26 +08:00
AM_INIT_AUTOMAKE
2001-11-07 20:09:43 +08:00
AM_CONFIG_HEADER(include/config.h)
2004-06-24 02:52:50 +08:00
m4_ifdef([LT_INIT],
[LT_INIT],
[AC_PROG_LIBTOOL])
2001-11-07 20:09:43 +08:00
AC_PROG_CC
2005-02-02 19:14:04 +08:00
# compatibility for automake < 1.8
if test -z "$mkdir_p"; then
mkdir_p="../mkinstalldirs"
2005-02-02 19:14:04 +08:00
AC_SUBST(mkdir_p)
fi
2005-08-03 17:11:06 +08:00
if test -z "$CFLAGS"; then
CFLAGS="-Wall -W -g -O2"
fi
2004-12-04 08:40:50 +08:00
CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22"
2001-11-07 20:09:43 +08:00
AC_ARG_ENABLE(kernel-module,
2004-11-10 19:52:26 +08:00
[ --enable-kernel-module Compile kernel module ])
AC_ARG_ENABLE(lib,
[ --enable-lib Compile with library ])
AC_ARG_ENABLE(util,
[ --enable-util Compile with util ])
AC_ARG_ENABLE(example,
[ --enable-example Compile with examples ])
2004-07-25 03:56:16 +08:00
AC_ARG_ENABLE(auto-modprobe,
[ --enable-auto-modprobe Automatically insert kernel module])
2001-11-07 20:09:43 +08:00
2004-11-10 19:52:26 +08:00
subdirs2="include"
2002-12-04 02:45:21 +08:00
if test "$enable_kernel_module" != "no"; then
2004-11-10 19:52:26 +08:00
AC_CONFIG_SUBDIRS(kernel)
fi
2001-11-07 20:09:43 +08:00
if test "$enable_lib" != "no"; then
2004-11-10 19:52:26 +08:00
subdirs2="$subdirs2 lib";
fi
if test "$enable_util" != "no"; then
2004-11-10 19:52:26 +08:00
subdirs2="$subdirs2 util";
fi
if test "$enable_example" != "no"; then
2004-11-10 19:52:26 +08:00
subdirs2="$subdirs2 example";
fi
2004-07-25 03:56:16 +08:00
if test "$enable_auto_modprobe" = "yes"; then
AC_DEFINE(AUTO_MODPROBE, 1, [Automatically insert kernel module])
fi
AC_CHECK_FUNCS([setxattr])
2004-06-24 02:52:50 +08:00
AC_CHECK_MEMBERS([struct stat.st_atim])
2005-07-26 19:07:55 +08:00
if test -z "$MOUNT_FUSE_PATH"; then
MOUNT_FUSE_PATH=/sbin
fi
AC_SUBST(MOUNT_FUSE_PATH)
2004-11-10 19:52:26 +08:00
AC_SUBST(subdirs2)
2001-11-07 20:09:43 +08:00
2004-12-02 02:56:39 +08:00
AC_CONFIG_FILES([fuse.pc Makefile lib/Makefile util/Makefile example/Makefile include/Makefile])
2004-11-09 05:11:53 +08:00
AC_OUTPUT