Ticket #231: xapian-pcre-detection.diff

File xapian-pcre-detection.diff, 1.8 kB (added by tv+xapian.org, 11 months ago)

patch as described

  • debian/control.in

     
    22Section: web 
    33Priority: optional 
    44Maintainer: Olly Betts <olly@survex.com> 
    5 Build-Depends: @BUILD_DEPS@ autotools-dev 
     5Build-Depends: @BUILD_DEPS@ autotools-dev, libpcre3-dev 
    66Standards-Version: 3.7.3 
    77Homepage: http://www.xapian.org/ 
    88 
  • configure.ac

     
    271271  test -z "$RST2HTML" && AC_MSG_ERROR([rst2html is required to build documentation]) 
    272272fi 
    273273 
     274AC_PATH_PROG(PCRE_CONFIG_PATH, pcre-config) 
     275if test -n "$PCRE_CONFIG_PATH" ; then 
     276   AC_DEFINE(HAVE_PCRE,, [Define if libpcre is available.]) 
     277   AC_MSG_CHECKING([libpcre flags]) 
     278   PCRE_CFLAGS="`$PCRE_CONFIG_PATH --cflags`" 
     279   PCRE_LIBS="`$PCRE_CONFIG_PATH --libs`" 
     280   AC_MSG_RESULT([include $PCRE_CFLAGS libs $PCRE_LIBS]) 
     281fi 
     282AC_SUBST(PCRE_CFLAGS) 
     283AC_SUBST(PCRE_LIBS) 
     284 
    274285dnl Disabled XML stuff as we don't currently build omindex-config 
    275286dnl dnl Check for libxml or libxml2.  We do this by looking for xml-config. 
    276287dnl AC_PATH_PROG(XML_CONFIG_PATH, xml2-config) 
  • Makefile.am

     
    9494omega_SOURCES = omega.cc query.cc cgiparam.cc utils.cc configfile.cc date.cc\ 
    9595 cdb_init.cc cdb_find.cc cdb_hash.cc cdb_unpack.cc loadfile.cc\ 
    9696 utf8convert.cc datematchdecider.cc 
    97 omega_LDADD = $(XAPIAN_LIBS) # -lpcre 
     97omega_LDADD = $(XAPIAN_LIBS) $(PCRE_LIBS) 
     98omega_INCLUDES = $(PCRE_CFLAGS) 
    9899 
    99100omindex_SOURCES = omindex.cc myhtmlparse.cc htmlparse.cc\ 
    100101 common/getopt.cc commonhelp.cc utils.cc hashterm.cc loadfile.cc md5.cc\