with_ldap=no
AC_CHECK_LIB([ldap], [ldap_initialize], with_ldap=yes)
-if test "$with_ldap" = "yes"
+if test "x$with_ldap" = "xyes"
then
AC_SUBST(LIBLDAP_LIBS, [" -lldap"])
+else
+ echo "Libldap is mandatory.";
+ exit 1;
+fi
+
+with_ssh=no
+AC_CHECK_LIB([ssh], [ssh_new], with_ssh=yes)
+
+if test "x$with_ssh" = "xyes"
+then
+ AC_SUBST(LIBSSH_LIBS, [" -lssh"])
+else
+ echo "Libssh is mandatory.";
+ exit 1;
fi
PKG_CHECK_MODULES(LIBCONFI, [libconfi >= 0.0.2], [AC_DEFINE(HAVE_LIBCONFI, [1], [libconfi is present]), have_libconfi=yes], have_libconfi=no)
AM_CPPFLAGS = $(LIBAUTESMBLDAP_CFLAGS) \
$(LIBLDAP_CFLAGS) \
+ $(LIBSSH_CFLAGS) \
$(LIBCONFI_CFLAGS) \
-DGUIDIR=\""$(guidir)"\" \
-DFORMDIR=\""$(formdir)"\"
LIBS = $(LIBAUTESMBLDAP_LIBS) \
$(LIBLDAP_LIBS) \
+ $(LIBSSH_LIBS) \
$(LIBCONFI_LIBS)
libaute_pluginsdir = $(libdir)/libaute/plugins