2010-10-14 13:52:01 +00:00
|
|
|
# -*- Autoconf -*-
|
2010-11-26 16:17:36 +00:00
|
|
|
echo XXXXXXXXX
|
2010-10-14 13:52:01 +00:00
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
#AC_PREREQ(2.60)
|
2010-11-25 07:21:35 +00:00
|
|
|
AC_INIT(lsyncd, 2.0beta3, axkibe@gmail.com)
|
2010-11-26 16:17:36 +00:00
|
|
|
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 libraries.
|
|
|
|
PKG_CHECK_MODULES(LIBLUA, lua5.1)
|
|
|
|
# Checks for header files.
|
2010-10-26 20:29:12 +00:00
|
|
|
AC_CHECK_HEADERS([sys/inotify.h])
|
|
|
|
|
2010-11-26 16:17:36 +00:00
|
|
|
###
|
|
|
|
# --with-runner option
|
2010-10-26 20:29:12 +00:00
|
|
|
AC_ARG_WITH([runner],
|
2010-11-26 16:52:24 +00:00
|
|
|
[ --with-runner=<dir> Specify directory where lsyncds part written in Lua will be placed.
|
2010-11-26 16:17:36 +00:00
|
|
|
If missing it will be compiled into the binary])
|
2010-10-26 20:29:12 +00:00
|
|
|
if test "x${with_runner}" != x; then
|
2010-11-26 16:17:36 +00:00
|
|
|
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
|
2010-11-26 16:17:36 +00:00
|
|
|
AM_CONDITIONAL([RUNNER], [test x${with_runner} != x])
|
|
|
|
|
|
|
|
###
|
|
|
|
# --without-inotify option
|
|
|
|
AC_ARG_WITH([inotify],
|
2010-11-26 16:52:24 +00:00
|
|
|
[ --without-inotify Do not compile Linux inotify event interface. On by default.])
|
2010-11-26 16:17:36 +00:00
|
|
|
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
|
|
|
|
2010-11-26 16:52:24 +00:00
|
|
|
###
|
|
|
|
# --with-fsevents
|
|
|
|
AC_ARG_WITH([fsevents],
|
|
|
|
[ --with-fsevents=DIR Uses MacOS (10.5) /dev/fsevents, experimental! Off by default.
|
|
|
|
As DIR specify dir where xnu headers can be found.])
|
|
|
|
if test "x${with_fsevents}" == xno; then
|
|
|
|
with_fsevents=
|
|
|
|
fi
|
|
|
|
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])
|
|
|
|
|
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
|