~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Monty Taylor
  • Date: 2008-07-10 22:18:24 UTC
  • mto: (77.6.1 glibclient-merge)
  • mto: This revision was merged to the branch mainline in revision 131.
  • Revision ID: monty@inaugust.com-20080710221824-0ecd4e5p92wguy9k
YA fix for libpcrecpp finding...

Show diffs side-by-side

added added

removed removed

Lines of Context:
325
325
AC_LANG_PUSH([C++])
326
326
AC_PATH_PROG(PKG_CONFIG, pkg-config, AC_MSG_ERROR([pkg-config wasn't found.]))
327
327
PKG_CHECK_MODULES(PCRE, [libpcrecpp >= 3], [found_pcre="yes"],[
328
 
  AC_CHECK_LIB(pcrecpp, [DoMatch], [found_pcre="no"])
 
328
  dnl Only check the header here, because autoconf can't handle
 
329
  dnl checking for C++ methods without C linkages
329
330
  AC_CHECK_HEADERS(pcrecpp.h)
330
331
  if test "x$ac_cv_header_prcecpp_h" = "xno" 
331
332
  then
332
333
    found_pcre="no"
 
334
  else
 
335
    found_pcre="yes"
333
336
  fi
334
337
  ])
335
338
if test "x$found_pcre" != "xyes"