1 diff -urN suphp-0.5.2.org/src/apache2/mod_suphp.c suphp-0.5.2/src/apache2/mod_suphp.c
2 --- suphp-0.5.2.org/src/apache2/mod_suphp.c 2004-10-23 12:58:09.156787800 +0200
3 +++ suphp-0.5.2/src/apache2/mod_suphp.c 2004-10-23 12:59:23.461491768 +0200
7 rv = apr_bucket_read(b, &bucket_data, &bucket_data_len, APR_BLOCK_READ);
8 - if (!APR_STATUS_IS_SUCCESS(rv) || (bucket_data_len == 0))
9 + if (rv != APR_SUCCESS || (bucket_data_len == 0))
17 - APR_BRIGADE_FOREACH(bucket, bb)
18 + for(bucket = APR_BRIGADE_FIRST(bb); bucket != APR_BRIGADE_SENTINEL(bb); bucket = APR_BUCKET_NEXT(bucket))
26 - APR_BRIGADE_FOREACH(b, bb)
27 + for(b = APR_BRIGADE_FIRST(bb); b != APR_BRIGADE_SENTINEL(bb); b = APR_BUCKET_NEXT(b))
29 if (APR_BUCKET_IS_EOS(b))
32 /* empty brigade (script output) */
35 - APR_BRIGADE_FOREACH(b, bb)
36 + for(b = APR_BRIGADE_FIRST(bb); b != APR_BRIGADE_SENTINEL(bb); b = APR_BUCKET_NEXT(b))
38 if (APR_BUCKET_IS_EOS(b))
40 diff -ur suphp-0.6.1/acinclude.m4 suphp-0.6.1.apr/acinclude.m4
41 --- suphp-0.6.1/acinclude.m4 2005-11-26 20:45:49.000000000 +0100
42 +++ suphp-0.6.1.apr/acinclude.m4 2006-01-27 18:53:40.000000000 +0100
44 dnl value of apr_config to fetch any necessary build/link information.
47 -AC_DEFUN(APR_FIND_APR, [
48 +AC_DEFUN([APR_FIND_APR], [
51 if test "$ac_cv_emxos2" = "yes"; then
53 AC_MSG_CHECKING(for APR)
55 [ --with-apr=DIR|FILE prefix for installed APR, path to APR build tree,
56 - or the full path to apr-config],
57 + or the full path to apr-1-config],
59 if test "$withval" = "no" || test "$withval" = "yes"; then
60 AC_MSG_ERROR([--with-apr requires a directory to be provided])
63 - if $TEST_X "$withval/bin/apr-config"; then
64 + if $TEST_X "$withval/bin/apr-1-config"; then
66 - apr_config="$withval/bin/apr-config"
67 - elif $TEST_X "$withval/apr-config"; then
68 + apr_config="$withval/bin/apr-1-config"
69 + elif $TEST_X "$withval/apr-1-config"; then
71 - apr_config="$withval/apr-config"
72 + apr_config="$withval/apr-1-config"
73 elif $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
77 dnl if --with-apr is used, then the target prefix/directory must be valid
78 if test "$apr_found" != "yes"; then
79 AC_MSG_ERROR([the --with-apr parameter is incorrect. It must specify an install prefix, a
80 -build directory, or an apr-config file.])
81 +build directory, or an apr-1-config file.])
84 dnl if we have a bundled source directory, use it
86 apr_temp_abs_srcdir="`cd $1 && pwd`"
89 - apr_config="$2/apr-config"
90 + apr_config="$2/apr-1-config"
92 - apr_config="$1/apr-config"
93 + apr_config="$1/apr-1-config"
96 if test "$apr_found" = "no" && test -n "$3" && test "$3" = "1"; then
97 - if apr-config --help > /dev/null 2>&1 ; then
98 + if apr-1-config --help > /dev/null 2>&1 ; then
100 - apr_config="apr-config"
101 + apr_config="apr-1-config"
103 dnl look in some standard places (apparently not in builtin/default)
104 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
105 - if $TEST_X "$lookdir/bin/apr-config"; then
106 + if $TEST_X "$lookdir/bin/apr-1-config"; then
108 - apr_config="$lookdir/bin/apr-config"
109 + apr_config="$lookdir/bin/apr-1-config"