]> TLD Linux GIT Repositories - packages/php.git/blob - pcre-shared.patch.diff
- dropped pld stuff
[packages/php.git] / pcre-shared.patch.diff
1 diff --git a/pcre-shared.patch b/pcre-shared.patch
2 index 39632a0..81b9ecf 100644
3 --- a/pcre-shared.patch
4 +++ b/pcre-shared.patch
5 @@ -1,48 +1,3 @@
6 ---- php-5.3.1/ext/pcre/config0.m4      2009-11-27 08:19:08.836025192 +0000
7 -+++ php-5.3.1/ext/pcre/config0.m4      2009-11-30 22:09:24.385647500 +0000
8 -@@ -11,7 +11,7 @@
9
10 -   if test "$PHP_PCRE_REGEX" != "yes" && test "$PHP_PCRE_REGEX" != "no"; then
11 -     AC_MSG_CHECKING([for PCRE headers location])
12 --    for i in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/include $PHP_PCRE_REGEX/include/pcre $PHP_PCRE_REGEX/local/include; do
13 -+    for i in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/include $PHP_PCRE_REGEX/include/pcre $PHP_PCRE_REGEX/local/include /usr/include; do
14 -       test -f $i/pcre.h && PCRE_INCDIR=$i
15 -     done
16
17 -@@ -21,7 +21,7 @@
18 -     AC_MSG_RESULT([$PCRE_INCDIR])
19
20 -     AC_MSG_CHECKING([for PCRE library location])
21 --    for j in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/$PHP_LIBDIR; do
22 -+    for j in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/$PHP_LIBDIR /usr/$PHP_LIBDIR; do
23 -       test -f $j/libpcre.a || test -f $j/libpcre.$SHLIB_SUFFIX_NAME && PCRE_LIBDIR=$j
24 -     done
25 -     
26 -@@ -43,12 +43,13 @@
27 -       AC_MSG_ERROR([The PCRE extension requires PCRE library version >= 6.6])
28 -     fi
29
30 --    PHP_ADD_LIBRARY_WITH_PATH(pcre, $PCRE_LIBDIR)
31 -+    PHP_ADD_LIBRARY_WITH_PATH(pcre, $PCRE_LIBDIR, PCRE_SHARED_LIBADD)
32 -     
33 -     AC_DEFINE(HAVE_PCRE, 1, [ ])
34 -     PHP_ADD_INCLUDE($PCRE_INCDIR)
35 --    PHP_NEW_EXTENSION(pcre, php_pcre.c, no)
36 -+    PHP_NEW_EXTENSION(pcre, php_pcre.c, $ext_shared)
37 -     PHP_INSTALL_HEADERS([ext/pcre], [php_pcre.h])
38 -+    EXTRA_LIBS="$EXTRA_LIBS -lpcre"
39 -   else
40 -     AC_MSG_CHECKING([for PCRE library to use])
41 -     AC_MSG_RESULT([bundled])
42 -@@ -59,7 +60,7 @@
43 -                                pcrelib/pcre_ord2utf8.c pcrelib/pcre_refcount.c pcrelib/pcre_study.c \
44 -                                pcrelib/pcre_tables.c pcrelib/pcre_try_flipped.c pcrelib/pcre_valid_utf8.c \
45 -                                pcrelib/pcre_version.c pcrelib/pcre_xclass.c"
46 --    PHP_NEW_EXTENSION(pcre, $pcrelib_sources php_pcre.c, no,,-I@ext_srcdir@/pcrelib)
47 -+    PHP_NEW_EXTENSION(pcre, $pcrelib_sources php_pcre.c, $ext_shared,,-I@ext_srcdir@/pcrelib)
48 -     PHP_ADD_BUILD_DIR($ext_builddir/pcrelib)
49 -     PHP_INSTALL_HEADERS([ext/pcre], [php_pcre.h pcrelib/])
50 -     AC_DEFINE(HAVE_BUNDLED_PCRE, 1, [ ])
51  --- php-5.3.1/ext/pcre/php_pcre.h      2009-11-30 20:59:04.046581246 +0200
52  +++ php-5.3.1.pcre/ext/pcre/php_pcre.h 2009-11-30 21:38:06.435493243 +0000
53  @@ -34,7 +34,12 @@
54 @@ -116,3 +71,48 @@
55   
56   [Zend Modules]
57   %aDone
58 +--- php-5.3.24/ext/pcre/config0.m4.orig        2013-04-10 09:42:48.000000000 +0200
59 ++++ php-5.3.24/ext/pcre/config0.m4     2013-04-12 18:54:41.113531049 +0200
60 +@@ -11,7 +11,7 @@
61
62 +   if test "$PHP_PCRE_REGEX" != "yes" && test "$PHP_PCRE_REGEX" != "no"; then
63 +     AC_MSG_CHECKING([for PCRE headers location])
64 +-    for i in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/include $PHP_PCRE_REGEX/include/pcre $PHP_PCRE_REGEX/local/include; do
65 ++    for i in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/include $PHP_PCRE_REGEX/include/pcre $PHP_PCRE_REGEX/local/include /usr/include; do
66 +       test -f $i/pcre.h && PCRE_INCDIR=$i
67 +     done
68
69 +@@ -21,7 +21,7 @@
70 +     AC_MSG_RESULT([$PCRE_INCDIR])
71
72 +     AC_MSG_CHECKING([for PCRE library location])
73 +-    for j in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/$PHP_LIBDIR; do
74 ++    for j in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/$PHP_LIBDIR /usr/$PHP_LIBDIR; do
75 +       test -f $j/libpcre.a || test -f $j/libpcre.$SHLIB_SUFFIX_NAME && PCRE_LIBDIR=$j
76 +     done
77 +     
78 +@@ -43,12 +43,13 @@
79 +       AC_MSG_ERROR([The PCRE extension requires PCRE library version >= 6.6])
80 +     fi
81
82 +-    PHP_ADD_LIBRARY_WITH_PATH(pcre, $PCRE_LIBDIR)
83 ++    PHP_ADD_LIBRARY_WITH_PATH(pcre, $PCRE_LIBDIR, PCRE_SHARED_LIBADD)
84 +     
85 +     AC_DEFINE(HAVE_PCRE, 1, [ ])
86 +     PHP_ADD_INCLUDE($PCRE_INCDIR)
87 +-    PHP_NEW_EXTENSION(pcre, php_pcre.c, no)
88 ++    PHP_NEW_EXTENSION(pcre, php_pcre.c, $ext_shared)
89 +     PHP_INSTALL_HEADERS([ext/pcre], [php_pcre.h])
90 ++    EXTRA_LIBS="$EXTRA_LIBS -lpcre"
91 +   else
92 +     AC_MSG_CHECKING([for PCRE library to use])
93 +     AC_MSG_RESULT([bundled])
94 +@@ -60,7 +61,7 @@
95 +                                pcrelib/pcre_tables.c pcrelib/pcre_valid_utf8.c \
96 +                                pcrelib/pcre_version.c pcrelib/pcre_xclass.c"
97 +     PHP_PCRE_CFLAGS="-DHAVE_CONFIG_H -I@ext_srcdir@/pcrelib"
98 +-    PHP_NEW_EXTENSION(pcre, $pcrelib_sources php_pcre.c, no,,$PHP_PCRE_CFLAGS)
99 ++    PHP_NEW_EXTENSION(pcre, $pcrelib_sources php_pcre.c, $ext_shared,,-I@ext_srcdir@/pcrelib)
100 +     PHP_ADD_BUILD_DIR($ext_builddir/pcrelib)
101 +     PHP_INSTALL_HEADERS([ext/pcre], [php_pcre.h pcrelib/])
102 +     AC_DEFINE(HAVE_BUNDLED_PCRE, 1, [ ])