mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-22 19:45:54 -04:00
Use AC_SEARCH_LIBS for otr
This commit is contained in:
parent
7e4b1b1dea
commit
50afe7366e
@ -133,12 +133,12 @@ fi
|
|||||||
|
|
||||||
AM_CONDITIONAL([BUILD_OTR3], [false])
|
AM_CONDITIONAL([BUILD_OTR3], [false])
|
||||||
if test "x$enable_otr" = xyes; then
|
if test "x$enable_otr" = xyes; then
|
||||||
AC_CHECK_LIB([otr], [main],
|
AC_SEARCH_LIBS([otrl_init], [otr],
|
||||||
[AM_CONDITIONAL([BUILD_OTR3], [true])],
|
[AM_CONDITIONAL([BUILD_OTR3], [true]) AC_DEFINE([HAVE_LIBOTR], [1], [Have libotr])],
|
||||||
[AC_MSG_ERROR([libotr is required for otr encryption support])])
|
[AC_MSG_ERROR([libotr is required for otr encryption support])])
|
||||||
elif test "x$enable_otr" = x; then
|
elif test "x$enable_otr" = x; then
|
||||||
AC_CHECK_LIB([otr], [main],
|
AC_SEARCH_LIBS([otrl_init], [otr],
|
||||||
[AM_CONDITIONAL([BUILD_OTR3], [true])],
|
[AM_CONDITIONAL([BUILD_OTR3], [true]) AC_DEFINE([HAVE_LIBOTR], [1], [Have libotr])],
|
||||||
[AC_MSG_NOTICE([libotr not found, otr entryption support not enabled])])
|
[AC_MSG_NOTICE([libotr not found, otr entryption support not enabled])])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user