X-Git-Url: http://dolda2000.com/gitweb/?p=doldaconnect.git;a=blobdiff_plain;f=configure.in;h=4d103dfaa8293c36965c9877a5984a8308313b2a;hp=e0fd6eef190efcc518ca49025ea09e98a1f22066;hb=HEAD;hpb=be11f9941bebe6659f95f71460470b0eb6d9a105 diff --git a/configure.in b/configure.in index e0fd6ee..4d103df 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,8 @@ -AC_INIT(daemon/main.c) -AM_INIT_AUTOMAKE([doldaconnect], [1.2]) +AC_INIT([doldaconnect], [1.4]) +AC_CONFIG_SRCDIR(daemon/main.c) +AM_INIT_AUTOMAKE AM_CONFIG_HEADER(config.h) +AC_USE_SYSTEM_EXTENSIONS DOLDA_AC_GROUP([Checking build chain]) @@ -83,6 +85,21 @@ if test "$HAS_LIBNOTIFY" = yes; then AC_DEFINE(HAVE_NOTIFY) fi +# libattr check +AH_TEMPLATE(HAVE_XATTR, [define to compile support for extended attributes]) +AC_ARG_WITH(xattr, [ --with-xattr Enable XATTR support]) +DOLDA_PKG([HAS_XATTR], [test "$with_xattr" = no && HAS_XATTR=no], + [AC_CHECK_LIB(attr, getxattr, [:], [HAS_XATTR=no])], + [DOLDA_CHECK_HEADER(attr/xattr.h, [], [HAS_XATTR=no])], + [XATTR_LIBS=-lattr]) +if test "$with_xattr" = yes -a "$HAS_XATTR" = no; then + AC_MSG_ERROR([*** cannot find xattr support on this system]) +fi +if test "$HAS_XATTR" = yes; then + AC_DEFINE(HAVE_XATTR) +fi +AC_SUBST(XATTR_LIBS) + # libpanelapplet check DOLDA_PKG([HAS_LIBPANELAPPLET], [PKG_CHECK_MODULES(PANELAPPLET, libpanelapplet-2.0, [], [HAS_LIBPANELAPPLET=no])]) @@ -97,6 +114,14 @@ DOLDA_ENABLE(daemon, [ --enable-daemon Enable the daemon], yes, [HAS_LIBZ HAS_LIBBZ2 HAS_GDBM]) AM_CONDITIONAL(DAEMON, test "$enable_daemon" = yes) +# ADC check +DOLDA_ENABLE(fnetadc, [ --enable-fnetadc Enable ADC code (experimental)], no, + [enable_daemon]) +if test "$enable_fnetadc" = yes; then + experimental=yes +fi +AM_CONDITIONAL(ADC, test "$enable_fnetadc" = yes) + # Gtk GUI check DOLDA_ENABLE(gtk2ui, [ --enable-gtk2ui Enable the GTK2 user interface], yes, [HAS_GTK2 HAS_LIBBZ2 HAS_LIBXML]) @@ -113,26 +138,21 @@ DOLDA_ENABLE(guishell, [ --enable-guishell Build the GUI shell programs], AM_CONDITIONAL(GUISHELL, test "$enable_guishell" = yes) # Gnome applet check -DOLDA_ENABLE(gnomeapplet, [ --enable-gnomeapplet Enable GNOME transfer applet (experimental)], no, +DOLDA_ENABLE(gnomeapplet, [ --enable-gnomeapplet Enable GNOME transfer applet], no, [HAS_LIBPANELAPPLET]) -if test "$enable_gnomeapplet" = yes; then - experimental=yes -fi AM_CONDITIONAL(CLI_GNOMEAPPLET, test "$enable_gnomeapplet" = yes) # Gaim plugin check gaimplugin_msg= -DOLDA_ENABLE(gaimplugin, [ --enable-gaimplugin Enable Gaim chat plugin (experimental)], no, +DOLDA_ENABLE(gaimplugin, [ --enable-gaimplugin Enable Gaim chat plugin], no, [HAS_LIBGAIM]) if test "$enable_gaimplugin" = yes; then - experimental=yes gaimplugin_msg="Gaim $gaimplugin_msg" fi AM_CONDITIONAL(CLI_GAIM, test "$enable_gaimplugin" = yes) -DOLDA_ENABLE(pidginplugin, [ --enable-pidginplugin Enable Pidgin chat plugin (experimental)], no, +DOLDA_ENABLE(pidginplugin, [ --enable-pidginplugin Enable Pidgin chat plugin], no, [HAS_LIBPURPLE]) if test "$enable_pidginplugin" = yes; then - experimental=yes gaimplugin_msg="Pidgin $gaimplugin_msg" fi AM_CONDITIONAL(CLI_PIDGIN, test "$enable_pidginplugin" = yes) @@ -174,7 +194,8 @@ if test "$with_krb5" != no -a "$HAS_KRB5" = yes; then AC_DEFINE(HAVE_KRB5) krb_msg=yes fi -AC_SUBST([KRB5_LIBS KRB5_CFLAGS]) +AC_SUBST(KRB5_LIBS) +AC_SUBST(KRB5_CFLAGS) # Linux keyring AH_TEMPLATE(HAVE_KEYUTILS, [define if your system supports the Linux keyring functions]) @@ -286,15 +307,16 @@ autopackage/guishell.apspec echo echo "Dolda Connect has been configured with the following settings:" echo -echo " Daemon: $enable_daemon" -echo " PAM support: $pam_msg" -echo " Kerberos 5 support: $krb_msg" -echo " GTK2 user interface: $enable_gtk2ui" -echo " Dolconf configurator: $enable_dolconf" -echo " GUI shell: $enable_guishell" -echo " Guile extension library: $enable_guile" -echo " GNOME transfer applet: $enable_gnomeapplet" -echo " Gaim chat plugin: $gaimplugin_msg" +echo " Daemon: $enable_daemon" +echo " PAM support: $pam_msg" +echo " Kerberos 5 support: $krb_msg" +echo " ADC support (unfinished): $enable_fnetadc" +echo " GTK2 user interface: $enable_gtk2ui" +echo " Dolconf configurator: $enable_dolconf" +echo " GUI shell: $enable_guishell" +echo " Guile extension library: $enable_guile" +echo " GNOME transfer applet: $enable_gnomeapplet" +echo " Gaim chat plugin: $gaimplugin_msg" echo if tput bold >/dev/null 2>&1 && tty <&2 >/dev/null 2>&1; then