]> git.pld-linux.org Git - packages/php.git/blame - php-ac250.patch
gd2 ready
[packages/php.git] / php-ac250.patch
CommitLineData
01ab2783
AF
1--- php-4.0.6/ext/pdf/config.m4.wiget Thu Jun 14 06:35:44 2001
2+++ php-4.0.6/ext/pdf/config.m4 Fri Jul 6 08:37:53 2001
3@@ -18,7 +18,7 @@
4 AC_CHECK_LIB(pdf, PDF_show_boxed, [
5 AC_DEFINE(HAVE_PDFLIB,1,[ ])
6 ],[
7- AC_MSG_ERROR(pdflib extension requires at least pdflib 3.x. You may also need libtiff and libjpeg. If so, use the options --with-tiff-dir=<DIR> and --with-jpeg-dir=<DIR>)
8+ AC_MSG_ERROR([pdflib extension requires at least pdflib 3.x. You may also need libtiff and libjpeg. If so, use the options --with-tiff-dir=<DIR> and --with-jpeg-dir=<DIR>])
9 ],[
10 -ltiff -ljpeg -lpng -lz
11 ])
12@@ -34,7 +34,7 @@
13 if test -n "$PDFLIB_INCLUDE" ; then
14
15 if test "$PHP_ZLIB_DIR" = "no"; then
16- AC_MSG_ERROR(PDF extension requires ZLIB. Use --with-zlib-dir=<DIR>)
17+ AC_MSG_ERROR([PDF extension requires ZLIB. Use --with-zlib-dir=<DIR>])
18 fi
19
20 PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/lib, PDFLIB_SHARED_LIBADD)
21@@ -47,7 +47,7 @@
22 [
23 PHP_ADD_LIBRARY_WITH_PATH(jpeg, $PHP_JPEG_DIR/lib, PDFLIB_SHARED_LIBADD)
24 ],[
25- AC_MSG_ERROR(libjpeg not found!)
26+ AC_MSG_ERROR([libjpeg not found!])
27 ],[
28 -L$PHP_JPEG_DIR/lib
29 ])
30@@ -56,12 +56,12 @@
31 [
32 PHP_ADD_LIBRARY(jpeg,, PDFLIB_SHARED_LIBADD)
33 ],[
34- AC_MSG_RESULT(no, try --with-jpeg-dir=<DIR>)
35+ AC_MSG_RESULT([no, try --with-jpeg-dir=<DIR>])
36 ])
37 fi
38
39
40- PHP_ARG_WITH(png-dir, for the location of libpng,
41+ PHP_ARG_WITH(png-dir,[ for the location of libpng],
42 [ --with-png-dir[=DIR] PDFLIB: define libpng install directory])
43
44 if test "$PHP_PNG_DIR" != "no"; then
45@@ -69,7 +69,7 @@
46 [
47 PHP_ADD_LIBRARY_WITH_PATH(png, $PHP_PNG_DIR/lib, PDFLIB_SHARED_LIBADD)
48 ],[
49- AC_MSG_ERROR(libpng not found!)
50+ AC_MSG_ERROR([libpng not found!])
51 ],[
52 -L$PHP_PNG_DIR/lib
53 ])
54@@ -78,12 +78,12 @@
55 [
56 PHP_ADD_LIBRARY(png,, PDFLIB_SHARED_LIBADD)
57 ],[
58- AC_MSG_RESULT(no, try --with-png-dir=<DIR>)
59+ AC_MSG_RESULT([no, try --with-png-dir=<DIR>])
60 ])
61 fi
62
63
64- PHP_ARG_WITH(tiff-dir, for the location of libtiff,
65+ PHP_ARG_WITH(tiff-dir,[ for the location of libtiff],
66 [ --with-tiff-dir[=DIR] PDFLIB: define libtiff install directory])
67
68 if test "$PHP_TIFF_DIR" != "no"; then
69@@ -91,7 +91,7 @@
70 [
71 PHP_ADD_LIBRARY_WITH_PATH(tiff, $PHP_TIFF_DIR/lib, PDFLIB_SHARED_LIBADD)
72 ],[
73- AC_MSG_ERROR(libtiff not found!)
74+ AC_MSG_ERROR([libtiff not found!])
75 ],[
76 -L$PHP_TIFF_DIR/lib
77 ])
78@@ -100,7 +100,7 @@
79 [
80 PHP_ADD_LIBRARY(tiff,, PDFLIB_SHARED_LIBADD)
81 ],[
82- AC_MSG_RESULT(no, Try --with-tiff-dir=<DIR>)
83+ AC_MSG_RESULT([no, Try --with-tiff-dir=<DIR>])
84 ])
85 fi
86
87@@ -111,7 +111,7 @@
88 PHP_ADD_LIBRARY_WITH_PATH(pdf, $PHP_PDFLIB/lib, PDFLIB_SHARED_LIBADD)
89 PHP_ADD_INCLUDE($PDFLIB_INCLUDE)
90 ],[
91- AC_MSG_ERROR(pdflib extension requires at least pdflib 3.x.)
92+ AC_MSG_ERROR([pdflib extension requires at least pdflib 3.x.])
93 ],[
94 -L$PHP_PDFLIB/lib
95 ])
96--- php-4.0.6/ext/yp/config.m4.wiget Fri Jul 6 08:37:53 2001
97+++ php-4.0.6/ext/yp/config.m4 Fri Jul 6 08:37:53 2001
98@@ -2,13 +2,15 @@
99 dnl config.m4 for extension yp
100 dnl don't forget to call PHP_EXTENSION(yp)
101
102-PHP_ARG_ENABLE(yp,whether to include YP support,
103+PHP_ARG_ENABLE(yp,[whether to include YP support],
104 [ --enable-yp Include YP support])
105
106 if test "$PHP_YP" != "no"; then
107 PHP_SUBST(NSL_SHARED_LIBADD)
108- AC_ADD_LIBRARY_WITH_PATH(nsl, /usr/lib, NSL_SHARED_LIBADD)
109- AC_CHECK_LIB(nsl, yp_match, [AC_DEFINE(HAVE_YP,1,[ ])], [AC_MSG_ERROR(YP module requires libnsl)],)
110+ AC_CHECK_LIB(nsl, yp_match, [
111+ AC_DEFINE(HAVE_YP,1,[ ])
112+ PHP_ADD_LIBRARY(nsl,, NSL_SHARED_LIBADD)
113+ ], [AC_MSG_ERROR([YP module requires libnsl])])
114 PHP_EXTENSION(yp, $ext_shared)
115
116 case "$host_alias" in
117--- php-4.0.6/acinclude.m4.wiget Sun Jun 10 21:52:56 2001
118+++ php-4.0.6/acinclude.m4 Fri Jul 6 09:26:10 2001
119@@ -351,7 +351,7 @@
120 AC_SUBST($1)
121 ])
122
123-AC_DEFUN(PHP_FAST_OUTPUT,[
124+AC_DEFUN([PHP_FAST_OUTPUT],[
125 PHP_FAST_OUTPUT_FILES="$PHP_FAST_OUTPUT_FILES $1"
126 ])
127
128@@ -377,7 +377,7 @@
129 done
130 ])
131
132-AC_DEFUN(PHP_GEN_MAKEFILES,[
133+AC_DEFUN([PHP_GEN_MAKEFILES],[
134 $SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $BSD_MAKEFILE $1
135 ])
136
137@@ -798,12 +798,6 @@
138 PHP_FAST_OUTPUT($ext_builddir/Makefile)
139 ])
140
141-PHP_SUBST(EXT_SUBDIRS)
142-PHP_SUBST(EXT_STATIC)
143-PHP_SUBST(EXT_SHARED)
144-PHP_SUBST(EXT_LIBS)
145-PHP_SUBST(EXT_LTLIBS)
146-
147 dnl
148 dnl Solaris requires main code to be position independent in order
149 dnl to let shared objects find symbols. Weird. Ugly.
150@@ -914,6 +908,7 @@
151 dnl ## This macro can be used several times.
152 AC_DEFUN(PHP_OUTPUT,[
153 PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES $1"
154+ AC_CONFIG_FILES($1)
155 ])
156
157 AC_DEFUN(PHP_DECLARED_TIMEZONE,[
158@@ -954,11 +949,6 @@
159 fi
160 ])
161
162-AC_DEFUN(AC_ADD_LIBPATH, [indir([PHP_ADD_LIBPATH])])
163-AC_DEFUN(AC_ADD_LIBRARY, [indir([PHP_ADD_LIBRARY])])
164-AC_DEFUN(AC_ADD_LIBRARY_WITH_PATH, [indir([PHP_ADD_LIBRARY_WITH_PATH])])
165-AC_DEFUN(AC_ADD_INCLUDE, [indir([PHP_ADD_INCLUDE])])
166-
167 AC_DEFUN(PHP_FOPENCOOKIE,[
168 AC_CHECK_FUNC(fopencookie, [ have_glibc_fopencookie=yes ])
169
170--- php-4.0.6/configure.in.wiget Fri Jul 6 08:37:53 2001
171+++ php-4.0.6/configure.in Fri Jul 6 09:32:15 2001
172@@ -5,7 +5,7 @@
173
174 AC_INIT(README.CVS-RULES)
175
176-PHP_FAST_OUTPUT(sapi/Makefile ext/Makefile Makefile pear/Makefile main/Makefile)
177+PHP_FAST_OUTPUT([sapi/Makefile ext/Makefile Makefile pear/Makefile main/Makefile])
178
179 if test "$with_shared_apache" != "no" && test -n "$with_shared_apache" ; then
180 AC_MSG_ERROR(--with-shared-apache is not supported. Please refer to the documentation for using APXS)
181@@ -117,10 +117,7 @@
182 AC_PROG_CC_C_O
183 AC_PROG_LN_S
184
185-AM_PROG_LEX
186-if test -n "$LEX"; then
187- AC_DECL_YYTEXT
188-fi
189+AC_PROG_LEX()
190
191 dnl ## Make flex scanners use const if they can, even if __STDC__ is not
192 dnl ## true, for compilers like Sun's that only set __STDC__ true in
193@@ -225,12 +222,12 @@
194
195 unset ac_cv_func_yp_get_default_domain
196 AC_CHECK_FUNC(yp_get_default_domain,
197- [php_no_nsl_checks=yes],[ ])
198+ [php_no_nsl_checks=yes],[true ])
199 unset ac_cv_func_yp_get_default_domain
200
201 if test "$php_no_nsl_checks" != "yes"; then
202
203-AC_CHECK_FUNC(gethostname, [ ], [
204+AC_CHECK_FUNC(gethostname, [true ], [
205 AC_CHECK_LIB(nsl, gethostname, [
206 PHP_ADD_LIBRARY(nsl)
207 AC_DEFINE(HAVE_LIBNSL,1,[ ]) ],[
208@@ -250,8 +247,8 @@
209
210 dnl Only include libbind if inet_aton is not found in
211 dnl libresolv.
212-AC_CHECK_LIB(resolv, inet_aton, [], [
213- AC_CHECK_LIB(bind, inet_aton, [], [
214+AC_CHECK_LIB(resolv, inet_aton, [true], [
215+ AC_CHECK_LIB(bind, inet_aton, [true], [
216 AC_CHECK_LIB(bind, __inet_aton)
217 ])
218 ])
219@@ -870,6 +867,12 @@
220 PHP_SUBST(TSRM_LIB)
221 PHP_SUBST(WARNING_LEVEL)
222 PHP_SUBST_OLD(YACC)
223+PHP_SUBST(EXT_SUBDIRS)
224+PHP_SUBST(EXT_STATIC)
225+PHP_SUBST(EXT_SHARED)
226+PHP_SUBST(EXT_LIBS)
227+PHP_SUBST(EXT_LTLIBS)
228+
229
230 PHP_CONFIGURE_PART(Configuring libtool)
231
232@@ -936,14 +939,17 @@
233 pear/scripts/pear pear/scripts/phpize pear/scripts/php-config \
234 TSRM/Makefile $PHP_OUTPUT_FILES"
235
236-AC_OUTPUT($ALL_OUTPUT_FILES, [], [
237+AC_CONFIG_FILES([php4.spec Zend/Makefile main/build-defs.h
238+ pear/scripts/pear pear/scripts/phpize pear/scripts/php-config
239+ TSRM/Makefile])
240+AC_CONFIG_COMMANDS([default], [true], [
241
242-if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES"; then
243+dnl if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES"; then
244 REDO_ALL=yes
245-fi
246+dnl fi
247
248 if test -n "\$REDO_ALL"; then
249- PHP_GEN_MAKEFILES($PHP_FAST_OUTPUT_FILES)
250+ PHP_GEN_MAKEFILES([$PHP_FAST_OUTPUT_FILES])
251 fi
252
253 if test ! -f $srcdir/ext/bcmath/number.c; then
254@@ -1057,6 +1063,8 @@
255 fi
256 ])
257
258+AC_OUTPUT
259+
260 dnl ## Local Variables:
261 dnl ## tab-width: 4
262 dnl ## End:
This page took 0.062587 seconds and 4 git commands to generate.