Included address book patch for VCard, JPilot, LDAP.
authorMatch Grun <match@dimensional.com>
Mon, 2 Jul 2001 22:51:33 +0000 (22:51 +0000)
committerMatch Grun <match@dimensional.com>
Mon, 2 Jul 2001 22:51:33 +0000 (22:51 +0000)
configure.in

index 96c31dfadd39161e369fd21cd0aaaa8e6f6c50e9..08f152d61d533597a03002024bdef969fce09b22 100644 (file)
@@ -108,6 +108,34 @@ if test "$ac_cv_disable_compface" = no; then
        AC_CHECK_LIB(compface, uncompface)
 fi
 
+dnl for JPilot support in addressbook
+AC_ARG_ENABLE(jpilot,
+       [  --enable-jpilot         Enable JPilot support [default=no]],
+       [ac_cv_enable_jpilot=$enableval], [ac_cv_enable_jpilot=no])
+
+AC_MSG_CHECKING([whether to use jpilot])
+if test "$ac_cv_enable_jpilot" = yes; then
+       AC_MSG_RESULT(yes)
+       LIBS="$LIBS -lpisock"
+       AC_DEFINE(USE_JPILOT)
+else
+       AC_MSG_RESULT(no)
+fi
+
+dnl for LDAP support in addressbook
+AC_ARG_ENABLE(ldap,
+       [  --enable-ldap         Enable JPilot support [default=no]],
+       [ac_cv_enable_ldap=$enableval], [ac_cv_enable_ldap=no])
+
+AC_MSG_CHECKING([whether to use ldap])
+if test "$ac_cv_enable_ldap" = yes; then
+       AC_MSG_RESULT(yes)
+       LIBS="$LIBS -lldap -llber -lpthread -lresolv"
+       AC_DEFINE(USE_LDAP)
+else
+       AC_MSG_RESULT(no)
+fi
+
 dnl Check for libjconv
 AC_ARG_ENABLE(jconv,
        [  --disable-jconv         Do not use libjconv],