Switch to unified view

a/src/configure.ac b/src/configure.ac
...
...
102
fi
102
fi
103
103
104
# Real time monitoring with inotify
104
# Real time monitoring with inotify
105
AC_ARG_WITH(inotify, 
105
AC_ARG_WITH(inotify, 
106
    AC_HELP_STRING([--with-inotify],
106
    AC_HELP_STRING([--with-inotify],
107
   [Use inotify for almost real time indexing of modified files.]),
107
   [Use inotify for almost real time indexing of modified files (the default
108
    is yes on Linux).]),
108
        withInotify=$withval, withInotify=$inot_default)
109
        withInotify=$withval, withInotify=$inot_default)
109
110
110
if test X$withInotify != Xno ; then
111
if test X$withInotify != Xno ; then
111
   AC_MSG_NOTICE([enabled support for inotify monitoring])
112
   AC_MSG_NOTICE([enabled support for inotify monitoring])
112
   AC_DEFINE(RCL_MONITOR, 1, [Real time monitoring option])
113
   AC_DEFINE(RCL_MONITOR, 1, [Real time monitoring option])
...
...
161
    AC_MSG_ERROR([fam library not found])
162
    AC_MSG_ERROR([fam library not found])
162
   fi
163
   fi
163
fi
164
fi
164
165
165
# Enable use of file extended attributes. 
166
# Enable use of file extended attributes. 
166
# Not by default as these are little used for now.
167
# Not by default as extended attributes are little used for now, and
168
# looking for them is not completely trivial
167
AC_ARG_ENABLE(xattr,
169
AC_ARG_ENABLE(xattr,
168
    AC_HELP_STRING([--enable-xattr],
170
    AC_HELP_STRING([--enable-xattr],
169
   [Enable fetching metadata from file extended attributes. This is only
171
   [Enable fetching metadata from file extended attributes. This is only
170
   useful if some application creates them on (part of) your data set. You also 
172
   useful if some application creates them on (part of) your data set. You also 
171
   need to set up appropriate mappings in the configuration.]),
173
   need to set up appropriate mappings in the configuration.]),
172
        xattrEnabled=$enableval, xattrEnabled=no)
174
        xattrEnabled=$enableval, xattrEnabled=no)
173
175
174
if test X$xattrEnabled = Xyes ; then
176
if test X$xattrEnabled = Xyes ; then
175
  AC_DEFINE(RCL_USE_XATTR, 1, [Use file extended attributes])
177
  AC_DEFINE(RCL_USE_XATTR, 1, [Use file extended attributes])
178
fi
179
180
# Enable use of threads in the indexing pipeline.  Threads are used in
181
# bucket-brigade fashion for the processing steps (reading file - text
182
# splitting - indexing proper). The performance increase is small in normal
183
# case (might be a bit more significant if you're using an SSD), and this
184
# is disabled by default as we usually care little about indexing absolute
185
# performance (more about impact on usability and total resources used).
186
AC_ARG_ENABLE(idxthreads,
187
    AC_HELP_STRING([--enable-idxthreads],
188
   [Enable multithread indexing. This can somewhat boost indexing 
189
   performance.]),
190
        idxthreadsEnabled=$enableval, idxthreadsEnabled=no)
191
192
if test X$idxthreadsEnabled = Xyes ; then
193
  AC_DEFINE(IDX_THREADS, 1, [Use multiple threads for indexing])
176
fi
194
fi
177
195
178
# Enable CamelCase word splitting. This is optional because it causes 
196
# Enable CamelCase word splitting. This is optional because it causes 
179
# problems with phrases: with camelcase enabled, "MySQL manual"
197
# problems with phrases: with camelcase enabled, "MySQL manual"
180
# will be matched by "MySQL manual" and "my sql manual" but not 
198
# will be matched by "MySQL manual" and "my sql manual" but not 
...
...
190
   get a match).]),
208
   get a match).]),
191
        camelcaseEnabled=$enableval, camelcaseEnabled=no)
