X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=configure.in;h=77b90d5c50576e8cc38687ff811878e2c54b3805;hb=31119a15bb2cd5f2013148341fc95b510fa7df15;hp=23ee9d5d0cf8db0fe536a46b7e2262d904777455;hpb=882b4cc1460f7495d637aebf30fddade0e9aae9c;p=doldaconnect.git diff --git a/configure.in b/configure.in index 23ee9d5..77b90d5 100644 --- a/configure.in +++ b/configure.in @@ -27,7 +27,6 @@ AC_CHECK_LIB(z, deflate, [:], AC_MSG_ERROR([*** must have zlib])) AC_CHECK_LIB(bz2, BZ2_bzWriteOpen, [:], AC_MSG_ERROR([*** must have bzlib])) AC_CHECK_LIB(gdbm, gdbm_open, [:], AC_MSG_ERROR([*** must have gdbm])) -extlibs= experimental=no DOLDA_AC_GROUP([Checking optional libraries]) @@ -57,6 +56,10 @@ DOLDA_PKG([HAS_GTK2], [test "$with_gtk2" = no && HAS_GTK2=no], if test "$with_gtk2" = yes -a "$HAS_GTK2" = no; then AC_MSG_ERROR([*** cannot find GTK2 on this system]) fi +DOLDA_PKG([HAS_GTK2SI], [test "$HAS_GTK2" = no && HAS_GTK2SI=no], + [DOLDA_CHECK_FUNC(gtk_status_icon_new_from_pixbuf, [], [HAS_GTK2SI=no], $GTK2_CFLAGS, $GTK2_LIBS)]) +DOLDA_PKG([HAS_GTK2ASS], [test "$HAS_GTK2" = no && HAS_GTK2ASS=no], + [DOLDA_CHECK_FUNC(gtk_assistant_new, [], [HAS_GTK2ASS=no], $GTK2_CFLAGS, $GTK2_LIBS)]) # libxml2 check AC_ARG_WITH(libxml2, [ --with-libxml2 Enable libxml2 support]) @@ -101,12 +104,12 @@ AM_CONDITIONAL(CLI_GTK2, test "$enable_gtk2ui" = yes) # Dolconf check DOLDA_ENABLE(dolconf, [ --enable-dolconf Build the configuration helper], yes, - [HAS_GTK2]) + [HAS_GTK2], [HAS_GTK2ASS]) AM_CONDITIONAL(DOLCONF, test "$enable_dolconf" = yes) # GUI shell check DOLDA_ENABLE(guishell, [ --enable-guishell Build the GUI shell programs], yes, - [HAS_GTK2]) + [HAS_GTK2], [HAS_GTK2SI]) AM_CONDITIONAL(GUISHELL, test "$enable_guishell" = yes) # Gnome applet check @@ -138,12 +141,12 @@ if test -z "$gaimplugin_msg"; then fi # Guile check (XXX: Shouldn't have to be enabled manually) -guile_msg=no +enable_guile=no if test "$with_guile" = yes; then GUILE_FLAGS - extlibs="$extlibs guile" - guile_msg=yes + enable_guile=yes fi +AM_CONDITIONAL(ELIB_GUILE, test "$enable_guile" = yes) # Check whether to install baseconv AC_ARG_ENABLE(baseconv, [ --enable-baseconv Install the baseconv utility]) @@ -203,6 +206,8 @@ AC_CHECK_MEMBER(struct sockaddr_in6.sin6_family, [ AC_DEFINE(HAVE_IPV6) ], , [#i AH_TEMPLATE(HAVE_RESOLVER, [define if your system supports the res_* functions to fetch DNS RRs]) AC_CHECK_LIB(resolv, res_query, [ AC_DEFINE(HAVE_RESOLVER) LDFLAGS="$LDFLAGS -lresolv" ]) +AC_CHECK_LIB(resolv, __res_query, [ AC_DEFINE(HAVE_RESOLVER) + LDFLAGS="$LDFLAGS -lresolv" ]) # Unix credentials selector AH_TEMPLATE(UNIX_AUTH_STYLE, [undefine for no Unix auth, 1 for Linux style, 2 for BSD style]) @@ -246,7 +251,6 @@ else fi AC_DEFINE_UNQUOTED([RELEASEINFO], ["$relinfo"]) -AC_SUBST([extlibs]) AC_OUTPUT([ Makefile autopackage/Makefile @@ -270,6 +274,7 @@ config/Makefile config/cmd/Makefile config/util/Makefile contrib/Makefile +contrib/doldaconnect.spec share/Makefile autopackage/doldacond.apspec autopackage/dolcon.apspec @@ -287,7 +292,7 @@ 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: $guile_msg" +echo " Guile extension library: $enable_guile" echo " GNOME transfer applet: $enable_gnomeapplet" echo " Gaim chat plugin: $gaimplugin_msg" echo