112
112
AC_DEFINE(RCL_MONITOR, 1, [Real time monitoring option])
113
113
AC_DEFINE(RCL_USE_INOTIFY, 1, [Compile the inotify interface])
115
AC_MSG_NOTICE([inotify monitoring disabled])
115
AC_MSG_NOTICE([inotify not found, inotify monitoring disabled])
118
118
# Real time monitoring with FAM
120
120
AC_HELP_STRING([--with-fam],
121
121
[Use File Alteration Monitor for almost real time indexing of modified files. Give the fam/gamin library as argument (ie: /usr/lib/libfam.so) if configure does not find the right one.]),
122
withFam=$withval, withFam=no)
122
withFam=$withval, withFam=yes)
123
124
if test X$withFam != Xno -a X$withInotify != Xno ; then
124
125
AC_MSG_NOTICE([FAM support enabled but inotify support also enabled. Disabling FAM support and using inotify])
131
133
for dir in /usr/local/lib ${libdir};do
132
134
if test -f $dir/libfam.so ; then famLib=$dir/libfam.so;break;fi
136
if test X$famLib = X ; then
137
AC_MSG_NOTICE([FAM library not found, disabling FAM and real time indexing support])
135
141
*) # The argument should be the path to the fam library
188
194
AC_DEFINE(RCL_SPLIT_CAMELCASE, 1, [Split camelCase words])
191
# Build PIC objects for the library. This is necessary when building the
192
# php extension, would be useful for the others, and costs little. I wonder
193
# if this should be made the default.
194
# Not by default as these are little used for now.
197
# Disable building the python module. This is built by default, because
198
# it's really the easiest way to interface and extend recoll. It forces PIC
199
# objects for everything (indexing performance impact: 1%), because it's
200
# just not worth building the lib twice
201
# You can still have a non-pic recoll with:
202
# configure --disable-python-module; make; make install;make clean
203
# configure; make; cd python/recoll; make install
205
AC_ARG_ENABLE(python-module,
206
AC_HELP_STRING([--disable-python-module],
207
[Do not build the Python module.]),
208
pythonEnabled=$enableval, pythonEnabled=yes)
209
if test X$pythonEnabled = Xyes ; then
215
# Build PIC objects for the library ?
195
216
AC_ARG_ENABLE(pic,
196
217
AC_HELP_STRING([--enable-pic],
197
[Compile library objects as position independant code. This is necessary
198
for building the php extension.]),
199
picEnabled=$enableval, picEnabled=no)
200
if test X$picEnabled = Xyes ; then
218
[Do not compile library objects as position independant code.
219
This is incompatible with the php or python extensions.]),
220
picEnabled=$enableval, picEnabled=forpython)
222
forpython) picEnabled=$pythonEnabled; NOPIC=$NOPYTHON;;
227
if test X$pythonEnabled = Xyes -a X$picEnabled != Xyes; then
228
AC_MSG_ERROR([Python build needs PIC library])
206
231
AC_CHECK_FUNCS(mkdtemp)
427
##### Using Qt webkit for reslist display? Else Qt textbrowser
428
AC_ARG_ENABLE(webkit,
429
AC_HELP_STRING([--disable-webkit],
430
[Disable use of qt-webkit.]),
431
enableWebkit=$enableval, enableWebkit="yes")
433
if test "$enableWebkit" = "yes" ; then
434
QMAKE_ENABLE_WEBKIT=""
435
QMAKE_DISABLE_WEBKIT="#"
437
QMAKE_ENABLE_WEBKIT="#"
438
QMAKE_DISABLE_WEBKIT=""
441
##### Using QZeitGeist lib ? Default no for now
442
AC_ARG_WITH(qzeitgeist,
443
AC_HELP_STRING([--with-qzeitgeist],
444
[Enable the use of the qzeitgeist library to send zeitgeist events.]),
445
withQZeitgeist=$withval, withQZeitgeist="no")
447
case "$withQZeitgeist" in
449
yes) LIBQZEITGEIST=-lqzeitgeist;;
450
*) LIBQZEITGEIST=$withQZeitgeist;;
453
if test "$withQZeitgeist" != "no" ; then
454
QMAKE_ENABLE_ZEITGEIST=""
455
QMAKE_DISABLE_ZEITGEIST="#"
457
QMAKE_ENABLE_ZEITGEIST="#"
458
QMAKE_DISABLE_ZEITGEIST=""
401
461
AC_CONFIG_FILES($QTGUI/recoll.pro)
402
##################### End QT detection
463
##################### End QT stuff
452
513
AC_SUBST(HAVE_MKDTEMP)
453
514
AC_SUBST(NOQTMAKE)
454
515
AC_SUBST(NOCMDLINE)
516
AC_SUBST(QMAKE_ENABLE_WEBKIT)
517
AC_SUBST(QMAKE_DISABLE_WEBKIT)
518
AC_SUBST(QMAKE_ENABLE_ZEITGEIST)
519
AC_SUBST(QMAKE_DISABLE_ZEITGEIST)
520
AC_SUBST(LIBQZEITGEIST)
456
523
AC_SUBST(RCLVERSION)
458
525
# All object files depend on localdefs which has the cc flags. Avoid
462
529
AC_CONFIG_FILES(Makefile)
463
530
AC_CONFIG_FILES(sampleconf/recoll.conf)
464
531
AC_CONFIG_FILES(common/rclversion.h)
532
AC_CONFIG_FILES(python/recoll/setup.py)
466
534
for d in bincimapmime index lib query