propagate the pcre flags to libglib and not to all parts of glib.

2007-09-11  Marco Barisione <marco@barisione.org>

	* glib/Makefile.am:
	* configure.in: propagate the pcre flags to libglib and not to all
	parts of glib. (#475854, dmacks@netspace.org)

svn path=/trunk/; revision=5749
This commit is contained in:
Marco Barisione
2007-09-11 20:10:31 +00:00
committed by Marco Barisione
parent f4a8a220b5
commit 3c4e0759d6
3 changed files with 16 additions and 2 deletions

View File

@@ -2196,6 +2196,8 @@ if test x$enable_regex = xtrue; then
PKG_CHECK_MODULES(PCRE,
libpcre >= $PCRE_REQUIRED_VERSION)
AC_CACHE_CHECK([for Unicode support in PCRE],glib_cv_pcre_has_unicode,[
glib_save_CFLAGS="$CFLAGS"
glib_save_LDFLAGS="$LDFLAGS"
CFLAGS="$CFLAGS $PCRE_CFLAGS" LDFLAGS="$LDFLAGS $PCRE_LIBS"
AC_TRY_RUN([#include <pcre.h>
int main () {
@@ -2210,7 +2212,10 @@ if test x$enable_regex = xtrue; then
}],
glib_cv_pcre_has_unicode=yes,
glib_cv_pcre_has_unicode=no,
glib_cv_pcre_has_unicode=yes)])
glib_cv_pcre_has_unicode=yes)
CFLAGS="$lib_save_CFLAGS"
LDFLAGS="$glib_save_LDFLAGS"
])
if test "$glib_cv_pcre_has_unicode" = "no"; then
AC_MSG_ERROR([*** The system-supplied PCRE does not support Unicode properties or UTF-8.])
fi