mirror of
https://github.com/tmate-io/tmate.git
synced 2025-06-20 01:27:45 +02:00
detect libssh/msgpack during ./configure
This commit is contained in:
parent
915b3a0255
commit
1670d15e8a
@ -240,8 +240,3 @@ endif
|
|||||||
if NO_B64_NTOP
|
if NO_B64_NTOP
|
||||||
nodist_tmate_SOURCES += compat/b64_ntop.c
|
nodist_tmate_SOURCES += compat/b64_ntop.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
tmate_LDADD = \
|
|
||||||
-lssh \
|
|
||||||
-lmsgpackc
|
|
||||||
|
|
||||||
|
29
configure.ac
29
configure.ac
@ -147,6 +147,35 @@ if test "x$found_curses" = xno; then
|
|||||||
AC_MSG_ERROR("curses not found")
|
AC_MSG_ERROR("curses not found")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(
|
||||||
|
MSGPACK,
|
||||||
|
msgpack,
|
||||||
|
[
|
||||||
|
CPPFLAGS="$MSGPACK_CFLAGS $CPPFLAGS"
|
||||||
|
LIBS="$MSGPACK_LIBS $LIBS"
|
||||||
|
found_msgpack=yes
|
||||||
|
],
|
||||||
|
found_msgpack=no
|
||||||
|
)
|
||||||
|
if test "x$found_msgpack" = xno; then
|
||||||
|
AC_MSG_ERROR("msgpack not found")
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(
|
||||||
|
LIBSSH,
|
||||||
|
libssh,
|
||||||
|
[
|
||||||
|
CPPFLAGS="$LIBSSH_CFLAGS $CPPFLAGS"
|
||||||
|
LIBS="$LIBSSH_LIBS $LIBS"
|
||||||
|
found_libssh=yes
|
||||||
|
],
|
||||||
|
found_libssh=no
|
||||||
|
)
|
||||||
|
if test "x$found_libssh" = xno; then
|
||||||
|
AC_MSG_ERROR("libssh not found")
|
||||||
|
fi
|
||||||
|
|
||||||
# Check for b64_ntop.
|
# Check for b64_ntop.
|
||||||
AC_MSG_CHECKING(for b64_ntop)
|
AC_MSG_CHECKING(for b64_ntop)
|
||||||
AC_TRY_LINK(
|
AC_TRY_LINK(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user