AC_INIT([bindfs],[1.12.2],[martin.partel@gmail.com]) AM_INIT_AUTOMAKE([foreign]) 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 debug symbols])]) AC_ARG_ENABLE([debug-output], [AS_HELP_STRING([--enable-debug-output], [enable debug output])]) 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 my_CFLAGS="-g -O0" else my_CFLAGS="-O2" fi if test x"$enable_debug_output" == "xyes" ; then AC_DEFINE([BINDFS_DEBUG], [1], [Define to 1 to enable debugging messages]) fi if test x"$with_core_foundation" == "xyes" ; then AC_MSG_NOTICE([Linking with Core Foundation]) LDFLAGS="${LDFLAGS} -framework CoreFoundation" fi my_CPPFLAGS="-D_REENTRANT -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=25" my_CFLAGS="$my_CFLAGS -Wall" my_LDFLAGS="-pthread" AC_SUBST([my_CPPFLAGS]) AC_SUBST([my_CFLAGS]) AC_SUBST([my_LDFLAGS]) # 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 \ tests/internals/Makefile]) AC_OUTPUT