diff options
author | Justin Erenkrantz <jerenkrantz@apache.org> | 2002-12-19 05:28:16 +0000 |
---|---|---|
committer | Justin Erenkrantz <jerenkrantz@apache.org> | 2002-12-19 05:28:16 +0000 |
commit | 51e58b89dc3a3624b3de459f45c8efdc9c6e5255 (patch) | |
tree | 1a290fc39a5c2153241e8924020ca70024e48de4 | |
parent | f5d897517c75ca85129998cc92fe36318f6c549e (diff) | |
download | httpd-51e58b89dc3a3624b3de459f45c8efdc9c6e5255.tar.gz |
Allow dependencies to be generated by something other than GCC.
This allows Sun's cpp to generate valid .deps dependencies.
(This is a similar patch as applied to APR.)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98035 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | CHANGES | 3 | ||||
-rw-r--r-- | build/rules.mk.in | 6 | ||||
-rw-r--r-- | configure.in | 3 |
3 files changed, 11 insertions, 1 deletions
@@ -1,6 +1,9 @@ Changes with Apache 2.1.0-dev [Remove entries to the current 2.0 section below, when backported] + *) Allow 'make depend' to work with non-GCC compilers. + [Justin Erenkrantz] + *) Rename CacheMaxStreamingBuffer to MCacheMaxStreamingBuffer. Move implementation of MCacheMaxStreamingBuffer from mod_cache to mod_mem_cache. MCacheMaxStreamingBuffer now defaults to the diff --git a/build/rules.mk.in b/build/rules.mk.in index e598f46d14..b2f3eaff49 100644 --- a/build/rules.mk.in +++ b/build/rules.mk.in @@ -179,7 +179,11 @@ local-shared-build: $(SHARED_TARGETS) local-depend: x-local-depend if test -n "`ls $(srcdir)/*.c 2> /dev/null`"; then \ - $(CC) -MM $(ALL_CPPFLAGS) $(ALL_INCLUDES) $(srcdir)/*.c | sed 's/\.o:/.lo:/' > $(builddir)/.deps || true; \ + rm -f .deps; \ + list='$(srcdir)/*.c'; \ + for i in $$list; do \ + $(MKDEP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) $$i | sed 's/\.o:/.lo:/' >> .deps; \ + done; \ fi local-clean: x-local-clean diff --git a/configure.in b/configure.in index d26594354a..3fb8b074cd 100644 --- a/configure.in +++ b/configure.in @@ -243,6 +243,9 @@ AC_AIX AC_ISC_POSIX AC_MINIX +dnl Check for what we can generate dependency files with +APR_CHECK_DEPEND + dnl ## Check for libraries dnl ## Check for header files |