aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2011-03-18 00:57:14 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2011-03-18 00:57:14 +0000
commit417002e1714b97cc3073e3968ee0cee3181dc96c (patch)
treecb48a2257695cab1f90bfbe40b340823d98e49ce /configure
parentf68fd5f0a37883438a13b8043489543f01b78c35 (diff)
systemd stuff (bug #738)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure b/configure
index 0728146a..77dc560a 100755
--- a/configure
+++ b/configure
@@ -15,6 +15,7 @@ datadir='$prefix/share/bitlbee/'
config='/var/lib/bitlbee/'
plugindir='$prefix/lib/bitlbee/'
includedir='$prefix/include/bitlbee/'
+systemdsystemunitdir=''
libevent='/usr/'
pidfile='/var/run/bitlbee.pid'
ipcsocket='/var/run/bitlbee.sock'
@@ -61,6 +62,7 @@ Option Description Default
--mandir=... $mandir
--datadir=... $datadir
--plugindir=... $plugindir
+--systemdsystemunitdir=... $systemdsystemunitdir
--pidfile=... $pidfile
--config=... $config
--ipcsocket=... $ipcsocket
@@ -486,6 +488,17 @@ else
fi;
fi
+if [ -z "$systemdsystemunitdir" ]; then
+ if $PKG_CONFIG --exists systemd; then
+ systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
+ fi
+fi
+if [ -n "$systemdsystemunitdir" ]; then
+ if [ "$systemdsystemunitdir" != "no" ]; then
+ echo "SYSTEMDSYSTEMUNITDIR=$systemdsystemunitdir" >> Makefile.settings
+ fi
+fi
+
if [ "$gcov" = "1" ]; then
echo "CFLAGS+=--coverage" >> Makefile.settings
echo "EFLAGS+=--coverage" >> Makefile.settings
@@ -726,6 +739,12 @@ else
echo ' Off-the-Record (OTR) Messaging disabled.'
fi
+if [ -n "$systemdsystemunitdir" ]; then
+ echo ' systemd enabled.'
+else
+ echo ' systemd disabled.'
+fi
+
echo ' Using event handler: '$events
echo ' Using SSL library: '$ssl
#echo ' Building with these storage backends: '$STORAGES