[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Print error when httpd is too old

From: Pekka Enberg <Pekka.Enberg_at_cs.helsinki.fi>
Date: 2003-03-03 22:21:26 CET

Hi,

Currently Subversion ./configure fails silently when I run it because I
have too old Apache installed. Here's what I get in the log:

[...]
checking for Apache module support via DSO through APXS... found at
/usr/sbin/apxs
checking httpd version... configure: error:
cherry ~/src/subversion-r5118 26 %

The problem is in ac-helpers/svn-apache.m4. Apparently AC_MSG_ERROR
macro's open parenthesis needs to be on the same line as the macro
definition for the configure script to actually print any output. FWIW,
I'm running Red Hat Linux 8.0.

The attached patch fixes the problem.

-- 
Pekka

--- ac-helpers/svn-apache.m4.orig 2003-03-03 22:31:57.000000000 +0200
+++ ac-helpers/svn-apache.m4 2003-03-03 23:09:37.000000000 +0200
@@ -40,8 +40,7 @@
 VERSION_OKAY
 #endif],
                 [AC_MSG_RESULT([recent enough])],
- [AC_MSG_ERROR
- ([apache too old: mmn must be at least $HTTPD_WANTED_MMN])])
+ [AC_MSG_ERROR([apache too old: mmn must be at least $HTTPD_WANTED_MMN])])
 
                 if test ! -r $withval/srclib/apr/include/apr.h; then
                         AC_MSG_WARN(Apache 2.0.x is not configured)
@@ -93,8 +92,7 @@
 VERSION_OKAY
 #endif],
         [AC_MSG_RESULT([recent enough])],
- [AC_MSG_ERROR
- ([apache too old: mmn must be at least $HTTPD_WANTED_MMN])])
+ [AC_MSG_ERROR([apache too old: mmn must be at least $HTTPD_WANTED_MMN])])
 
     elif test "$APXS_EXPLICIT" != ""; then
         AC_MSG_ERROR(no - APXS refers to an old version of Apache

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 3 22:22:05 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.