From 8835db5cfb321e810c316ad263884eee3c76a879 Mon Sep 17 00:00:00 2001 From: Sebastien Estienne Date: Fri, 20 Jan 2006 20:59:12 +0000 Subject: [PATCH] * Support for Mandriva init.d from Oliver Blin git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1087 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- configure.ac | 7 +++++-- initscript/Makefile.am | 4 ++++ 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 ], [ # # 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 -- 2.39.5