~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

Merged build system fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
491
491
# Check for libpcre
492
492
#--------------------------------------------------------------------
493
493
 
494
 
AC_LIB_HAVE_LINKFLAGS(pcre,, [#include <pcre.h>], [pcre *re= NULL])
495
 
AS_IF([test "x$ac_cv_libpcre" = "xno"],[
 
494
AC_LIB_HAVE_LINKFLAGS(pcre,,
 
495
[#include <pcre.h>],
 
496
[
 
497
  pcre *re= NULL;
 
498
  pcre_version();
 
499
])
 
500
AS_IF([test "x$ac_cv_libpcre" = "xno"],
 
501
[
496
502
  unset ac_cv_libpcre
497
 
  AC_LIB_HAVE_LINKFLAGS(pcre,, [#include <pcre/pcre.h>], [pcre *re= NULL])
 
503
  unset HAVE_LIBPCRE
 
504
  unset LIBPCRE
 
505
  unset LIBPCRE_PREFIX
 
506
  unset LTLIBPCRE
 
507
  AC_LIB_HAVE_LINKFLAGS(pcre,,
 
508
  [#include <pcre/pcre.h>],
 
509
  [
 
510
    pcre *re= NULL;
 
511
    pcre_version();
 
512
  ])
498
513
  AS_IF([test "x$ac_cv_libpcre" = "xno"],
499
 
        [AC_MSG_ERROR([libpcre is required for Drizzle. On Debian this can be found in libpcre3-dev. On RedHat this can be found in pcre-devel.])]
500
 
        [AC_DEFINE(PCRE_HEADER,[<pcre/pcre.h>],[Location of pcre header])])
 
514
  [
 
515
    AC_MSG_ERROR([libpcre is required for Drizzle. On Debian this can be found in libpcre3-dev. On RedHat this can be found in pcre-devel.])
 
516
  ],[
 
517
    AC_DEFINE(PCRE_HEADER,[<pcre/pcre.h>],[Location of pcre header])
 
518
  ])
501
519
],[
502
520
  AC_DEFINE(PCRE_HEADER,[<pcre.h>],[Location of pcre header])
503
521
])