diff --git a/src/configure.ac b/src/configure.ac index 999d5f80..7f8563f0 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -21,6 +21,12 @@ if test ! -f mk/$sys ; then fi (cd mk; rm -f sysconf; ln -s $sys sysconf) +# There a few Recoll users on Mac OS X and a few things are just not worth +# supporting +if test X$sys = XDarwin ; then + NODYNLIB=# +fi + AC_SYS_LARGEFILE # OpenBSD needs sys/param.h for mount.h to compile @@ -219,6 +225,7 @@ fi # configure --disable-python-module; make; make install;make clean # configure; make; cd python/recoll; make install # +if test X$sys != XDarwin ; then AC_ARG_ENABLE(python-module, AC_HELP_STRING([--disable-python-module], [Do not build the Python module.]), @@ -228,6 +235,9 @@ if test X$pythonEnabled = Xyes ; then else NOPYTHON="#" fi +else + NOPYTHON="#" +fi # Build PIC objects for the library ? AC_ARG_ENABLE(pic, @@ -562,6 +572,7 @@ AC_SUBST(LIBQZEITGEIST) AC_SUBST(NOPIC) AC_SUBST(NOTHREADS) AC_SUBST(NOPYTHON) +AC_SUBST(NODYNLIB) AC_SUBST(RCLVERSION) AC_SUBST(RCLLIBVERSION) diff --git a/src/recollinstall.in b/src/recollinstall.in index b21e8497..6d47d2be 100755 --- a/src/recollinstall.in +++ b/src/recollinstall.in @@ -117,7 +117,8 @@ ${INSTALL} -m 0444 doc/man/recoll.conf.5 ${mandir}/man5/ ${INSTALL} -m 0755 index/recollindex ${bindir} || exit 1 ${STRIP} ${bindir}/recollindex -${INSTALL} -m 0644 lib/librecoll.so.${RCLLIBVERSION} ${libdir}/recoll/ || exit 1 +@NODYNLIB@${INSTALL} -m 0644 lib/librecoll.so.${RCLLIBVERSION} \ +@NODYNLIB@ ${libdir}/recoll/ || exit 1 ${INSTALL} -m 0755 filters/rcl* ${datadir}/recoll/filters/ || exit 1 for f in rclexecm.py rcllatinstops.zip;do