diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 90 |
1 files changed, 61 insertions, 29 deletions
diff --git a/configure.ac b/configure.ac index 254ee9f01f..032cfe5c10 100644 --- a/configure.ac +++ b/configure.ac @@ -25,15 +25,18 @@ AM_INIT_AUTOMAKE([gnu 1.9]) AC_CONFIG_HEADERS(config.h) AC_CONFIG_SRCDIR(README) +# User Documentation +GNOME_DOC_INIT + +# Developer Documentation +GTK_DOC_CHECK(1.9) + dnl This is for the autoconf tests only - it set's the language we use AC_LANG(C) # Automake 1.11 - Silent Build Rules m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) -# Gnome Doc Initialization -GNOME_DOC_INIT - # Some requirements have versioned package names # XXX In the spirit of getting rid of versioned # files, can we please drop these suffixes? @@ -54,6 +57,7 @@ m4_define([libgnomecanvas_minimum_version], [2.0.0]) # XXX Just a Guess m4_define([libgnomeui_minimum_version], [2.0.0]) # XXX Just a Guess m4_define([libxml_minimum_version], [2.7.3]) m4_define([shared_mime_info_minimum_version], [0.22]) +m4_define([unique_minimum_version], [1.0.8]) # Optional Packages m4_define([dbus_minimum_version], [0.74]) @@ -173,16 +177,14 @@ case "$host" in SA_JUNK_PLUGIN='' BF_JUNK_PLUGIN='' DL_LIB='' - SOFTOKN3_LIB='' HAL_REQUIREMENT='' ;; *) os_win32=no - NO_UNDEFINED='' + NO_UNDEFINED='-Wl,-no-undefined' SOEXT='.so' SA_JUNK_PLUGIN=sa-junk-plugin BF_JUNK_PLUGIN=bogo-junk-plugin DL_LIB='-ldl' - SOFTOKN3_LIB='-lsoftokn3' HAL_REQUIREMENT='hal' ;; esac @@ -191,6 +193,9 @@ AM_CONDITIONAL(OS_WIN32, [test $os_win32 = yes]) AC_SUBST(NO_UNDEFINED) AC_SUBST(SOEXT) +MATH_LIB="-lm" +AC_SUBST(MATH_LIB) + if test "$os_win32" = "yes"; then AC_CHECK_TOOL(WINDRES, windres, :) else @@ -212,7 +217,8 @@ PKG_CHECK_MODULES([GNOME_PLATFORM], libgnomecanvas-2.0 >= libgnomecanvas_minimum_version libgnomeui-2.0 >= libgnomeui_minimum_version libxml-2.0 >= libxml_minimum_version - shared-mime-info >= shared_mime_info_minimum_version]) + shared-mime-info >= shared_mime_info_minimum_version + unique-1.0 >= unique_minimum_version]) AC_SUBST(GNOME_PLATFORM_CFLAGS) AC_SUBST(GNOME_PLATFORM_LIBS) @@ -226,9 +232,8 @@ PKG_CHECK_MODULES([EVOLUTION_DATA_SERVER], libgdata-$EDS_PACKAGE >= eds_minimum_version libgdata-google-$EDS_PACKAGE >= eds_minimum_version]) - dnl ****************** -dnl User documentation +dnl User Documentation dnl ****************** AC_MSG_CHECKING([whether to build user documentation]) AC_ARG_WITH([help], @@ -1337,7 +1342,7 @@ dnl Utility macro to set compiler flags for a specific lib. dnl EVO_SET_COMPILE_FLAGS(VAR-PREFIX, DEPS, EXTRA-CFLAGS, EXTRA-LIBS) AC_DEFUN([EVO_SET_COMPILE_FLAGS], [ PKG_CHECK_MODULES([$1], [$2]) - $1_CFLAGS="[$]$1_CFLAGS \$(WERROR) $3" + $1_CFLAGS="[$]$1_CFLAGS $3" $1_LIBS="[$]$1_LIBS $4" ]) @@ -1498,11 +1503,13 @@ EVO_SET_COMPILE_FLAGS(E_UTIL, libbonoboui-2.0 libglade-2.0 libgnomeui-2.0 libeda AC_SUBST(E_UTIL_CFLAGS) AC_SUBST(E_UTIL_LIBS) +E_UTIL_LIBS="$E_UTIL_LIBS $MATH_LIB" + EVO_SET_COMPILE_FLAGS(TZDIALOG, libecal-$EDS_PACKAGE, $GNOME_PLATFORM_CFLAGS, $GNOME_PLATFORM_LIBS) AC_SUBST(TZDIALOG_CFLAGS) AC_SUBST(TZDIALOG_LIBS) -EVO_SET_COMPILE_FLAGS(E_WIDGETS, libbonoboui-2.0 gio-2.0 gconf-2.0 gobject-2.0 libgnomeui-2.0 libglade-2.0 libedataserverui-$EDS_PACKAGE libedataserver-$EDS_PACKAGE) +EVO_SET_COMPILE_FLAGS(E_WIDGETS, libbonoboui-2.0 gio-2.0 gconf-2.0 gobject-2.0 libgnomeui-2.0 libglade-2.0 libedataserverui-$EDS_PACKAGE libedataserver-$EDS_PACKAGE gtkhtml-editor) AC_SUBST(E_WIDGETS_CFLAGS) AC_SUBST(E_WIDGETS_LIBS) @@ -1515,14 +1522,14 @@ AC_SUBST(LIBFILTER_CFLAGS) AC_SUBST(LIBFILTER_LIBS) dnl --- evolution (shell) flags -EVO_SET_COMPILE_FLAGS(SHELL, libgnomeui-2.0 libbonoboui-2.0 libglade-2.0 gio-2.0 gconf-2.0 gobject-2.0 libgtkhtml-$GTKHTML_PACKAGE) +EVO_SET_COMPILE_FLAGS(SHELL, libgnomeui-2.0 libbonoboui-2.0 libglade-2.0 gio-2.0 gconf-2.0 gobject-2.0 libgtkhtml-$GTKHTML_PACKAGE unique-1.0 libedataserverui-$EDS_PACKAGE) AC_SUBST(SHELL_CFLAGS) AC_SUBST(SHELL_LIBS) dnl --- evolution-addressbook flags -EVOLUTION_ADDRESSBOOK_DEPS="libbonoboui-2.0 libglade-2.0 libgnomeui-2.0 gio-2.0 gconf-2.0 gobject-2.0 libgtkhtml-$GTKHTML_PACKAGE libebook-$EDS_PACKAGE libedataserverui-$EDS_PACKAGE camel-$EDS_PACKAGE gtkhtml-editor" +EVOLUTION_ADDRESSBOOK_DEPS="libbonoboui-2.0 libglade-2.0 libgnomeui-2.0 gio-2.0 gconf-2.0 gobject-2.0 libgtkhtml-$GTKHTML_PACKAGE libebook-$EDS_PACKAGE libedataserverui-$EDS_PACKAGE camel-$EDS_PACKAGE gtkhtml-editor unique-1.0" EVO_SET_COMPILE_FLAGS(EVOLUTION_ADDRESSBOOK, $EVOLUTION_ADDRESSBOOK_DEPS) AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS) @@ -1551,7 +1558,7 @@ EVO_SET_COMPILE_FLAGS(LIBSOUP, libsoup-2.4 >= 2.3.0) AC_SUBST(LIBSOUP_CFLAGS) AC_SUBST(LIBSOUP_LIBS) -EVO_SET_COMPILE_FLAGS(EVOLUTION_CALENDAR, libgnomeui-2.0 libbonoboui-2.0 libglade-2.0 gio-2.0 gconf-2.0 gobject-2.0 libgtkhtml-$GTKHTML_PACKAGE libebook-$EDS_PACKAGE libecal-$EDS_PACKAGE libedataserverui-$EDS_PACKAGE libebackend-$EDS_PACKAGE $HAL_REQUIREMENT $libnotify gtkhtml-editor libgdata-$EDS_PACKAGE libgdata-google-$EDS_PACKAGE) +EVO_SET_COMPILE_FLAGS(EVOLUTION_CALENDAR, libgnomeui-2.0 libbonoboui-2.0 libglade-2.0 gio-2.0 gconf-2.0 gobject-2.0 libgtkhtml-$GTKHTML_PACKAGE libebook-$EDS_PACKAGE libecal-$EDS_PACKAGE libedataserverui-$EDS_PACKAGE libebackend-$EDS_PACKAGE $HAL_REQUIREMENT $libnotify gtkhtml-editor libgdata-$EDS_PACKAGE libgdata-google-$EDS_PACKAGE unique-1.0) AC_SUBST(EVOLUTION_CALENDAR_CFLAGS) AC_SUBST(EVOLUTION_CALENDAR_LIBS) @@ -1563,7 +1570,7 @@ fi dnl --- evolution-mail flags -EVO_SET_COMPILE_FLAGS(EVOLUTION_MAIL, camel-provider-$EDS_PACKAGE libgnomeui-2.0 libbonoboui-2.0 libglade-2.0 gio-2.0 gconf-2.0 gobject-2.0 libgtkhtml-$GTKHTML_PACKAGE gtkhtml-editor bonobo-activation-2.0 $mozilla_nss libebook-$EDS_PACKAGE libedataserverui-$EDS_PACKAGE) +EVO_SET_COMPILE_FLAGS(EVOLUTION_MAIL, camel-provider-$EDS_PACKAGE libgnomeui-2.0 libbonoboui-2.0 libglade-2.0 gio-2.0 gconf-2.0 gobject-2.0 libgtkhtml-$GTKHTML_PACKAGE gtkhtml-editor bonobo-activation-2.0 $mozilla_nss libebook-$EDS_PACKAGE libedataserverui-$EDS_PACKAGE unique-1.0) AC_SUBST(EVOLUTION_MAIL_CFLAGS) AC_SUBST(EVOLUTION_MAIL_LIBS) @@ -1586,10 +1593,16 @@ fi dnl --- evolution-test flags -EVO_SET_COMPILE_FLAGS(EVOLUTION_TEST, libgnomeui-2.0 libbonoboui-2.0) +EVO_SET_COMPILE_FLAGS(EVOLUTION_TEST, gtk+-2.0 gconf-2.0 libxml-2.0 unique-1.0) AC_SUBST(EVOLUTION_TEST_CFLAGS) AC_SUBST(EVOLUTION_TEST_LIBS) +dnl --- eggsmclient flags + +EVO_SET_COMPILE_FLAGS(EGG_SMCLIENT, gtk+-2.0) +AC_SUBST(EGG_SMCLIENT_CFLAGS) +AC_SUBST(EGG_SMCLIENT_LIBS) + dnl ******************* dnl Special directories dnl ******************* @@ -1613,6 +1626,9 @@ AC_SUBST(privincludedir) componentdir="$privlibdir/components" AC_SUBST(componentdir) +moduledir="$privlibdir/modules" +AC_SUBST(moduledir) + idldir='${datadir}'/idl/evolution-$BASE_VERSION AC_SUBST(idldir) @@ -1712,20 +1728,37 @@ AC_ARG_ENABLE([plugins], [enable_plugins="$enableval"],[enable_plugins=all]) dnl Add any new plugins here -plugins_base_always="calendar-file calendar-http $CALENDAR_WEATHER itip-formatter plugin-manager default-source addressbook-file startup-wizard mark-all-read groupwise-features groupwise-account-setup mail-account-disable publish-calendar caldav imap-features google-account-setup webdav-account-setup" +plugins_base_always="calendar-file calendar-http $CALENDAR_WEATHER itip-formatter plugin-manager default-source addressbook-file startup-wizard mark-all-read groupwise-features groupwise-account-setup publish-calendar caldav imap-features google-account-setup webdav-account-setup" plugins_base="$plugins_base_always $SA_JUNK_PLUGIN $BF_JUNK_PLUGIN $EXCHANGE_PLUGIN $MONO_PLUGIN " all_plugins_base="$plugins_base_always sa-junk-plugin bogo-junk-plugin exchange-operations mono" -plugins_standard_always="bbdb subject-thread save-calendar select-one-source copy-tool mail-to-task audio-inline mailing-list-actions default-mailer prefer-plain mail-notification attachment-reminder backup-restore email-custom-header templates pst-import vcard-inline" +plugins_standard_always="bbdb subject-thread save-calendar mail-to-task audio-inline mailing-list-actions default-mailer prefer-plain mail-notification attachment-reminder backup-restore email-custom-header templates pst-import vcard-inline" plugins_standard="$plugins_standard_always" all_plugins_standard="$plugins_standard" -plugins_experimental_always="face folder-unsubscribe external-editor hula-account-setup" +plugins_experimental_always="face external-editor hula-account-setup" plugins_experimental="$plugins_experimental_always $IPOD_SYNC $TNEF_ATTACHMENTS $PYTHON_PLUGIN" all_plugins_experimental="$plugins_experimental_always ipod-sync tnef-attachments" +dnl Temporary KILL-BONOBO hack +enable_plugins="attachment-reminder addressbook-file audio-inline bbdb bogo-junk-plugin caldav calendar-file calendar-http default-mailer default-source email-custom-header external-editor face google-account-setup hula-account-setup imap-features mail-notification mail-to-task mark-all-read plugin-manager prefer-plain profiler sa-junk-plugin save-calendar startup-wizard subject-thread templates $TNEF_ATTACHMENTS vcard-inline webdav-account-setup" + +dnl PLUGINS NOT BUILDING YET +dnl ------------------------ +dnl backup-restore +dnl calendar-weather +dnl exchange-operations +dnl groupwise-features +dnl ipod-sync +dnl itip-formatter +dnl mailing-list-actions +dnl mono +dnl pst-import +dnl publish-calendar +dnl python + case x"$enable_plugins" in xno) plugins_enabled="" @@ -1884,15 +1917,9 @@ AC_CONFIG_FILES([ po/Makefile.in Makefile win32/Makefile a11y/Makefile -a11y/addressbook/Makefile -a11y/calendar/Makefile -a11y/widgets/Makefile -a11y/e-table/Makefile -a11y/e-text/Makefile addressbook/Makefile addressbook/conduit/Makefile addressbook/gui/Makefile -addressbook/gui/component/Makefile addressbook/gui/contact-editor/Makefile addressbook/gui/contact-list-editor/Makefile addressbook/gui/merging/Makefile @@ -1905,7 +1932,11 @@ addressbook/util/Makefile art/Makefile data/Makefile data/icons/Makefile +doc/Makefile +doc/reference/Makefile +doc/reference/shell/Makefile e-util/Makefile +em-format/Makefile filter/Makefile help/Makefile help/quickref/Makefile @@ -1974,6 +2005,10 @@ mail/default/sr@latin/Makefile mail/default/sv/Makefile mail/default/hu/Makefile mail/importers/Makefile +modules/Makefile +modules/addressbook/Makefile +modules/calendar/Makefile +modules/mail/Makefile plugins/Makefile plugins/addressbook-file/Makefile plugins/attachment-reminder/Makefile @@ -1985,14 +2020,12 @@ plugins/caldav/Makefile plugins/calendar-file/Makefile plugins/calendar-http/Makefile plugins/calendar-weather/Makefile -plugins/copy-tool/Makefile plugins/default-mailer/Makefile plugins/default-source/Makefile plugins/email-custom-header/Makefile plugins/exchange-operations/Makefile plugins/external-editor/Makefile plugins/face/Makefile -plugins/folder-unsubscribe/Makefile plugins/google-account-setup/Makefile plugins/groupwise-account-setup/Makefile plugins/groupwise-features/Makefile @@ -2000,7 +2033,6 @@ plugins/hula-account-setup/Makefile plugins/imap-features/Makefile plugins/ipod-sync/Makefile plugins/itip-formatter/Makefile -plugins/mail-account-disable/Makefile plugins/mail-notification/Makefile plugins/mail-to-task/Makefile plugins/mailing-list-actions/Makefile @@ -2014,13 +2046,13 @@ plugins/publish-calendar/Makefile plugins/python/Makefile plugins/sa-junk-plugin/Makefile plugins/save-calendar/Makefile -plugins/select-one-source/Makefile plugins/startup-wizard/Makefile plugins/subject-thread/Makefile plugins/templates/Makefile plugins/tnef-attachments/Makefile plugins/vcard-inline/Makefile plugins/webdav-account-setup/Makefile +smclient/Makefile smime/Makefile smime/lib/Makefile smime/gui/Makefile |