summaryrefslogtreecommitdiffstats
path: root/configure.in.in
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2014-10-03 05:29:56 +0200
committerSlávek Banko <slavek.banko@axis.cz>2014-10-03 05:29:56 +0200
commitec7b81f4205abd38d6feaa45be397a0eaf797372 (patch)
treeb1cab477b4342a4e51c6703f371912ca82e40bae /configure.in.in
parente03192f5e249ab49dbd14672fb99bb258ef67299 (diff)
downloadkopete-otr-ec7b81f4205abd38d6feaa45be397a0eaf797372.tar.gz
kopete-otr-ec7b81f4205abd38d6feaa45be397a0eaf797372.zip
Fix libotr3 detection
Fix FTBFS with libotr3
Diffstat (limited to 'configure.in.in')
-rw-r--r--configure.in.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/configure.in.in b/configure.in.in
index 55b59af..f3e1086 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -24,8 +24,9 @@ AC_CHECK_HEADERS([libotr/version.h],,
m4_pattern_allow([AM_PATH_LIBOTR])
-AM_PATH_LIBOTR(4.0.0,AC_DEFINE_UNQUOTED(HAVE_LIBOTR_0400, 1, [Defines if your system has libotr greater than or equal to v4.0.0]),)
-if test -n "$HAVE_LIBOTR_0400"; then
- AM_PATH_LIBOTR(3.1.0,,AC_MSG_ERROR(libotr 3.1.0 or newer is required.))
-fi
-AC_SUBST(HAVE_LIBOTR_0400) \ No newline at end of file
+AM_PATH_LIBOTR(4.0.0,
+ [ AC_DEFINE([HAVE_LIBOTR_0400], 1, [Defines if your system has libotr greater than or equal to v4.0.0]) ],
+ [ AM_PATH_LIBOTR(3.1.0,
+ [ AC_DEFINE([HAVE_LIBOTR_0310], 1, [Define if you use libotr3]) ],
+ [ AC_MSG_ERROR(libotr 3.1.0 or newer is required.) ] )
+ ])