changed manualinprogress, fix deleted screenshot
[gpg4win.git] / configure.ac
index d076415..408f947 100644 (file)
@@ -1,5 +1,5 @@
 # configure.ac for GPG4Win
 # configure.ac for GPG4Win
-# Copyright (C) 2005, 2006, 2007 g10 Code GmbH
+# Copyright (C) 2005, 2006, 2007, 2008 g10 Code GmbH
 # 
 # This file is part of GPG4Win
 # 
 # 
 # This file is part of GPG4Win
 # 
@@ -25,8 +25,8 @@ min_automake_version="1.9.3"
 # Set my_issvn to "yes" for non-released code.  Remember to run an
 # "svn up" and "autogen.sh" right before creating a distribution.
 # Right after a release the make target "copy-news" is to be called!
 # Set my_issvn to "yes" for non-released code.  Remember to run an
 # "svn up" and "autogen.sh" right before creating a distribution.
 # Right after a release the make target "copy-news" is to be called!
-m4_define([my_version], [1.9.4-beta])
-m4_define([my_issvn], [svn])
+m4_define([my_version], [2.0.0])
+m4_define([my_issvn], [yes])
 
 m4_define([svn_revision], m4_esyscmd([echo -n $( (svn info 2>/dev/null \
           ||echo 'Revision: 0')|sed -n '/^Revision:/ s/[^0-9]//gp'|head -1)]))
 
 m4_define([svn_revision], m4_esyscmd([echo -n $( (svn info 2>/dev/null \
           ||echo 'Revision: 0')|sed -n '/^Revision:/ s/[^0-9]//gp'|head -1)]))
@@ -43,6 +43,8 @@ MANUALVERSION_NOVICES="1.0.0"
 MANUALDATE_NOVICES="Nov. 30, 2006"
 MANUALVERSION_ADVANCED="0.0.0"
 MANUALDATE_ADVANCED="Nov. 30, 2006"
 MANUALDATE_NOVICES="Nov. 30, 2006"
 MANUALVERSION_ADVANCED="0.0.0"
 MANUALDATE_ADVANCED="Nov. 30, 2006"
+COMPENDIUM_VERSION_DE="3.0.0-beta2"
+COMPENDIUM_DATE_DE="19. Juni 2009"
 
 
 MANUALINPROGRESS_DE=m4_if(my_issvn,[yes],["~und evtl. seitdem weiter bearbeitet"])
 
 
 MANUALINPROGRESS_DE=m4_if(my_issvn,[yes],["~und evtl. seitdem weiter bearbeitet"])
@@ -76,6 +78,8 @@ AC_SUBST(MANUALDATE_NOVICES)
 AC_SUBST(MANUALVERSION_ADVANCED)
 AC_SUBST(MANUALDATE_ADVANCED)
 AC_SUBST(MANUALINPROGRESS_EN)
 AC_SUBST(MANUALVERSION_ADVANCED)
 AC_SUBST(MANUALDATE_ADVANCED)
 AC_SUBST(MANUALINPROGRESS_EN)
+AC_SUBST(COMPENDIUM_VERSION_DE)
+AC_SUBST(COMPENDIUM_DATE_DE)
 
 
 # Generate extended version information.  Note, that for NSIS use we
 
 
 # Generate extended version information.  Note, that for NSIS use we
