Install po files for all available languages. Only for GnuPG-2. The
[gpg4win.git] / configure.ac
index 705453e..6f40453 100644 (file)
@@ -1,5 +1,5 @@
 # configure.ac for GPG4Win
-# Copyright (C) 2005, 2006 g10 Code GmbH
+# Copyright (C) 2005, 2006, 2007 g10 Code GmbH
 # 
 # This file is part of GPG4Win
 # 
@@ -26,7 +26,7 @@ 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!
-m4_define([my_version], [1.1.1])
+m4_define([my_version], [1.9.0])
 m4_define([my_issvn], [yes])
 
 m4_define([svn_revision], m4_esyscmd([echo -n $( (svn info 2>/dev/null \
@@ -60,6 +60,10 @@ AM_MAINTAINER_MODE
 AC_CANONICAL_HOST
 AM_CONFIG_HEADER(config.h)
 
+# Language support
+AM_PO_SUBDIRS
+
+
 AC_SUBST(PACKAGE)
 AC_SUBST(VERSION)
 AC_SUBST(MANUALVERSION_EINSTEIGER)
@@ -123,6 +127,8 @@ AM_CONDITIONAL(BUILD_LIGHT_INSTALLER, test "$build_light_installer" = yes)
 # Required tools.
 AC_PROG_CC
 AC_PROG_CPP
+AC_PROG_RANLIB
+AC_CHECK_TOOL(AR, ar, :)
 AC_CHECK_TOOLS(STRIP, strip)
 AC_CHECK_TOOLS(DLLTOOL, dlltool)
 AC_CHECK_PROGS(MAKE, make)
@@ -163,7 +169,7 @@ GPG4WIN_BPKG_GNU([gettext], [libiconv])
 
 GPG4WIN_BPKG_GNUWIN32([zlib])
 GPG4WIN_BPKG_GNUWIN32_LIB([crypt])
-GPG4WIN_BPKG_GNUWIN32_LIB([regex])
+GPG4WIN_BPKG_GNUWIN32([regex])
 GPG4WIN_BPKG_GNUWIN32([libpng], [pkgconfig])
 GPG4WIN_BPKG_GNUWIN32([jpeg])
 
@@ -178,22 +184,28 @@ GPG4WIN_BPKG_GTK_DEV([cairo], [glib pkgconfig])
 
 GPG4WIN_BPKG_BINSRC([GPGee], [gnupg])
 
+GPG4WIN_SPKG([bzip2])
 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([pinentry], [libiconv])
-GPG4WIN_SPKG([gpgme], [libgpg-error gnupg glib])
-GPG4WIN_SPKG([gnupg], [libiconv])
+GPG4WIN_SPKG([pinentry], [libiconv gtk+])
+GPG4WIN_SPKG([gpgme], [libgpg-error gnupg glib qt])
+GPG4WIN_SPKG([gnupg], [libiconv bzip2])
 GPG4WIN_SPKG([gnupg2], [libiconv libgcrypt libksba libassuan libgpg-error dnl
-                        w32pth zlib])
+                        w32pth zlib bzip2 pinentry])
 GPG4WIN_SPKG([pthreads-w32])
-GPG4WIN_SPKG([gpgol], [gpgme])
+GPG4WIN_SPKG([gpgol], [gpgme libassuan])
+GPG4WIN_SPKG([gpgex], [libassuan])
 GPG4WIN_SPKG([gpa], [libiconv gettext zlib gtk+ libpng glib gpgme])
 GPG4WIN_SPKG([winpt], [gpgme gnupg])
 GPG4WIN_SPKG([sylpheed-claws], [libiconv gettext zlib gtk+ libpng jpeg glib dnl
                                 gpgme pthreads-w32 crypt regex])
+GPG4WIN_SPKG([libetpan], [pthreads-w32])
+GPG4WIN_SPKG([claws-mail], [libiconv gettext zlib gtk+ libpng jpeg glib dnl
+                            gpgme pthreads-w32 crypt regex libetpan])
 # The Eudora license (the one for the EMS API) is still not acceptable.
 #GPG4WIN_SPKG([eudoragpg])
 GPG4WIN_IPKG([man_novice_de])
@@ -201,8 +213,42 @@ GPG4WIN_IPKG([man_advanced_de])
 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_GNUWIN32([kdelibs], [qt oxygen-icons])
+GPG4WIN_BPKG_BINSRC([kleopatra], [gpgme gnupg gnupg2 kdelibs])
+
 GPG4WIN_FINALIZE
 
+# Qt is compiled with -mthreads, and thus requires the mingwm10.dll.
+mingwm_dll=no
+AC_ARG_WITH([mingwm-dll],
+           AC_HELP_STRING([--with-mingwm-dll=FILE], [use the mingwm DLL]),
+           [mingwm_dll=$withval])
+if test "$mingwm_dll" = "no"; then
+  file="/usr/share/doc/mingw32-runtime/mingwm10.dll.gz"
+  if test -r "$file"; then
+    mingwm_dll="$file"
+  fi
+fi
+if test "$mingwm_dll" = "no"; then
+  missing_tools="mingwm10.dll $missing_tools"
+fi
+# To make things simple, we just install a copy of the file in the
+# source directory.  No need to make this ugly hack any uglier by
+# messing around with the build system.
+case "$mingwm_dll" in
+    *.gz)
+      $ZCAT $mingwm_dll > src/mingwm10.dll
+      ;;
+    *)
+      cp $mingwm_dll src/mingwm10.dll
+      ;;
+esac
+
+
 # Throw an error if required tools are missing
 if test -n "$missing_tools"; then
     for i in $missing_tools; do 
@@ -218,7 +264,8 @@ fi
 
 # Finalize.
 
-AC_CONFIG_FILES(Makefile packages/Makefile include/Makefile src/Makefile)
+AC_CONFIG_FILES(Makefile)
+AC_CONFIG_FILES(packages/Makefile include/Makefile src/Makefile po/Makefile.in)
 AC_CONFIG_FILES(include/config.nsi src/gpg4win.mk)
 AC_CONFIG_FILES(doc/Makefile)
 AC_CONFIG_FILES(doc/logo/Makefile)