summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Estienne <sebastien.estienne@gmail.com>2006-01-20 20:59:12 +0000
committerSebastien Estienne <sebastien.estienne@gmail.com>2006-01-20 20:59:12 +0000
commit8835db5cfb321e810c316ad263884eee3c76a879 (patch)
treee69f14fc21bbf7214e6f2c05298595cdcfd6de53
parent59a51b43d0a50ce31ab1c43276e3b6005955d211 (diff)
* Support for Mandriva init.d from Oliver Blin
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1087 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r--configure.ac7
-rw-r--r--initscript/Makefile.am4
2 files changed, 9 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 42836e7..e412a2f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -115,13 +115,14 @@ AC_TRY_COMPILE([#include <netinet/in.h>], [
#
# Detecting the linux distribution for specific things like init scripts.
#
-AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of debian, gentoo, archlinux, fedora, darwin, netbsd, freebsd or none]))
+AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of debian, gentoo, archlinux, fedora, mandriva, darwin, netbsd, freebsd or none]))
if test "z$with_distro" = "z"; then
AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")
AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo")
AC_CHECK_FILE(/etc/arch-release,with_distro="archlinux")
AC_CHECK_FILE(/etc/debian_version,with_distro="debian")
AC_CHECK_FILE(/etc/redhat-release,with_distro="fedora")
+ AC_CHECK_FILE(/etc/mandriva-release,with_distro="mandriva")
if test "z$with_distro" = "z"; then
with_distro=`uname -s`
fi
@@ -129,7 +130,7 @@ fi
with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
case $with_distro in
- debian|gentoo|archlinux|suse|fedora|darwin|freebsd|none)
+ debian|gentoo|archlinux|suse|fedora|mandriva|darwin|freebsd|none)
;;
netbsd)
AC_MSG_WARN([Your distribution (${with_distro}) is supported but no init script exist yet! (patches welcome)])
@@ -147,6 +148,7 @@ AM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
AM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
AM_CONDITIONAL(TARGET_ARCHLINUX, test x"$with_distro" = xarchlinux)
AM_CONDITIONAL(TARGET_FEDORA, test x"$with_distro" = xfedora)
+AM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva)
AM_CONDITIONAL(TARGET_DARWIN, test x"$with_distro" = xdarwin)
AM_CONDITIONAL(TARGET_NETBSD, test x"$with_distro" = xnetbsd)
AM_CONDITIONAL(TARGET_FREEBSD, test x"$with_distro" = xfreebsd)
@@ -744,6 +746,7 @@ initscript/gentoo/Makefile
initscript/archlinux/Makefile
initscript/suse/Makefile
initscript/fedora/Makefile
+initscript/mandriva/Makefile
initscript/darwin/Makefile
initscript/freebsd/Makefile
avahi-dnsconfd/Makefile
diff --git a/initscript/Makefile.am b/initscript/Makefile.am
index 5511fe7..dbce3a2 100644
--- a/initscript/Makefile.am
+++ b/initscript/Makefile.am
@@ -39,6 +39,10 @@ if TARGET_FEDORA
SUBDIRS += fedora
endif
+if TARGET_MANDRIVA
+SUBDIRS += mandriva
+endif
+
if TARGET_DARWIN
SUBDIRS += darwin
endif