aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2013-12-07 12:49:28 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2013-12-07 12:49:28 +0000
commita8aa823a772724abd7c61ee457b208afa44e4e7e (patch)
tree63e96386db1e7e589da317f62b3f9c562a9ec491 /configure
parent434a2d0fdc34d9dd70b6001220a8597634efe65a (diff)
Ugly: Bogus dependency on libotr2-dev, but adding a warning to the configure
script that this actually won't work. This because I can't figure out how to make a source dependency conditional on whether a certain binary packages is going to be built. It's kind of okay since libotr2-dev is unavailable on new systems anyway.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index 1e3a2421..4ba70291 100755
--- a/configure
+++ b/configure
@@ -511,6 +511,12 @@ elif [ "$otr" = "plugin" ]; then
echo "CFLAGS+=-I${otrprefix}/include" >> Makefile.settings
echo 'OTR_PI=otr.so' >> Makefile.settings
fi
+if [ "$otr" != 0 ] && ! pkg-config libotr --atleast-version=4.0; then
+ echo
+ echo 'WARNING: Your libotr seems to be old. BitlBee now needs at least libotr 4.0.'
+ # Not hard-failing because the code above doesn't use pkg-config, so who knows
+ # what's true at this point...
+fi
if [ "$skype" = "1" -o "$skype" = "plugin" ]; then
if [ "$arch" = "Darwin" ]; then