summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-16 21:12:12 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-16 21:15:46 +0200
commita7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0 (patch)
tree47c0180d57d94c6e6bbaba3b4929fc6a20516f0a /configure.ac
parent70449379def39da2a3efbd7c7da27a4745702b08 (diff)
units: automatically generated syslog.target
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac39
1 files changed, 20 insertions, 19 deletions
diff --git a/configure.ac b/configure.ac
index 691d970009..850987d7bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -164,43 +164,43 @@ case $with_distro in
fedora)
SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
SYSTEM_SYSVRCND_PATH=/etc/rc.d
- special_dbus_service=messagebus.service
- special_syslog_service=rsyslog.service
+ SPECIAL_DBUS_SERVICE=messagebus.service
+ SPECIAL_SYSLOG_SERVICE=rsyslog.service
AC_DEFINE(TARGET_FEDORA, [], [Target is Fedora/RHEL])
;;
suse)
SYSTEM_SYSVINIT_PATH=/etc/init.d
SYSTEM_SYSVRCND_PATH=/etc/init.d
- special_dbus_service=dbus.service
- special_syslog_service=syslog.service
+ SPECIAL_DBUS_SERVICE=dbus.service
+ SPECIAL_SYSLOG_SERVICE=syslog.service
AC_DEFINE(TARGET_SUSE, [], [Target is OpenSUSE/SLES])
;;
debian)
SYSTEM_SYSVINIT_PATH=/etc/init.d
SYSTEM_SYSVRCND_PATH=/etc
- special_dbus_service=dbus.service
- special_syslog_service=rsyslog.service
+ SPECIAL_DBUS_SERVICE=dbus.service
+ SPECIAL_SYSLOG_SERVICE=rsyslog.service
AC_DEFINE(TARGET_DEBIAN, [], [Target is Debian/Ubuntu])
;;
arch)
SYSTEM_SYSVINIT_PATH=/etc/rc.d
SYSTEM_SYSVRCND_PATH=/etc
- special_dbus_service=dbus.service
- special_syslog_service=syslog-ng.service
+ SPECIAL_DBUS_SERVICE=dbus.service
+ SPECIAL_SYSLOG_SERVICE=syslog-ng.service
AC_DEFINE(TARGET_ARCH, [], [Target is ArchLinux])
;;
gentoo)
SYSTEM_SYSVINIT_PATH=/etc/init.d
SYSTEM_SYSVRCND_PATH=/etc
- special_dbus_service=dbus.service
- special_syslog_service=syslog-ng.service
+ SPECIAL_DBUS_SERVICE=dbus.service
+ SPECIAL_SYSLOG_SERVICE=syslog-ng.service
AC_DEFINE(TARGET_GENTOO, [], [Target is Gentoo])
;;
slackware)
SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
SYSTEM_SYSVRCND_PATH=/etc/rc.d
- special_dbus_service=messagebus.service
- special_syslog_service=syslog.service
+ SPECIAL_DBUS_SERVICE=messagebus.service
+ SPECIAL_SYSLOG_SERVICE=syslog.service
AC_DEFINE(TARGET_SLACKWARE, [], [Target is Slackware])
;;
other)
@@ -233,17 +233,19 @@ AC_ARG_WITH([sysvrcd-path],
AC_ARG_WITH([dbus-service],
[AS_HELP_STRING([--with-dbus-service=PATH],
[Specify the name of the special DBus service @<:@default=based on distro@:>@])],
- [special_dbus_service="$withval"],
+ [SPECIAL_DBUS_SERVICE="$withval"],
[])
AC_ARG_WITH([syslog-service],
[AS_HELP_STRING([--with-syslog-service=PATH],
[Specify the name of the special syslog service @<:@default=based on distro@:>@])],
- [special_syslog_service="$withval"],
+ [SPECIAL_SYSLOG_SERVICE="$withval"],
[])
AC_SUBST(SYSTEM_SYSVINIT_PATH)
AC_SUBST(SYSTEM_SYSVRCND_PATH)
+AC_SUBST(SPECIAL_DBUS_SERVICE)
+AC_SUBST(SPECIAL_SYSLOG_SERVICE)
AM_CONDITIONAL(TARGET_FEDORA, test x"$with_distro" = xfedora)
AM_CONDITIONAL(TARGET_SUSE, test x"$with_distro" = xsuse)
@@ -252,8 +254,8 @@ AM_CONDITIONAL(TARGET_ARCH, test x"$with_distro" = xarch)
AM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
AM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware)
-AC_DEFINE_UNQUOTED(SPECIAL_DBUS_SERVICE, ["$special_dbus_service"], [D-Bus service name])
-AC_DEFINE_UNQUOTED(SPECIAL_SYSLOG_SERVICE, ["$special_syslog_service"], [syslog service name])
+AC_DEFINE_UNQUOTED(SPECIAL_DBUS_SERVICE, ["$SPECIAL_DBUS_SERVICE"], [D-Bus service name])
+AC_DEFINE_UNQUOTED(SPECIAL_SYSLOG_SERVICE, ["$SPECIAL_SYSLOG_SERVICE"], [Syslog service name])
AC_ARG_WITH([udevrulesdir],
AS_HELP_STRING([--with-udevrulesdir=DIR], [Diectory for udev rules]),
@@ -261,7 +263,6 @@ AC_ARG_WITH([udevrulesdir],
[with_udevrulesdir=/lib/udev/rules.d])
AC_SUBST([udevrulesdir], [$with_udevrulesdir])
-
AC_OUTPUT([Makefile])
echo "
@@ -270,8 +271,8 @@ echo "
Distribution: ${with_distro}
SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
- Syslog service: ${special_syslog_service}
- D-Bus service: ${special_dbus_service}
+ Syslog service: ${SPECIAL_SYSLOG_SERVICE}
+ D-Bus service: ${SPECIAL_DBUS_SERVICE}
Gtk: ${have_gtk}
udev rules dir: ${with_udevrulesdir}
"