209
        camelcaseEnabled=$enableval, camelcaseEnabled=no)
192
210
193
if test X$camelcaseEnabled = Xyes ; then
211
if test X$camelcaseEnabled = Xyes ; then
194
  AC_DEFINE(RCL_SPLIT_CAMELCASE, 1, [Split camelCase words])
212
  AC_DEFINE(RCL_SPLIT_CAMELCASE, 1, [Split camelCase words])
213
fi
214
215
# Not by default as these are little used for now.
216
AC_ARG_ENABLE(stripchars,
217
    AC_HELP_STRING([--enable-stripchars],
218
   [Remove diacritics and fold character case in indexed terms. This will
219
   yield less precise searches but the index will be smaller]),
220
        stripcharsEnabled=$enableval, stripcharsEnabled=no)
221
222
if test X$stripcharsEnabled = Xyes ; then
223
  AC_DEFINE(RCL_INDEX_STRIPCHARS, 1, [Remove case and accents from terms])
195
fi
224
fi
196
225
197
# Disable building the python module. This is built by default, because
226
# 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
227
# 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
228
# objects for everything (indexing performance impact: 1%), because it's
...
...
212
  NOPYTHON="#"
241
  NOPYTHON="#"
213
fi
242
fi
214
243
215
# Build PIC objects for the library ?
244
# Build PIC objects for the library ?
216
AC_ARG_ENABLE(pic,
245
AC_ARG_ENABLE(pic,
217
    AC_HELP_STRING([--enable-pic],
246
    AC_HELP_STRING([--disable-pic],
218
   [Do not compile library objects as position independant code. 
247
   [Do not compile library objects as position independant code. 
219
    This is incompatible with the php or python extensions.]),
248
    This is incompatible with the php or python extensions.]),
220
        picEnabled=$enableval, picEnabled=forpython)
249
        picEnabled=$enableval, picEnabled=forpython)
221
case $picEnabled in
250
case $picEnabled in
222
forpython) picEnabled=$pythonEnabled; NOPIC=$NOPYTHON;;
251
forpython) picEnabled=$pythonEnabled; NOPIC=$NOPYTHON;;
...
...
431
460
432
461
433
 ##### Using Qt webkit for reslist display? Else Qt textbrowser
462
 ##### Using Qt webkit for reslist display? Else Qt textbrowser
434
  AC_ARG_ENABLE(webkit,
463
  AC_ARG_ENABLE(webkit,
435
    AC_HELP_STRING([--disable-webkit],
464
    AC_HELP_STRING([--disable-webkit],
436
      [Disable use of qt-webkit.]),
465
      [Disable use of qt-webkit (only meaningful if qtgui is enabled).]),
437
        enableWebkit=$enableval, enableWebkit="yes")
466
        enableWebkit=$enableval, enableWebkit="yes")
438
467
439
  if test "$enableWebkit" = "yes" ; then
468
  if test "$enableWebkit" = "yes" ; then
440
   QMAKE_ENABLE_WEBKIT=""
469
   QMAKE_ENABLE_WEBKIT=""
441
   QMAKE_DISABLE_WEBKIT="#"
470
   QMAKE_DISABLE_WEBKIT="#"
442
  else
471
  else
443
   QMAKE_ENABLE_WEBKIT="#"
472
   QMAKE_ENABLE_WEBKIT="#"
444
   QMAKE_DISABLE_WEBKIT=""
473
   QMAKE_DISABLE_WEBKIT=""
445
  fi
474
  fi
475
476
446
477
447
 ##### Using QZeitGeist lib ? Default no for now
478
 ##### Using QZeitGeist lib ? Default no for now
448
  AC_ARG_WITH(qzeitgeist,
479
  AC_ARG_WITH(qzeitgeist,
449
    AC_HELP_STRING([--with-qzeitgeist],
480
    AC_HELP_STRING([--with-qzeitgeist],
450
      [Enable the use of the qzeitgeist library to send zeitgeist events.]),
481
      [Enable the use of the qzeitgeist library to send zeitgeist events.]),