Fix static build against system pcre
authorMatthias Clasen <matthiasc@src.gnome.org>
Sun, 16 Sep 2007 15:48:11 +0000 (15:48 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 16 Sep 2007 15:48:11 +0000 (15:48 +0000)
svn path=/trunk/; revision=5762

ChangeLog
configure.in

index 20f0228..1739252 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2007-09-16  Matthias Clasen  <mclasen@redhat.com>
 
+       * configure.in: When compiling against system pcre, 
+       add a private dependency to the pc file. This should
+       fix static builds with system pcre.  (#475923)
+
+       * glib-2.0.pc.in: Add a Requires.private line
+
+2007-09-16  Matthias Clasen  <mclasen@redhat.com>
+
        * NEWS: Updates
 
 2007-09-14 15:07:28  Tim Janik  <timj@gtk.org>
index 4348110..dbd2235 100644 (file)
@@ -2222,6 +2222,8 @@ if test x$enable_regex = xtrue; then
     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)
   else
     # If using gcc 4 pass -Wno-pointer-sign when compiling the internal PCRE
     if test x"$GCC" = xyes; then