gnome-user-share r272 - trunk
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-user-share r272 - trunk
- Date: Thu, 27 Nov 2008 15:23:47 +0000 (UTC)
Author: hadess
Date: Thu Nov 27 15:23:47 2008
New Revision: 272
URL: http://svn.gnome.org/viewvc/gnome-user-share?rev=272&view=rev
Log:
2008-11-27 Bastien Nocera <hadess hadess net>
* configure.in:
- detect httpd, apache2 and httpd2 for SUSE and Ubuntu compat
- Better parsing of httpd versions from Vincent Untz
<vuntz gnome org>
- Bail out if the httpd version isn't supported, or badly detected
(Closes: #542513)
Modified:
trunk/ChangeLog
trunk/configure.in
Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in (original)
+++ trunk/configure.in Thu Nov 27 15:23:47 2008
@@ -31,14 +31,33 @@
AC_TYPE_SIZE_T
AC_TYPE_UID_T
-AC_PATH_PROG([HTTPD], [httpd],,
- [$PATH:/usr/sbin])
+AC_ARG_WITH([httpd],
+ [AS_HELP_STRING([--with-httpd],[Specify the binary used for the Apache httpd binary (default: httpd)])],
+ [HTTPD=$withval])
+if test -z "$HTTPD" ; then
+ AC_PATH_PROG([HTTPD], [httpd],,
+ [$PATH:/usr/sbin])
+ if test -z "$HTTPD" ; then
+ # As used in SUSE
+ AC_PATH_PROG([HTTPD], [apache2],,
+ [$PATH:/usr/sbin])
+ fi
+ if test -z "$HTTPD" ; then
+ # As used in Ubuntu
+ AC_PATH_PROG([HTTPD], [httpd2],,
+ [$PATH:/usr/sbin])
+ fi
+fi
-default_httpd_version=`$HTTPD -v | head -1 | sed "s#.*/##" | cut -f 1-2 -d .`
+default_httpd_version=`$HTTPD -v | head -1 | sed "s#^.*Apache/\([^ ]*\).*#\1#" | cut -f 1-2 -d .`
AC_ARG_WITH(httpd-version, [ --with-httpd-version=VERSION Httpd version used.],
HTTPD_VERSION="$withval", HTTPD_VERSION="$default_httpd_version")
AC_SUBST(HTTPD_VERSION)
+
+if test "x$HTTPD_VERSION" != "x2.0" && test "x$HTTPD_VERSION" != "x2.2" ; then
+ AC_MSG_ERROR([Could not detect a supported HTTPD version (2.0 or 2.2)])
+fi
AM_CONDITIONAL(HAVE_AVAHI, false)
AM_CONDITIONAL(HAVE_HOWL, false)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]