@@ -123,6 +127,17 @@ AC_ARG_ENABLE(light-installer,
 AC_MSG_RESULT($light_installer)
 AM_CONDITIONAL(BUILD_LIGHT_INSTALLER, test "$build_light_installer" = yes)
 
 AC_MSG_RESULT($light_installer)
 AM_CONDITIONAL(BUILD_LIGHT_INSTALLER, test "$build_light_installer" = yes)
 
+AC_ARG_ENABLE(fast-makensis,
+    AC_HELP_STRING([--enable-fast-makensis],
+                   [Use a less efficient compressor to speed up building]),
+                    use_fast_makensis=$enableval,
+                    use_fast_makensis=no)
+AC_MSG_RESULT($light_installer)
+if test "$use_fast_makensis" = yes; then
+  EXTRA_MAKENSIS_FLAGS="${EXTRA_MAKENSIS_FLAGS} -DDISABLE_LZMA=1"
+fi
+AC_SUBST(EXTRA_MAKENSIS_FLAGS)
+
 
 # Required tools.
 AC_PROG_CC
 
 # Required tools.
 AC_PROG_CC
@@ -157,12 +172,14 @@ for i in DLLTOOL MAKE UNZIP TAR MKDIR CP RM STOW MAKENSIS ZCAT TEXI2DVI \
 done
 
 
 done
 
 
+
 # Optional tools.
 
 AC_CHECK_PROGS(WGET, wget)
 
 
 # Packages.
 # Optional tools.
 
 AC_CHECK_PROGS(WGET, wget)
 
 
 # Packages.
+gpg4win_dup_sources=""
 
 GPG4WIN_BPKG_GNU([libiconv])
 GPG4WIN_BPKG_GNU([gettext], [libiconv])
 
 GPG4WIN_BPKG_GNU([libiconv])
 GPG4WIN_BPKG_GNU([gettext], [libiconv])
@@ -170,56 +187,64 @@ GPG4WIN_BPKG_GNU([gettext], [libiconv])
 GPG4WIN_BPKG_GNUWIN32([zlib])
 GPG4WIN_BPKG_GNUWIN32_LIB([crypt])
 GPG4WIN_BPKG_GNUWIN32([regex])
 GPG4WIN_BPKG_GNUWIN32([zlib])
 GPG4WIN_BPKG_GNUWIN32_LIB([crypt])
 GPG4WIN_BPKG_GNUWIN32([regex])
-GPG4WIN_BPKG_GNUWIN32([libpng], [pkgconfig])
 GPG4WIN_BPKG_GNUWIN32([jpeg])
 GPG4WIN_BPKG_GNUWIN32([jpeg])
+GPG4WIN_BPKG_GNUWIN32([bsfilter])
 
 GPG4WIN_BPKG_GTK([pkgconfig])
 # We build our own version of glib, because we need to apply a few patches.
 # GPG4WIN_BPKG_GTK_DEV([glib], [pkgconfig])
 GPG4WIN_SPKG([glib], [libiconv gettext pkgconfig])
 
 GPG4WIN_BPKG_GTK([pkgconfig])
 # We build our own version of glib, because we need to apply a few patches.
 # GPG4WIN_BPKG_GTK_DEV([glib], [pkgconfig])
 GPG4WIN_SPKG([glib], [libiconv gettext pkgconfig])
-GPG4WIN_BPKG_GTK_DEV([gtk+], [atk pango glib libiconv gettext pkgconfig cairo])
 GPG4WIN_BPKG_GTK_DEV([atk], [glib pkgconfig])
 GPG4WIN_BPKG_GTK_DEV([pango], [glib pkgconfig])
 GPG4WIN_BPKG_GTK_DEV([cairo], [glib pkgconfig])
 GPG4WIN_BPKG_GTK_DEV([atk], [glib pkgconfig])
 GPG4WIN_BPKG_GTK_DEV([pango], [glib pkgconfig])
 GPG4WIN_BPKG_GTK_DEV([cairo], [glib pkgconfig])
+GPG4WIN_BPKG_GTK_DEV([gtk+], [libiconv gettext pkgconfig atk pango glib cairo])
+GPG4WIN_BPKG_GTK_DEV([libpng], [pkgconfig])
 
 GPG4WIN_SPKG([bzip2])
 GPG4WIN_SPKG([adns])
 GPG4WIN_SPKG([libgpg-error], [libiconv gettext])
 GPG4WIN_SPKG([libgcrypt], [libgpg-error])
 GPG4WIN_SPKG([libksba], [libgpg-error])
 
 GPG4WIN_SPKG([bzip2])
 GPG4WIN_SPKG([adns])
 GPG4WIN_SPKG([libgpg-error], [libiconv gettext])
 GPG4WIN_SPKG([libgcrypt], [libgpg-error])
 GPG4WIN_SPKG([libksba], [libgpg-error])
-GPG4WIN_SPKG([libassuan], [w32pth])
-GPG4WIN_SPKG([dirmngr], [libgpg-error libgcrypt libassuan libksba])
 GPG4WIN_SPKG([w32pth])
 GPG4WIN_SPKG([w32pth])
+GPG4WIN_SPKG([libassuan], [libgpg-error w32pth])
+GPG4WIN_SPKG([dirmngr], [libgpg-error libgcrypt libassuan libksba w32pth])
 GPG4WIN_SPKG([pinentry], [libiconv gtk+])
 GPG4WIN_SPKG([gpgme], [libgpg-error gnupg2 glib])
 GPG4WIN_SPKG([pinentry], [libiconv gtk+])
 GPG4WIN_SPKG([gpgme], [libgpg-error gnupg2 glib])
+GPG4WIN_SPKG([curl], [zlib gnutls])
 GPG4WIN_SPKG([gnupg2], [libiconv libgcrypt libksba libassuan libgpg-error dnl
                         w32pth zlib bzip2 adns pinentry])
 GPG4WIN_SPKG([pthreads-w32])
 GPG4WIN_SPKG([gpgol], [gpgme libassuan])
 GPG4WIN_SPKG([gpgex], [libassuan])
 GPG4WIN_SPKG([gnupg2], [libiconv libgcrypt libksba libassuan libgpg-error dnl
                         w32pth zlib bzip2 adns pinentry])
 GPG4WIN_SPKG([pthreads-w32])
 GPG4WIN_SPKG([gpgol], [gpgme libassuan])
 GPG4WIN_SPKG([gpgex], [libassuan])
+GPG4WIN_SPKG([scute], [libgpg-error libassuan])
+GPG4WIN_SPKG([paperkey])
 GPG4WIN_SPKG([gpa], [libiconv gettext zlib gtk+ libpng glib gpgme])
 GPG4WIN_SPKG([winpt], [gpgme gnupg2])
 GPG4WIN_SPKG([libgsasl])
 GPG4WIN_SPKG([libtasn1])
 GPG4WIN_SPKG([gpa], [libiconv gettext zlib gtk+ libpng glib gpgme])
 GPG4WIN_SPKG([winpt], [gpgme gnupg2])
 GPG4WIN_SPKG([libgsasl])
 GPG4WIN_SPKG([libtasn1])
-GPG4WIN_SPKG([opencdk], [libgpg-error libgcrypt])
-GPG4WIN_SPKG([gnutls], [libgsasl libtasn1 opencdk])
-GPG4WIN_SPKG([libetpan], [pthreads-w32])
+GPG4WIN_SPKG([gnutls], [libgsasl libtasn1 libgcrypt])
+GPG4WIN_SPKG([libetpan], [pthreads-w32 gnutls])
+GPG4WIN_SPKG([libxml2], [zlib])
 GPG4WIN_SPKG([claws-mail], [libiconv gettext zlib gtk+ libpng jpeg glib dnl
                             gpgme pthreads-w32 crypt regex libetpan gnutls])
 GPG4WIN_SPKG([claws-mail], [libiconv gettext zlib gtk+ libpng jpeg glib dnl
                             gpgme pthreads-w32 crypt regex libetpan gnutls])
-# The Eudora license (the one for the EMS API) is still not acceptable.
-#GPG4WIN_SPKG([eudoragpg])
-GPG4WIN_IPKG([man_novice_de])
-GPG4WIN_IPKG([man_advanced_de])
+GPG4WIN_SPKG([notification_plugin], [claws-mail])
+GPG4WIN_SPKG([gtkhtml2_viewer], [curl claws-mail libxml2])
+GPG4WIN_SPKG([vcalendar], [curl claws-mail])
+GPG4WIN_SPKG([rssyl], [curl claws-mail])
+GPG4WIN_SPKG([tnef_parse], [claws-mail])
+GPG4WIN_SPKG([attachwarner], [claws-mail])
+GPG4WIN_SPKG([bsfilter_plugin], [claws-mail])
+GPG4WIN_IPKG([compendium_de])
 GPG4WIN_IPKG([man_novice_en])
 #GPG4WIN_IPKG([man_advanced_en])
 
 # Qt related stuff.
 GPG4WIN_BPKG_GNUWIN32([kdesupport])
 GPG4WIN_IPKG([man_novice_en])
 #GPG4WIN_IPKG([man_advanced_en])
 
 # Qt related stuff.
 GPG4WIN_BPKG_GNUWIN32([kdesupport])
-GPG4WIN_BPKG_GNUWIN32([qt], [kdesupport])
 GPG4WIN_BPKG_BINSRC([oxygen-icons])
 GPG4WIN_BPKG_BINSRC([oxygen-icons])
+GPG4WIN_BPKG_GNUWIN32([qt], [kdesupport])
 GPG4WIN_BPKG_GNUWIN32([kdelibs], [qt oxygen-icons])
 GPG4WIN_BPKG_GNUWIN32([kdelibs], [qt oxygen-icons])
-#GPG4WIN_BPKG_BINSRC([kleopatra], [gpgme gnupg2 kdelibs])
-GPG4WIN_BPKG_GNUWIN32([kleopatra], [gpgme gnupg2 kdelibs])
+GPG4WIN_BPKG_BINSRC([kleopatra], [gpgme gnupg2 kdelibs])
+#GPG4WIN_BPKG_GNUWIN32([kleopatra], [gpgme gnupg2 kdelibs])
 
 GPG4WIN_FINALIZE
 
 
 GPG4WIN_FINALIZE
 
@@ -262,6 +287,16 @@ if test -n "$missing_tools"; then
 ***]])
 fi
 
 ***]])
 fi
 
+# Throw an error if any duplicate source packages have been found
+if test -n "$gpg4win_dup_sources"; then
+    tmp=
+    for i in $gpg4win_dup_sources; do 
+      tmp="$tmp
+$i"
+    done
+    AC_MSG_ERROR([Packages with more that one source version:$tmp])
+fi
+
 
 # Finalize.
 
 
 # Finalize.