2012-04-09 19:59:14 -07:00
|
|
|
diff --git a/glib/configure.ac b/glib/configure.ac
|
2014-02-03 15:41:27 -08:00
|
|
|
index 8e45480..4653090 100644
|
2012-04-09 19:59:14 -07:00
|
|
|
--- a/glib/configure.ac
|
|
|
|
|
+++ b/glib/configure.ac
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -2444,64 +2444,6 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
2012-04-09 19:59:14 -07:00
|
|
|
[broken_poll="no (cross compiling)"])
|
|
|
|
|
AC_MSG_RESULT($broken_poll)
|
|
|
|
|
|
|
|
|
|
-dnl *********************
|
|
|
|
|
-dnl *** GRegex checks ***
|
|
|
|
|
-dnl *********************
|
|
|
|
|
-
|
2014-02-03 15:41:27 -08:00
|
|
|
-PCRE_REQUIRED_VERSION=8.13
|
2012-04-09 19:59:14 -07:00
|
|
|
-
|
|
|
|
|
-# Check if we should use the internal or the system-supplied pcre
|
|
|
|
|
-AC_ARG_WITH(pcre,
|
2014-02-03 15:41:27 -08:00
|
|
|
- [AS_HELP_STRING([--with-pcre=@<:@internal/system@:>@],
|
2012-04-09 19:59:14 -07:00
|
|
|
- [whether to use system PCRE [default=internal]])])
|
|
|
|
|
-
|
|
|
|
|
-AM_CONDITIONAL(USE_SYSTEM_PCRE, [test "x$with_pcre" = xsystem])
|
|
|
|
|
-
|
2014-02-03 15:41:27 -08:00
|
|
|
-AS_IF([ test "x$with_pcre" = xsystem], [
|
2012-04-09 19:59:14 -07:00
|
|
|
- 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_LIBS="$LIBS"
|
|
|
|
|
- CFLAGS="$CFLAGS $PCRE_CFLAGS" LIBS="$PCRE_LIBS"
|
|
|
|
|
- AC_TRY_RUN([#include <pcre.h>
|
|
|
|
|
- int main () {
|
|
|
|
|
- int support;
|
|
|
|
|
- pcre_config (PCRE_CONFIG_UTF8, &support);
|
|
|
|
|
- if (!support)
|
|
|
|
|
- return 1;
|
|
|
|
|
- pcre_config (PCRE_CONFIG_UNICODE_PROPERTIES, &support);
|
|
|
|
|
- if (!support)
|
|
|
|
|
- return 1;
|
|
|
|
|
- return 0;
|
|
|
|
|
- }],
|
|
|
|
|
- glib_cv_pcre_has_unicode=yes,
|
|
|
|
|
- glib_cv_pcre_has_unicode=no,
|
|
|
|
|
- glib_cv_pcre_has_unicode=yes)
|
|
|
|
|
- CFLAGS="$glib_save_CFLAGS"
|
|
|
|
|
- LIBS="$glib_save_LIBS"
|
|
|
|
|
- ])
|
|
|
|
|
- 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
|
|
|
|
|
- AC_SUBST(PCRE_CFLAGS)
|
|
|
|
|
- AC_SUBST(PCRE_LIBS)
|
|
|
|
|
- AC_DEFINE(USE_SYSTEM_PCRE, [], [using the system-supplied PCRE library])
|
|
|
|
|
- PCRE_REQUIRES=libpcre
|
|
|
|
|
- AC_SUBST(PCRE_REQUIRES)
|
2014-02-03 15:41:27 -08:00
|
|
|
-], [
|
2012-04-09 19:59:14 -07:00
|
|
|
- # If using gcc 4 pass -Wno-pointer-sign when compiling the internal PCRE
|
2014-02-03 15:41:27 -08:00
|
|
|
- AS_IF([ test x"$GCC" = xyes], [
|
2012-04-09 19:59:14 -07:00
|
|
|
- AC_MSG_CHECKING([whether compiler understands -Wno-pointer-sign])
|
|
|
|
|
- save_CFLAGS="$CFLAGS"
|
|
|
|
|
- CFLAGS="$CFLAGS -Wno-pointer-sign"
|
|
|
|
|
- AC_TRY_COMPILE([],[],[PCRE_WARN_CFLAGS="$PCRE_WARN_CFLAGS -Wno-pointer-sign"
|
|
|
|
|
- AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
|
|
|
|
|
- CFLAGS="$save_CFLAGS"
|
2014-02-03 15:41:27 -08:00
|
|
|
- ])
|
|
|
|
|
-])
|
2012-04-09 19:59:14 -07:00
|
|
|
-AC_SUBST(PCRE_WARN_CFLAGS)
|
|
|
|
|
-
|
|
|
|
|
dnl **********************
|
|
|
|
|
dnl *** Win32 API libs ***
|
|
|
|
|
dnl **********************
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -3473,8 +3415,6 @@ Makefile
|
2012-04-09 19:59:14 -07:00
|
|
|
glib/Makefile
|
|
|
|
|
glib/libcharset/Makefile
|
|
|
|
|
glib/gnulib/Makefile
|
|
|
|
|
-glib/pcre/Makefile
|
|
|
|
|
-glib/update-pcre/Makefile
|
|
|
|
|
m4macros/Makefile
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
diff --git a/glib/glib/Makefile.am b/glib/glib/Makefile.am
|
2014-02-03 15:41:27 -08:00
|
|
|
index c16051d..d46e39b 100644
|
2012-04-09 19:59:14 -07:00
|
|
|
--- a/glib/glib/Makefile.am
|
|
|
|
|
+++ b/glib/glib/Makefile.am
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -26,13 +26,8 @@ PRINTF_SUBDIR = gnulib
|
2012-04-09 19:59:14 -07:00
|
|
|
printf_la = gnulib/libgnulib.la
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
-if USE_SYSTEM_PCRE
|
|
|
|
|
-else
|
|
|
|
|
-MAYBE_PCRE = pcre
|
|
|
|
|
-endif
|
|
|
|
|
-
|
|
|
|
|
-SUBDIRS = libcharset $(PRINTF_SUBDIR) $(MAYBE_PCRE) update-pcre .
|
|
|
|
|
-DIST_SUBDIRS = libcharset gnulib pcre update-pcre
|
2014-02-03 15:41:27 -08:00
|
|
|
+SUBDIRS = libcharset $(PRINTF_SUBDIR) .
|
2012-04-09 19:59:14 -07:00
|
|
|
+DIST_SUBDIRS = libcharset gnulib
|
|
|
|
|
|
|
|
|
|
AM_CPPFLAGS = \
|
|
|
|
|
$(glib_INCLUDES) \
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -50,15 +45,11 @@ MIRRORING_TAB_SOURCE = \
|
2012-04-09 19:59:14 -07:00
|
|
|
glib-mirroring-tab/packtab.h \
|
|
|
|
|
glib-mirroring-tab/packtab.c
|
|
|
|
|
|
|
|
|
|
-# The compilation of GRegex can be disabled, but the source files must
|
|
|
|
|
-# be distributed.
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
|
glib.rc.in \
|
|
|
|
|
gen-iswide-table.py \
|
2014-02-03 15:41:27 -08:00
|
|
|
gen-unicode-tables.pl \
|
2012-04-09 19:59:14 -07:00
|
|
|
gen-script-table.pl \
|
|
|
|
|
- gregex.c \
|
|
|
|
|
- gregex.h \
|
|
|
|
|
win_iconv.c \
|
|
|
|
|
docs.c \
|
2014-02-03 15:41:27 -08:00
|
|
|
gconstructor.h \
|
|
|
|
|
@@ -148,7 +139,6 @@ libglib_2_0_la_SOURCES = \
|
|
|
|
|
gquark.c \
|
2012-04-09 19:59:14 -07:00
|
|
|
gqueue.c \
|
|
|
|
|
grand.c \
|
|
|
|
|
- gregex.c \
|
|
|
|
|
gscanner.c \
|
|
|
|
|
gscripttable.h \
|
|
|
|
|
gsequence.c \
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -277,7 +267,6 @@ noinst_HEADERS += \
|
2012-04-09 19:59:14 -07:00
|
|
|
gquark.h \
|
|
|
|
|
gqueue.h \
|
|
|
|
|
grand.h \
|
|
|
|
|
- gregex.h \
|
|
|
|
|
gscanner.h \
|
|
|
|
|
gsequence.h \
|
|
|
|
|
gshell.h \
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -323,14 +312,6 @@ glib_win32_res = glib-win32-res.o
|
|
|
|
|
glib_win32_res_ldflag = -Wl,$(glib_win32_res)
|
2012-04-09 19:59:14 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
-if USE_SYSTEM_PCRE
|
|
|
|
|
-pcre_lib = $(PCRE_LIBS)
|
|
|
|
|
-pcre_inc = $(PCRE_CFLAGS)
|
|
|
|
|
-else
|
|
|
|
|
-pcre_lib = pcre/libpcre.la
|
|
|
|
|
-pcre_inc =
|
|
|
|
|
-endif
|
|
|
|
|
-
|
2014-02-03 15:41:27 -08:00
|
|
|
libglib_2_0_la_CFLAGS = $(AM_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
|
2012-04-09 19:59:14 -07:00
|
|
|
libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@ $(pcre_lib) $(G_THREAD_LIBS_EXTRA) $(G_THREAD_LIBS_FOR_GTHREAD)
|
|
|
|
|
libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) $(glib_def)
|
|
|
|
|
diff --git a/glib/glib/glib.h b/glib/glib/glib.h
|
2014-02-03 15:41:27 -08:00
|
|
|
index ce7447e..6f53fcd 100644
|
2012-04-09 19:59:14 -07:00
|
|
|
--- a/glib/glib/glib.h
|
|
|
|
|
+++ b/glib/glib/glib.h
|
|
|
|
|
@@ -71,7 +71,6 @@
|
|
|
|
|
#include <glib/gquark.h>
|
|
|
|
|
#include <glib/gqueue.h>
|
|
|
|
|
#include <glib/grand.h>
|
|
|
|
|
-#include <glib/gregex.h>
|
|
|
|
|
#include <glib/gscanner.h>
|
|
|
|
|
#include <glib/gsequence.h>
|
|
|
|
|
#include <glib/gshell.h>
|