lsyncd/configure.ac

75 lines
2.2 KiB
Plaintext
Raw Normal View History

2010-10-14 13:52:01 +00:00
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
#AC_PREREQ(2.60)
2011-03-27 08:25:56 +00:00
AC_INIT(lsyncd, 2.0.4, axkibe@gmail.com)
AC_CONFIG_SRCDIR([lsyncd.c])
AC_CONFIG_HEADER([config.h])
2010-11-14 19:53:36 +00:00
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
2010-10-14 13:52:01 +00:00
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
###
# Checks for lua
PKG_CHECK_MODULES([LUA], [lua5.1 >= 5.1.3],,[
PKG_CHECK_MODULES([LUA], [lua51 >= 5.1.3],,[
PKG_CHECK_MODULES([LUA], [lua-5.1 >= 5.1.3],,[
PKG_CHECK_MODULES([LUA], [lua >= 5.1.3])
])
])
])
###
2010-10-14 13:52:01 +00:00
# Checks for header files.
2010-10-26 20:29:12 +00:00
AC_CHECK_HEADERS([sys/inotify.h])
###
# --with-runner option
2010-10-26 20:29:12 +00:00
AC_ARG_WITH([runner],
[ --with-runner=<dir> Specify directory where lsyncds part written in Lua will be placed.
If missing it will be compiled into the binary])
2010-10-26 20:29:12 +00:00
if test "x${with_runner}" != x; then
AC_DEFINE_UNQUOTED(LSYNCD_DEFAULT_RUNNER_FILE, "${with_runner}/lsyncd.lua", "descr")
AC_SUBST(RUNNER_DIR, "${with_runner}")
2010-10-26 20:29:12 +00:00
fi
AM_CONDITIONAL([RUNNER], [test x${with_runner} != x])
2010-12-02 11:57:04 +00:00
## NOTE:
## With this release Lsyncd can yet only do with inotify.
## enabling fsevents and disabling inotify is thus commented out.
2010-12-07 15:42:46 +00:00
###
# --without-inotify option
AC_ARG_WITH([inotify],
[ --without-inotify Do not use Linux inotify event interface. On by default.])
if test "x${with_inotify}" == xno; then
echo "compiling without inotify"
else
echo "compiling with inotify"
AC_DEFINE(LSYNCD_WITH_INOTIFY,,"descr")
fi
AM_CONDITIONAL([INOTIFY], [test x${with_inotify} != xno])
2010-10-26 20:29:12 +00:00
2011-01-12 15:54:19 +00:00
####
## --with-fsevents
## disabled per default, experimental, works only with OS X 10.5
#AC_ARG_WITH([fsevents],
#[ --with-fsevents Uses MacOS (10.5) /dev/fsevents. EXPERIMENTAL!
# Off by default.])
#if test "x${with_fsevents}" != x; then
# echo "compiling with fsevents. WARNING experimental!"
# AC_DEFINE(LSYNCD_WITH_FSEVENTS,,"descr")
#else
## echo "compiling without fsevents"
#fi
#AM_CONDITIONAL([FSEVENTS],
# [test x${with_fsevents} != x -a xno${with_fsevents} != xno])
2010-10-14 13:52:01 +00:00
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
2011-01-12 15:54:19 +00:00