]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/nonworking/apache/apache-2.0.47/configure.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / nonworking / apache / apache-2.0.47 / configure.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- httpd-2.0.47/./configure.in~configure       2003-05-21 00:46:00.000000000 -0400
7 +++ httpd-2.0.47/./configure.in 2004-01-26 19:43:04.000000000 -0500
8 @@ -4,8 +4,9 @@
9  dnl     Use ./buildconf to produce a configure script
10  dnl
11  
12 -AC_PREREQ(2.13)
13 -AC_INIT(ABOUT_APACHE)
14 +AC_PREREQ(2.57)
15 +AC_INIT
16 +AC_CONFIG_SRCDIR([ABOUT_APACHE])
17  
18  AC_CONFIG_HEADER(include/ap_config_auto.h)
19  AC_CONFIG_AUX_DIR(build)
20 @@ -55,7 +56,7 @@
21  dnl shared library support for these packages doesn't currently
22  dnl work on some platforms
23  
24 -AC_CANONICAL_SYSTEM
25 +AC_CANONICAL_TARGET([])
26  
27  orig_prefix="$prefix"
28  
29 @@ -209,7 +210,7 @@
30        APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
31        ;;
32    *-solaris2*)
33 -      dnl This is a hack -- we should be using AC_TRY_RUN instead
34 +      dnl This is a hack -- we should be using AC_RUN_IFELSE([AC_LANG_SOURCE([[]])],[],[],[]) instead
35        ap_platform_runtime_link_flag="-R"
36        dnl solaris 8 and above don't have a thundering herd
37        dnl not sure about rev's before this one.
38 @@ -286,7 +287,7 @@
39  dnl ## Check for typedefs, structures, and compiler characteristics.
40  
41  AC_C_CONST
42 -if test "$ac_cv_prog_gcc" = "yes"; then
43 +if test "$ac_cv_c_compiler_gnu" = "yes"; then
44    APR_ADDTO(NOTEST_CPPFLAGS,-DAP_HAVE_DESIGNATED_INITIALIZER)
45  fi
46  
47 @@ -305,9 +306,8 @@
48  
49  dnl ## Check for the tm_gmtoff field in struct tm to get the timezone diffs
50  AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff,
51 -[AC_TRY_COMPILE([#include <sys/types.h>
52 -#include <time.h>], [struct tm tm; tm.tm_gmtoff;],
53 -  ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)])
54 +[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
55 +#include <time.h>]], [[struct tm tm; tm.tm_gmtoff;]])],[ac_cv_struct_tm_gmtoff=yes],[ac_cv_struct_tm_gmtoff=no])])
56  if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
57      AC_DEFINE(HAVE_GMTOFF)
58  fi
59 @@ -566,7 +566,9 @@
60  dnl Ensure that docs/conf is created.
61  test -d docs/conf||$mkdir_p docs/conf
62  
63 -AC_OUTPUT($APACHE_OUTPUT_FILES docs/conf/httpd-std.conf include/ap_config_layout.h support/apxs support/apachectl support/dbmmanage support/envvars-std support/log_server_status support/logresolve.pl support/phf_abuse_log.cgi support/split-logfile build/rules.mk,[true],[
64 +AC_CONFIG_FILES([$APACHE_OUTPUT_FILES docs/conf/httpd-std.conf include/ap_config_layout.h support/apxs support/apachectl support/dbmmanage support/envvars-std support/log_server_status support/logresolve.pl support/phf_abuse_log.cgi support/split-logfile build/rules.mk])
65 +AC_CONFIG_COMMANDS([default],[[true]],[[
66    APACHE_GEN_MAKEFILES
67 -])
68 +]])
69 +AC_OUTPUT
70  
71 --- httpd-2.0.47/./srclib/apr/configure.in~configure    2003-06-11 11:20:33.000000000 -0400
72 +++ httpd-2.0.47/./srclib/apr/configure.in      2004-01-26 19:39:34.000000000 -0500
73 @@ -4,7 +4,8 @@
74  dnl Process this file with autoconf to produce a configure script.
75  dnl Use ./buildconf to prepare build files and run autoconf for APR.
76  
77 -AC_INIT(build/apr_common.m4)
78 +AC_INIT
79 +AC_CONFIG_SRCDIR([build/apr_common.m4])
80  AC_CONFIG_HEADER(include/arch/unix/apr_private.h)
81  AC_CONFIG_AUX_DIR(build)
82  
83 @@ -29,7 +30,7 @@
84  dnl
85  APR_CONFIG_NICE(config.nice)
86  
87 -AC_CANONICAL_SYSTEM
88 +AC_CANONICAL_TARGET([])
89  echo "Configuring APR library"
90  echo "Platform: $host"
91  
92 @@ -510,18 +511,14 @@
93              dnl Linux is silly as it has pthread_rwlock_init defined
94              dnl but keeps the pthread_rwlock_t structure hidden unless 
95              dnl special things are defined.
96 -            AC_TRY_COMPILE([#include <sys/types.h>
97 -#include <pthread.h>], 
98 -                [pthread_rwlock_t rwlock=PTHREAD_RWLOCK_INITIALIZER;],
99 -                 ac_cv_struct_pthread_rw=yes, ac_cv_struct_pthread_rw=no)
100 +            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
101 +#include <pthread.h>]], [[pthread_rwlock_t rwlock=PTHREAD_RWLOCK_INITIALIZER;]])],[ac_cv_struct_pthread_rw=yes],[ac_cv_struct_pthread_rw=no])
102              if test "$ac_cv_struct_pthread_rw" = "no"; then
103 -                AC_TRY_COMPILE([#define _XOPEN_SOURCE 500
104 +                AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#define _XOPEN_SOURCE 500
105  #define _BSD_SOURCE
106  #define _SVID_SOURCE
107  #include <sys/types.h>
108 -#include <pthread.h>], 
109 -                    [pthread_rwlock_t rwlock=PTHREAD_RWLOCK_INITIALIZER;],
110 -                    ac_cv_struct_pthread_rw=yes, ac_cv_struct_pthread_rw=no)
111 +#include <pthread.h>]], [[pthread_rwlock_t rwlock=PTHREAD_RWLOCK_INITIALIZER;]])],[ac_cv_struct_pthread_rw=yes],[ac_cv_struct_pthread_rw=no])
112                  if test "$ac_cv_struct_pthread_rw" = "yes"; then
113                      APR_ADDTO(CPPFLAGS, [-D_XOPEN_SOURCE=500 -D_BSD_SOURCE])
114                      APR_ADDTO(CPPFLAGS, [-D_SVID_SOURCE])
115 @@ -602,7 +599,7 @@
116  if test "$ac_cv_func_mmap" = "yes" &&
117     test "$ac_cv_file__dev_zero" = "yes"; then
118      AC_MSG_CHECKING(for mmap that can map /dev/zero)
119 -    AC_TRY_RUN([
120 +    AC_RUN_IFELSE([AC_LANG_SOURCE([[
121  #include <sys/types.h>
122  #include <sys/stat.h>
123  #include <fcntl.h>
124 @@ -625,7 +622,7 @@
125              return 3;
126          }
127          return 0;
128 -    }], [], [ac_cv_file__dev_zero=no], [ac_cv_file__dev_zero=no])
129 +    }]])],[],[ac_cv_file__dev_zero=no],[ac_cv_file__dev_zero=no])
130  
131      AC_MSG_RESULT($ac_cv_file__dev_zero)
132  fi
133 @@ -829,7 +826,8 @@
134  AC_SUBST(sendfile)
135  
136  AC_CHECK_FUNCS(sigaction, [ have_sigaction="1" ], [ have_sigaction="0" ]) 
137 -AC_DECL_SYS_SIGLIST
138 +AC_CHECK_DECLS([sys_siglist])
139 +
140  
141  AC_CHECK_FUNCS(fork, [ fork="1" ], [ fork="0" ])
142  APR_CHECK_INET_ADDR
143 @@ -936,12 +934,11 @@
144  # being included by itself.  Check for <netinet/tcp.h> manually,
145  # including another header file first.
146  AC_CACHE_CHECK([for netinet/tcp.h], [apr_cv_hdr_netinet_tcp_h],
147 -[AC_TRY_CPP(
148 -[#ifdef HAVE_NETINET_IN_H
149 +[AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#ifdef HAVE_NETINET_IN_H
150  #include <netinet/in.h>
151  #endif
152  #include <netinet/tcp.h>
153 -], [apr_cv_hdr_netinet_tcp_h=yes], [apr_cv_hdr_netinet_tcp_h=no])])
154 +]])],[apr_cv_hdr_netinet_tcp_h=yes],[apr_cv_hdr_netinet_tcp_h=no])])
155  if test "$apr_cv_hdr_netinet_tcp_h" = "yes"; then
156     netinet_tcph=1
157     AC_DEFINE([HAVE_NETINET_TCP_H], 1, [Defined if netinet/tcp.h is present])
158 @@ -1012,7 +1009,7 @@
159  if test "x$ac_cv_sizeof_voidp" != "x"; then
160      voidp_size=$ac_cv_sizeof_voidp
161  else
162 -    AC_ERROR([Cannot determine size of void*])
163 +    AC_MSG_ERROR([Cannot determine size of void*])
164  fi
165  
166  dnl Checks for integer size
167 @@ -1351,7 +1348,7 @@
168  fi
169  
170  AC_CACHE_CHECK(struct rlimit,ac_cv_struct_rlimit,[
171 -AC_TRY_RUN([
172 +AC_RUN_IFELSE([AC_LANG_SOURCE([[
173  #include <sys/types.h>
174  #include <sys/time.h>
175  #include <sys/resource.h>
176 @@ -1361,10 +1358,10 @@
177      limit.rlim_cur = 0;
178      limit.rlim_max = 0;
179      exit(0);
180 -}], [
181 -    ac_cv_struct_rlimit=yes ], [
182 -    ac_cv_struct_rlimit=no ], [
183 -    ac_cv_struct_rlimit=no ] ) ] )
184 +}]])],[
185 +    ac_cv_struct_rlimit=yes ],[
186 +    ac_cv_struct_rlimit=no ],[
187 +    ac_cv_struct_rlimit=no  ]) ] )
188  struct_rlimit=0
189  test "x$ac_cv_struct_rlimit" = xyes && struct_rlimit=1
190  AC_SUBST(struct_rlimit)
191 @@ -1378,7 +1375,7 @@
192  
193  # Some systems return ENOSYS from sem_open.
194  AC_CACHE_CHECK(for working sem_open,ac_cv_func_sem_open,[
195 -AC_TRY_RUN([
196 +AC_RUN_IFELSE([AC_LANG_SOURCE([[
197  #include <errno.h>
198  #include <stdlib.h>
199  #include <fcntl.h>
200 @@ -1397,22 +1394,21 @@
201      sem_close(psem);
202      sem_unlink(sem_name);
203      exit(0);
204 -}], [ac_cv_func_sem_open=yes], [ac_cv_func_sem_open=no],
205 -[ac_cv_func_sem_open=no])])
206 +}]])],[ac_cv_func_sem_open=yes],[ac_cv_func_sem_open=no],[ac_cv_func_sem_open=no])])
207  
208  # It's stupid, but not all platforms have union semun, even those that need it.
209  AC_MSG_CHECKING(for union semun in sys/sem.h)
210 -AC_TRY_COMPILE([
211 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
212  #include <sys/types.h>
213  #include <sys/ipc.h>
214  #include <sys/sem.h>
215 -],[
216 +]], [[
217  union semun arg;
218  semctl(0, 0, 0, arg);
219 -], [have_union_semun="1" union_semun=yes ]
220 -msg=yes, [
221 +]])],[have_union_semun="1" union_semun=yes 
222 +msg=yes],[
223  have_union_semun="0"
224 -msg=no ] )
225 +msg=no  ])
226  AC_MSG_RESULT([$msg])
227  AC_SUBST(have_union_semun)
228  
229 @@ -1434,7 +1430,7 @@
230      # Linux and older versions of AIX have this problem.
231      APR_IFALLYES(header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared, [
232        AC_CACHE_CHECK([for working PROCESS_SHARED locks], apr_cv_process_shared_works, [
233 -      AC_TRY_RUN([
234 +      AC_RUN_IFELSE([AC_LANG_SOURCE([[
235  #include <sys/types.h>
236  #include <pthread.h>
237          int main()
238 @@ -1452,7 +1448,7 @@
239              if (pthread_mutex_destroy(&mutex))
240                  exit(5);
241              exit(0);
242 -        }], [apr_cv_process_shared_works=yes], [apr_cv_process_shared_works=no])])
243 +        }]])],[apr_cv_process_shared_works=yes],[apr_cv_process_shared_works=no],[])])
244        # Override detection of pthread_mutexattr_setpshared
245        ac_cv_func_pthread_mutexattr_setpshared=$apr_cv_process_shared_works])
246  
247 @@ -1461,15 +1457,15 @@
248          if test "$ac_cv_func_pthread_mutexattr_setrobust_np" = "no"; then
249              AC_CACHE_CHECK([for pthread_mutexattr_setrobust_np with _POSIX_THREAD_PRIO_INHERIT],
250              [apr_cv_setrobust_with_prio_inherit], [
251 -            AC_TRY_COMPILE([#define _POSIX_THREAD_PRIO_INHERIT
252 +            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#define _POSIX_THREAD_PRIO_INHERIT
253  #include <sys/types.h>
254 -#include <pthread.h>],[
255 +#include <pthread.h>]], [[
256              int main()
257              {
258                  pthread_mutexattr_t attr;
259                  pthread_mutexattr_setrobust_np(&attr, PTHREAD_MUTEX_ROBUST_NP);
260                  return 0;
261 -            }], [apr_cv_setrobust_with_prio_inherit=yes], [apr_cv_setrobust_with_prio_inherit=no])])
262 +            }]])],[apr_cv_setrobust_with_prio_inherit=yes],[apr_cv_setrobust_with_prio_inherit=no])])
263              if test "$apr_cv_setrobust_with_prio_inherit" = "yes"; then
264                  ac_cv_func_pthread_mutexattr_setrobust_np=yes
265                  APR_ADDTO(CPPFLAGS, -D_POSIX_THREAD_PRIO_INHERIT)
266 @@ -1637,7 +1633,7 @@
267      if test -r "$apr_devrandom"; then
268        rand="1"
269      else
270 -      AC_ERROR([$apr_devrandom not found or unreadable.])
271 +      AC_MSG_ERROR([$apr_devrandom not found or unreadable.])
272      fi
273    fi
274  
275 @@ -1673,9 +1669,8 @@
276  dnl ----------------------------- Checking for Time Support 
277  echo "${nl}Checking for Time Support..."
278  AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff,
279 -[AC_TRY_COMPILE([#include <sys/types.h>
280 -#include <time.h>], [struct tm tm; tm.tm_gmtoff;],
281 -  ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)])
282 +[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
283 +#include <time.h>]], [[struct tm tm; tm.tm_gmtoff;]])],[ac_cv_struct_tm_gmtoff=yes],[ac_cv_struct_tm_gmtoff=no])])
284  
285  if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
286      AC_DEFINE(HAVE_GMTOFF, 1, [Define if struct tm has a tm_gmtoff field])
287 @@ -1684,14 +1679,14 @@
288  dnl ----------------------------- Checking for Networking Support 
289  echo "${nl}Checking for Networking support..."
290  AC_MSG_CHECKING(for in_addr in netinet/in.h)
291 -AC_TRY_COMPILE([
292 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
293  #include <sys/types.h>
294  #include <netinet/in.h>
295 -],[
296 +]], [[
297  struct in_addr arg;
298  arg.s_addr = htonl(INADDR_ANY);
299 -], [ have_in_addr="1" 
300 -msg=yes ] , [ have_in_addr="0"
301 +]])],[ have_in_addr="1" 
302 +msg=yes  ],[ have_in_addr="0"
303  msg=no ])
304  AC_MSG_RESULT([$msg])
305  
306 @@ -1898,12 +1893,13 @@
307  dir=include/arch/unix
308  test -d $dir || $MKDIR $dir
309  
310 -AC_OUTPUT([
311 +AC_CONFIG_FILES([
312         $MAKEFILE1 $MAKEFILE2 $MAKEFILE3
313         include/apr.h
314         build/apr_rules.mk
315         apr-config
316 -],[
317 +])
318 +AC_CONFIG_COMMANDS([default],[[
319  for i in $SAVE_FILES; do
320    if cmp -s $i $i.save 2>/dev/null; then
321      mv $i.save $i
322 @@ -1912,7 +1908,8 @@
323    rm -f $i.save
324  done
325  chmod +x apr-config
326 -])
327 +]],[[]])
328 +AC_OUTPUT
329  
330  dnl ----------------------------- Fixup Makefiles for VPATH support
331  
332 --- httpd-2.0.47/./srclib/pcre/configure.in~configure   2002-03-20 01:56:34.000000000 -0500
333 +++ httpd-2.0.47/./srclib/pcre/configure.in     2004-01-26 19:43:27.000000000 -0500
334 @@ -3,7 +3,8 @@
335  dnl This is required at the start; the name is the name of a file
336  dnl it should be seeing, to verify it is in the same directory.
337  
338 -AC_INIT(dftables.c)
339 +AC_INIT
340 +AC_CONFIG_SRCDIR([dftables.c])
341  
342  dnl Arrange to build config.h from config.in. Note that pcre.h is
343  dnl built differently, as it is just a "substitution" file.
344 @@ -101,4 +102,6 @@
345  AC_SUBST(PCRE_POSIXLIB_VERSION)
346  
347  dnl This must be last; it determines what files are written as well as config.h
348 -AC_OUTPUT(Makefile pcre.h:pcre.in pcre-config,[chmod a+x pcre-config])
349 +AC_CONFIG_FILES([Makefile pcre.h:pcre.in pcre-config])
350 +AC_CONFIG_COMMANDS([default],[[chmod a+x pcre-config]],[[]])
351 +AC_OUTPUT
352 --- httpd-2.0.47/./srclib/apr-util/xml/expat/configure.in~configure     2001-07-08 22:31:04.000000000 -0400
353 +++ httpd-2.0.47/./srclib/apr-util/xml/expat/configure.in       2004-01-26 19:39:34.000000000 -0500
354 @@ -10,7 +10,8 @@
355  dnl   in the file COPYING that comes with this distribution.
356  dnl
357  
358 -AC_INIT(Makefile.in)
359 +AC_INIT
360 +AC_CONFIG_SRCDIR([Makefile.in])
361  AC_CONFIG_AUX_DIR(conftools)
362  
363  dnl
364 @@ -45,7 +46,7 @@
365  
366  AC_CONFIG_HEADER(config.h)
367  
368 -AC_CANONICAL_SYSTEM
369 +AC_CANONICAL_TARGET([])
370  case "$host_alias" in
371  *os2*)
372      # Use a custom made libtool replacement
373 @@ -106,4 +107,5 @@
374  
375  AC_CHECK_FUNCS(memmove bcopy)
376  
377 -AC_OUTPUT(Makefile lib/Makefile lib/expat.h)
378 +AC_CONFIG_FILES([Makefile lib/Makefile lib/expat.h])
379 +AC_OUTPUT
380 --- httpd-2.0.47/./srclib/apr-util/configure.in~configure       2003-06-12 03:27:10.000000000 -0400
381 +++ httpd-2.0.47/./srclib/apr-util/configure.in 2004-01-26 19:39:34.000000000 -0500
382 @@ -2,8 +2,9 @@
383  dnl Process this file with autoconf to produce a configure script
384  dnl
385  
386 -AC_PREREQ(2.13)
387 -AC_INIT(export_vars.sh.in)
388 +AC_PREREQ(2.57)
389 +AC_INIT
390 +AC_CONFIG_SRCDIR([export_vars.sh.in])
391  
392  AC_CONFIG_HEADER(include/private/apu_config.h)
393  AC_CONFIG_AUX_DIR(build)
394 @@ -29,7 +30,7 @@
395    USE_VPATH=1
396  fi
397  
398 -AC_CANONICAL_SYSTEM
399 +AC_CANONICAL_TARGET([])
400  
401  dnl
402  dnl compute the top directory of the build
403 @@ -191,13 +192,15 @@
404  dnl
405  dnl everthing is done. 
406  MAKEFILES="Makefile buckets/Makefile crypto/Makefile dbm/Makefile dbm/sdbm/Makefile encoding/Makefile hooks/Makefile ldap/Makefile uri/Makefile xml/Makefile misc/Makefile strmatch/Makefile xlate/Makefile $test_Makefile"
407 -AC_OUTPUT([
408 +AC_CONFIG_FILES([
409      export_vars.sh
410      apu-config
411      include/private/apu_select_dbm.h
412      include/apr_ldap.h
413      include/apu.h
414      $MAKEFILES
415 -       ],[
416 +       ])
417 +AC_CONFIG_COMMANDS([default],[[
418  chmod +x apu-config
419 -])
420 +]],[[]])
421 +AC_OUTPUT
422 --- httpd-2.0.47/acinclude.m4~configure 2002-11-29 06:05:57.000000000 -0500
423 +++ httpd-2.0.47/acinclude.m4   2004-01-26 19:39:34.000000000 -0500
424 @@ -4,25 +4,25 @@
425  dnl AC_HELP_STRING, so let's try to call it if we can.
426  dnl Note: this define must be on one line so that it can be properly returned
427  dnl as the help string.
428 -AC_DEFUN(APACHE_HELP_STRING,[ifelse(regexp(AC_ACVERSION, 2\.1), -1, AC_HELP_STRING($1,$2),[  ]$1 substr([                       ],len($1))$2)])dnl
429 +AC_DEFUN([APACHE_HELP_STRING],[ifelse(regexp(AC_ACVERSION, 2\.1), -1, AC_HELP_STRING($1,$2),[  ]$1 substr([                       ],len($1))$2)])dnl
430  
431  dnl APACHE_SUBST(VARIABLE)
432  dnl Makes VARIABLE available in generated files
433  dnl (do not use @variable@ in Makefiles, but $(variable))
434 -AC_DEFUN(APACHE_SUBST,[
435 +AC_DEFUN([APACHE_SUBST],[
436    APACHE_VAR_SUBST="$APACHE_VAR_SUBST $1"
437    AC_SUBST($1)
438  ])
439  
440  dnl APACHE_FAST_OUTPUT(FILENAME)
441  dnl Perform substitutions on FILENAME (Makefiles only)
442 -AC_DEFUN(APACHE_FAST_OUTPUT,[
443 +AC_DEFUN([APACHE_FAST_OUTPUT],[
444    APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $1"
445  ])
446  
447  dnl APACHE_GEN_CONFIG_VARS
448  dnl Creates config_vars.mk
449 -AC_DEFUN(APACHE_GEN_CONFIG_VARS,[
450 +AC_DEFUN([APACHE_GEN_CONFIG_VARS],[
451    APACHE_SUBST(abs_srcdir)
452    APACHE_SUBST(bindir)
453    APACHE_SUBST(sbindir)
454 @@ -104,14 +104,14 @@
455  
456  dnl APACHE_GEN_MAKEFILES
457  dnl Creates Makefiles
458 -AC_DEFUN(APACHE_GEN_MAKEFILES,[
459 +AC_DEFUN([APACHE_GEN_MAKEFILES],[
460    $SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $BSD_MAKEFILE $APACHE_FAST_OUTPUT_FILES
461  ])
462  
463  dnl ## APACHE_OUTPUT(file)
464  dnl ## adds "file" to the list of files generated by AC_OUTPUT
465  dnl ## This macro can be used several times.
466 -AC_DEFUN(APACHE_OUTPUT, [
467 +AC_DEFUN([APACHE_OUTPUT], [
468    APACHE_OUTPUT_FILES="$APACHE_OUTPUT_FILES $1"
469  ])
470  
471 @@ -120,7 +120,7 @@
472  dnl
473  dnl If rlim_t is not defined, define it to int
474  dnl
475 -AC_DEFUN(APACHE_TYPE_RLIM_T, [
476 +AC_DEFUN([APACHE_TYPE_RLIM_T], [
477    AC_CACHE_CHECK([for rlim_t], ac_cv_type_rlim_t, [
478      AC_TRY_COMPILE([
479  #include <sys/types.h>
480 @@ -138,7 +138,7 @@
481  ])
482  
483  dnl APACHE_MODPATH_INIT(modpath)
484 -AC_DEFUN(APACHE_MODPATH_INIT,[
485 +AC_DEFUN([APACHE_MODPATH_INIT],[
486    current_dir=$1
487    modpath_current=modules/$1
488    modpath_static=
489 @@ -147,7 +147,7 @@
490    > $modpath_current/modules.mk
491  ])dnl
492  dnl
493 -AC_DEFUN(APACHE_MODPATH_FINISH,[
494 +AC_DEFUN([APACHE_MODPATH_FINISH],[
495    echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
496    echo "static = $modpath_static" >> $modpath_current/modules.mk
497    echo "shared = $modpath_shared" >> $modpath_current/modules.mk
498 @@ -160,7 +160,7 @@
499  ])dnl
500  dnl
501  dnl APACHE_MODPATH_ADD(name[, shared[, objects [, ldflags[, libs]]]])
502 -AC_DEFUN(APACHE_MODPATH_ADD,[
503 +AC_DEFUN([APACHE_MODPATH_ADD],[
504    if test -z "$3"; then
505      objects="mod_$1.lo"
506    else
507 @@ -203,7 +203,7 @@
508  dnl            setting. otherwise, fall under the "all" setting.
509  dnl            explicit yes/no always overrides.
510  dnl
511 -AC_DEFUN(APACHE_MODULE,[
512 +AC_DEFUN([APACHE_MODULE],[
513    AC_MSG_CHECKING(whether to enable mod_$1)
514    define([optname],[--]ifelse($5,yes,disable,enable)[-]translit($1,_,-))dnl
515    AC_ARG_ENABLE(translit($1,_,-),APACHE_HELP_STRING(optname(),$2),,enable_$1=ifelse($5,,maybe-all,$5))
516 @@ -273,7 +273,7 @@
517  dnl
518  dnl APACHE_LAYOUT(configlayout, layoutname)
519  dnl
520 -AC_DEFUN(APACHE_LAYOUT,[
521 +AC_DEFUN([APACHE_LAYOUT],[
522    if test ! -f $srcdir/config.layout; then
523      echo "** Error: Layout file $srcdir/config.layout not found"
524      echo "** Error: Cannot use undefined layout '$LAYOUT'"
525 @@ -325,7 +325,7 @@
526  dnl
527  dnl APACHE_ENABLE_LAYOUT
528  dnl
529 -AC_DEFUN(APACHE_ENABLE_LAYOUT,[
530 +AC_DEFUN([APACHE_ENABLE_LAYOUT],[
531  AC_ARG_ENABLE(layout,
532  [  --enable-layout=LAYOUT],[
533    LAYOUT=$enableval
534 @@ -343,7 +343,7 @@
535  dnl
536  dnl APACHE_ENABLE_MODULES
537  dnl
538 -AC_DEFUN(APACHE_ENABLE_MODULES,[
539 +AC_DEFUN([APACHE_ENABLE_MODULES],[
540    module_selection=default
541    module_default=yes
542  
543 @@ -372,7 +372,7 @@
544    ])
545  ])
546  
547 -AC_DEFUN(APACHE_REQUIRE_CXX,[
548 +AC_DEFUN([APACHE_REQUIRE_CXX],[
549    if test -z "$apache_cxx_done"; then
550      AC_PROG_CXX
551      AC_PROG_CXXCPP
552 @@ -389,7 +389,7 @@
553  dnl and then AC_TRY_LINK to test the libraries directly for the version,
554  dnl but that will require someone who knows how to program openssl.
555  dnl
556 -AC_DEFUN(APACHE_CHECK_SSL_TOOLKIT,[
557 +AC_DEFUN([APACHE_CHECK_SSL_TOOLKIT],[
558  if test "x$ap_ssltk_base" = "x"; then
559    AC_MSG_CHECKING(for SSL/TLS toolkit base)
560    ap_ssltk_base=""
561 @@ -499,14 +499,14 @@
562  dnl apache will use while generating scripts like autoconf and apxs and
563  dnl the default config file.
564  
565 -AC_DEFUN(APACHE_SUBST_EXPANDED_ARG,[
566 +AC_DEFUN([APACHE_SUBST_EXPANDED_ARG],[
567    APR_EXPAND_VAR(exp_$1, [$]$1)
568    APACHE_SUBST(exp_$1)
569    APR_PATH_RELATIVE(rel_$1, [$]exp_$1, ${prefix})
570    APACHE_SUBST(rel_$1)
571  ])
572  
573 -AC_DEFUN(APACHE_EXPORT_ARGUMENTS,[
574 +AC_DEFUN([APACHE_EXPORT_ARGUMENTS],[
575    APACHE_SUBST_EXPANDED_ARG(exec_prefix)
576    APACHE_SUBST_EXPANDED_ARG(bindir)
577    APACHE_SUBST_EXPANDED_ARG(sbindir)
578 --- httpd-2.0.47/srclib/apr/build/apr_common.m4~configure       2003-04-05 16:42:20.000000000 -0500
579 +++ httpd-2.0.47/srclib/apr/build/apr_common.m4 2004-01-26 19:39:34.000000000 -0500
580 @@ -6,7 +6,7 @@
581  dnl
582  dnl Saves a snapshot of the configure command-line for later reuse
583  dnl
584 -AC_DEFUN(APR_CONFIG_NICE,[
585 +AC_DEFUN([APR_CONFIG_NICE],[
586    rm -f $1
587    cat >$1<<EOF
588  #! /bin/sh
589 @@ -55,7 +55,7 @@
590  
591  dnl APR_MKDIR_P_CHECK(fallback-mkdir-p)
592  dnl checks whether mkdir -p works
593 -AC_DEFUN(APR_MKDIR_P_CHECK,[
594 +AC_DEFUN([APR_MKDIR_P_CHECK],[
595    AC_CACHE_CHECK(for working mkdir -p, ac_cv_mkdir_p,[
596      test -d conftestdir && rm -rf conftestdir
597      mkdir -p conftestdir/somedir >/dev/null 2>&1
598 @@ -93,7 +93,7 @@
599  dnl Trying to optimize this is left as an exercise to the reader who wants
600  dnl to put up with more autoconf craziness.  I give up.
601  dnl
602 -AC_DEFUN(APR_SUBDIR_CONFIG, [
603 +AC_DEFUN([APR_SUBDIR_CONFIG], [
604    # save our work to this point; this allows the sub-package to use it
605    AC_CACHE_SAVE
606  
607 @@ -158,7 +158,7 @@
608  dnl
609  dnl Stores the variable (usually a Makefile macro) for later restoration
610  dnl
611 -AC_DEFUN(APR_SAVE_THE_ENVIRONMENT,[
612 +AC_DEFUN([APR_SAVE_THE_ENVIRONMENT],[
613    apr_ste_save_$1="$$1"
614  ])dnl
615  
616 @@ -170,7 +170,7 @@
617  dnl and restoring the original variable contents.  This makes it possible
618  dnl for a user to override configure when it does something stupid.
619  dnl
620 -AC_DEFUN(APR_RESTORE_THE_ENVIRONMENT,[
621 +AC_DEFUN([APR_RESTORE_THE_ENVIRONMENT],[
622  if test "x$apr_ste_save_$1" = "x"; then
623    $2$1="$$1"
624    $1=
625 @@ -192,7 +192,7 @@
626  dnl
627  dnl  Set variable iff it's currently null
628  dnl
629 -AC_DEFUN(APR_SETIFNULL,[
630 +AC_DEFUN([APR_SETIFNULL],[
631    if test -z "$$1"; then
632      echo "  setting $1 to \"$2\""
633      $1="$2"
634 @@ -204,7 +204,7 @@
635  dnl
636  dnl  Set variable no matter what
637  dnl
638 -AC_DEFUN(APR_SETVAR,[
639 +AC_DEFUN([APR_SETVAR],[
640    echo "  forcing $1 to \"$2\""
641    $1="$2"
642  ])dnl
643 @@ -214,7 +214,7 @@
644  dnl
645  dnl  Add value to variable
646  dnl
647 -AC_DEFUN(APR_ADDTO,[
648 +AC_DEFUN([APR_ADDTO],[
649    if test "x$$1" = "x"; then
650      echo "  setting $1 to \"$2\""
651      $1="$2"
652 @@ -241,7 +241,7 @@
653  dnl
654  dnl Remove a value from a variable
655  dnl
656 -AC_DEFUN(APR_REMOVEFROM,[
657 +AC_DEFUN([APR_REMOVEFROM],[
658    if test "x$$1" = "x$2"; then
659      echo "  nulling $1"
660      $1=""
661 @@ -265,7 +265,7 @@
662  dnl
663  dnl APR_CHECK_DEFINE_FILES( symbol, header_file [header_file ...] )
664  dnl
665 -AC_DEFUN(APR_CHECK_DEFINE_FILES,[
666 +AC_DEFUN([APR_CHECK_DEFINE_FILES],[
667    AC_CACHE_CHECK([for $1 in $2],ac_cv_define_$1,[
668      ac_cv_define_$1=no
669      for curhdr in $2
670 @@ -287,7 +287,7 @@
671  dnl
672  dnl APR_CHECK_DEFINE(symbol, header_file)
673  dnl
674 -AC_DEFUN(APR_CHECK_DEFINE,[
675 +AC_DEFUN([APR_CHECK_DEFINE],[
676    AC_CACHE_CHECK([for $1 in $2],ac_cv_define_$1,[
677      AC_EGREP_CPP(YES_IS_DEFINED, [
678  #include <$2>
679 @@ -304,7 +304,7 @@
680  dnl
681  dnl APR_CHECK_APR_DEFINE( symbol )
682  dnl
683 -AC_DEFUN(APR_CHECK_APR_DEFINE,[
684 +AC_DEFUN([APR_CHECK_APR_DEFINE],[
685  apr_old_cppflags=$CPPFLAGS
686  CPPFLAGS="$CPPFLAGS $INCLUDES"
687  AC_EGREP_CPP(YES_IS_DEFINED, [
688 @@ -329,7 +329,7 @@
689   fi])
690  ])
691  
692 -define(APR_IFALLYES,[dnl
693 +define([APR_IFALLYES],[dnl
694  ac_rc=yes
695  for ac_spec in $1; do
696      ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
697 @@ -364,14 +364,14 @@
698  ])
699  
700  
701 -define(APR_BEGIN_DECISION,[dnl
702 +define([APR_BEGIN_DECISION],[dnl
703  ac_decision_item='$1'
704  ac_decision_msg='FAILED'
705  ac_decision=''
706  ])
707  
708  
709 -define(APR_DECIDE,[dnl
710 +define([APR_DECIDE],[dnl
711  ac_decision='$1'
712  ac_decision_msg='$2'
713  ac_decision_$1=yes
714 @@ -379,7 +379,7 @@
715  ])
716  
717  
718 -define(APR_DECISION_OVERRIDE,[dnl
719 +define([APR_DECISION_OVERRIDE],[dnl
720      ac_decision=''
721      for ac_item in $1; do
722           eval "ac_decision_this=\$ac_decision_${ac_item}"
723 @@ -391,13 +391,13 @@
724  ])
725  
726  
727 -define(APR_DECISION_FORCE,[dnl
728 +define([APR_DECISION_FORCE],[dnl
729  ac_decision="$1"
730  eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\""
731  ])
732  
733  
734 -define(APR_END_DECISION,[dnl
735 +define([APR_END_DECISION],[dnl
736  if test ".$ac_decision" = .; then
737      echo "[$]0:Error: decision on $ac_decision_item failed" 1>&2
738      exit 1
739 @@ -417,7 +417,7 @@
740  dnl A variant of AC_CHECK_SIZEOF which allows the checking of
741  dnl sizes of non-builtin types
742  dnl
743 -AC_DEFUN(APR_CHECK_SIZEOF_EXTENDED,
744 +AC_DEFUN([APR_CHECK_SIZEOF_EXTENDED],
745  [changequote(<<,>>)dnl
746  dnl The name to #define
747  define(<<AC_TYPE_NAME>>, translit(sizeof_$2, [a-z *], [A-Z_P]))dnl
748 @@ -450,7 +450,7 @@
749  dnl Tries a compile test with warnings activated so that the result
750  dnl is false if the code doesn't compile cleanly.
751  dnl
752 -AC_DEFUN(APR_TRY_COMPILE_NO_WARNING,
753 +AC_DEFUN([APR_TRY_COMPILE_NO_WARNING],
754  [if test "x$CFLAGS_WARN" = "x"; then
755    apr_tcnw_flags=""
756  else
757 @@ -489,7 +489,7 @@
758  dnl  string.
759  dnl
760  dnl
761 -AC_DEFUN(APR_CHECK_STRERROR_R_RC,[
762 +AC_DEFUN([APR_CHECK_STRERROR_R_RC],[
763  AC_MSG_CHECKING(for type of return code from strerror_r)
764  AC_TRY_RUN([
765  #include <errno.h>
766 @@ -522,7 +522,7 @@
767  dnl  Decide which of a couple of flavors of crypt_r() is necessary for
768  dnl  this platform.
769  dnl
770 -AC_DEFUN(APR_CHECK_CRYPT_R_STYLE,[
771 +AC_DEFUN([APR_CHECK_CRYPT_R_STYLE],[
772  AC_CACHE_CHECK(style of crypt_r, ac_cv_crypt_r_style,[
773  dnl
774  ac_cv_crypt_r_style=none
775 @@ -576,7 +576,7 @@
776  dnl  structure on this platform.  Single UNIX Spec says d_ino,
777  dnl  BSD uses d_fileno.  Undef to find the real beast.
778  dnl
779 -AC_DEFUN(APR_CHECK_DIRENT_INODE, [
780 +AC_DEFUN([APR_CHECK_DIRENT_INODE], [
781  AC_CACHE_CHECK([for inode member of struct dirent], apr_cv_dirent_inode, [
782  apr_cv_dirent_inode=no
783  AC_TRY_COMPILE([
784 @@ -613,7 +613,7 @@
785  dnl  Note that this is worthless without DT_xxx macros, so
786  dnl  look for one while we are at it.
787  dnl
788 -AC_DEFUN(APR_CHECK_DIRENT_TYPE,[
789 +AC_DEFUN([APR_CHECK_DIRENT_TYPE],[
790  AC_CACHE_CHECK([for file type member of struct dirent], apr_cv_dirent_type,[
791  apr_cv_dirent_type=no
792  AC_TRY_COMPILE([
793 @@ -645,8 +645,8 @@
794  dnl  within each iteration.
795  dnl
796  changequote({,})
797 -define({APR_COMMA_ARGS},{patsubst([$}{1],[[}apr_whitespace{]+],[,])})
798 -define({APR_FOREACH},
799 +define([{APR_COMMA_ARGS}],{patsubst([$}{1],[[}apr_whitespace{]+],[,])})
800 +define([{APR_FOREACH}],
801    {ifelse($}{2,,,
802            [define([eachval],
803                    $}{2)$}{1[]APR_FOREACH([$}{1],
804 @@ -661,7 +661,7 @@
805  dnl  all "." and "-" chars. If the 3rd parameter is "yes" then instead of
806  dnl  setting to 1 or 0, we set FLAG-TO-SET to yes or no.
807  dnl  
808 -AC_DEFUN(APR_FLAG_HEADERS,[
809 +AC_DEFUN([APR_FLAG_HEADERS],[
810  AC_CHECK_HEADERS($1)
811  for aprt_i in $1
812  do
813 @@ -682,7 +682,7 @@
814  dnl  is "yes" then instead of setting to 1 or 0, we set FLAG-TO-SET
815  dnl  to yes or no.
816  dnl
817 -AC_DEFUN(APR_FLAG_FUNCS,[
818 +AC_DEFUN([APR_FLAG_FUNCS],[
819  AC_CHECK_FUNCS($1)
820  for aprt_j in $1
821  do
822 @@ -707,7 +707,7 @@
823  dnl APR_EXPAND_VAR(fraz, $baz)
824  dnl   $fraz is now "1/2/3"
825  dnl 
826 -AC_DEFUN(APR_EXPAND_VAR,[
827 +AC_DEFUN([APR_EXPAND_VAR],[
828  ap_last=
829  ap_cur="$2"
830  while test "x${ap_cur}" != "x${ap_last}";
831 @@ -726,7 +726,7 @@
832  dnl orig_path="${prefix}/bar"
833  dnl APR_PATH_RELATIVE(final_path, $orig_path, $prefix)
834  dnl    $final_path now contains "bar"
835 -AC_DEFUN(APR_PATH_RELATIVE,[
836 +AC_DEFUN([APR_PATH_RELATIVE],[
837  ap_stripped=`echo $2 | sed -e "s#^$3##"`
838  # check if the stripping was successful
839  if test "x$2" != "x${ap_stripped}"; then
840 @@ -744,12 +744,12 @@
841  dnl Note: this define must be on one line so that it can be properly returned
842  dnl as the help string.  When using this macro with a multi-line RHS, ensure
843  dnl that you surround the macro invocation with []s
844 -AC_DEFUN(APR_HELP_STRING,[ifelse(regexp(AC_ACVERSION, 2\.1), -1, AC_HELP_STRING([$1],[$2]),[  ][$1] substr([                       ],len($1))[$2])])
845 +AC_DEFUN([APR_HELP_STRING],[ifelse(regexp(AC_ACVERSION, 2\.1), -1, AC_HELP_STRING([$1],[$2]),[  ][$1] substr([                       ],len($1))[$2])])
846  
847  dnl
848  dnl APR_LAYOUT(configlayout, layoutname [, extravars])
849  dnl
850 -AC_DEFUN(APR_LAYOUT,[
851 +AC_DEFUN([APR_LAYOUT],[
852    if test ! -f $srcdir/config.layout; then
853      echo "** Error: Layout file $srcdir/config.layout not found"
854      echo "** Error: Cannot use undefined layout '$LAYOUT'"
855 @@ -805,7 +805,7 @@
856  dnl
857  dnl APR_ENABLE_LAYOUT(default layout name [, extra vars])
858  dnl
859 -AC_DEFUN(APR_ENABLE_LAYOUT,[
860 +AC_DEFUN([APR_ENABLE_LAYOUT],[
861  AC_ARG_ENABLE(layout,
862  [  --enable-layout=LAYOUT],[
863    LAYOUT=$enableval
864 @@ -826,7 +826,7 @@
865  dnl a reimplementation of autoconf's argument parser,
866  dnl used here to allow us to co-exist layouts and argument based
867  dnl set ups.
868 -AC_DEFUN(APR_PARSE_ARGUMENTS,[
869 +AC_DEFUN([APR_PARSE_ARGUMENTS],[
870  ac_prev=
871  for ac_option
872  do
873 @@ -948,7 +948,7 @@
874  dnl
875  dnl Determine what program we can use to generate .deps-style dependencies
876  dnl
877 -AC_DEFUN(APR_CHECK_DEPEND,[
878 +AC_DEFUN([APR_CHECK_DEPEND],[
879  dnl Try to determine what depend program we can use
880  dnl All GCC-variants should have -MM.
881  dnl If not, then we can check on those, too.
882 --- httpd-2.0.47/srclib/apr/build/find_apr.m4~configure 2002-11-05 17:09:19.000000000 -0500
883 +++ httpd-2.0.47/srclib/apr/build/find_apr.m4   2004-01-26 19:39:34.000000000 -0500
884 @@ -37,7 +37,7 @@
885  dnl value of apr_config to fetch any necessary build/link information.
886  dnl
887  
888 -AC_DEFUN(APR_FIND_APR, [
889 +AC_DEFUN([APR_FIND_APR], [
890    apr_found="no"
891  
892    if test "$ac_cv_emxos2" = "yes"; then
893 --- httpd-2.0.47/srclib/apr-util/build/find_apu.m4~configure    2002-11-05 17:13:42.000000000 -0500
894 +++ httpd-2.0.47/srclib/apr-util/build/find_apu.m4      2004-01-26 19:39:34.000000000 -0500
895 @@ -41,7 +41,7 @@
896  dnl value of apu_config to fetch any necessary build/link information.
897  dnl
898  
899 -AC_DEFUN(APR_FIND_APU, [
900 +AC_DEFUN([APR_FIND_APU], [
901    apu_found="no"
902  
903    AC_MSG_CHECKING(for APR-util)