summaryrefslogtreecommitdiff
Diffstat
-rwxr-xr-xAUTHORS23
-rwxr-xr-xAndroid.mk89
-rwxr-xr-xAndroid.mk.bak89
-rwxr-xr-xCOPYING340
-rwxr-xr-xCOPYING.LIB482
-rwxr-xr-xCREDITS41
-rwxr-xr-xChangeLog7
-rwxr-xr-xINSTALL237
-rwxr-xr-xMakefile715
-rwxr-xr-xMakefile.am66
-rwxr-xr-xMakefile.in722
-rwxr-xr-xNEWS5
-rwxr-xr-xREADME68
-rwxr-xr-xaclocal.m47723
-rwxr-xr-xautogen.sh22
-rwxr-xr-xcompile142
-rwxr-xr-xconfig.guess1536
-rwxr-xr-xconfig.h361
-rwxr-xr-xconfig.h.in350
-rwxr-xr-xconfig.log3290
-rwxr-xr-xconfig.status1220
-rwxr-xr-xconfig.sub1658
-rwxr-xr-xconfigure25302
-rwxr-xr-xconfigure.ac441
-rwxr-xr-xdepcomp589
-rwxr-xr-xinclude/Makefile.am4
-rwxr-xr-xinclude/Makefile.in503
-rwxr-xr-xinclude/fuse-lite/Makefile.am10
-rwxr-xr-xinclude/fuse-lite/Makefile.in400
-rwxr-xr-xinclude/fuse-lite/fuse.h654
-rwxr-xr-xinclude/fuse-lite/fuse_common.h193
-rwxr-xr-xinclude/fuse-lite/fuse_kernel.h422
-rwxr-xr-xinclude/fuse-lite/fuse_lowlevel.h1375
-rwxr-xr-xinclude/fuse-lite/fuse_lowlevel_compat.h16
-rwxr-xr-xinclude/fuse-lite/fuse_opt.h261
-rwxr-xr-xinclude/ntfs-3g/Makefile.am45
-rwxr-xr-xinclude/ntfs-3g/Makefile.in471
-rwxr-xr-xinclude/ntfs-3g/acls.h199
-rwxr-xr-xinclude/ntfs-3g/attrib.h358
-rwxr-xr-xinclude/ntfs-3g/attrlist.h51
-rwxr-xr-xinclude/ntfs-3g/bitmap.h96
-rwxr-xr-xinclude/ntfs-3g/bootsect.h42
-rwxr-xr-xinclude/ntfs-3g/cache.h115
-rwxr-xr-xinclude/ntfs-3g/collate.h34
-rwxr-xr-xinclude/ntfs-3g/compat.h69
-rwxr-xr-xinclude/ntfs-3g/compress.h39
-rwxr-xr-xinclude/ntfs-3g/debug.h47
-rwxr-xr-xinclude/ntfs-3g/device.h128
-rwxr-xr-xinclude/ntfs-3g/device_io.h77
-rwxr-xr-xinclude/ntfs-3g/dir.h128
-rwxr-xr-xinclude/ntfs-3g/efs.h30
-rwxr-xr-xinclude/ntfs-3g/endians.h203
-rwxr-xr-xinclude/ntfs-3g/index.h167
-rwxr-xr-xinclude/ntfs-3g/inode.h225
-rwxr-xr-xinclude/ntfs-3g/layout.h2661
-rwxr-xr-xinclude/ntfs-3g/lcnalloc.h50
-rwxr-xr-xinclude/ntfs-3g/logfile.h394
-rwxr-xr-xinclude/ntfs-3g/logging.h118
-rwxr-xr-xinclude/ntfs-3g/mft.h132
-rwxr-xr-xinclude/ntfs-3g/misc.h30
-rwxr-xr-xinclude/ntfs-3g/mst.h34
-rwxr-xr-xinclude/ntfs-3g/ntfstime.h131
-rwxr-xr-xinclude/ntfs-3g/object_id.h35
-rwxr-xr-xinclude/ntfs-3g/param.h63
-rwxr-xr-xinclude/ntfs-3g/reparse.h39
-rwxr-xr-xinclude/ntfs-3g/runlist.h89
-rwxr-xr-xinclude/ntfs-3g/security.h353
-rwxr-xr-xinclude/ntfs-3g/support.h85
-rwxr-xr-xinclude/ntfs-3g/types.h124
-rwxr-xr-xinclude/ntfs-3g/unistr.h116
-rwxr-xr-xinclude/ntfs-3g/volume.h277
-rwxr-xr-xinstall-sh519
-rwxr-xr-xlibfuse-lite/Makefile.am28
-rwxr-xr-xlibfuse-lite/Makefile.in572
-rwxr-xr-xlibfuse-lite/fuse.c2789
-rwxr-xr-xlibfuse-lite/fuse_i.h25
-rwxr-xr-xlibfuse-lite/fuse_kern_chan.c96
-rwxr-xr-xlibfuse-lite/fuse_loop.c40
-rwxr-xr-xlibfuse-lite/fuse_lowlevel.c1395
-rwxr-xr-xlibfuse-lite/fuse_misc.h106
-rwxr-xr-xlibfuse-lite/fuse_opt.c368
-rwxr-xr-xlibfuse-lite/fuse_session.c183
-rwxr-xr-xlibfuse-lite/fuse_signals.c73
-rwxr-xr-xlibfuse-lite/fusermount.c772
-rwxr-xr-xlibfuse-lite/helper.c40
-rwxr-xr-xlibfuse-lite/mount.c256
-rwxr-xr-xlibfuse-lite/mount_util.c219
-rwxr-xr-xlibfuse-lite/mount_util.h22
-rwxr-xr-xlibntfs-3g/Makefile.am79
-rwxr-xr-xlibntfs-3g/Makefile.in841
-rwxr-xr-xlibntfs-3g/acls.c4296
-rwxr-xr-xlibntfs-3g/attrib.c5913
-rwxr-xr-xlibntfs-3g/attrlist.c314
-rwxr-xr-xlibntfs-3g/bitmap.c300
-rwxr-xr-xlibntfs-3g/bootsect.c285
-rwxr-xr-xlibntfs-3g/cache.c609
-rwxr-xr-xlibntfs-3g/collate.c271
-rwxr-xr-xlibntfs-3g/compat.c250
-rwxr-xr-xlibntfs-3g/compress.c1431
-rwxr-xr-xlibntfs-3g/debug.c79
-rwxr-xr-xlibntfs-3g/device.c730
-rwxr-xr-xlibntfs-3g/dir.c2582
-rwxr-xr-xlibntfs-3g/efs.c346
-rwxr-xr-xlibntfs-3g/index.c2063
-rwxr-xr-xlibntfs-3g/inode.c1566
-rwxr-xr-xlibntfs-3g/lcnalloc.c735
-rwxr-xr-xlibntfs-3g/libntfs-3g.pc.in10
-rwxr-xr-xlibntfs-3g/libntfs-3g.script.so.in2
-rwxr-xr-xlibntfs-3g/logfile.c737
-rwxr-xr-xlibntfs-3g/logging.c613
-rwxr-xr-xlibntfs-3g/mft.c1909
-rwxr-xr-xlibntfs-3g/misc.c61
-rwxr-xr-xlibntfs-3g/mst.c231
-rwxr-xr-xlibntfs-3g/object_id.c637
-rwxr-xr-xlibntfs-3g/reparse.c1222
-rwxr-xr-xlibntfs-3g/runlist.c2166
-rwxr-xr-xlibntfs-3g/security.c5167
-rwxr-xr-xlibntfs-3g/unistr.c1321
-rwxr-xr-xlibntfs-3g/unix_io.c386
-rwxr-xr-xlibntfs-3g/volume.c1663
-rwxr-xr-xlibntfs-3g/win32_io.c1477
-rwxr-xr-xlibtool7621
-rwxr-xr-xltmain.sh6956
-rwxr-xr-xm4/.keep0
-rwxr-xr-xmissing367
-rwxr-xr-xprog.IAB1071
-rwxr-xr-xprog.IAD5
-rwxr-xr-xprog.IMB466
-rwxr-xr-xprog.IMD2
-rwxr-xr-xprog.PFI2
-rwxr-xr-xprog.PO1
-rwxr-xr-xprog.PR14
-rwxr-xr-xprog.PRI219
-rwxr-xr-xprog.PS979
-rwxr-xr-xprog.SearchResults3
-rwxr-xr-xprog.WK39
-rwxr-xr-xsrc/lowntfs-3g.c4492
-rwxr-xr-xsrc/ntfs-3g.8.in349
-rwxr-xr-xsrc/ntfs-3g.c4461
-rwxr-xr-xsrc/ntfs-3g.probe.8.in81
-rwxr-xr-xsrc/ntfs-3g.probe.c163
-rwxr-xr-xsrc/ntfs-3g.secaudit.8.in171
-rwxr-xr-xsrc/ntfs-3g.usermap.8.in96
-rwxr-xr-xsrc/secaudit.c7176
-rwxr-xr-xsrc/secaudit.h731
-rwxr-xr-xsrc/test.c88
-rwxr-xr-xsrc/usermap.c1356
-rwxr-xr-xstamp-h11
148 files changed, 141286 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100755
index 0000000..2b578af
--- a/dev/null
+++ b/configure.ac
@@ -0,0 +1,441 @@
+#
+# configure.ac - Source file to generate "./configure" to prepare package for
+# compilation.
+#
+# Copyright (c) 2000-2006 Anton Altaparmakov
+# Copyright (c) 2005-2009 Szabolcs Szakacsits
+# Copyright (C) 2007-2008 Alon Bar-Lev
+#
+# This program/include file is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as published
+# by the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program/include file is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
+# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program (in the main directory of the NTFS-3G
+# distribution in the file COPYING); if not, write to the Free Software
+# Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+# Autoconf
+AC_PREREQ(2.59)
+AC_INIT([ntfs-3g],[2010.5.16],[ntfs-3g-devel@lists.sf.net])
+LIBNTFS_3G_VERSION="76"
+AC_CONFIG_SRCDIR([src/ntfs-3g.c])
+
+# Environment
+AC_CANONICAL_HOST
+AC_CANONICAL_TARGET
+
+# Automake
+AM_INIT_AUTOMAKE([${PACKAGE_NAME}], [${PACKAGE_VERSION}])
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_MACRO_DIR([m4])
+AM_MAINTAINER_MODE
+
+# Options
+AC_ARG_ENABLE(
+ [debug],
+ [AS_HELP_STRING([--enable-debug],[enable debugging code and output])],
+ ,
+ [enable_debug="no"]
+)
+
+AC_ARG_ENABLE(
+ [warnings],
+ [AS_HELP_STRING([--enable-warnings],[enable lots of compiler warnings])],
+ ,
+ [enable_warnings="no"]
+)
+
+AC_ARG_ENABLE(
+ [pedantic],
+ [AS_HELP_STRING([--enable-pedantic],[enable compile pedantic mode])],
+ ,
+ [enable_pedantic="no"]
+)
+
+AC_ARG_ENABLE(
+ [really-static],
+ [AS_HELP_STRING([--enable-really-static],[create fully static binaries])],
+ ,
+ [enable_really_static="no"]
+)
+
+AC_ARG_ENABLE(
+ [mount-helper],
+ [AS_HELP_STRING([--enable-mount-helper],[install mount helper @<:@default=enabled for linux@:>@])],
+ ,
+ [
+ case "${target_os}" in
+ linux*) enable_mount_helper="yes" ;;
+ *) enable_mount_helper="no" ;;
+ esac
+ ]
+)
+
+AC_ARG_ENABLE(
+ [ldscript],
+ [AS_HELP_STRING([--enable-ldscript],[use ldscript instead of .so symlink])],
+ ,
+ [enable_ldscript="no"]
+)
+
+AC_ARG_ENABLE(
+ [ldconfig],
+ [AS_HELP_STRING([--disable-ldconfig],[do not update dynamic linker cache using ldconfig])],
+ ,
+ [enable_ldconfig="yes"]
+)
+
+AC_ARG_ENABLE(
+ [library],
+ [AS_HELP_STRING([--disable-library],[do not install libntfs-3g but link it into ntfs-3g])],
+ ,
+ [enable_library="yes"]
+)
+
+AC_ARG_ENABLE(
+ [mtab],
+ [AS_HELP_STRING([--disable-mtab],[disable and ignore usage of /etc/mtab])],
+ ,
+ [enable_mtab="yes"]
+)
+
+AC_ARG_ENABLE(
+ [posix-acls],
+ [AS_HELP_STRING([--enable-posix-acls],[enable POSIX ACL support])],
+ ,
+ [enable_posix_acls="no"]
+)
+
+AC_ARG_ENABLE(
+ [device-default-io-ops],
+ [AS_HELP_STRING([--disable-device-default-io-ops],[install default IO ops])],
+ ,
+ [enable_device_default_io_ops="yes"]
+)
+
+AC_ARG_ENABLE(
+ [nfconv],
+ [AS_HELP_STRING([--disable-nfconv],[disable the 'nfconv' patch, which adds support for Unicode normalization form conversion when built on Mac OS X @<:@default=enabled for Mac OS X@:>@])],
+ [enable_nfconv="no"],
+ [
+ case "${target_os}" in
+ darwin*) enable_nfconv="yes" ;;
+ *) enable_nfconv="no" ;;
+ esac
+ ]
+)
+
+# pthread_rwlock_t requires _GNU_SOURCE
+AC_GNU_SOURCE
+
+# Programs
+AC_PROG_CC(gcc cc)
+AC_PROG_LN_S
+AM_PROG_CC_C_O
+
+ifdef(
+ [LT_INIT],
+ [LT_INIT],
+ [AC_PROG_LIBTOOL]
+)
+
+AC_PATH_PROG([MV], [mv])
+AC_PATH_PROG([RM], [rm])
+AC_PATH_PROG([SED], [sed])
+AC_ARG_VAR([LDCONFIG], [ldconfig utility])
+AC_PATH_PROG([LDCONFIG], [ldconfig], [true], [/sbin /usr/sbin $PATH])
+
+# Environment
+AC_MSG_CHECKING([Windows OS])
+case "${target}" in
+*-mingw32*|*-winnt*|*-cygwin*)
+ AC_MSG_RESULT([yes])
+ WINDOWS="yes"
+ AC_DEFINE(
+ [WINDOWS],
+ [1],
+ [Define to 1 if this is a Windows OS]
+ )
+ ;;
+*)
+ AC_MSG_RESULT([no])
+ WINDOWS="no"
+ ;;
+esac
+
+AC_MSG_CHECKING([fuse compatibility])
+case "${target_os}" in
+linux*)
+ AC_ARG_WITH(
+ [fuse],
+ [AS_HELP_STRING([--with-fuse=<internal|external>],[Select FUSE library: internal or external @<:@default=internal@:>@])],
+ ,
+ [with_fuse="internal"]
+ )
+ ;;
+darwin*|netbsd*|solaris*)
+ with_fuse="external"
+ ;;
+freebsd*)
+ AC_MSG_ERROR([Please see FreeBSD support at http://www.freshports.org/sysutils/fusefs-ntfs])
+ ;;
+*)
+ AC_MSG_ERROR([ntfs-3g can be built for Linux, FreeBSD, Mac OS X, NetBSD, and Solaris only.])
+ ;;
+esac
+AC_MSG_RESULT([${with_fuse}])
+
+case "${target_os}" in
+solaris*)
+ if test "x$GCC" != "xyes" ; then
+ AC_MSG_ERROR([ntfs-3g can be built only with gcc on Solaris. Install it by 'pkg install gcc-dev' and retry.)])
+ fi
+ ;;
+esac
+
+if test "${enable_ldscript}" = "yes"; then
+ AC_MSG_CHECKING([Output format])
+ OUTPUT_FORMAT="$(${CC} ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | ${SED} -n 's/^OUTPUT_FORMAT("\([[^"]]*\)",.*/\1/p')"
+ if test -z "${OUTPUT_FORMAT}"; then
+ AC_MSG_RESULT([None])
+ else
+ AC_MSG_RESULT([${OUTPUT_FORMAT}])
+ OUTPUT_FORMAT="OUTPUT_FORMAT ( ${OUTPUT_FORMAT} )"
+ fi
+fi
+
+# Libraries
+if test "${with_fuse}" = "internal"; then
+ AC_CHECK_LIB(
+ [pthread],
+ [pthread_create],
+ [LIBFUSE_LITE_LIBS="${LIBFUSE_LITE_LIBS} -lpthread"],
+ [AC_MSG_ERROR([Cannot find pthread library])]
+ )
+ AC_DEFINE(
+ [_REENTRANT],
+ [1],
+ [Required define if using POSIX threads]
+ )
+ # required so that we re-compile anything
+ AC_DEFINE(
+ [FUSE_INTERNAL],
+ [1],
+ [Define to 1 if using internal fuse]
+ )
+else
+ if test -z "$PKG_CONFIG"; then
+ AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+ fi
+ test "x${PKG_CONFIG}" = "xno" && AC_MSG_ERROR([pkg-config wasn't found! Please install from your vendor, or see http://pkg-config.freedesktop.org/wiki/])
+ # Libraries often install their metadata .pc files in directories
+ # not searched by pkg-config. Let's workaround this.
+ export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/lib/pkgconfig:/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/usr/share/pkgconfig:/usr/local/lib/pkgconfig:$prefix/lib/pkgconfig:/opt/gnome/share/pkgconfig:/usr/local/share/pkgconfig
+ PKG_CHECK_MODULES(
+ [FUSE_MODULE],
+ [fuse >= 2.6.0],
+ ,
+ [
+ AC_MSG_ERROR([FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net])
+ ]
+ )
+ FUSE_LIB_PATH=`$PKG_CONFIG --libs-only-L fuse | sed -e 's,/[/]*,/,g' -e 's,[ ]*$,,'`
+fi
+
+# Checks for header files.
+AC_HEADER_STDC
+AC_CHECK_HEADERS([ctype.h fcntl.h libgen.h libintl.h limits.h locale.h \
+ mntent.h stddef.h stdint.h stdlib.h stdio.h stdarg.h string.h \
+ strings.h errno.h time.h unistd.h utime.h wchar.h getopt.h features.h \
+ endian.h byteswap.h sys/byteorder.h sys/endian.h sys/param.h \
+ sys/ioctl.h sys/mkdev.h sys/mount.h sys/stat.h sys/types.h sys/vfs.h \
+ sys/statvfs.h sys/sysmacros.h linux/major.h linux/fd.h linux/hdreg.h \
+ machine/endian.h windows.h syslog.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_HEADER_STDBOOL
+AC_C_BIGENDIAN(
+ ,
+ [
+ AC_DEFINE(
+ [WORDS_LITTLEENDIAN],
+ [1],
+ [Define to 1 if your processor stores words with the least significant
+ byte first (like Intel and VAX, unlike Motorola and SPARC).]
+ )
+ ]
+ ,
+)
+AC_C_INLINE
+AC_TYPE_OFF_T
+AC_TYPE_SIZE_T
+AC_STRUCT_ST_BLOCKS
+AC_CHECK_MEMBERS([struct stat.st_rdev])
+AC_CHECK_MEMBERS([struct stat.st_atim])
+AC_CHECK_MEMBERS([struct stat.st_atimespec])
+AC_CHECK_MEMBERS([struct stat.st_atimensec])
+
+# For the 'nfconv' patch (Mac OS X only):
+case "${target_os}" in
+darwin*)
+ if test "${enable_nfconv}" = "yes"; then
+ AC_CHECK_HEADER(
+ [CoreFoundation/CoreFoundation.h],
+ [
+ LDFLAGS="${LDFLAGS} -framework CoreFoundation"
+ AC_DEFINE(
+ [ENABLE_NFCONV],
+ [1],
+ [Define to 1 if the nfconv patch should be enabled]
+ )
+ ],
+ AC_MSG_ERROR([[Cannot find CoreFoundation required for 'nfconv' functionality Mac OS X. You may use the --disable-nfconv 'configure' option to avoid this error.]])
+ )
+ fi
+ ;;
+esac
+
+# Checks for library functions.
+AC_FUNC_GETMNTENT
+AC_FUNC_MBRTOWC
+AC_FUNC_MEMCMP
+AC_FUNC_STAT
+AC_FUNC_STRFTIME
+AC_FUNC_UTIME_NULL
+AC_FUNC_VPRINTF
+AC_CHECK_FUNCS([ \
+ atexit basename daemon dup2 fdatasync ffs getopt_long hasmntopt \
+ mbsinit memmove memset realpath regcomp setlocale setxattr \
+ strcasecmp strchr strdup strerror strnlen strsep strtol strtoul \
+ sysconf utime utimensat gettimeofday clock_gettime fork \
+])
+AC_SYS_LARGEFILE
+
+if test "$GCC" = "yes" ; then
+ # We add -Wall to enable some compiler warnings.
+ CFLAGS="${CFLAGS} -Wall"
+fi
+
+if test "${enable_pedantic}" = "yes"; then
+ enable_warnings="yes"
+ CFLAGS="${CFLAGS} -pedantic"
+fi
+
+if test "${enable_warnings}" = "yes"; then
+ CFLAGS="${CFLAGS} -W -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Winline -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wmultichar -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wformat -Wformat-security -Wuninitialized"
+fi
+
+if test "${enable_debug}" = "yes"; then
+ CFLAGS="${CFLAGS} -ggdb3 -DDEBUG"
+ AC_DEFINE(
+ [ENABLE_DEBUG],
+ [1],
+ [Define to 1 if debug should be enabled]
+ )
+fi
+
+test "${enable_device_default_io_ops}" = "no" && AC_DEFINE(
+ [NO_NTFS_DEVICE_DEFAULT_IO_OPS],
+ [1],
+ [Don't use default IO ops]
+)
+
+test "${enable_mtab}" = "no" && AC_DEFINE([IGNORE_MTAB], [1], [Don't update /etc/mtab])
+test "${enable_posix_acls}" != "no" && AC_DEFINE([POSIXACLS], [1], [POSIX ACL support])
+
+test "${enable_really_static}" = "yes" && enable_library="no"
+test "${enable_library}" = "no" && enable_ldconfig="no"
+
+if test "x${DISTCHECK_HACK}" != "x"; then
+ enable_mount_helper="no"
+ enable_ldconfig="no"
+fi
+
+# Settings
+pkgconfigdir="\$(libdir)/pkgconfig"
+ntfs3gincludedir="\$(includedir)/ntfs-3g"
+# Executables should be installed to the root filesystem, otherwise
+# automounting NTFS volumes can fail during boot if the driver binaries
+# and their dependencies are on an unmounted partition. Use --exec-prefix
+# to override this.
+if test "x${exec_prefix}" = "xNONE"; then
+ rootbindir="/bin"
+ rootsbindir="/sbin"
+ rootlibdir="/lib${libdir##*/lib}"
+else
+ rootbindir="\$(bindir)"
+ rootsbindir="\$(sbindir)"
+ rootlibdir="\$(libdir)"
+fi
+AC_SUBST([pkgconfigdir])
+AC_SUBST([ntfs3gincludedir])
+AC_SUBST([rootbindir])
+AC_SUBST([rootsbindir])
+AC_SUBST([rootlibdir])
+AC_SUBST([LIBNTFS_3G_VERSION])
+AC_SUBST([LIBFUSE_LITE_LIBS])
+AC_SUBST([OUTPUT_FORMAT])
+AM_CONDITIONAL([FUSE_INTERNAL], [test "${with_fuse}" = "internal"])
+AM_CONDITIONAL([GENERATE_LDSCRIPT], [test "${enable_ldscript}" = "yes"])
+AM_CONDITIONAL([WINDOWS], [test "${WINDOWS}" = "yes"])
+AM_CONDITIONAL([NTFS_DEVICE_DEFAULT_IO_OPS], [test "${enable_device_default_io_ops}" = "yes"])
+AM_CONDITIONAL([RUN_LDCONFIG], [test "${enable_ldconfig}" = "yes"])
+AM_CONDITIONAL([REALLYSTATIC], [test "${enable_really_static}" = "yes"])
+AM_CONDITIONAL([INSTALL_LIBRARY], [test "${enable_library}" = "yes"])
+AM_CONDITIONAL([ENABLE_MOUNT_HELPER], [test "${enable_mount_helper}" = "yes"])
+
+# workaround for <autoconf-2.60
+if test -z "${docdir}"; then
+ docdir="\$(datarootdir)/doc/\$(PACKAGE_NAME)"
+ AC_SUBST([docdir])
+fi
+# workaround for <automake-1.10
+if test -z "${MKDIR_P}"; then
+ MKDIR_P="\$(mkdir_p)"
+ AC_SUBST([MKDIR_P])
+fi
+
+# generate files
+AC_CONFIG_FILES([
+ Makefile
+ include/Makefile
+ include/fuse-lite/Makefile
+ include/ntfs-3g/Makefile
+ libfuse-lite/Makefile
+ libntfs-3g/Makefile
+ libntfs-3g/libntfs-3g.pc
+ libntfs-3g/libntfs-3g.script.so
+ src/Makefile
+ src/ntfs-3g.8
+ src/ntfs-3g.probe.8
+ src/ntfs-3g.usermap.8
+ src/ntfs-3g.secaudit.8
+])
+AC_OUTPUT
+
+if test "${with_fuse}" = "external"; then
+ if ! echo "x$FUSE_LIB_PATH" | grep -- "x-L/lib" > /dev/null; then
+ cat <<EOF
+****************************************************************************
+* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING *
+* The FUSE user space binaries were NOT installed with root directory *
+* executable prefix. This means that automounting NTFS volumes during boot *
+* could fail. This can be fixed the below way by reinstalling FUSE using *
+* the right 'configure' option during FUSE compilation: *
+* ./configure --exec-prefix=/ *
+* make && sudo make install *
+* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING *
+****************************************************************************
+EOF
+ fi
+fi
+
+echo "You can type now 'make' to build ntfs-3g."
+